============================
-
Ensure JDK 1.8 is installed
-
Ensure proper version of Android SDK command line tools is installed
-
Install fastlane using
[sudo] gem install fastlane -NV
or alternatively using brew cask install fastlane
- Appropiate
.env
file should be present inandroid
folder as with a manual build
- Fastlane for Android basically executes Gradle commands for cleaning, installing Android dependencies and assembling the project into a .apk
- Application file is published to Google Play Store - keystore file in json format needs to be present and referenced by env var
JSON_KEYFILE
- (alternatively) Push build to S3 (requires
BUILD_BUCKET
as well as AWS credentials defined in environment vars) - (optionally) Send Slack notification to the webhook and channel specified by env vars
SLACK_URL
andSLACK_CHANNEL
Modify the Fastfile as appropiate for your project.
Execute with
fastlane lane_name
Builds and archive corresponding flavor for local use
Builds corresponding flavor and pushes to S3
Builds corresponding flavor and pushes to Play Store
More information about fastlane can be found on fastlane.tools. The documentation of fastlane can be found on docs.fastlane.tools.