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

buildscript {
3
    ext.kotlin_version = '1.1.2-5'
Ricki Hirner's avatar
Ricki Hirner committed
4

Ricki Hirner's avatar
Ricki Hirner committed
5 6 7 8 9
    repositories {
        jcenter()
    }

    dependencies {
Ricki Hirner's avatar
Ricki Hirner committed
10 11
        classpath 'com.android.tools.build:gradle:2.3.1'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
Ricki Hirner's avatar
Ricki Hirner committed
12 13 14
    }
}

Ricki Hirner's avatar
Ricki Hirner committed
15 16 17
repositories {
    jcenter()
    mavenCentral()
Ricki Hirner's avatar
Ricki Hirner committed
18 19
}

Ricki Hirner's avatar
Ricki Hirner committed
20
apply plugin: 'com.android.library'
Ricki Hirner's avatar
Ricki Hirner committed
21
apply plugin: 'kotlin-android'
Ricki Hirner's avatar
Ricki Hirner committed
22

Ricki Hirner's avatar
Ricki Hirner committed
23
android {
Ricki Hirner's avatar
Ricki Hirner committed
24 25
    compileSdkVersion 25
    buildToolsVersion '25.0.2'
Ricki Hirner's avatar
Ricki Hirner committed
26 27 28

    defaultConfig {
        minSdkVersion 9
Ricki Hirner's avatar
Ricki Hirner committed
29
        targetSdkVersion 25
Ricki Hirner's avatar
Ricki Hirner committed
30 31 32 33 34 35 36
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
Ricki Hirner's avatar
Ricki Hirner committed
37 38 39 40 41

    lintOptions {
        disable 'AllowBackup'
        disable 'InvalidPackage'
    }
Ricki Hirner's avatar
Ricki Hirner committed
42 43 44 45

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

Ricki Hirner's avatar
Ricki Hirner committed
48

Ricki Hirner's avatar
Ricki Hirner committed
49
dependencies {
Ricki Hirner's avatar
Ricki Hirner committed
50
    compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
51
    compile 'com.android.support:support-annotations:25.+'
Ricki Hirner's avatar
Ricki Hirner committed
52
    compile 'com.squareup.okhttp3:okhttp:3.8.1'
53

Ricki Hirner's avatar
Ricki Hirner committed
54
    androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.8.1'
55

Ricki Hirner's avatar
Ricki Hirner committed
56
    androidTestCompile 'junit:junit:4.12'
57
    androidTestCompile 'com.android.support.test:runner:+'
Ricki Hirner's avatar
Ricki Hirner committed
58

Ricki Hirner's avatar
Ricki Hirner committed
59
    testCompile 'junit:junit:4.12'
Ricki Hirner's avatar
Ricki Hirner committed
60
    testCompile 'com.squareup.okhttp3:mockwebserver:3.8.1'
Ricki Hirner's avatar
Ricki Hirner committed
61
}