build.gradle 1.6 KB
Newer Older
S
Sam Judd 已提交
1 2 3
buildscript {
    repositories {
        mavenCentral()
E
Emil Arfvidsson 已提交
4 5 6
        // TODO: Remove this repository as soon as fix
        // https://github.com/robolectric/robolectric-gradle-plugin/pull/33 is released.
        maven { url 'https://github.com/rockerhieu/mvn-repo/raw/master/' }
S
Sam Judd 已提交
7 8
    }
    dependencies {
E
Emil Arfvidsson 已提交
9 10 11 12 13 14
        classpath 'com.android.tools.build:gradle:0.11.2'
        // TODO: Remove the snapshot dependency below and replace with
        // classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.10.+'
        // as soon as fix https://github.com/robolectric/robolectric-gradle-plugin/pull/33
        // is released.
        classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.10.1-SNAPSHOT'
S
Sam Judd 已提交
15 16 17 18
    }
}

apply plugin: 'android-library'
E
Emil Arfvidsson 已提交
19
apply plugin: 'android-test'
S
Sam Judd 已提交
20 21 22 23 24 25

repositories {
    mavenCentral()
}

dependencies {
E
Emil Arfvidsson 已提交
26 27 28 29 30 31 32 33 34 35
    compile project(':third_party:gif_decoder')

    compile 'com.android.support:support-v4:19.0.+'
    compile 'com.mcxiaoke.volley:library:1.0.+'
    compile 'com.jakewharton:disklrucache:2.0.+'

    androidTestCompile 'org.hamcrest:hamcrest-core:1.3'
    androidTestCompile 'junit:junit:4.11'
    androidTestCompile 'org.mockito:mockito-all:1.9.5'
    androidTestCompile 'org.robolectric:robolectric:2.3'
S
Sam Judd 已提交
36 37 38
}

android {
S
Sam Judd 已提交
39
    compileSdkVersion 19
E
Emil Arfvidsson 已提交
40
    buildToolsVersion = '19.1.0'
S
Sam Judd 已提交
41 42 43

    sourceSets {
        main {
E
Emil Arfvidsson 已提交
44 45
            resources.srcDirs    = ['src/main']
            java.srcDirs         = ['src/main']
S
Sam Judd 已提交
46 47
            manifest.srcFile 'AndroidManifest.xml'
        }
E
Emil Arfvidsson 已提交
48 49

        instrumentTest.setRoot('src/test')
S
Sam Judd 已提交
50
    }
E
Emil Arfvidsson 已提交
51 52 53 54 55 56 57 58

    lintOptions {
        abortOnError false
    }
}

task wrapper(type: Wrapper) {
    gradleVersion = '1.10'
59
}