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

View file

@ -93,9 +93,21 @@ android {
targetCompatibility JavaVersion.VERSION_1_8
}
flavorDimensions("distribution", "emoji")
flavorDimensions("mode", "distribution", "emoji")
productFlavors {
quick {
dimension "mode"
applicationId = "im.conversations.quick"
resValue "string", "app_name", "Quick Conversations"
resValue "string", "applicationId", applicationId
}
full {
dimension "mode"
}
playstore {
dimension "distribution"
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 {
release {
shrinkResources true