Decoration API: Add lightweight ability to have complete coverage (#7456)
[oweals/minetest.git] / build / android / build.gradle
1 buildscript {
2         repositories {
3                 mavenCentral()
4                 jcenter()
5                 google()
6         }
7         dependencies {
8                 classpath "com.android.tools.build:gradle:2.3.0"
9         }
10 }
11
12 apply plugin: "com.android.application"
13
14 android {
15         compileSdkVersion 26
16         buildToolsVersion "26.0.3"
17
18         defaultConfig {
19                 versionCode 19
20                 versionName "${System.env.VERSION_STR}.${versionCode}"
21                 minSdkVersion 14
22                 targetSdkVersion 14
23                 applicationId "net.minetest.minetest"
24                 manifestPlaceholders = [ package: "net.minetest.minetest", project: project.name ]
25                 ndk {
26                         // Specifies the ABI configurations of your native
27                         // libraries Gradle should build and package with your APK.
28                         abiFilters 'x86', 'x86_64', 'armeabi', 'armeabi-v7a',
29                         'arm64-v8a'
30                 }
31         }
32
33         lintOptions {
34                 disable "OldTargetApi", "GoogleAppIndexingWarning"
35         }
36
37         Properties props = new Properties()
38         props.load(new FileInputStream(file("local.properties")))
39
40         if (props.getProperty("keystore") != null) {
41                 signingConfigs {
42                         release {
43                                 storeFile file(props["keystore"])
44                                 storePassword props["keystore.password"]
45                                 keyAlias props["key"]
46                                 keyPassword props["key.password"]
47                         }
48                 }
49
50                 buildTypes {
51                         release {
52                                 signingConfig signingConfigs.release
53                         }
54                 }
55         }
56 }