mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 12:23:58 +01:00
Changes to fix build (#2128)
* Changes to fix build * Apply GPP plugin only on travis
This commit is contained in:
parent
718ad3a12c
commit
8c083f3dd5
3 changed files with 31 additions and 26 deletions
|
|
@ -3,10 +3,9 @@ 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"
|
||||
def isRunningOnTravisAndIsNotPRBuild = System.getenv("CI") == "true" && file('../play.p12').exists()
|
||||
|
||||
dependencies {
|
||||
implementation 'com.github.nicolas-raoul:Quadtree:ac16ea8035bf07'
|
||||
|
|
@ -120,7 +119,7 @@ android {
|
|||
test.assets.srcDirs += 'src/main/assets'
|
||||
test.resources.srcDirs += 'src/main/resoures'
|
||||
}
|
||||
|
||||
|
||||
signingConfigs {
|
||||
release
|
||||
}
|
||||
|
|
@ -130,7 +129,9 @@ android {
|
|||
minifyEnabled true
|
||||
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
|
||||
testProguardFile 'test-proguard-rules.txt'
|
||||
signingConfig signingConfigs.release
|
||||
if(isRunningOnTravisAndIsNotPRBuild) {
|
||||
signingConfig signingConfigs.release
|
||||
}
|
||||
}
|
||||
debug {
|
||||
minifyEnabled true
|
||||
|
|
@ -141,7 +142,7 @@ android {
|
|||
}
|
||||
}
|
||||
|
||||
if (isRunningOnTravis) {
|
||||
if (isRunningOnTravisAndIsNotPRBuild) {
|
||||
// configure keystore based on env vars in Travis for automated alpha builds
|
||||
signingConfigs.release.storeFile = file("../nr-commons.keystore")
|
||||
signingConfigs.release.storePassword = System.getenv("keystore_password")
|
||||
|
|
@ -224,7 +225,7 @@ android {
|
|||
buildToolsVersion buildToolsVersion
|
||||
}
|
||||
|
||||
if(isRunningOnTravis && file('../play.p12').exists()) {
|
||||
if(isRunningOnTravisAndIsNotPRBuild) {
|
||||
play {
|
||||
track = "alpha"
|
||||
userFraction = 1
|
||||
|
|
@ -236,4 +237,8 @@ if(isRunningOnTravis && file('../play.p12').exists()) {
|
|||
versionNameOverride = "$versionNameOverride.$versionCode"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if(isRunningOnTravisAndIsNotPRBuild) {
|
||||
apply plugin: 'com.github.triplet.play'
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue