Wear Compose 1.8.0-alpha01

1.8.0-alpha01
Added 9
  • New AppScaffold and ScreenScaffold overloads without the timeText parameter, establishing the recommended direction for Wear Compose 1.8 to migrate to the new System Status Bar, falling back to default TimeText on older builds without System Status Bar
  • StatusBarSuppression helper composable to suppress the System Status Bar within full-screen and overlay components
  • Modifier.curveToEdge, which uses a shader to curve a component to the border of the parent container around the center, always treating the container as a circle; known issues: clickable components have incorrect clickable bounds and TalkBack does not highlight components correctly
  • PullToRefreshBox and PullToRefreshState in Wear Compose Material 3, with drag distances and refresh thresholds tailored for Wear OS devices
  • Overload of SwipeToReveal with a transformation parameter to support container transformations in TransformingLazyColumn
  • Modifier.testTag("time_text") on TimeText so it can be detected in tests where System Status Bar falls back to a default TimeText composable
Changed 6
  • Existing AppScaffold and ScreenScaffold overloads now migrate to the System Status Bar by default unless an explicit custom timeText is provided behavior changed · inferred, marked in the notes below
  • PullToRefreshBox, PullToRefreshDefaults, and PullToRefreshState promoted to stable public APIs in Wear Compose Material 3
  • Libraries now target Kotlin 2.2 and require kotlinc 2.2 requirement raised · inferred, marked in the notes below
  • Gesture indicators optimized by replacing the indicator pointer background resource with canvas functions using paths
  • Gesture indicators optimized by replacing primary and dismiss AVD resources with draw functions using paths
  • androidx.lifecycle:lifecycle-runtime updated to 2.10.0, required for bundled lifecycle runtime lint checks to run with AGP 9.5.0-alpha04 or later
Fixed 9
  • Gesture handling in Wear Compose Foundation HorizontalPager now prioritizes correctly between paging and swiping to dismiss
  • IllegalStateException in OneHandedGestureModifier.updateCompositionLocals caused by accessing nodes before attachment
  • In-app TimeText flash when transitioning to inherited status bar, by improving visibility suppression logic in ScreenContent
  • Components suppressing the System Status Bar (such as Stepper) no longer fall back to rendering an in-app TimeText
  • StatusBarSuppression() now respects LocalStatusBarEnabled when the global status bar is disabled, preventing unnecessary layout passes in dialogs
  • Wear Material3 Scaffold currentScrollInfoProvider now inherits from underlying screens when the top screen provides null
Removed 2

1 change to check, marked in the notes below

From Wear Compose

Added new AppScaffold and ScreenScaffold overloads without the timeText parameter, establishing the recommended direction for Wear Compose 1.8 to migrate to the new System Status Bar. When running on older builds without System Status Bar, these new overloads fall back to default TimeText. The existing overloads now migrate to the System Status Bar by default unless an explicit custom timeText is provided. ( I40a5e) Added StatusBarSuppression helper composable to suppress the System Status Bar within full-screen and overlay components. ( I387c3) Introduced Modifier. curveToEdge, which uses a shader to curve a component to the border of the parent container around the center, always treating the container as a circle. Known issues: clickable components will have incorrect clickable bounds and TalkBack does not highlight components correctly. ( I8bbaa) Added PullToRefreshBox and PullToRefreshState to Wear Compose Material 3, with drag distances and refresh thresholds tailored for Wear OS devices.( Iee9a5) Promoted PullToRefreshBox, PullToRefreshDefaults, and PullToRefreshState to stable public APIs in Wear Compose Material 3. ( I079b6) Adds an overload of SwipeToReveal with a transformation parameter to support container transformations in TransformingLazyColumn. ( I328ce) Libraries now target Kotlin 2.2 and require kotlinc 2.2 ( I82396, b/498369605) Removed experimental feature flag WearComposeFoundationFlags.isTransformingLazyColumnClickableThresholdEnabled. The clickable threshold in TransformingLazyColumn is now always enabled. ( Ib68c8) Removed experimental flag WearComposeFoundationFlags.isTransformingLazyColumnPinnableContainerEnabled. ( Ibad2e) Fixed bug in Wear Compose Foundation HorizontalPager, where the gesture handling failed to prioritize correctly between paging and swiping to dismiss. ( I54caf) Added Modifier.testTag("time_text") to TimeText so that it can be detected in test cases where System Status Bar falls back to a default TimeText composable. ( Iacb09) Fixed IllegalStateException in OneHandedGestureModifier.updateCompositionLocals caused by accessing nodes before attachment. ( I662271) Added AlertDialog gesture support, so that scrolling down and Confirm button clicks are available by default. ( I51f81) Fixed in-app TimeText flash when transitioning to inherited status bar by improving visibility suppression logic in ScreenContent. ( I12dd01) Fixed an issue where components suppressing the System Status Bar (such as Stepper) fell back to rendering an in-app TimeText. ( I86830) Fixed StatusBarSuppression() to respect LocalStatusBarEnabled when the global status bar is disabled, preventing unnecessary layout passes in dialogs. ( I4f77f6) Fixed an issue in Wear Material3 Scaffold where currentScrollInfoProvider did not inherit from underlying screens when the top screen provided null. ( I97874) Added support for Dialog status bar suppression and nested ScreenScaffolds in Wear Material3 Scaffold. ( I01772) Fixed an issue in AppScaffold where the status bar overlay reappeared while scrolling when the top anchor item. ( I421b3) Fixed an issue where ScreenScaffold top padding collapsed when opening screens with a disabled status bar mode. ( I7cf4f) Added multi-window status bar orchestration support to Wear Compose Material3 scaffolds, allowing dialogs and separate windows to drive their own system status bar controllers. ( Ibf82c) Made TransformingLazyColumn robust to negative item spacings ( I99ac7) Optimized gesture indicators by replacing indicator pointer background in the resources with canvas functions using paths. ( Iee2b7) Optimized gesture indicators by replacing primary and dismiss AVDs in the resources with draw functions using paths. ( Ib2d05) androidx.lifecycle:lifecycle-runtime dependency was updated to 2.10.0. This version is required for bundled lifecycle runtime lint checks to run with AGP version 9.5.0-alpha04 or later. ( I99bfd, b/556807521) Updated baseline profiles for Wear Compose Foundatio behavior changed · inferred requirement raised · inferred removed · inferred

View original

Upgraded? How did it go?

Discussion