Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ android.enableR8.fullMode=true

# Use an AndroidX snapshot build.
# https://androidx.dev/snapshots/builds
# snapshotVersion=15680104
snapshotVersion=16500517

# Enabled parallel sync for Gradle 9.4+
org.gradle.tooling.parallel=true
2 changes: 1 addition & 1 deletion xr/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
androidx-xr-arcore = "1.0.0-beta02"
androidx-xr-arcore-play-services = "1.0.0-beta02"
androidx-xr-compose = "1.0.0-alpha17"
androidx-xr-glimmer = "1.0.0-alpha20"
androidx-xr-glimmer = "1.0.0-SNAPSHOT"
# Keep the Projected dependency on alpha10 until the emulator supports the latest APIs - b/544045508
androidx-xr-projected = "1.0.0-alpha10"
androidx-xr-scenecore = "1.0.0-beta02"
Expand Down
2 changes: 2 additions & 0 deletions xr/src/main/java/com/example/xr/compose/Orbiter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

@file:Suppress("DEPRECATION")

package com.example.xr.compose

import androidx.compose.foundation.background
Expand Down
2 changes: 0 additions & 2 deletions xr/src/main/java/com/example/xr/compose/SpatialPanel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,10 @@ import androidx.compose.ui.unit.sp
import androidx.xr.compose.platform.LocalSpatialCapabilities
import androidx.xr.compose.spatial.Subspace
import androidx.xr.compose.subspace.SpatialPanel
import androidx.xr.compose.subspace.layout.MovePolicy
import androidx.xr.compose.subspace.layout.SubspaceModifier
import androidx.xr.compose.subspace.layout.height
import androidx.xr.compose.subspace.layout.movable
import androidx.xr.compose.subspace.layout.resizable
import androidx.xr.compose.subspace.layout.transformingMovable
import androidx.xr.compose.subspace.layout.width

@Composable
Expand Down
13 changes: 13 additions & 0 deletions xr/src/main/java/com/example/xr/glimmer/ButtonSamples.kt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import androidx.compose.material.icons.filled.Favorite
import androidx.compose.runtime.Composable
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.xr.glimmer.Button
import androidx.xr.glimmer.ButtonGroup
import androidx.xr.glimmer.GlimmerTheme
Expand Down Expand Up @@ -74,4 +75,16 @@ fun ButtonGroupControlCurrentItemSample() {
}
}
// [END androidxr_glimmer_button_group_control]
}

@Composable
fun FocusButtonSample(brandColor: Color) {
// [START androidxr_glimmer_button_focus_color]
Button(
onClick = {},
focusedColor = brandColor,
) {
Text("Focus Color Button")
}
// [END androidxr_glimmer_button_focus_color]
}
2 changes: 2 additions & 0 deletions xr/src/main/java/com/example/xr/scenecore/GltfEntity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

@file:Suppress("DEPRECATION")

package com.example.xr.scenecore

import android.content.ActivityNotFoundException
Expand Down
Loading