Coder Social home page Coder Social logo

gradle-play's Introduction

#Gradle Play

Gradle plugin for publishing Android applications using the Google Play Publisher API

Building

  • clone repository
  • execute ./gradlew assemble
  • copy build/libs/play-0.1.2-SNAPSHOT.jar (eg. libraries/ subfolder below)

Usage

build.gradle

buildscript {
    dependencies {
        classpath 'com.android.tools.build:gradle:1.0.0'
        …
        
        classpath files('libraries/gradle-play-0.1.2-SNAPSHOT.jar')
        classpath 'com.google.apis:google-api-services-androidpublisher:v2-rev2-1.19.0'
        classpath 'com.google.api-client:google-api-client-gson:1.19.0'
        classpath 'com.google.oauth-client:google-oauth-client-java6:1.19.0'
        classpath 'com.google.guava:guava:15.0'
    }
}

apply plugin: 'com.android.application'
apply plugin: 'io.vokal.gradle.play'

android {
    …
}

play {
    applicationName "Company-AppName/1.0"
    publishVariants 'freeRelease', 'paidRelease'
    publishTrack 'alpha' // can be [production, beta, alpha], defaults to 'alpha'
    serviceEmail '' // add service email
    serviceKey '' // add path to .p12 file
}

You can also specify just the suffix, which will build all flavors for that build type:

play {
    …
    publishVariants 'release'
    …
}

(eg. might build freeX86Release, freeArmRelease, paidX86Release, paidArmRelease variants)

gradle tasks

  • playInfo - displays publishing info grouped by application
  • playPublish - publishes all configured applications

The plugin will group apps by package and upload all apks for that app together. If there is only one APK for an application, a variant specific task will be created.

gradle-play's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.