|
|
|
@ -4,8 +4,8 @@ apply plugin: 'kotlin-android'
|
|
|
|
|
apply plugin: 'de.undercouch.download'
|
|
|
|
|
|
|
|
|
|
def getVersionCode = { -> return 1751 }
|
|
|
|
|
def getRevision = { -> "\"a\"" }
|
|
|
|
|
def getReleaseName = { -> return "\"Adratiklit\"" }
|
|
|
|
|
def getRevision = { -> "b" }
|
|
|
|
|
def getReleaseName = { -> return "Adratiklit" }
|
|
|
|
|
// https://en.wikipedia.org/wiki/List_of_dinosaur_genera
|
|
|
|
|
|
|
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
@ -22,9 +22,10 @@ android {
|
|
|
|
|
targetSdkVersion 31
|
|
|
|
|
versionCode getVersionCode()
|
|
|
|
|
versionName "1." + getVersionCode()
|
|
|
|
|
archivesBaseName = "FairEmail-v$versionName"
|
|
|
|
|
archivesBaseName = "FairEmail-v$versionName" + getRevision()
|
|
|
|
|
|
|
|
|
|
buildConfigField "String", "RELEASE_NAME", getReleaseName()
|
|
|
|
|
buildConfigField "String", "REVISION", "\"" + getRevision() + "\""
|
|
|
|
|
buildConfigField "String", "RELEASE_NAME", "\"" + getReleaseName() + "\""
|
|
|
|
|
|
|
|
|
|
javaCompileOptions {
|
|
|
|
|
annotationProcessorOptions {
|
|
|
|
@ -134,7 +135,6 @@ android {
|
|
|
|
|
productFlavors {
|
|
|
|
|
github {
|
|
|
|
|
dimension "all"
|
|
|
|
|
buildConfigField "String", "REVISION", getRevision()
|
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
|
|
|
|
buildConfigField "boolean", "AMAZON_RELEASE", "false"
|
|
|
|
@ -146,7 +146,6 @@ android {
|
|
|
|
|
}
|
|
|
|
|
fdroid {
|
|
|
|
|
dimension "all"
|
|
|
|
|
buildConfigField "String", "REVISION", getRevision()
|
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
|
|
|
|
buildConfigField "boolean", "AMAZON_RELEASE", "false"
|
|
|
|
@ -159,7 +158,6 @@ android {
|
|
|
|
|
play {
|
|
|
|
|
dimension "all"
|
|
|
|
|
//minSdkVersion 23
|
|
|
|
|
buildConfigField "String", "REVISION", getRevision()
|
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
|
|
|
|
buildConfigField "boolean", "AMAZON_RELEASE", "false"
|
|
|
|
|