|
|
@ -28,7 +28,6 @@ android {
|
|
|
|
targetSdkVersion 34
|
|
|
|
targetSdkVersion 34
|
|
|
|
versionCode getVersionCode()
|
|
|
|
versionCode getVersionCode()
|
|
|
|
versionName "1." + getVersionCode()
|
|
|
|
versionName "1." + getVersionCode()
|
|
|
|
archivesBaseName = "FairEmail-v$versionName" + getRevision()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
manifestPlaceholders = [namespace: applicationId.replace('.debug', '')]
|
|
|
|
manifestPlaceholders = [namespace: applicationId.replace('.debug', '')]
|
|
|
|
|
|
|
|
|
|
|
@ -60,6 +59,10 @@ android {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base {
|
|
|
|
|
|
|
|
archivesName = "FairEmail-v1." + getVersionCode() + getRevision()
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
sourceSets {
|
|
|
|
github {
|
|
|
|
github {
|
|
|
|
java.srcDirs = ['src/main/java', 'src/play/java', 'src/extra/java']
|
|
|
|
java.srcDirs = ['src/main/java', 'src/play/java', 'src/extra/java']
|
|
|
@ -193,7 +196,7 @@ android {
|
|
|
|
github {
|
|
|
|
github {
|
|
|
|
dimension "all"
|
|
|
|
dimension "all"
|
|
|
|
manifestPlaceholders.largeHeap = false
|
|
|
|
manifestPlaceholders.largeHeap = false
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes((archivesBaseName + "github").getBytes()).toString();
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("github" + getVersionCode() + getRevision()).getBytes()).toString();
|
|
|
|
buildConfigField "boolean", "TEST_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "TEST_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
|
|
@ -215,7 +218,7 @@ android {
|
|
|
|
large {
|
|
|
|
large {
|
|
|
|
dimension "all"
|
|
|
|
dimension "all"
|
|
|
|
manifestPlaceholders.largeHeap = true
|
|
|
|
manifestPlaceholders.largeHeap = true
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes((archivesBaseName + "large").getBytes()).toString();
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("large" + getVersionCode() + getRevision()).getBytes()).toString();
|
|
|
|
buildConfigField "boolean", "TEST_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "TEST_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
|
|
@ -237,7 +240,7 @@ android {
|
|
|
|
fdroid {
|
|
|
|
fdroid {
|
|
|
|
dimension "all"
|
|
|
|
dimension "all"
|
|
|
|
manifestPlaceholders.largeHeap = false
|
|
|
|
manifestPlaceholders.largeHeap = false
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes((archivesBaseName + "fdroid").getBytes()).toString();
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("fdroid" + getVersionCode() + getRevision()).getBytes()).toString();
|
|
|
|
externalNativeBuild {
|
|
|
|
externalNativeBuild {
|
|
|
|
cmake {
|
|
|
|
cmake {
|
|
|
|
arguments "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--build-id=none"
|
|
|
|
arguments "-DCMAKE_SHARED_LINKER_FLAGS=-Wl,--build-id=none"
|
|
|
@ -269,7 +272,7 @@ android {
|
|
|
|
dimension "all"
|
|
|
|
dimension "all"
|
|
|
|
//minSdkVersion 23
|
|
|
|
//minSdkVersion 23
|
|
|
|
manifestPlaceholders.largeHeap = false
|
|
|
|
manifestPlaceholders.largeHeap = false
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes((archivesBaseName + "play").getBytes()).toString();
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("play" + getVersionCode() + getRevision()).getBytes()).toString();
|
|
|
|
buildConfigField "boolean", "TEST_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "TEST_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "true"
|
|
|
@ -292,7 +295,7 @@ android {
|
|
|
|
dimension "all"
|
|
|
|
dimension "all"
|
|
|
|
minSdkVersion 23
|
|
|
|
minSdkVersion 23
|
|
|
|
manifestPlaceholders.largeHeap = false
|
|
|
|
manifestPlaceholders.largeHeap = false
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes((archivesBaseName + "amazon").getBytes()).toString();
|
|
|
|
manifestPlaceholders.build_uuid = UUID.nameUUIDFromBytes(("amazon" + getVersionCode() + getRevision()).getBytes()).toString();
|
|
|
|
buildConfigField "boolean", "TEST_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "TEST_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "BETA_RELEASE", "true"
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
|
|
|
buildConfigField "boolean", "PLAY_STORE_RELEASE", "false"
|
|
|
@ -354,10 +357,6 @@ android {
|
|
|
|
reportBuilds = false // disables upload of build metadata
|
|
|
|
reportBuilds = false // disables upload of build metadata
|
|
|
|
overwrite = true
|
|
|
|
overwrite = true
|
|
|
|
builderName = "M66B"
|
|
|
|
builderName = "M66B"
|
|
|
|
sourceControl {
|
|
|
|
|
|
|
|
provider = "github-enterprise"
|
|
|
|
|
|
|
|
repository = "https://github.com/M66B/FairEmail"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|