1/* 2 * Copyright (C) 2020 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.application' 18 19android { 20 compileSdkVersion gradle.ext.aaosLatestSDK 21 defaultConfig { 22 applicationId "com.android.car.media" 23 minSdkVersion 30 // Media requires apis that became public in R. 24 targetSdkVersion gradle.ext.aaosTargetSDK 25 } 26 compileOptions { 27 sourceCompatibility JavaVersion.VERSION_1_8 28 targetCompatibility JavaVersion.VERSION_1_8 29 } 30 lintOptions { 31 abortOnError false 32 } 33 buildTypes { 34 release { 35 minifyEnabled false 36 } 37 } 38 39 sourceSets { 40 main { 41 manifest.srcFile 'AndroidManifest.xml' 42 java.srcDirs = ['src'] 43 aidl.srcDirs = ['src'] 44 renderscript.srcDirs = ['src'] 45 res.srcDirs = ['res'] 46 } 47 } 48 49 signingConfigs { 50 debug { 51 storeFile file('../libs/certs/com_android_car_apps_test.jks') 52 storePassword 'carapps' 53 keyAlias 'carapps' 54 keyPassword 'carapps' 55 } 56 } 57} 58 59dependencies { 60 implementation "androidx.preference:preference:1.1.1" 61 implementation 'androidx.constraintlayout:constraintlayout:2.1.0' 62 63 def lifecycle_version = "2.2.0" 64 implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version" 65 // Not available in 2.3+ 66 implementation "androidx.lifecycle:lifecycle-extensions:$lifecycle_version" 67 68 implementation files(gradle.ext.lib_car_system_stubs) 69 70 implementation "androidx.media:media:1.4.1" 71 72 implementation project(":car-ui-lib") 73 implementation project(":car-apps-common") 74 implementation project(":car-media-common") 75 implementation project(":car-uxr-client-lib") 76} 77