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.library'
18apply plugin: 'kotlin-android'
19apply plugin: 'kotlin-kapt'
20apply plugin: 'dagger.hilt.android.plugin'
21
22android {
23    compileSdkVersion 30
24    buildToolsVersion "30.0.2"
25
26    defaultConfig {
27        minSdkVersion 15
28        targetSdkVersion 30
29        versionCode 1
30        versionName "1.0"
31    }
32    compileOptions {
33        sourceCompatibility 1.8
34        targetCompatibility 1.8
35    }
36}
37
38kapt {
39 correctErrorTypes true
40}
41
42hilt {
43    enableTransformForLocalTests = true
44}
45
46dependencies {
47    // This is api instead of implementation since Kotlin modules here consumed
48    // by the app need to expose @kotlin.Metadata
49    api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
50
51    implementation project(":deep-android-lib")
52    implementation project(":deep-lib")
53
54    implementation 'androidx.appcompat:appcompat:1.2.0'
55    implementation "com.google.dagger:hilt-android:$dagger_version"
56    kapt "com.google.dagger:hilt-compiler:$dagger_version"
57}
58