mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Integrate gradle play publisher for automatic alpha releases (#2116)
This commit is contained in:
parent
1b01c6517f
commit
867e447a17
4 changed files with 24 additions and 4 deletions
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue