• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1buildscript {
2    repositories {
3        jcenter()
4        mavenCentral()
5        google()
6    }
7    dependencies {
8        classpath 'com.android.tools.build:gradle:3.2.0-beta05'
9    }
10}
11
12apply plugin: 'com.android.application'
13
14android {
15    compileSdkVersion 28
16    buildToolsVersion "28.0.0"
17    defaultConfig {
18        applicationId "com.android.wallpaper"
19        minSdkVersion 26
20        targetSdkVersion 28
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"]
44            res.srcDirs = ["res"]
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
65final String ANDROID_X_VERSION = "1.0.0-alpha1"
66
67repositories {
68    maven { url "../../../prebuilts/maven_repo/bumptech" }
69    mavenCentral()
70    google()
71    jcenter()
72    mavenCentral()
73}
74
75dependencies {
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
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    implementation 'com.davemorrissey.labs:subsampling-scale-image-view:3.9.0'
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}
99