This fastlane plugin enables you to create Android apps on Managed Google Play.
Add this plugin to your project by running:
fastlane add_plugin managed_google_play
fastlane-plugin_managed_google_play offers two actions to first enable custom apps for a user account (needed once) and then create such apps. Here is how to use it:
If you haven't done so before, start by following the first two steps of Googles "Get started with custom app publishing" -> "Preliminary setup" instructions: "Enable the Google Play Custom App Publishing API" and "Create a service account". You need the "service account's private key file" to continue.
Enable account to create and publish custom apps
Manually run the
get_managed_play_store_publishing_rights action on the command line in your project:
fastlane run get_managed_play_store_publishing_rights
It will ask for the
json_key which you answer by pasting the full path of the private key file. The command will output a URL to visit. After logging in you are redirected to a page that outputs your "Developer Account ID" - take note of that, you will need it shortly.
Note: If your account is already enabled to create custom apps, you can of course skip this step. It only has to executed once for your account to be able to upload custom apps.
- Create custom app on Managed Play Store
Now you can run the
fastlane run create_app_on_managed_play_store
This action will ask for the following parameters:
json_key= Same file as before
developer_account_id= Use the one you received in the previous step
app_title= Your app's title
language= Primary language in BCP 47 format, e.g.
apk= Path of your
Of course you can also create a lane using the action (if you will do it more than once for example), that could look like this:
app_title = 'Your app title' language = 'en_US' apk = '/files/app-release.apk' create_app_on_managed_play_store( json_key: ENV['JSON_KEY_FILE'], developer_account_id: ENV['DEVELOPER_ACCOUNT_ID'], app_title: app_title, language: language, apk: apk )
When the action is finished your app is created in the Google Play Console.
TODO document parameters
TODO document parameters
Check out the example
Fastfile to see how to use this plugin. Try it by cloning the repo, running
fastlane install_plugins and
bundle exec fastlane test.
Run tests for this plugin
To run both the tests, and code style validation, run
To automatically fix many of the styling issues, use
Issues and Feedback
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
Using fastlane Plugins
For more information about how the
fastlane plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.