Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 1 | buildscript { |
| 2 | repositories { |
| 3 | jcenter() |
| 4 | mavenCentral() |
| 5 | google() |
| 6 | } |
| 7 | dependencies { |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 8 | classpath 'com.android.tools.build:gradle:3.2.0-beta05' |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 9 | } |
| 10 | } |
| 11 | |
| 12 | apply plugin: 'com.android.application' |
| 13 | |
| 14 | android { |
Jon Miranda | 623e57e | 2018-01-05 16:33:30 -0800 | [diff] [blame] | 15 | compileSdkVersion 28 |
| 16 | buildToolsVersion "28.0.0" |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 17 | defaultConfig { |
| 18 | applicationId "com.android.wallpaper" |
| 19 | minSdkVersion 26 |
Jon Miranda | 623e57e | 2018-01-05 16:33:30 -0800 | [diff] [blame] | 20 | targetSdkVersion 28 |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 21 | versionCode 1 |
| 22 | versionName "1.0" |
| 23 | testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| 24 | } |
| 25 | buildTypes { |
| 26 | debug { |
| 27 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | flavorDimensions "default" |
| 32 | |
| 33 | productFlavors { |
| 34 | aosp { |
| 35 | dimension "default" |
| 36 | applicationId 'com.android.wallpaper' |
| 37 | testApplicationId 'com.android.wallpaper.tests' |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | sourceSets { |
| 42 | main { |
| 43 | java.srcDirs = ["src", "src_override"] |
Sunny Goyal | 4f56b3d | 2017-12-14 11:39:10 -0800 | [diff] [blame] | 44 | res.srcDirs = ["res"] |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 45 | manifest.srcFile "AndroidManifest.xml" |
| 46 | } |
| 47 | |
| 48 | androidTest { |
| 49 | res.srcDirs = ["tests/res"] |
| 50 | java.srcDirs = ["tests/src"] |
| 51 | manifest.srcFile "tests/AndroidManifest.xml" |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | lintOptions { |
| 56 | abortOnError false |
| 57 | } |
| 58 | |
| 59 | compileOptions { |
| 60 | sourceCompatibility JavaVersion.VERSION_1_8 |
| 61 | targetCompatibility JavaVersion.VERSION_1_8 |
| 62 | } |
| 63 | } |
| 64 | |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 65 | final String ANDROID_X_VERSION = "1.0.0-alpha1" |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 66 | |
| 67 | repositories { |
| 68 | maven { url "../../../prebuilts/maven_repo/bumptech" } |
| 69 | mavenCentral() |
| 70 | google() |
| 71 | jcenter() |
| 72 | mavenCentral() |
| 73 | } |
| 74 | |
| 75 | dependencies { |
Sunny Goyal | 8600a3f | 2018-08-15 12:48:01 -0700 | [diff] [blame] | 76 | implementation "androidx.recyclerview:recyclerview:${ANDROID_X_VERSION}" |
| 77 | implementation "androidx.cardview:cardview:${ANDROID_X_VERSION}" |
| 78 | implementation "androidx.appcompat:appcompat:${ANDROID_X_VERSION}" |
| 79 | implementation "androidx.exifinterface:exifinterface:${ANDROID_X_VERSION}" |
| 80 | implementation "com.google.android.material:material:${ANDROID_X_VERSION}" |
| 81 | |
| 82 | implementation 'com.android.volley:volley:1.1.0' |
| 83 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 84 | implementation 'com.github.bumptech.glide:glide:SNAPSHOT' |
| 85 | implementation 'com.github.bumptech.glide:disklrucache:SNAPSHOT' |
| 86 | implementation 'com.github.bumptech.glide:gifdecoder:SNAPSHOT' |
Jon Miranda | 623e57e | 2018-01-05 16:33:30 -0800 | [diff] [blame] | 87 | implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.9.0' |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 88 | |
Jon Miranda | 16ea1b1 | 2017-12-12 14:52:48 -0800 | [diff] [blame] | 89 | androidTestImplementation('junit:junit:4.12') |
| 90 | androidTestImplementation('com.android.support.test:runner:1.0.1') |
| 91 | androidTestImplementation('org.robolectric:robolectric:3.4.2') { |
| 92 | exclude group: 'xmlpull' |
| 93 | } |
| 94 | androidTestImplementation('com.thoughtworks.xstream:xstream:1.4.8'); |
| 95 | androidTestImplementation 'org.mockito:mockito-core:1.10.19' |
| 96 | androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' |
| 97 | androidTestImplementation 'com.android.support.test.espresso:espresso-intents:3.0.1' |
| 98 | } |