1/* 2 * Copyright 2020 The Android Open Source Project 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("AndroidXPlugin") 19 id("com.android.application") 20 id("org.jetbrains.kotlin.android") 21 id("com.google.devtools.ksp") 22 id("dagger.hilt.android.plugin") 23} 24 25android { 26 compileSdk = 35 27 defaultConfig { 28 testInstrumentationRunner "androidx.hilt.integration.workerapp.TestRunner" 29 } 30 buildTypes { 31 release { 32 minifyEnabled = true 33 shrinkResources = true 34 } 35 } 36 namespace = "androidx.hilt.integration.workerapp" 37} 38 39dependencies { 40 implementation("androidx.activity:activity:1.10.1") 41 implementation(project(":work:work-runtime-ktx")) 42 implementation(project(":hilt:hilt-work")) 43 ksp(project(":hilt:hilt-compiler")) 44 implementation(libs.kotlinStdlib) 45 implementation(libs.hiltAndroid) 46 ksp(libs.hiltCompiler) 47 48 androidTestImplementation("androidx.activity:activity:1.10.1") 49 androidTestImplementation(libs.truth) 50 androidTestImplementation(libs.testCore) 51 androidTestImplementation(libs.testExtJunit) 52 androidTestImplementation(libs.testRunner) 53 androidTestImplementation(project(":work:work-testing")) 54 androidTestImplementation(libs.hiltAndroidTesting) 55 kspAndroidTest(libs.hiltCompiler) 56} 57 58hilt { 59 enableAggregatingTask = true 60} 61