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 18 19plugins { 20 id("com.android.application") 21 id("AndroidXPlugin") 22 id("AndroidXComposePlugin") 23 id("org.jetbrains.kotlin.android") 24} 25 26android { 27 namespace = "androidx.xr.compose.integration.layout.resizabletoggleapp" 28 compileSdk = 35 29 defaultConfig { 30 minSdk = 34 31 } 32 buildTypes { 33 release { 34 minifyEnabled = true 35 shrinkResources = true 36 proguardFiles getDefaultProguardFile('proguard-android-optimize.txt') 37 } 38 } 39} 40 41dependencies { 42 implementation(project(":xr:compose:compose")) 43 44 implementation("androidx.activity:activity-compose:1.10.0-beta01") 45 implementation("androidx.compose.ui:ui:1.7.0") 46 implementation("androidx.compose.material3:material3:1.3.0") 47 implementation("androidx.compose.runtime:runtime:1.8.0-rc02") 48 implementation("androidx.compose.foundation:foundation-layout:1.8.0-rc02") 49 50 compileOnly(files(new File(AndroidXConfig.getPrebuiltsRoot(project), "androidx/xr/extensions/com.android.extensions.xr.jar"))) 51} 52