
Configurer
Documentation
Overview
You already know the rhythm from the Quick start: edit .env through setup.html, then make run-* or make build-*. This page covers what actually happens under the hood, and the order to configure things in.
What the sync step patches
Every make run-* and make build-* target first runs:
bash
bash scripts/env-sync.shThat script reads .env and patches:
env.g.dart— the typed Dart bindings the app reads at runtime.- Android
application android:labeland iOSCFBundleDisplayName— fromAPP_NAME. - AdMob APP IDs into
AndroidManifest.xmlandInfo.plist— only when AdMob is enabled. pubspec.yaml'sversion:line — fromAPP_VERSION_NAME+APP_VERSION_CODE. Flutter propagates that to both stores.- Play Games
APP_IDmeta-data inAndroidManifest.xml. android/key.properties— from your signing values.
When you're done working, make reset restores every touched file to its committed placeholder state. Your .env, Firebase files, and keystore stay put — they're never touched.
What to configure, in order
- Identifiers — the Android package name and iOS bundle ID. You cannot change these once you've submitted to a store.
- Firebase — run
flutterfire configureafter step 1. - App icon and general settings —
APP_NAME,APP_VERSION_NAME,APP_VERSION_CODE, and swap in your icon. - Signing key — required before your first release build.
- Features (optional) — AdMob or AppLovin, IAP, Play Games, logging. Leave each
*_IS_ENABLEDatfalseuntil you're ready — the corresponding subsystem stays completely inert.
Précédent
Mettre à jour
Suivant
Identifiants app