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 17plugins { 18 alias(libs.plugins.jetbrains.kotlin.android) 19 alias(libs.plugins.android.application) 20} 21 22android { 23 compileSdk 34 24 25 defaultConfig { 26 applicationId "androidx.car.app.sample.showcase" 27 minSdkVersion 29 28 targetSdkVersion 34 29 // Increment this to generate signed builds for uploading to Playstore 30 // Make sure this is different from the showcase-mobile version 31 versionCode 113 32 versionName "113" 33 } 34 35 buildTypes { 36 release { 37 // Enables code shrinking, obfuscation, and optimization. 38 minifyEnabled true 39 proguardFiles getDefaultProguardFile( 40 'proguard-android-optimize.txt'), 41 'proguard-rules.pro' 42 } 43 } 44 45 java.toolchain { 46 languageVersion.set(JavaLanguageVersion.of(libs.versions.java.get())) 47 } 48 49 kotlinOptions { 50 jvmTarget = libs.versions.java.get() 51 } 52 53 testOptions.unitTests.includeAndroidResources true 54 namespace "androidx.car.app.sample.showcase" 55} 56 57dependencies { 58 implementation libs.androidx.app.automotive 59 implementation project(":showcase:common") 60 implementation libs.androidx.core.ktx 61} 62