1/* 2 * Copyright 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 id("AndroidXPlugin") 19 id("com.android.application") 20 id("org.jetbrains.kotlin.android") 21} 22 23dependencies { 24 api(project(":wear:watchface:watchface-complications-data-source")) 25 api(libs.guavaAndroid) 26 implementation("androidx.core:core:1.1.0") 27 implementation("androidx.wear.protolayout:protolayout-expression:1.0.0-beta01") 28} 29 30android { 31 defaultConfig { 32 minSdk = 29 33 } 34 35 buildTypes { 36 release { 37 minifyEnabled = true 38 shrinkResources = true 39 proguardFiles getDefaultProguardFile('proguard-android.txt') 40 } 41 42 /* 43 Release and debug targets will have different package names. Package name for debug version 44 will have suffix .debug, so this should be appended to package name when i.e. uninstalling. 45 */ 46 debug { 47 applicationIdSuffix ".debug" 48 } 49 } 50 51 compileOptions { 52 sourceCompatibility 1.8 53 targetCompatibility 1.8 54 } 55 namespace = "androidx.wear.watchface.complications.datasource.samples" 56} 57