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

buildscript {
3
    ext.kotlin_version = '1.2.21'
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
        google()
Ricki Hirner's avatar
Ricki Hirner committed
9 10 11
    }

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

Ricki Hirner's avatar
Ricki Hirner committed
18 19
repositories {
    jcenter()
20
    google()
Ricki Hirner's avatar
Ricki Hirner committed
21 22
}

Ricki Hirner's avatar
Ricki Hirner committed
23
apply plugin: 'com.android.library'
Ricki Hirner's avatar
Ricki Hirner committed
24
apply plugin: 'kotlin-android'
Ricki Hirner's avatar
Ricki Hirner committed
25
apply plugin: 'org.jetbrains.dokka-android'
Ricki Hirner's avatar
Ricki Hirner committed
26

Ricki Hirner's avatar
Ricki Hirner committed
27
android {
Ricki Hirner's avatar
Ricki Hirner committed
28
    compileSdkVersion 27
Ricki Hirner's avatar
Ricki Hirner committed
29
    buildToolsVersion '27.0.1'
Ricki Hirner's avatar
Ricki Hirner committed
30 31

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

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

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

Ricki Hirner's avatar
Ricki Hirner committed
51

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

Ricki Hirner's avatar
Ricki Hirner committed
55
    compile 'com.squareup.okhttp3:okhttp:3.9.1'
56

Ricki Hirner's avatar
Ricki Hirner committed
57
    androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
Ricki Hirner's avatar
Ricki Hirner committed
58
    androidTestCompile 'com.android.support.test:runner:1.0.1'
Ricki Hirner's avatar
Ricki Hirner committed
59

Ricki Hirner's avatar
Ricki Hirner committed
60
    testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
Ricki Hirner's avatar
Ricki Hirner committed
61
    testCompile 'junit:junit:4.12'
Ricki Hirner's avatar
Ricki Hirner committed
62
    testCompile 'com.squareup.okhttp3:mockwebserver:3.9.1'
Ricki Hirner's avatar
Ricki Hirner committed
63
}