1/* 2 * Copyright (C) 2024 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 17import androidx.build.AndroidXConfig 18import androidx.build.ApkCopyHelperKt 19 20plugins { 21 id("com.android.application") 22 id("AndroidXPlugin") 23 id("AndroidXComposePlugin") 24 id("org.jetbrains.kotlin.android") 25} 26 27android { 28 namespace = "androidx.xr.compose.integration.layout.curvedpanelandrowapp" 29 compileSdk = 35 30 defaultConfig { 31 minSdk = 34 32 } 33 buildTypes { 34 release { 35 minifyEnabled = true 36 shrinkResources = true 37 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt') 38 } 39 } 40} 41 42dependencies { 43 implementation(project(":xr:compose:compose")) 44 45 implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.9.0-alpha13") 46 implementation("androidx.activity:activity-compose:1.10.0-beta01") 47 implementation("androidx.compose.ui:ui:1.7.0") 48 implementation("androidx.compose.material:material-icons-core:1.6.7") 49 implementation("androidx.compose.material3:material3:1.3.0") 50 implementation("androidx.compose.runtime:runtime:1.8.0-rc02") 51 implementation("androidx.compose.foundation:foundation-layout:1.8.0-rc02") 52 53 compileOnly(files(new File(AndroidXConfig.getPrebuiltsRoot(project), "androidx/xr/extensions/com.android.extensions.xr.jar"))) 54} 55 56// Making this APK available via Android Build so the QA team can 57// access it in a convenient manner. 58ApkCopyHelperKt.setupAppApkCopy(project, "release") 59