1/*
2 * Copyright (C) 2021 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
17apply plugin: 'com.android.library'
18
19android {
20    compileSdkVersion gradle.ext.aaosLatestSDK
21
22    defaultConfig {
23        minSdkVersion 29
24        targetSdkVersion gradle.ext.aaosTargetSDK
25        versionCode 1
26        versionName '1.0'
27    }
28
29    compileOptions {
30        sourceCompatibility JavaVersion.VERSION_1_8
31        targetCompatibility JavaVersion.VERSION_1_8
32    }
33
34    flavorDimensions 'devMode'
35    productFlavors {
36        fake {
37            dimension 'devMode'
38        }
39
40        emulator {
41            dimension 'devMode'
42        }
43
44        production {
45            dimension 'devMode'
46        }
47    }
48    sourceSets {
49        main {
50            java.srcDirs = ['src']
51            manifest.srcFile 'real/AndroidManifest.xml'
52        }
53
54        production {
55            java.srcDirs = ['real/src']
56        }
57
58        emulator {
59            java.srcDirs = ['real/src']
60        }
61
62        fake {
63            java.srcDirs = ['fake/src']
64            manifest.srcFile 'fake/AndroidManifest.xml'
65            assets.srcDirs = ['fake/assets']
66        }
67    }
68}
69
70dependencies {
71    implementation 'com.google.dagger:hilt-android:2.38.1'
72    annotationProcessor 'com.google.dagger:hilt-android-compiler:2.38.1'
73
74    implementation 'androidx.annotation:annotation:1.2.0'
75    implementation 'androidx.core:core:1.6.0'
76
77    fakeRuntimeOnly 'androidx.legacy:legacy-support-v4:1.0.0'
78    fakeImplementation project(':car-telephony-common')
79    fakeImplementation project(':car-apps-common')
80    fakeImplementation project(':car-telephony-common')
81    fakeImplementation 'com.google.code.gson:gson:2.8.8'
82    fakeImplementation 'com.google.guava:guava:30.1.1-android'
83    fakeImplementation 'com.linkedin.dexmaker:dexmaker-mockito-inline:2.28.1'
84}
85