Skip to content

feat(wear): add One-Handed Gestures demo and bump Wear Compose to 1.7.0-beta01 - #1027

Draft
ithinkihaveacat wants to merge 3 commits into
android:mainfrom
ithinkihaveacat:wear-m3-one-handed-gestures-beta01
Draft

feat(wear): add One-Handed Gestures demo and bump Wear Compose to 1.7.0-beta01#1027
ithinkihaveacat wants to merge 3 commits into
android:mainfrom
ithinkihaveacat:wear-m3-one-handed-gestures-beta01

Conversation

@ithinkihaveacat

Copy link
Copy Markdown
Contributor

Summary & Goal

This PR adds Wear OS Material 3 One-Handed Gestures sample snippets for Android developer documentation (DAC).

With the release of androidx.wear.compose:compose-material3:1.7.0-beta01, the updated one-handed gesture APIs are now available in an official Jetpack release. As a result, this PR also updates the Wear Compose dependencies to 1.7.0-beta01, allowing these snippets to live directly in the standard :wear module without requiring snapshot subprojects or custom snapshot Maven repositories.

Important

Dependency Update: This change bumps the Wear Compose dependencies (wearComposeMaterial3, wearComposeFoundation, wearComposeMaterial, wearComposeNavigation3, and composeUiTooling) for all Wear samples in this repository from 1.6.2 to 1.7.0-beta01.


Implementation Details

  1. Version Catalog (gradle/libs.versions.toml):

    • Bumped wearComposeFoundation, wearComposeMaterial, wearComposeMaterial3, wearComposeNavigation3, and composeUiTooling to 1.7.0-beta01.
  2. One-Handed Gestures Snippet (wear/.../m3/gestures/OneHandedGestures.kt):

    • OneHandedGestureScreen: Full screen showcase integrating ScreenScaffold, EdgeButton, TransformingLazyColumn, and visual gesture indicators.
    • ButtonGestureSnippet ([START android_wear_one_handed_gesture_button]): Demonstrates triggering button actions with primary gestures and shared interaction sources.
    • ButtonGestureHintSnippet ([START android_wear_one_handed_gesture_button_hint]): Demonstrates hint visualization with OneHandedGestureClickIndicator.
    • ScrollGestureHintSnippet ([START android_wear_one_handed_gesture_scroll_hint]): Demonstrates OneHandedGestureScrollIndicator and gesture-driven scrolling via OneHandedGestureDefaults.scrollDown.

Verification

Validated the :wear module locally:

  • Spotless formatting: ./gradlew :wear:spotlessApply (Clean)
  • Lint checks: ./gradlew :wear:lintDebug (0 errors)
  • Module build: ./gradlew :wear:assembleDebug (Build successful)

Migrate Wear OS Material 3 One-Handed Gesture snippets from
SNAPSHOT dependencies to the published 1.7.0-beta01 Jetpack
release.

- Move OneHandedGestures.kt into the :wear module
- Remove the temporary :wear:snapshot subproject and snapshot Maven
  repository from settings.gradle.kts
- Update wearCompose version catalog entries to 1.7.0-beta01
@ithinkihaveacat

ithinkihaveacat commented Aug 13, 2026

Copy link
Copy Markdown
Contributor Author

I don't think we should merge this since it bumps all samples to 1.7.0-beta01; we should wait until we get a 1.7.0 stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant