blob: b3dfd925f459d253b785c4be7ecd0c4ded3de5db [file] [log] [blame]
Jon Miranda16ea1b12017-12-12 14:52:48 -08001buildscript {
2 repositories {
3 jcenter()
4 mavenCentral()
5 google()
6 }
7 dependencies {
8 classpath 'com.android.tools.build:gradle:3.0.1'
9 }
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
Jon Miranda623e57e2018-01-05 16:33:30 -080065final String SUPPORT_LIBS_VERSION = '28.0.0-SNAPSHOT'
Jon Miranda16ea1b12017-12-12 14:52:48 -080066
67
68repositories {
69 maven { url "../../../prebuilts/maven_repo/bumptech" }
70 mavenCentral()
71 google()
72 jcenter()
73 mavenCentral()
74}
75
76dependencies {
Jon Miranda16ea1b12017-12-12 14:52:48 -080077 implementation "com.android.support:support-v4:${SUPPORT_LIBS_VERSION}"
78 implementation "com.android.support:recyclerview-v7:${SUPPORT_LIBS_VERSION}"
79 implementation "com.android.support:cardview-v7:${SUPPORT_LIBS_VERSION}"
80 implementation "com.android.support:appcompat-v7:${SUPPORT_LIBS_VERSION}"
81 implementation "com.android.support:design:${SUPPORT_LIBS_VERSION}"
82 implementation "com.android.support:exifinterface:${SUPPORT_LIBS_VERSION}"
83 implementation 'com.android.volley:volley:1.0.0'
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 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
89
90 androidTestImplementation('junit:junit:4.12')
91 androidTestImplementation('com.android.support.test:runner:1.0.1')
92 androidTestImplementation('org.robolectric:robolectric:3.4.2') {
93 exclude group: 'xmlpull'
94 }
95 androidTestImplementation('com.thoughtworks.xstream:xstream:1.4.8');
96 androidTestImplementation 'org.mockito:mockito-core:1.10.19'
97 androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
98 androidTestImplementation 'com.android.support.test.espresso:espresso-intents:3.0.1'
99}