-
-
Notifications
You must be signed in to change notification settings - Fork 0
Project Setup
Michael edited this page Apr 4, 2021
·
4 revisions
- Make sure to have Android Studio installed and the Flutter SDK. This is the official documentation for installing Flutter on your platform.
- Run
flutter channel
and 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 clean
for most of first run errors you may face. - Run
flutter packages get
to download pubspec dependencies. - To generate the launcher icon, run
flutter pub run flutter_launcher_icons:main
. - Run
flutter run
to try it live on running emulator or usb connected device. You can target a specific device to run by runflutter devices
and getting the id and runningflutter run -d <device_id>
. - Run
flutter build apk
to generate APK file or runflutter build ios
to package iOS app. - Since we use flavors to manage different modes of the app:
- For Production Build:
flutter build apk --split-per-abi
orflutter 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.json
as
{
"api_key": "YOUR_KEY",
"data_center": "YOUR_DATA_CENTER"
}
Libertas People • releases page • slavefreetrade website