76 lines
1.6 KiB
Groovy
Executable File
76 lines
1.6 KiB
Groovy
Executable File
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
repositories {
|
|
jcenter()
|
|
|
|
flatDir {
|
|
dirs project(':iup').file('aars')
|
|
}
|
|
|
|
google()
|
|
}
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:3.4.2'
|
|
|
|
// NOTE: Do not place your application dependencies here; they belong
|
|
// in the individual module build.gradle files
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
jcenter()
|
|
google()
|
|
}
|
|
}
|
|
|
|
task clean(type: Delete) {
|
|
delete rootProject.buildDir
|
|
}
|
|
|
|
ext {
|
|
compileSdkVersion = 29
|
|
minSdkVersion = 22
|
|
targetSdkVersion = 29 // Make sure to update appCompat
|
|
versionCode = 1
|
|
versionName = "1.0"
|
|
abiFilters = fetchAbiFilters()
|
|
appCompat = 'com.android.support:appcompat-v7:27.1.1' // Note: This version must be in sync with the targetSdkVersion
|
|
// constraintSupport = 'com.android.support.constraint:constraint-layout:1.1.3'
|
|
designSupport = 'com.android.support:design:27.1.1'
|
|
}
|
|
|
|
|
|
// This allows an override in local.properties, e.g.
|
|
// abiFilters=armeabi-v7a x86
|
|
// If it is not found, then a default is provided.
|
|
String[] fetchAbiFilters()
|
|
{
|
|
def default_abi = ['armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64']
|
|
def root_dir = project.rootDir
|
|
def local_properties = new File(root_dir, "local.properties")
|
|
if(local_properties.exists())
|
|
{
|
|
Properties properties = new Properties()
|
|
local_properties.withInputStream
|
|
{
|
|
instr -> properties.load(instr)
|
|
}
|
|
def the_value = properties.getProperty('abiFilters')
|
|
if(the_value)
|
|
{
|
|
the_value.split()
|
|
}
|
|
else
|
|
{
|
|
default_abi
|
|
}
|
|
|
|
}
|
|
else
|
|
{
|
|
println "Failed to find local.properties"
|
|
default_abi
|
|
}
|
|
} |