Skip to content

Commit 1af16bc

Browse files
authored
Update to October release of XR libraries (#669)
* Update to October release of XR libraries * Revert "Add incorrectly removed SessionConfigureConfigurationNotSupported (#638)" This reverts commit 0ce9349.
1 parent c8dfc10 commit 1af16bc

File tree

4 files changed

+3
-12
lines changed

4 files changed

+3
-12
lines changed

gradle/libs.versions.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ androidx-test-junit = "1.3.0"
2828
androidx-window = "1.5.0"
2929
androidx-window-core = "1.5.0"
3030
androidx-window-java = "1.5.0"
31-
androidx-xr-arcore = "1.0.0-alpha06"
32-
androidx-xr-compose = "1.0.0-alpha07"
33-
androidx-xr-scenecore = "1.0.0-alpha07"
31+
androidx-xr-arcore = "1.0.0-alpha07"
32+
androidx-xr-compose = "1.0.0-alpha08"
33+
androidx-xr-scenecore = "1.0.0-alpha08"
3434
androidxHiltNavigationCompose = "1.3.0"
3535
appcompat = "1.7.1"
3636
coil = "2.7.0"

xr/src/main/java/com/example/xr/arcore/Anchors.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import androidx.xr.arcore.AnchorCreateSuccess
2121
import androidx.xr.arcore.Trackable
2222
import androidx.xr.runtime.Config
2323
import androidx.xr.runtime.Session
24-
import androidx.xr.runtime.SessionConfigureConfigurationNotSupported
2524
import androidx.xr.runtime.SessionConfigureSuccess
2625
import androidx.xr.runtime.math.Pose
2726
import androidx.xr.scenecore.AnchorEntity
@@ -35,8 +34,6 @@ fun configureAnchoring(session: Session) {
3534
)
3635
when (val result = session.configure(newConfig)) {
3736
is SessionConfigureSuccess -> TODO(/* Success! */)
38-
is SessionConfigureConfigurationNotSupported ->
39-
TODO(/* Some combinations of configurations are not valid. Handle this failure case. */)
4037
else ->
4138
TODO(/* The session could not be configured. See SessionConfigureResult for possible causes. */)
4239
}

xr/src/main/java/com/example/xr/arcore/Hands.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import androidx.xr.arcore.Hand
2323
import androidx.xr.arcore.HandJointType
2424
import androidx.xr.runtime.Config
2525
import androidx.xr.runtime.Session
26-
import androidx.xr.runtime.SessionConfigureConfigurationNotSupported
2726
import androidx.xr.runtime.SessionConfigureSuccess
2827
import androidx.xr.runtime.math.Pose
2928
import androidx.xr.runtime.math.Quaternion
@@ -41,8 +40,6 @@ fun ComponentActivity.configureSession(session: Session) {
4140
)
4241
when (val result = session.configure(newConfig)) {
4342
is SessionConfigureSuccess -> TODO(/* Success! */)
44-
is SessionConfigureConfigurationNotSupported ->
45-
TODO(/* Some combinations of configurations are not valid. Handle this failure case. */)
4643
else ->
4744
TODO(/* The session could not be configured. See SessionConfigureResult for possible causes. */)
4845
}

xr/src/main/java/com/example/xr/arcore/Planes.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package com.example.xr.arcore
1919
import androidx.xr.arcore.Plane
2020
import androidx.xr.runtime.Config
2121
import androidx.xr.runtime.Session
22-
import androidx.xr.runtime.SessionConfigureConfigurationNotSupported
2322
import androidx.xr.runtime.SessionConfigureSuccess
2423
import androidx.xr.runtime.math.Pose
2524
import androidx.xr.runtime.math.Ray
@@ -32,8 +31,6 @@ fun configurePlaneTracking(session: Session) {
3231
)
3332
when (val result = session.configure(newConfig)) {
3433
is SessionConfigureSuccess -> TODO(/* Success! */)
35-
is SessionConfigureConfigurationNotSupported ->
36-
TODO(/* Some combinations of configurations are not valid. Handle this failure case. */)
3734
else ->
3835
TODO(/* The session could not be configured. See SessionConfigureResult for possible causes. */)
3936
}

0 commit comments

Comments
 (0)