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 28 24 targetSdkVersion gradle.ext.aaosTargetSDK 25 versionCode 1 26 versionName "1.0" 27 testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner' 28 } 29 30 compileOptions { 31 sourceCompatibility JavaVersion.VERSION_1_8 32 targetCompatibility JavaVersion.VERSION_1_8 33 } 34 35 sourceSets { 36 main { 37 manifest.srcFile 'AndroidManifest.xml' 38 java.srcDirs = ['src'] 39 res.srcDirs = ['res'] 40 } 41 42 androidTest.setRoot('tests/unittests') 43 androidTest.java.srcDirs = ['tests/unittests/src'] 44 } 45 46 testOptions { 47 animationsDisabled = true 48 } 49} 50 51dependencies { 52 runtimeOnly 'androidx.legacy:legacy-support-v4:1.0.0' 53 54 implementation 'com.github.bumptech.glide:glide:4.12.0' 55 implementation 'com.google.guava:guava:30.1.1-android' 56 implementation 'com.googlecode.libphonenumber:libphonenumber:8.12.31' 57 58 implementation project(':car-apps-common') 59 60 implementation files(gradle.ext.lib_car_system_stubs) 61 62 androidTestImplementation 'com.google.truth:truth:1.1.3' 63 androidTestImplementation 'androidx.test.ext:junit:1.1.3' 64 androidTestImplementation 'org.mockito:mockito-android:3.12.4' 65 androidTestImplementation 'androidx.test:runner:1.4.0' 66 androidTestImplementation 'androidx.test:rules:1.4.0' 67 androidTestImplementation 'androidx.test:core:1.4.0' 68} 69