Integrate gradle play publisher for automatic alpha releases (#2116)

This commit is contained in:
Vivek Maskara 2018-12-14 23:53:05 +05:30 committed by GitHub
parent 1b01c6517f
commit 867e447a17
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 4 deletions

View file

@ -3,8 +3,11 @@ apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
apply plugin: 'jacoco-android'
apply plugin: 'com.github.triplet.play'
apply from: 'quality.gradle'
def isRunningOnTravis = System.getenv("CI") == "true"
dependencies {
implementation 'com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
implementation 'fr.avianey.com.viewpagerindicator:library:2.4.1.1@aar'
@ -138,8 +141,6 @@ android {
}
}
def isRunningOnTravis = System.getenv("CI") == "true"
if (isRunningOnTravis) {
// configure keystore based on env vars in Travis for automated alpha builds
signingConfigs.release.storeFile = file("../nr-commons.keystore")
@ -222,3 +223,12 @@ android {
buildToolsVersion buildToolsVersion
}
if(isRunningOnTravis && file('../play.p12').exists()) {
play {
track = "alpha"
userFraction = 1
serviceAccountEmail = System.getenv("SERVICE_ACCOUNT_NAME")
serviceAccountCredentials = file("../play.p12")
}
}