-
Notifications
You must be signed in to change notification settings - Fork 38
Android App Flavor
Plum Spirits edited this page Feb 19, 2019
·
20 revisions
For a demo we set up the android build system to compile app flavors.
Here the usage: In {projectRoot}/
Ensure all node dependencies are installed
yarn install
Clean (required)
yarn clean:android
Build and install flavored apk on connected phone or simulator
cd android && ./gradlew install{falvorName}Debug
Bundle app with haul and start development server.
yarn bundle:android
- Eventually restart app manually after haul started.
Release flavored apk to {projectRoot}/app/build/outputs/apk/{falvorName}/release
cd android && ./gradlew assemble{falvorName}
Install release on a phone
adb install app-{falvorName}-release.apk
We also introduced a 'production' flavor used for our regular development. Its usage is reflected in package.json. If you switch back to flavor 'production' remember to yarn clean:android
first.