introduced new build flavors quick and full

This commit is contained in:
Daniel Gultsch 2018-10-08 14:26:12 +02:00
parent 79eee4916c
commit 96d34215fb
1 changed files with 43 additions and 2 deletions

View File

@ -93,9 +93,21 @@ android {
targetCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8
} }
flavorDimensions("distribution", "emoji") flavorDimensions("mode", "distribution", "emoji")
productFlavors { productFlavors {
quick {
dimension "mode"
applicationId = "im.conversations.quick"
resValue "string", "app_name", "Quick Conversations"
resValue "string", "applicationId", applicationId
}
full {
dimension "mode"
}
playstore { playstore {
dimension "distribution" dimension "distribution"
versionNameSuffix "+p" versionNameSuffix "+p"
@ -114,6 +126,35 @@ android {
} }
} }
sourceSets {
quickFreeCompat {
java {
srcDirs 'src/freeCompat/java'
}
}
quickPlaystoreCompat {
java {
srcDirs 'src/playstoreCompat/java'
}
res {
srcDir 'src/playstoreCompat/res'
}
}
fullFreeCompat {
java {
srcDirs 'src/freeCompat/java'
}
}
fullPlaystoreCompat {
java {
srcDirs 'src/playstoreCompat/java'
}
res {
srcDir 'src/playstoreCompat/res'
}
}
}
buildTypes { buildTypes {
release { release {
shrinkResources true shrinkResources true
@ -131,7 +172,7 @@ android {
if(new File("signing.properties").exists()) { if (new File("signing.properties").exists()) {
Properties props = new Properties() Properties props = new Properties()
props.load(new FileInputStream(file("signing.properties"))) props.load(new FileInputStream(file("signing.properties")))