Éxécuter
./goLancer le build APK
./apkOutil ultra‑rapide et minimaliste pour installer, exécuter et gérer des environnements.
Run as a desktop app:
uv run flet runRun as a web app:
uv run flet run --web -r
OU MIEUX si App flet installée dans Phone :
uv run flet run --androidOption -r => Phone: http://:8550 (Voir avec ipconfig → Carte réseau sans fil Wi-Fi : IPv4)
Option 2 — Application Flet sur le téléphone (rendu natif identique à l'APK) ★
Installez l'application Flet depuis le Play Store. Puis lancez en local:
uv run flet run --web --host 0.0.0.0 --port 8550 -r uv run flet run --web --host 192.168.80.205 --port 8550 -r
Avantages: rendu 100% fidèle à l'APK, hot reload, aucun build Limite: l'app Flet doit être installée une fois sur le téléphone
Construire apk
uv run flet build apk -vC:\gsm\build\flutter\android\app\build.gradle.kts
→ Vérifier val resolvedMinSdk = 24
et ajouter en fin de fichier :
// Work around AGP/Kotlin lint crashes in some Flutter plugins during release APK builds. subprojects { tasks.matching { it.name == "lintVitalAnalyzeRelease" || it.name == "lintAnalyzeRelease" || it.name == "lintRelease" }.configureEach { enabled = false } }
Avant :
tasks.register("clean") { delete(rootProject.layout.buildDirectory) }
- Voir la procédure exacte pour signer le fichier APK généré → GgleStore
Pour savoir quel Py est utilisé par uv
uv run python -c "import sys; print(sys.executable)"For more details on running the app, refer to the Getting Started Guide.
uv run flet build apk -vFor more details on building and signing .apk or .aab, refer to the Android Packaging Guide.
uv run flet build ipa -vFor more details on building and signing .ipa, refer to the iOS Packaging Guide.
uv run flet build macos -vFor more details on building macOS package, refer to the macOS Packaging Guide.
uv run flet build linux -vFor more details on building Linux package, refer to the Linux Packaging Guide.
flet build windows -vEfface les builds précédents
uv run rm -r c:\gsm\src\build\flutter\build -Force -ErrorAction SilentlyContinue
rm -r $env:LOCALAPPDATA\Temp\serious_python_* -Force -ErrorAction SilentlyContinueflet build windows -vFor more details on building Windows package, refer to the Windows Packaging Guide.
c:\gsm/
├── src/ ← Application active (refactorisée)
├── build/ ← Artefacts de build
├── .git/ ← Version control
├── .venv/ ← Environnement Python
├── .vscode/ ← Config VS Code
├── pyproject.toml ← Dépendances (uv)
├── README.md
├── apk.ps1 ← Build APK
└── go.ps1 ← Lanceur