blob: 8b13c7d78e381e813a9c31bd06b670a6d3361de8 [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 {
15 compileSdkVersion 27
16 buildToolsVersion "27.0.0"
17 defaultConfig {
18 applicationId "com.android.wallpaper"
19 minSdkVersion 26
20 targetSdkVersion 27
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 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
65final String SUPPORT_LIBS_VERSION = '27.0.1'
66
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'
87
88
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}