build.gradle 1.27 KB
Newer Older
Ricki Hirner's avatar
Ricki Hirner committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

buildscript {
    repositories {
        jcenter()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:2.+'
    }
}

allprojects {
    repositories {
        jcenter()
        maven {
            url 'http://oss.sonatype.org/content/repositories/snapshots'
        }
    }
}

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

Ricki Hirner's avatar
Ricki Hirner committed
23

Ricki Hirner's avatar
Ricki Hirner committed
24
android {
25
    compileSdkVersion 24
Ricki Hirner's avatar
Ricki Hirner committed
26
    buildToolsVersion '25.0.0'
Ricki Hirner's avatar
Ricki Hirner committed
27 28 29

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

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

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

Ricki Hirner's avatar
Ricki Hirner committed
49

Ricki Hirner's avatar
Ricki Hirner committed
50
dependencies {
51
    compile 'org.apache.commons:commons-lang3:3.4'
Ricki Hirner's avatar
Ricki Hirner committed
52
    compile 'com.squareup.okhttp3:okhttp:3.4.1'
53 54
    provided 'org.projectlombok:lombok:1.16.10'

Ricki Hirner's avatar
Ricki Hirner committed
55
    androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.4.1'
56

Ricki Hirner's avatar
Ricki Hirner committed
57 58 59 60
    androidTestCompile 'junit:junit:4.12'
    androidTestCompile 'com.android.support.test:runner:0.5'

        testCompile 'junit:junit:4.12'
61
    testCompile 'com.squareup.okhttp3:mockwebserver:3.4.1'
Ricki Hirner's avatar
Ricki Hirner committed
62
}