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

buildscript {
3
    ext.kotlin_version = '1.2.10'
Ricki Hirner's avatar
Ricki Hirner committed
4
    ext.dokka_version = '0.9.15'
Ricki Hirner's avatar
Ricki Hirner committed
5

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

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

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

Ricki Hirner's avatar
Ricki Hirner committed
27
apply plugin: 'com.android.library'
Ricki Hirner's avatar
Ricki Hirner committed
28
apply plugin: 'kotlin-android'
Ricki Hirner's avatar
Ricki Hirner committed
29
apply plugin: 'org.jetbrains.dokka-android'
Ricki Hirner's avatar
Ricki Hirner committed
30

Ricki Hirner's avatar
Ricki Hirner committed
31
android {
Ricki Hirner's avatar
Ricki Hirner committed
32
    compileSdkVersion 27
Ricki Hirner's avatar
Ricki Hirner committed
33
    buildToolsVersion '27.0.1'
Ricki Hirner's avatar
Ricki Hirner committed
34 35

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

    lintOptions {
        disable 'AllowBackup'
    }
Ricki Hirner's avatar
Ricki Hirner committed
49 50 51 52

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

Ricki Hirner's avatar
Ricki Hirner committed
55

Ricki Hirner's avatar
Ricki Hirner committed
56
dependencies {
Ricki Hirner's avatar
Ricki Hirner committed
57
    compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
Ricki Hirner's avatar
Ricki Hirner committed
58

Ricki Hirner's avatar
Ricki Hirner committed
59
    compile 'com.squareup.okhttp3:okhttp:3.9.1'
60

Ricki Hirner's avatar
Ricki Hirner committed
61
    androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
Ricki Hirner's avatar
Ricki Hirner committed
62
    androidTestCompile 'junit:junit:4.12'
Ricki Hirner's avatar
Ricki Hirner committed
63
    androidTestCompile 'com.android.support.test:runner:1.0.1'
Ricki Hirner's avatar
Ricki Hirner committed
64

Ricki Hirner's avatar
Ricki Hirner committed
65
    testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
Ricki Hirner's avatar
Ricki Hirner committed
66
    testCompile 'junit:junit:4.12'
Ricki Hirner's avatar
Ricki Hirner committed
67
    testCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
Ricki Hirner's avatar
Ricki Hirner committed
68
}