build.gradle 3.08 KB
Newer Older
Daniel Wolf's avatar
Daniel Wolf committed
1
2
3
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
4
apply plugin: 'kotlin-kapt'
Daniel Wolf's avatar
Daniel Wolf committed
5
6
7
8
9
10
11

android {
    compileSdkVersion 28
    defaultConfig {
        applicationId "com.frostnerd.smokescreen"
        minSdkVersion 21
        targetSdkVersion 28
12
13
        versionCode 20
        versionName "1.0-Beta"
Daniel Wolf's avatar
Daniel Wolf committed
14
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
15
16
17
18
19
20
21
22
23
24
25
26
27
28

        kapt {
            arguments {
                arg("room.schemaLocation", "$projectDir/schemas".toString())
            }
        }
        javaCompileOptions {
            annotationProcessorOptions {
                arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
            }
        }
    }
    sourceSets {
        androidTest.assets.srcDirs += files("$projectDir/schemas".toString())
Daniel Wolf's avatar
Daniel Wolf committed
29
30
31
32
    }
    buildTypes {
        release {
            minifyEnabled true
Daniel Wolf's avatar
Daniel Wolf committed
33
34
            debuggable false
            shrinkResources true
35
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
Daniel Wolf's avatar
Daniel Wolf committed
36
37
38
39
40
41
42
43
44
45
46
47
48
        }
    }
    packagingOptions {
        exclude 'META-INF/DEPENDENCIES'
        exclude 'META-INF/LICENSE'
        exclude 'META-INF/LICENSE.txt'
        exclude 'META-INF/license.txt'
        exclude 'META-INF/NOTICE'
        exclude 'META-INF/NOTICE.txt'
        exclude 'META-INF/notice.txt'
        exclude 'META-INF/ASL2.0'
        exclude 'META-INF/library_release.kotlin_module'
    }
49
50
51
52
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
Daniel Wolf's avatar
Daniel Wolf committed
53
54
55
}

dependencies {
Daniel Wolf's avatar
Daniel Wolf committed
56
    def room_version = "2.1.0-alpha04"
57

Daniel Wolf's avatar
Daniel Wolf committed
58
    implementation fileTree(dir: 'libs', include: ['*.jar'])
59
60
61
    implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.1.0'
    implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.1.0'
Daniel Wolf's avatar
Daniel Wolf committed
62

63
    implementation 'com.frostnerd.utilskt:preferences:1.4.7'
Daniel Wolf's avatar
Daniel Wolf committed
64
    implementation 'com.frostnerd.utilskt:navigationdraweractivity:1.3.9'
65
    implementation 'com.frostnerd.utilskt:encrypteddnstunnelproxy:1.5.40'
66
    implementation 'com.frostnerd.utilskt:general:1.0.6'
Daniel Wolf's avatar
Daniel Wolf committed
67
68
    implementation 'com.frostnerd.utils:materialedittext:1.0.17'
    implementation 'com.frostnerd.utils:design:1.0.17'
Daniel Wolf's avatar
Daniel Wolf committed
69
    implementation 'com.frostnerd.utilskt:networking:1.0.0'
70
    implementation 'com.frostnerd.utilskt:adapters:1.0.2'
Daniel Wolf's avatar
Daniel Wolf committed
71

Daniel Wolf's avatar
Daniel Wolf committed
72
    implementation 'androidx.appcompat:appcompat:1.0.2'
Daniel Wolf's avatar
Daniel Wolf committed
73
74
    implementation "androidx.preference:preference:1.0.0"

75
76
77
78
79
    implementation "androidx.room:room-runtime:$room_version"
    kapt "androidx.room:room-compiler:$room_version"
    implementation "androidx.room:room-coroutines:$room_version"
    testImplementation "androidx.room:room-testing:$room_version"

80
    implementation 'com.github.PhilJay:MPAndroidChart:v3.1.0-alpha'
Daniel Wolf's avatar
Daniel Wolf committed
81

Daniel Wolf's avatar
Daniel Wolf committed
82
    implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
Daniel Wolf's avatar
Daniel Wolf committed
83
    testImplementation 'junit:junit:4.12'
Daniel Wolf's avatar
Daniel Wolf committed
84
85
    androidTestImplementation 'androidx.test:runner:1.1.1'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
Daniel Wolf's avatar
Daniel Wolf committed
86
}