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