mirror of
https://github.com/kiwix/kiwix-android.git
synced 2025-09-22 12:03:09 -04:00
#1175 fix build.gradle
This commit is contained in:
parent
66faea5d47
commit
6b9f6a6ade
@ -199,6 +199,15 @@ android {
|
|||||||
|
|
||||||
flavorDimensions "default"
|
flavorDimensions "default"
|
||||||
|
|
||||||
|
signingConfigs {
|
||||||
|
release {
|
||||||
|
storeFile file("../kiwix-android.keystore")
|
||||||
|
storePassword System.getenv("KEY_STORE_PASSWORD")
|
||||||
|
keyAlias System.getenv("KEY_ALIAS")
|
||||||
|
keyPassword System.getenv("KEY_PASSWORD")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
|
|
||||||
// Main build type for debugging
|
// Main build type for debugging
|
||||||
@ -222,6 +231,7 @@ android {
|
|||||||
|
|
||||||
// Release Type
|
// Release Type
|
||||||
release {
|
release {
|
||||||
|
signingConfig signingConfigs.release
|
||||||
buildConfigField "String", "KIWIX_DOWNLOAD_URL", "\"http://download.kiwix.org/\""
|
buildConfigField "String", "KIWIX_DOWNLOAD_URL", "\"http://download.kiwix.org/\""
|
||||||
buildConfigField "boolean", "KIWIX_ERROR_ACTIVITY", "false"
|
buildConfigField "boolean", "KIWIX_ERROR_ACTIVITY", "false"
|
||||||
}
|
}
|
||||||
@ -364,6 +374,26 @@ android {
|
|||||||
androidExtensions {
|
androidExtensions {
|
||||||
experimental = true
|
experimental = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
def abiCodes = ['x86': 1, 'x86_64': 2, 'armeabi-v7a': 3, 'arm64-v8a': 4]
|
||||||
|
splits {
|
||||||
|
abi {
|
||||||
|
enable true
|
||||||
|
reset()
|
||||||
|
include "x86", "x86_64", 'armeabi-v7a', "arm64-v8a"
|
||||||
|
universalApk true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
applicationVariants.all { variant ->
|
||||||
|
variant.outputs.each { output ->
|
||||||
|
def baseAbiVersionCode = abiCodes.get(output.getFilter(OutputFile.ABI))
|
||||||
|
if (baseAbiVersionCode != null) {
|
||||||
|
output.versionCodeOverride = baseAbiVersionCode * 1000000 + variant.versionCode
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
play {
|
play {
|
||||||
enabled = getCurrentBranchName() == "master"
|
enabled = getCurrentBranchName() == "master"
|
||||||
serviceAccountCredentials = file("../google.json")
|
serviceAccountCredentials = file("../google.json")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user