• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (C) 2020 The Dagger Authors.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17apply plugin: 'com.android.application'
18
19android {
20    compileSdkVersion 33
21    buildToolsVersion "33.0.0"
22
23    defaultConfig {
24        applicationId "dagger.android.simple"
25        minSdkVersion 16
26        targetSdkVersion 33
27        versionCode 1
28        versionName "1.0"
29    }
30    namespace "dagger.android.simple"
31    compileOptions {
32        sourceCompatibility JavaVersion.VERSION_11
33        targetCompatibility JavaVersion.VERSION_11
34    }
35    testOptions {
36        unitTests.includeAndroidResources = true
37    }
38    sourceSets {
39        String sharedTestDir = 'src/sharedTest/java'
40        test {
41            java.srcDirs += sharedTestDir
42        }
43        androidTest {
44            java.srcDirs += sharedTestDir
45        }
46    }
47}
48
49dependencies {
50  implementation 'androidx.appcompat:appcompat:1.2.0'
51  implementation 'com.google.dagger:dagger:LOCAL-SNAPSHOT'
52  implementation 'com.google.dagger:dagger-android-support:LOCAL-SNAPSHOT'
53  annotationProcessor 'com.google.dagger:dagger-compiler:LOCAL-SNAPSHOT'
54  annotationProcessor 'com.google.dagger:dagger-android-processor:LOCAL-SNAPSHOT'
55
56  testImplementation 'com.google.truth:truth:1.0.1'
57  testImplementation 'org.robolectric:robolectric:4.11.1'
58  testImplementation 'androidx.core:core:1.3.2'
59  testImplementation 'androidx.test.ext:junit:1.1.3'
60  testImplementation 'androidx.test:runner:1.4.0'
61  testImplementation 'androidx.test.espresso:espresso-core:3.5.1'
62  testImplementation 'com.google.dagger:dagger-compiler:LOCAL-SNAPSHOT'
63  testAnnotationProcessor 'com.google.dagger:dagger-android-processor:LOCAL-SNAPSHOT'
64
65  androidTestImplementation 'com.google.truth:truth:1.0.1'
66  androidTestImplementation 'androidx.test.ext:junit:1.1.3'
67  androidTestImplementation 'androidx.test:runner:1.4.0'
68  androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
69  androidTestImplementation 'com.google.dagger:dagger-compiler:LOCAL-SNAPSHOT'
70  androidTestAnnotationProcessor 'com.google.dagger:dagger-android-processor:LOCAL-SNAPSHOT'
71
72  // To help us catch usages of Guava APIs for Java 8 in the '-jre' variant.
73  annotationProcessor'com.google.guava:guava:28.1-android'
74  testAnnotationProcessor'com.google.guava:guava:28.1-android'
75  androidTestAnnotationProcessor'com.google.guava:guava:28.1-android'
76}
77