Fastlane automation for Android
We want to make you work less on the hard stuff behind the automation of publishing Rust mobile apps so we prepared some best practices on how you can automate the boring stuff with our creator Fastlane plugin. You can read more about Fastlane
here.
Setup
First of all, we would suggest you pass through our crossbow
basic tutorials for Android or/and iOS.
After you got familiar with crossbow
you can get to the following steps to run Fastlane
locally:
- Make sure you have crossbundle installed.
- Install Fastlane.
- Setup XCode or Android Studio depending on which platform you want to run your workflow.
- Create a test project (you can use our template) or add Fastlane to your project.
- Install our
fastlane
plugin with the next commandfastlane add_plugin crossbow
.
Setup for Play Market
- Open Google Play Console (you will need a developer account for this).
- Click on the button "Create app" and specify your application data in the form.
- Generate signing key through Android Studio as shown in this official tutorial.
- Generate a "Play Store Json Key" for Fastlane as shown here.
- Configure corresponding variables in
fastlane/Fastfile
file.
Run lane
To run our Fastlane pipeline just call fastlane android
or fastlane ios
at the root of the project.
Please note, Fastlane will ask you to log in on the first run to configure the setup.
See results
After the successful finish of publishing as an internal testing draft, you should see your release on the Google Play Console
. Find section "Testing" and click on the "Internal testing". You will see something like this:
Feel free to add some other lanes to fill your needs, here's the full list of them.
If you found a bug or issue - you can find or create an issue in this repository.