2016-04-13 20:14:04 +02:00
|
|
|
buildscript {
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
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:14:10 +02:00
|
|
|
compileSdkVersion 26
|
|
|
|
buildToolsVersion "26.0.3"
|
2016-04-13 20:14:04 +02:00
|
|
|
|
|
|
|
defaultConfig {
|
2018-12-04 19:11:03 +01:00
|
|
|
versionCode 21
|
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 ]
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|