/opt/canhelp/apps/mobile
NameSizeModeActions
android/-0755rm
assets/-0755rm
config/-0755rm
ios/-0755rm
lib/-0755rm
linux/-0755rm
macos/-0755rm
test/-0755rm
web/-0755rm
windows/-0755rm
.gitignore7030644editdlrm
.metadata17060644editdlrm
analysis_options.yaml14200644editdlrm
devtools_options.yaml1840644editdlrm
MOBILE_WEB_PARITY_AUDIT.md50840644editdlrm
pubspec.lock389130644editdlrm
pubspec.yaml14920644editdlrm
README.md10400644editdlrm
UI_REDESIGN_PLAN.md157780644editdlrm
Edit: /opt/canhelp/apps/mobile/README.md (1040B)
# canhelp mobile ## Dart Define Config The mobile app reads build-time variables via `String.fromEnvironment(...)`. To avoid passing them manually on every `flutter run` or `flutter build`, use: - `apps/mobile/config/dart_defines.local.json` — local file used by builds - `apps/mobile/config/dart_defines.example.json` — committed example template Copy the example file and fill in real values: ```bash cd apps/mobile cp config/dart_defines.example.json config/dart_defines.local.json ``` Supported keys: - `API_URL` - `GOOGLE_CLIENT_ID` - `GOOGLE_IOS_CLIENT_ID` Then run the app from the repository root: ```bash npm run dev:mobile -- -d 528BCD1D-0B5C-44D6-A122-FD441B560AB6 ``` Build examples: ```bash npm run build:mobile:apk npm run build:mobile:ios ``` The same config file is used for both Android and iOS. If `dart_defines.local.json` is missing, Flutter will fail fast, which is the expected behavior for local development and CI. ## Example Config See `config/dart_defines.example.json` for the expected format.