1+ /*
2+ * Copyright 2024 Google LLC
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+
17+ plugins {
18+ alias(libs.plugins.android.application)
19+ alias(libs.plugins.kotlin.android)
20+ alias(libs.plugins.kotlin.compose)
21+ }
22+
23+ android {
24+ namespace = " com.example.android.xrfundamentals"
25+ compileSdk = 35
26+
27+ defaultConfig {
28+ applicationId = " com.example.android.xrfundamentals"
29+ minSdk = 34
30+ targetSdk = 35
31+ versionCode = 1
32+ versionName = " 1.0"
33+
34+ testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
35+ }
36+
37+ buildTypes {
38+ release {
39+ isMinifyEnabled = false
40+ proguardFiles(
41+ getDefaultProguardFile(" proguard-android-optimize.txt" ),
42+ " proguard-rules.pro"
43+ )
44+ }
45+ }
46+ compileOptions {
47+ sourceCompatibility = JavaVersion .VERSION_11
48+ targetCompatibility = JavaVersion .VERSION_11
49+ }
50+ kotlinOptions {
51+ jvmTarget = " 11"
52+ }
53+ buildFeatures {
54+ compose = true
55+ }
56+ }
57+
58+ dependencies {
59+ implementation(libs.androidx.core.ktx)
60+ implementation(libs.androidx.lifecycle.runtime.ktx)
61+ implementation(libs.androidx.activity.compose)
62+ implementation(platform(libs.androidx.compose.bom))
63+ implementation(libs.androidx.ui)
64+ implementation(libs.androidx.ui.graphics)
65+ implementation(libs.androidx.ui.tooling.preview)
66+ implementation(libs.androidx.material3)
67+ implementation(libs.androidx.material3.adaptive)
68+ implementation(libs.androidx.xr.compose)
69+ implementation(libs.androidx.xr.scenecore)
70+ implementation(libs.jetbrains.kotlinx.coroutines.guava)
71+ testImplementation(libs.junit)
72+ androidTestImplementation(libs.androidx.junit)
73+ androidTestImplementation(libs.androidx.espresso.core)
74+ androidTestImplementation(platform(libs.androidx.compose.bom))
75+ androidTestImplementation(libs.androidx.ui.test.junit4)
76+ debugImplementation(libs.androidx.ui.tooling)
77+ debugImplementation(libs.androidx.ui.test.manifest)
78+ }
0 commit comments