build.gradle 1.38 KB
Newer Older
Ricki Hirner's avatar
Ricki Hirner committed
1 2

buildscript {
3
    ext.kotlin_version = '1.1.51'
Ricki Hirner's avatar
Ricki Hirner committed
4

Ricki Hirner's avatar
Ricki Hirner committed
5 6
    repositories {
        jcenter()
7 8 9
        maven {
            url "https://maven.google.com"
        }
Ricki Hirner's avatar
Ricki Hirner committed
10 11 12
    }

    dependencies {
13
        classpath 'com.android.tools.build:gradle:3.0.0'
Ricki Hirner's avatar
Ricki Hirner committed
14
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Ricki Hirner's avatar
Ricki Hirner committed
15 16 17
    }
}

Ricki Hirner's avatar
Ricki Hirner committed
18 19
repositories {
    jcenter()
Ricki Hirner's avatar
Ricki Hirner committed
20 21 22
    maven {
        url "https://maven.google.com"
    }
Ricki Hirner's avatar
Ricki Hirner committed
23 24
}

Ricki Hirner's avatar
Ricki Hirner committed
25
apply plugin: 'com.android.library'
Ricki Hirner's avatar
Ricki Hirner committed
26
apply plugin: 'kotlin-android'
Ricki Hirner's avatar
Ricki Hirner committed
27

Ricki Hirner's avatar
Ricki Hirner committed
28
android {
Ricki Hirner's avatar
Ricki Hirner committed
29
    compileSdkVersion 26
30
    buildToolsVersion '26.0.2'
Ricki Hirner's avatar
Ricki Hirner committed
31 32

    defaultConfig {
Ricki Hirner's avatar
Ricki Hirner committed
33
        minSdkVersion 14
Ricki Hirner's avatar
Ricki Hirner committed
34
        targetSdkVersion 26
Ricki Hirner's avatar
Ricki Hirner committed
35 36 37 38 39 40 41
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
Ricki Hirner's avatar
Ricki Hirner committed
42 43 44 45

    lintOptions {
        disable 'AllowBackup'
    }
Ricki Hirner's avatar
Ricki Hirner committed
46 47 48 49

    defaultConfig {
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
Ricki Hirner's avatar
Ricki Hirner committed
50 51
}

Ricki Hirner's avatar
Ricki Hirner committed
52

Ricki Hirner's avatar
Ricki Hirner committed
53
dependencies {
Ricki Hirner's avatar
Ricki Hirner committed
54
    compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
Ricki Hirner's avatar
Fix NPE  
Ricki Hirner committed
55

Ricki Hirner's avatar
Ricki Hirner committed
56
    compile 'com.squareup.okhttp3:okhttp:3.9.0'
57

Ricki Hirner's avatar
Ricki Hirner committed
58
    androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.9.0'
Ricki Hirner's avatar
Ricki Hirner committed
59
    androidTestCompile 'junit:junit:4.12'
Ricki Hirner's avatar
Ricki Hirner committed
60
    //noinspection GradleDynamicVersion
61
    androidTestCompile 'com.android.support.test:runner:+'
Ricki Hirner's avatar
Ricki Hirner committed
62

Ricki Hirner's avatar
Ricki Hirner committed
63
    testCompile 'junit:junit:4.12'
Ricki Hirner's avatar
Ricki Hirner committed
64
    testCompile 'com.squareup.okhttp3:mockwebserver:3.9.0'
Ricki Hirner's avatar
Ricki Hirner committed
65
}