summaryrefslogtreecommitdiff
path: root/bitmask_android/build.gradle
blob: d9ff1fdf58da95e081792906cbcef9d24fa07fba (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
apply plugin: 'android'

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.1"

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 19

        testPackageName "se.leap.bitmaskclient.test"
        testInstrumentationRunner "android.test.InstrumentationTestRunner"
    }

    signingConfigs {
        release
    }

    buildTypes {
        release {
            runProguard true
            signingConfig signingConfigs.release
        }
    }

    if (project.hasProperty('storeFile')) {
      signingConfigs.release.storeFile = new File(storeFile)
    }

    if (project.hasProperty('storePassword')) {
      signingConfigs.release.storePassword = storePassword
    }

    if (project.hasProperty('keyAlias')) {
      signingConfigs.release.keyAlias = keyAlias
    }

    if (project.hasProperty('keyPassword')) {
      signingConfigs.release.keyPassword = keyPassword
    }

    lintOptions {
      abortOnError false
    }

    sourceSets {
    	main {
	  assets.srcDirs = ['assets', 'ovpnlibs/assets']
	  jniLibs.srcDirs = ['ovpnlibs/jniLibs']
	  jni.srcDirs = [] //disable automatic ndk-build
        }
	debug {
 	  assets.srcDirs = ['src/debug/assets']
	}
    }
 }

dependencies {
    androidTestCompile 'com.android.support:support-v4:+'
    androidTestCompile 'com.jayway.android.robotium:robotium-solo:4.3.1'
}