• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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: 'com.google.dagger.hilt.android'
21
22android {
23    compileSdkVersion 33
24    buildToolsVersion "33.0.1"
25
26    defaultConfig {
27        minSdkVersion 16
28        targetSdkVersion 33
29        versionCode 1
30        versionName "1.0"
31    }
32    namespace "dagger.hilt.android.simple.feature"
33    compileOptions {
34        sourceCompatibility JavaVersion.VERSION_11
35        targetCompatibility JavaVersion.VERSION_11
36    }
37    flavorDimensions "tier"
38    productFlavors {
39        free {
40            dimension "tier"
41        }
42        premium {
43            dimension "tier"
44        }
45    }
46}
47
48kotlin {
49    jvmToolchain(11)
50}
51
52kapt {
53 correctErrorTypes true
54}
55
56hilt {
57    enableTransformForLocalTests = true
58}
59
60dependencies {
61    // This is api instead of implementation since Kotlin modules here consumed
62    // by the app need to expose @kotlin.Metadata
63    api "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
64
65    implementation project(":deep-android-lib")
66    implementation project(":deep-lib")
67
68    implementation 'androidx.appcompat:appcompat:1.2.0'
69    implementation "com.google.dagger:hilt-android:$dagger_version"
70    kapt "com.google.dagger:hilt-compiler:$dagger_version"
71}
72