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.viewmodelapp.TestRunner"
29    }
30    buildTypes {
31        release {
32            minifyEnabled = true
33            shrinkResources = true
34        }
35    }
36    namespace = "androidx.hilt.integration.viewmodelapp"
37}
38
39dependencies {
40    implementation("androidx.activity:activity:1.10.1")
41    implementation(project(":fragment:fragment-ktx"))
42    implementation(libs.kotlinStdlib)
43    implementation(libs.hiltAndroid)
44    ksp(libs.hiltCompiler)
45
46    androidTestImplementation("androidx.activity:activity:1.10.1")
47    androidTestImplementation(project(":fragment:fragment-ktx"))
48    androidTestImplementation(libs.truth)
49    androidTestImplementation(libs.testCore)
50    androidTestImplementation(libs.testExtJunit)
51    androidTestImplementation(libs.testRunner)
52    androidTestImplementation(libs.hiltAndroidTesting)
53    kspAndroidTest(libs.hiltCompiler)
54}
55
56hilt {
57    enableAggregatingTask = true
58}
59