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

android {
    compileSdkVersion 19
    buildToolsVersion "19.0.3"

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 19

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

    signingConfigs {
        release {
		storeFile project.hasProperty('storeFileProperty') ? file(storeFileProperty) : null
		storePassword project.hasProperty('storePasswordProperty') ?  storePasswordProperty : ""
		keyAlias project.hasProperty('keyAliasProperty') ?  keyAliasProperty : ""
		keyPassword project.hasProperty('keyPasswordProperty') ?  keyPasswordProperty : ""
	}
    }

    buildTypes {
        release {
            //runProguard true
	    signingConfig signingConfigs.release.isSigningReady() ? signingConfigs.release : signingConfigs.debug
        }
    }

    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']
	}
    }

    //check.dependsOn connectedCheck
 }

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