blob: 214842594d2ba3550ea641b7b39f5c59c6f874ff [file] [log] [blame]
Jon Miranda16ea1b12017-12-12 14:52:48 -08001buildscript {
2 repositories {
3 jcenter()
4 mavenCentral()
5 google()
6 }
7 dependencies {
Sunny Goyal8600a3f2018-08-15 12:48:01 -07008 classpath 'com.android.tools.build:gradle:3.2.0-beta05'
Jon Miranda16ea1b12017-12-12 14:52:48 -08009 }
10}
11
12apply plugin: 'com.android.application'
13
14android {
Jon Miranda623e57e2018-01-05 16:33:30 -080015 compileSdkVersion 28
16 buildToolsVersion "28.0.0"
Jon Miranda16ea1b12017-12-12 14:52:48 -080017 defaultConfig {
18 applicationId "com.android.wallpaper"
19 minSdkVersion 26
Jon Miranda623e57e2018-01-05 16:33:30 -080020 targetSdkVersion 28
Jon Miranda16ea1b12017-12-12 14:52:48 -080021 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 Goyal4f56b3d2017-12-14 11:39:10 -080044 res.srcDirs = ["res"]
Jon Miranda16ea1b12017-12-12 14:52:48 -080045 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 Goyal8600a3f2018-08-15 12:48:01 -070065final String ANDROID_X_VERSION = "1.0.0-alpha1"
Jon Miranda16ea1b12017-12-12 14:52:48 -080066
67repositories {
68 maven { url "../../../prebuilts/maven_repo/bumptech" }
69 mavenCentral()
70 google()
71 jcenter()
72 mavenCentral()
73}
74
75dependencies {
Sunny Goyal8600a3f2018-08-15 12:48:01 -070076 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 Miranda16ea1b12017-12-12 14:52:48 -080084 implementation 'com.github.bumptech.glide:glide:SNAPSHOT'
85 implementation 'com.github.bumptech.glide:disklrucache:SNAPSHOT'
86 implementation 'com.github.bumptech.glide:gifdecoder:SNAPSHOT'
Jon Miranda623e57e2018-01-05 16:33:30 -080087 implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.9.0'
Jon Miranda16ea1b12017-12-12 14:52:48 -080088
Jon Miranda16ea1b12017-12-12 14:52:48 -080089 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}