2016-04-13 20:14:04 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2018-03-11 16:52:53 +01:00
|
|
|
jcenter()
|
|
|
|
google()
|
2016-04-13 20:14:04 +02:00
|
|
|
}
|
|
|
|
dependencies {
|
2018-06-11 20:37:17 +02:00
|
|
|
classpath "com.android.tools.build:gradle:2.3.0"
|
2016-04-13 20:14:04 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: "com.android.application"
|
|
|
|
|
|
|
|
android {
|
2018-06-11 19:19:06 +02:00
|
|
|
compileSdkVersion 26
|
|
|
|
buildToolsVersion "26.0.3"
|
2016-04-13 20:14:04 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2018-06-28 18:11:21 +02:00
|
|
|
versionCode 20
|
2016-04-13 20:14:04 +02:00
|
|
|
versionName "${System.env.VERSION_STR}.${versionCode}"
|
2017-11-15 20:52:19 +01:00
|
|
|
minSdkVersion 14
|
|
|
|
targetSdkVersion 14
|
2016-04-13 20:14:04 +02:00
|
|
|
applicationId "net.minetest.minetest"
|
|
|
|
manifestPlaceholders = [ package: "net.minetest.minetest", project: project.name ]
|
2018-03-11 16:52:53 +01:00
|
|
|
ndk {
|
|
|
|
// Specifies the ABI configurations of your native
|
|
|
|
// libraries Gradle should build and package with your APK.
|
|
|
|
abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a',
|
|
|
|
'arm64-v8a'
|
|
|
|
}
|
2016-04-13 20:14:04 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
lintOptions {
|
|
|
|
disable "OldTargetApi", "GoogleAppIndexingWarning"
|
|
|
|
}
|
|
|
|
|
|
|
|
Properties props = new Properties()
|
|
|
|
props.load(new FileInputStream(file("local.properties")))
|
|
|
|
|
|
|
|
if (props.getProperty("keystore") != null) {
|
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
storeFile file(props["keystore"])
|
|
|
|
storePassword props["keystore.password"]
|
|
|
|
keyAlias props["key"]
|
|
|
|
keyPassword props["key.password"]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
signingConfig signingConfigs.release
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|