Project Setup - slavefreetrade/libertas_people GitHub Wiki
- Make sure to have Android Studio installed and the Flutter SDK. This is the official documentation for installing Flutter on your platform.
- Run
flutter channeland make sure you are on flutter's stable channel. If you were not on the stable channel flutter- Run
flutter channel stable - Run
flutter upgrade
- Run
- Run
flutter cleanfor most of first run errors you may face. - Run
flutter packages getto download pubspec dependencies. - To generate the launcher icon, run
flutter pub run flutter_launcher_icons:main. - Run
flutter runto try it live on running emulator or usb connected device. You can target a specific device to run by runflutter devicesand getting the id and runningflutter run -d <device_id>. - Run
flutter build apkto generate APK file or runflutter build iosto package iOS app. - Since we use flavors to manage different modes of the app:
- For Production Build:
flutter build apk --split-per-abiorflutter build apk --split-per-abi dart-define=ENV=prod - For Testing Build:
flutter build apk --split-per-abi --dart-define=ENV=test
In assets/ directory, make sure you add a secrets.json file and copy in the appropriate datacenter and apiKey json contents. secrets.json is referenced in the .gitignore and should not be committed to source control. If the API key is compromised, a new API key can be generated via the Qualtrics Dashboard.
In case you want to test the app without having our API key
- Go to Qualtrics website.
- Make a test survey.
- Generate an API Key.
- Add it to
assets/secrets.jsonas
{
"api_key": "YOUR_KEY",
"data_center": "YOUR_DATA_CENTER"
}