1/* 2 * Copyright (C) 2024 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 17plugins { 18 id 'com.android.application' 19} 20 21android { 22 23 namespace 'dagger.lazyclasskey' 24 compileSdkVersion 33 25 defaultConfig { 26 applicationId 'dagger.lazyclasskey' 27 minSdk 16 28 targetSdk 33 29 versionCode 1 30 versionName "1.0" 31 testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" 32 } 33 34 buildTypes { 35 debug { 36 minifyEnabled true 37 shrinkResources true 38 proguardFiles getDefaultProguardFile( 39 'proguard-android-optimize.txt'), 40 'proguard-rules.pro' 41 42 } 43 } 44 45 compileOptions { 46 sourceCompatibility JavaVersion.VERSION_11 47 targetCompatibility JavaVersion.VERSION_11 48 } 49} 50 51dependencies { 52 implementation 'androidx.appcompat:appcompat:1.2.0' 53 implementation 'com.google.errorprone:error_prone_annotations:2.15.0' 54 55 androidTestImplementation 'androidx.test:core:1.5.0-alpha02' 56 androidTestImplementation 'androidx.test.ext:junit:1.1.3' 57 androidTestImplementation "androidx.test:runner:1.5.2" 58 androidTestImplementation "androidx.test:rules:1.5.0" 59 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' 60 61 // Dagger dependencies 62 implementation "com.google.dagger:dagger:$dagger_version" 63 annotationProcessor "com.google.dagger:dagger-compiler:$dagger_version" 64} 65