summaryrefslogtreecommitdiffstats
path: root/build.gradle
blob: 7a33abdbf810e4608ea0fd8158a4b871d331ec12 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
apply plugin: 'com.android.library'

android {
    publishNonDefault true

    buildTypes {
        shadow
    }

    sourceSets {
        main {
            manifest.srcFile 'AndroidManifest.xml'
            java.srcDirs = ['src']
            java.excludes = ['com/google/android/libraries/backup/shadow/**']
        }

        shadow {
            java.srcDirs = ['src']
            java.includes = ['com/google/android/libraries/backup/shadow/**']
        }
    }
}

dependencies {
    compile 'com.android.support:support-annotations:25.+'
    shadowCompile 'junit:junit:4.+'
    shadowCompile 'org.robolectric:robolectric:3.1-rc1'
    shadowCompile 'org.robolectric:shadows-core:3.1-rc1'
}