GitXplorerGitXplorer
j

fastlane-plugin-managed_google_play

public
6 stars
2 forks
5 issues

Commits

List of commits on branch master.
Unverified
bd50e894d19ca5e48c90c1f7f16d7d085787cce3

better comment for available languages

jjanpio committed 6 years ago
Unverified
e89dbf515ad4a6b2f7789acb057959b365496325

Document usage of plugin

jjanpio committed 6 years ago
Unverified
9904716e8e771b97699cf30bc471df948e969500

output more information about created app on success

jjanpio committed 6 years ago
Unverified
f76a9098c83b1a000601b56573010f4ea6038657

link to Github repo in gemspec

jjanpio committed 6 years ago
Unverified
4bb7c10fd3786debf3d2bbb143da88a9f7cfda49

ignore generated Android projects

jjanpio committed 6 years ago
Unverified
04d37c4e62adfc9314f4849f1eb5fd52fc6dc501

better output message for get_managed_play_store_publishing_rights

jjanpio committed 6 years ago

README

The README file for this repository.

managed_google_play plugin

fastlane Plugin Badge

This fastlane plugin enables you to create Android apps on Managed Google Play.

Installation

Add this plugin to your project by running:

fastlane add_plugin managed_google_play

About managed_google_play

The plugin 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:

  1. 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.

  2. 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.

  3. Create custom app on Managed Play Store

    Now you can run the create_app_on_managed_play_store action.

    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. en_US
    • apk = Path of your .apk file

    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.

Actions

get_managed_play_store_publishing_rights

TODO document parameters

create_app_on_managed_play_store

TODO document parameters

Example

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

rake

To automatically fix many of the styling issues, use

rubocop -a

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

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.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.