• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1apply plugin: 'com.android.library'
2
3android {
4    compileSdkVersion 28
5    buildToolsVersion '28.0.0'
6
7    defaultConfig {
8        // Most backup classes (e.g. SharedPreferencesBackupHelper) were added
9        // in Froyo.
10        minSdkVersion 8
11        targetSdkVersion 28
12    }
13
14    publishNonDefault true
15
16    buildTypes {
17        shadow
18    }
19
20    sourceSets {
21        main {
22            manifest.srcFile 'AndroidManifest.xml'
23            java.srcDirs = ['src']
24            java.excludes = ['com/google/android/libraries/backup/shadow/**']
25        }
26
27        shadow {
28            java.srcDirs = ['src']
29            java.includes = ['com/google/android/libraries/backup/shadow/**']
30        }
31    }
32}
33
34dependencies {
35    compile 'com.android.support:support-annotations:25.+'
36    shadowCompile 'junit:junit:4.+'
37    shadowCompile 'org.robolectric:robolectric:3.1-rc1'
38    shadowCompile 'org.robolectric:shadows-core:3.1-rc1'
39}
40