- Flutter. Make sure all checks pass when you run
flutter doctor - Android Sdk Tools
- An emulator or phyiscal device. This app isn't configured to run in the browser.
| File | Directory |
|---|---|
| google-services.json | app directory under android folder (android/app/) |
| google-services.json | app/src/airqodev directory under android folder (android/app/)(For the staging environment) |
| firebase_app_id_file.json | Android folder (android/) |
| key.properties | Android folder (android/) |
| local.properties | Android folder (android/) |
| .env.dev | App root directory (this directory) |
| .env.prod | App root directory (this directory). Create an empty file named .env.prod. |
| airqo-dev-keystore.jks | Place it in any secure directory on your computer |
| GoogleService-Info.plist | Runner directory under ios folder (ios/Runner/) |
-
Change
sdk.dirandflutter.sdkto point to the correct paths for your android Sdk anf flutter respectively -
Change
storeFilevariable inkey.propertiesfile to point to where you putairqo-dev-keystore.jks. For example ifairqo-dev-keystore.jksis located under/Users/example/thenstoreFile=/Users/example/airqo-dev-keystore.jks
Your project structure should be similar the the following after adding all the required configuration files.
Run the command below to get your SHA-1 signing-certificate fingerprint. Share the Key with an AirQo team member to add it to the application restricted fingerprints.
keytool -list -v -keystore ~/.android/debug.keystore -alias androiddebugkey -storepass android -keypass androidflutter runflutter run --flavor airqodev -t lib/main_dev.dartflutter run --flavor airqodev -t lib/main_dev.dart --releaseflutter run --flavor airqo -t lib/main.dartflutter run --flavor airqo -t lib/main.dart --releaseflutter packages pub run build_runner build --delete-conflicting-outputs
dart fix --dry-run
dart fix --apply
flutter format lib/
flutter pub run dart_code_metrics:metrics analyze lib --reporter=html
flutter pub run dart_code_metrics:metrics check-unused-files lib
flutter pub run dart_code_metrics:metrics check-unused-code libflutter build appbundle --obfuscate --split-debug-info=${PWD}/obfuscate
flutter build ipa --obfuscate --split-debug-info=${PWD}/obfuscate
flutter build appbundle [--analyze-size]
flutter build ipa [--analyze-size]We strive to follow an established industry standard for mobile application security from the OWASP (the Open Web Application Security Project), The OWASP Mobile Application Security Verification Standard (MASVS) provides a set of baseline security criteria for developers. For a detailed security guide. Check out the MASVS Level 1 requirements.



