An app to help keep the world cleaner and hold people accountable of their pollution through data collection.
For help getting started with Flutter, view flutter's online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Make sure to include a .env.dev and .env for production with:
API_URL:https://api.ecocrypt.org/
Make sure to add or update this on your VScode launch.json
{
"name": "Ecocrypt Dev",
"request": "launch",
"type": "dart",
"args": [
"-t",
"lib/main_dev.dart",
"--flavor",
"dev"
]
},
{
"name": "Ecocrypt Prod",
"request": "launch",
"type": "dart",
"args": [
"-t",
"lib/main_prod.dart",
"--flavor",
"prod"
]
}
Both projects, under ios and android folders, you need to add GoogleServices files that match the apps package name (com.example.bettapay). These GoogleServices files can be found and downloaded through your firebase account. Look for dev and prod folders for each project build, and add the files there. For ios, add the files through xcode first and then update it through vscode if xcode does not sync the project.
Build for dev
flutter build appbundle --flavor dev -t lib/main_dev.dart
Build for Prod
flutter build appbundle --flavor prod -t lib/main_prod.dart
Build for dev
flutter build apk --flavor dev -t lib/main_dev.dart
Build for Prod
flutter build apk --flavor prod -t lib/main_prod.dart
# configure flutter environment and ensure there are no issue developing with flutter
flutter doctor
# Install dependencies (Update pubpec.ymal)
# Test on device (For any aviable device)
flutter run
# Test on Android Device (For any aviable device)
flutter run android
# Test on iOS device(For any aviable device)
flutter run ios