mirror of
https://github.com/openfoodfacts/smooth-app.git
synced 2026-03-13 08:31:42 +08:00
docs: align Flutter version references with flutter-version.txt (#7427)
This commit is contained in:
12
.github/copilot-instructions.md
vendored
12
.github/copilot-instructions.md
vendored
@@ -7,13 +7,13 @@ This is a comprehensive Flutter mobile application for Open Food Facts, supporti
|
||||
## Essential Setup and Environment
|
||||
|
||||
### Flutter Version Management
|
||||
- **CRITICAL**: This app requires Flutter version **3.35.1** exactly (as specified in `flutter-version.txt`)
|
||||
- **CRITICAL**: This app requires Flutter version **3.38.5** exactly (as specified in `flutter-version.txt`)
|
||||
- **ALWAYS** use FVM (Flutter Version Management) for consistent Flutter versions:
|
||||
```bash
|
||||
# Install FVM first: https://fvm.app/documentation/getting-started/installation
|
||||
fvm install 3.35.1
|
||||
fvm use 3.35.1
|
||||
fvm flutter --version # Should show Flutter 3.35.1
|
||||
fvm install 3.38.5
|
||||
fvm use 3.38.5
|
||||
fvm flutter --version # Should show Flutter 3.38.5
|
||||
```
|
||||
- Export Flutter to PATH: `export PATH="$(fvm flutter sdk-path)/bin:$PATH"`
|
||||
|
||||
@@ -149,7 +149,7 @@ If you encounter build issues:
|
||||
- `.github/workflows/` - GitHub Actions CI/CD pipeline
|
||||
|
||||
### Important Files
|
||||
- `flutter-version.txt` - Specifies required Flutter version (3.35.1)
|
||||
- `flutter-version.txt` - Specifies required Flutter version (3.38.5)
|
||||
- `packages/smooth_app/pubspec.yaml` - Main app dependencies
|
||||
- `packages/smooth_app/lib/entrypoints/` - Platform-specific entry points
|
||||
- `packages/smooth_app/integration_test/` - End-to-end test scenarios
|
||||
@@ -240,4 +240,4 @@ The repository uses comprehensive CI/CD:
|
||||
- NEVER CANCEL long-running build operations - they are expected to take significant time
|
||||
- ALWAYS validate with the pre-commit steps before submitting changes
|
||||
- ALWAYS use the exact Flutter version specified in flutter-version.txt
|
||||
- ALWAYS test your changes with real user scenarios, not just compilation
|
||||
- ALWAYS test your changes with real user scenarios, not just compilation
|
||||
|
||||
@@ -77,11 +77,11 @@ Full list of features on the wiki: https://wiki.openfoodfacts.org/Mobile_App/Fea
|
||||
## 🚀 How to run the project
|
||||
- Make sure you have installed Flutter and all the requirements
|
||||
- [Official Flutter installation guide](https://docs.flutter.dev/get-started/install)
|
||||
- Currently, the app uses the following version of Flutter: **3.38**.
|
||||
- Currently, the app uses the following version of Flutter: **3.38.5**.
|
||||
- **Setting Up Your Environment with FVM**
|
||||
- To manage Flutter versions easily, download and install **FVM (Flutter Version Management)**:
|
||||
- Install FVM by following the [official FVM installation guide](https://fvm.app/documentation/getting-started/installation).
|
||||
- Once FVM is installed, run the following commands to set Flutter to version 3.35.1:
|
||||
- Once FVM is installed, run the following commands to set Flutter to version 3.38.5:
|
||||
```bash
|
||||
fvm install 3.38.5
|
||||
fvm use 3.38.5
|
||||
|
||||
Reference in New Issue
Block a user