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.