Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

qiwi-archive/gradle-android-publishing-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#This plugin uses Google API to publish app to Google Play.

##Build and upload to Bintray:## Build project via

./gradlew clean fatJar bintrayUpload

(Don't forget to put env. variables with credentials)

##Setup:##

  • Create file client_secrets.json with following format
{
  "installed": {
    "client_id": "[[INSERT CLIENT ID HERE]]",
    "client_secret": "[[INSERT CLIENT SECRET HERE]]",
    "redirect_uris": [],
    "auth_uri": "https://accounts.google.com/o/oauth2/auth",
    "token_uri": "https://accounts.google.com/o/oauth2/token"
  }
}
  • Setup build.gradle. Add something like this:
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.qiwi:gradle-android-publishing-plugin:0.2.0'
    }
}

apply plugin: 'android-publish'

publishToPlay {
    configAppName = 'MyApp'
    configPackageName = 'com.example'
    configEmail = '[email protected]'
    configApkPath = '/path/to/apk'
    keyPath = '/path/to/key.p12'
    settingsPath = '/path/to/client_secrets.json'
    track = 'alpha'
    updateMessage = 'path/to/message.json' // optional parameter
}
  • If you want to add update message, then put it into JSON file and add updateMessage optional parameter to publishToPlay section. JSON must have format like this:
{
  "messages": [
    {
      "locale": "en-US",
      "text": "This is a message"
    },
    {
      "locale": "ru-RU",
      "text": "Текст"
    }
  ]
}

Locale must be specified according to IETF BCP 47.

##Using plugin:## To publish your apk to Google Play use command

./gradlew publishToPlay 

About

Gradle plugin for publishing Android apk on Google Play

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages