8cf0a21acd
There are library loader issues with OpenSSL below that API version. (Undefined symbols most likely due to versioning mismatches of the OpenSSL build)
66 lines
1.9 KiB
Groovy
66 lines
1.9 KiB
Groovy
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
Properties properties = new Properties()
|
|
File file = new File('release.properties')
|
|
if (file.canRead()) {
|
|
properties.load(new FileInputStream(file))
|
|
}
|
|
|
|
if (!hasProperty('RELEASE_STORE_FILE')) {
|
|
ext.RELEASE_STORE_FILE='nokeyfile'
|
|
}
|
|
if (!hasProperty('RELEASE_KEY_ALIAS')) {
|
|
ext.RELEASE_KEY_ALIAS=''
|
|
}
|
|
if (!hasProperty('RELEASE_KEY_ALIAS')) {
|
|
ext.RELEASE_KEY_ALIAS=''
|
|
}
|
|
if (!hasProperty('RELEASE_KEY_PASSWORD')) {
|
|
ext.RELEASE_KEY_PASSWORD=''
|
|
}
|
|
|
|
def getVersionName = { ->
|
|
def stdout = new ByteArrayOutputStream()
|
|
exec {
|
|
commandLine 'git', 'describe', '--tags'
|
|
standardOutput = stdout
|
|
}
|
|
return stdout.toString().trim()
|
|
}
|
|
|
|
ext {
|
|
versionName = properties.get('VERSION_NAME', getVersionName())
|
|
versionCode = properties.get('VERSION_CODE', 100)
|
|
compileApi = properties.get('COMPILE_API', 31)
|
|
targetApi = properties.get('TARGET_API', 31)
|
|
minApi = properties.get('MIN_API', 23)
|
|
toolsVersion = properties.get('TOOLS_VERSION', '31.0.0')
|
|
|
|
println '----------------- Project configuration -------------------'
|
|
println 'VERSION_NAME: ' + versionName
|
|
println 'VERSION_CODE: ' + versionCode
|
|
println 'RELEASE_STORE_FILE: ' + RELEASE_STORE_FILE
|
|
println 'RELEASE_KEY_ALIAS: ' + RELEASE_KEY_ALIAS
|
|
println 'compile API: ' + compileApi
|
|
println 'target API: ' + targetApi
|
|
println 'min API: ' + minApi
|
|
println 'tools version: ' + toolsVersion
|
|
println '-----------------------------------------------------------'
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:7.0.4'
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
}
|