summaryrefslogtreecommitdiff
path: root/render-test/android/app/build.gradle
blob: 7d53469f7106c13e3954cfd93427c30d91e3876e (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
65
66
apply plugin: 'com.android.application'

android {
    compileSdkVersion 28

    defaultConfig {
        applicationId = 'com.mapbox.mapboxsdk.maps.render_test_runner'
        minSdkVersion 14
        targetSdkVersion 28
        def abi = 'all'
        if (project.hasProperty('mapbox.abis')) {
            abi = project.getProperty("mapbox.abis")
        }
        ndk {
            if (abi != 'all') {
                abiFilters abi.split(' ')
            } else {
                abiFilters "armeabi-v7a", "x86", "arm64-v8a", "x86_64"
            }
        }
        externalNativeBuild {
            cmake {
                arguments '-DANDROID_CCACHE=ccache'
                arguments '-DANDROID_STL=c++_static'
                targets 'mbgl-render-test-runner'
            }
        }
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

        def result = "debug";

        if (project.hasProperty("testBuildType")) {
            result = project.getProperties().get("testBuildType")
        }
        android {
            testBuildType result
        }
    }
    externalNativeBuild {
        cmake {
            version '3.10.2'
            path '../../../next/CMakeLists.txt'
        }
    }
    signingConfigs {
        release {
            storeFile file("test.jks")
            storePassword "password"
            keyAlias "test"
            keyPassword "password"
        }
    }
    buildTypes {
        release {
            signingConfig signingConfigs.release
        }
    }
}

dependencies {
    implementation 'androidx.appcompat:appcompat:1.0.2'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    androidTestImplementation 'androidx.test.ext:junit:1.1.0'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-beta01'
    androidTestImplementation 'androidx.test:rules:1.2.0-beta01'
}