FreeRDP/client/Android/Studio/build.gradle
2022-05-13 10:38:26 +02:00

53 lines
1.4 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=''
}
ext {
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 '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.1.2'
}
}
allprojects {
repositories {
mavenCentral()
google()
}
}