Fastlane Setup for Android
Simplified steps to setup fastlane for you Android Project.
This is a 2nd part of Fastlane Series. You might want to checkout following
Prerequisites:
- ruby 2.5 or above
- Ubuntu 16.04 or above
Following steps are required to complete the setup.
- Install Ruby and Fastlane. Follow this article Installing Fastlane in Ubuntu
- Install Bundler
- Setup your Android Project
- Create Service Account with Google Console
- Use a Json from 4 to initialise fastlane in project
Install Ruby and Fastlane
This should give you an output
Install Bundler
sudo gem install bundler
Setup your Android Project
Create a Gemfile in you root directory of project. Containing following text
source "https://rubygems.org"
gem "fastlane"
Run following command and add Gemfile and Gemfile.lock to your version control
bundle update
Following was my output ending with Bundle Updated
Create Service Account Google Console
Actual docs actually have quite a good explanation so I won’t do anything additional. Follow here
This json secret file is needed during the initialisation of fastlane. Fastlane require path to this file to function.
The image shows starting point where you will find API Access on new Google Play Console.
Use a Json from 4 to initialise fastlane in project
fastlane init
above command will be executed and it will ask for 2 things
1. Package Name (com.krausefx.app):
2. Path to the json secret file. (created in step 4)
If all goes well rest of the execution is like a walk through of fastlane doc.
Finally Test your Fastlane
fastlane
The above command give following output. How ever it is recommend to use
bundle exec fastlane