Fastlane
Fastlane is a popular tool for automating the build and release process for iOS and Android apps. Shorebird can be integrated with fastlane to automate releasing and patching.
Follow the setup instructions on the fastlane website to install fastlane (ios, android).
If you are not already using fastlane with your project, navigate to your app’s
ios
directory in your project and run fastlane init
. You will be prompted to
answer several questions. For this guide, we will choose to manually add lanes
to the Fastfile
.
Run the following command to install the shorebird
fastlane plugin, which
exposes the shorebird_release
and shorebird_patch
actions.
Open the Fastfile
in the fastlane
directory and add the following lane:
To run this, execute the following command:
If you would like to provide additional arguments to the release command, you
can do so using the args
parameter. For example:
Open the Fastfile
in the fastlane
directory and add the following lane:
This will patch the iOS release with the version number detected in the compiled app and patch the release with that version.
As with shorebird_release
, you can provide additional arguments to the patch
command using the args
parameter.