To run the app first you need to create a env.json file.
env.json file should look like this.
{
"SUPABASE_URL": "https://xxxxxxxxxxxxxxx.supabase.co",
"SUPABASE_ANON_KEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"API_KEY": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
}
you check example-env.json file in root directory.
Then either use the launch configuration in VSCode/Android Studio or use the following commands:
flutter run --dart-define-from-file=env.json
*This App works on iOS, Android.
To build apk you need to run this following commands:
flutter build apk --split-per-abi --dart-define-from-file=env.json
// for signed build
flutter build appbundle --dart-define-from-file=env.json
Removing the --split-per-abi flag results in a fat APK that contains your code compiled for all the target ABIs. Such APKs are larger in size than their split counterparts, causing the user to download native binaries that are not applicable to their device’s architecture.
Within the download you'll find the following directories and files:
root/
├── android
├── assets
├── build
├── ios
├── lib
│ ├── common
│ ├── constants
│ ├── core
│ ├── data
│ ├── feature
│ ├── routes
│ ├── themes
│ └── main.dart
├── ThrifyCash.iml
├── pubspec.lock
├── pubspec.yaml
├── env.json
└── test
[ ] Homepage UI [ ] Display Data Properly [ ] CRUD trx offline [ ] Sync CRUD
until now no test added [sad]