summaryrefslogtreecommitdiff
path: root/build.gradle
blob: cbd2455676c00f5ed1aad77e9772536106ccabc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
buildscript {
    repositories {
        mavenCentral()
        jcenter()
        google()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:3.6.0'
    }
}

allprojects {
    repositories {
        mavenCentral()
        jcenter()
        google()
    }
}

apply plugin: 'com.android.application'

dependencies {
   implementation 'com.andretietz.android:gamecontroller:1.1.1'
}

preBuild.doFirst {
   "sh support/mv-overlay.sh".execute()
}

android {
    buildToolsVersion "29.0.3"
    ndkVersion "21.0.6113669"
    compileSdkVersion 26
    defaultConfig {
       targetSdkVersion 26
       minSdkVersion 24
    }
    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            resources.srcDirs = ['src']
            aidl.srcDirs = ['src']
            renderscript.srcDirs = ['src']
            res.srcDirs = ['res']
            jniLibs.srcDirs = ['libs']
            assets.srcDirs = ['assets']
        }
    }
    externalNativeBuild {
        ndkBuild {
            path "jni/Android.mk"
        }
    }
    splits {
       abi {
          enable true
          reset()
          include 'armeabi-v7a', 'arm64-v8a'
          universalApk false
       }
    }
}