Los dos jobs de ci.yml fallaban desde julio, y no era por los secretos: - `flutter analyze` exige que existan los assets declarados en pubspec, y private-settings*.json están en .gitignore. El workflow los crea vacíos: para analizar basta con que existan. - test/file_test.dart usaba package:test y llamaba a getFileNameOfLang, que lee del rootBundle; sin binding moría, y con binding se quedaba colgado esperando al canal de assets. getFileNameOfLang acepta ahora un AssetBundle inyectable y el test usa uno de mentira, lo que además permite cubrir el idioma de respaldo y el fichero base. - SDK de Dart a >=3.8.0, que es lo que piden los generadores actuales. Reproducido antes y después en la misma imagen del runner (ghcr.io/cirruslabs/flutter:3.41.9): ANALYZE_EXIT=1/TEST_EXIT=1 -> ambos en verde. |
||
|---|---|---|
| .forgejo/workflows | ||
| android | ||
| assets | ||
| fastlane | ||
| images | ||
| ios | ||
| lib | ||
| res/values | ||
| test | ||
| .flutter-plugins-dependencies | ||
| .gitignore | ||
| .metadata | ||
| analysis_options.yaml | ||
| build.yaml | ||
| fires_flutter.iml | ||
| fires_flutter_android.iml | ||
| Gemfile | ||
| LINT_CLEANUP_SUMMARY.md | ||
| LOCALIZATION_AUDIT.md | ||
| pubspec.yaml | ||
| README.md | ||
| RELEASE.md | ||
Tod@s contra el Fuego (All Against Fire) mobile
This is app that notifies about fires detected in an area of your interest. It helps the early detection of fires and facilitates local mobilization, while the professional extinction services arrive.
Install
Via Play
Development
This app is developed with flutter. So if you want to contribute, please install it.
You also needs a:
assets/private-settings.jsonseeassets/private-settings-sample.json.google-services.jsonprovided by firebase console (see also the sample).
Some json related code is generated via
flutter packages pub run build_runner build --delete-conflicting-outputs
also you can run with watch instead of build to build with any code change.
Generate apk with:
flutter build apk --release -t lib/main_prod.dart --flavor production
also you can run with -t lib/main_dev.dart --flavor development. More info about flavors here.
Testing
Run flutter test for doing unit testing.
Release
Publishing to Google Play is automated and password-free via Forgejo Actions on
git.comunes.org. See RELEASE.md. TL;DR: bump version: in
pubspec.yaml, then git tag vX.Y && git push origin vX.Y — CI builds a signed
AAB and uploads it to the Play internal track.
Data source acknowledgements
We acknowledge the use of data and imagery from LANCE FIRMS operated by the NASA/GSFC/Earth Science Data and Information System (ESDIS) with funding provided by NASA/HQ.
License
GNU APLv3. See our LICENSE, for a complete text.
Thanks & other acknowlegments
(...)