You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Jetpack Compose 1.8 or newer provides SemanticsConfiguration via SemanticsInfo
52
54
// See https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/node/LayoutNode.kt
53
55
// and https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/ui/ui/src/commonMain/kotlin/androidx/compose/ui/semantics/SemanticsInfo.kt
54
56
try {
55
57
getSemanticsConfigurationMethod?.let {
56
-
return it.invoke(this) asSemanticsConfiguration?
58
+
return it.invoke(node) asSemanticsConfiguration?
57
59
}
58
-
} catch (_:Throwable) {
59
-
logger.log(
60
-
SentryLevel.WARNING,
61
-
"Failed to invoke LayoutNode.getSemanticsConfiguration"
62
-
)
63
-
}
64
60
65
-
// for backwards compatibility
66
-
return collapsedSemantics
61
+
// for backwards compatibility
62
+
return node.collapsedSemantics
63
+
} catch (t:Throwable) {
64
+
if (!semanticsRetrievalErrorLogged) {
65
+
semanticsRetrievalErrorLogged =true
66
+
logger.log(
67
+
SentryLevel.ERROR,
68
+
t,
69
+
"""
70
+
Error retrieving semantics information from Compose tree. Most likely you're using
71
+
an unsupported version of androidx.compose.ui:ui. The supported
72
+
version range is 1.5.0 - 1.8.0.
73
+
If you're using a newer version, please open a github issue with the version
0 commit comments