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.spatialelevation"
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    implementation(project(":xr:scenecore:scenecore"))
45
46    implementation("androidx.core:core-ktx:1.15.0")
47    implementation("androidx.activity:activity-compose:1.10.0-beta01")
48    implementation("androidx.compose.material:material-icons-core:1.6.7")
49    implementation("androidx.compose.material3:material3:1.3.0")
50    implementation("androidx.compose.ui:ui:1.7.0")
51    implementation("androidx.compose.ui:ui-tooling-preview:1.7.0")
52    implementation("androidx.compose.runtime:runtime:1.8.0-rc02")
53
54    compileOnly(files(new File(AndroidXConfig.getPrebuiltsRoot(project), "androidx/xr/extensions/com.android.extensions.xr.jar")))
55}
56
57// Making this APK available via Android Build so the QA team can
58// access it in a convenient manner.
59ApkCopyHelperKt.setupAppApkCopy(project, "release")
60