/* * Copyright (C) 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import androidx.build.AndroidXConfig import androidx.build.ApkCopyHelperKt plugins { id("com.android.application") id("AndroidXPlugin") id("AndroidXComposePlugin") id("org.jetbrains.kotlin.android") } android { namespace = "androidx.xr.compose.integration.layout.spatialcomposeapp" compileSdk = 35 defaultConfig { minSdk = 34 } buildTypes { release { minifyEnabled = true shrinkResources = true proguardFiles getDefaultProguardFile('proguard-android-optimize.txt') } } } dependencies { implementation(project(":xr:compose:integration-tests:common")) implementation(project(":xr:assets")) implementation(project(":xr:compose:compose")) implementation(project(":xr:runtime:runtime")) implementation(project(":xr:scenecore:scenecore")) implementation("androidx.core:core-ktx:1.15.0") implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.9.0-alpha13") implementation("androidx.activity:activity-compose:1.10.0-beta01") implementation("androidx.compose.ui:ui:1.7.0") implementation("androidx.compose.ui:ui-tooling-preview:1.7.0") implementation("androidx.compose.material:material-icons-core:1.6.7") implementation("androidx.compose.material3:material3:1.4.0-alpha11") implementation("androidx.compose.runtime:runtime:1.8.0-rc02") implementation("androidx.compose.foundation:foundation-layout:1.8.0-rc02") implementation(libs.kotlinCoroutinesGuava) compileOnly(files(new File(AndroidXConfig.getPrebuiltsRoot(project), "androidx/xr/extensions/com.android.extensions.xr.jar"))) } // Making this APK available via Android Build so the QA team can // access it in a convenient manner. ApkCopyHelperKt.setupAppApkCopy(project, "release")