Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

snoopsnitch / SnoopSnitch / app / build.gradle @ 19113751

History | View | Annotate | Download (1.77 KB)

1
apply plugin: 'com.android.application'
2

    
3
android {
4
    compileSdkVersion 28
5
    buildToolsVersion '27.0.3'
6
    defaultConfig {
7
        applicationId "de.srlabs.snoopsnitch"
8
        minSdkVersion 16
9
        targetSdkVersion 26
10
        versionCode 36
11
        versionName "2.0.8"
12
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
13
    }
14

    
15
    //signing release apk
16
    if(project.hasProperty("RELEASE_STORE_FILE")) {
17
	    signingConfigs {
18
	       release {
19
		   storeFile file(RELEASE_STORE_FILE)
20
		   storePassword RELEASE_STORE_PASSWORD
21
		   keyAlias RELEASE_KEY_ALIAS
22
		   keyPassword RELEASE_KEY_PASSWORD
23
	       }
24
	    }
25
    }
26

    
27
    buildTypes {
28
        release {
29
            minifyEnabled false
30
            proguardFiles getDefaultProguardFile('proguard-android.txt')
31
	    //signing release apk
32
	    if(project.hasProperty("RELEASE_STORE_FILE")) {
33
		signingConfig signingConfigs.release
34
	    }
35
        }
36
    }
37

    
38
    lintOptions {
39
        disable 'MissingTranslation'
40
        disable 'ExtraTranslation'
41
	    disable 'ValidFragment'
42
        checkReleaseBuilds false
43
	    abortOnError false
44
    }
45
    useLibrary 'org.apache.http.legacy'
46

    
47
    flavorDimensions "certifiedBuildCheck"
48
    productFlavors {
49
        safetynet {
50
            dimension "certifiedBuildCheck"
51
        }
52
        nobuildcheck {
53
            dimension "certifiedBuildCheck"
54
            versionNameSuffix "-nbc" 
55
	}
56
    }
57
}
58

    
59
dependencies {
60
    implementation fileTree(dir: 'libs', include: ['*.jar'])
61
    implementation project(':patchanalysis_module')
62
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
63
        exclude group: 'com.android.support', module: 'support-annotations'
64
    })
65
    implementation 'com.android.support:appcompat-v7:25.2.0'
66
    testCompile 'junit:junit:4.12'
67
}