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
Draft
feat(wear): add One-Handed Gestures demo and bump Wear Compose to 1.7.0-beta01#1027ithinkihaveacat wants to merge 3 commits into
ithinkihaveacat wants to merge 3 commits into
Conversation
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
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 to1.7.0-beta01, allowing these snippets to live directly in the standard:wearmodule without requiring snapshot subprojects or custom snapshot Maven repositories.Important
Dependency Update: This change bumps the Wear Compose dependencies (
wearComposeMaterial3,wearComposeFoundation,wearComposeMaterial,wearComposeNavigation3, andcomposeUiTooling) for all Wear samples in this repository from1.6.2to1.7.0-beta01.Implementation Details
Version Catalog (
gradle/libs.versions.toml):wearComposeFoundation,wearComposeMaterial,wearComposeMaterial3,wearComposeNavigation3, andcomposeUiToolingto1.7.0-beta01.One-Handed Gestures Snippet (
wear/.../m3/gestures/OneHandedGestures.kt):OneHandedGestureScreen: Full screen showcase integratingScreenScaffold,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 withOneHandedGestureClickIndicator.ScrollGestureHintSnippet([START android_wear_one_handed_gesture_scroll_hint]): DemonstratesOneHandedGestureScrollIndicatorand gesture-driven scrolling viaOneHandedGestureDefaults.scrollDown.Verification
Validated the
:wearmodule locally:./gradlew :wear:spotlessApply(Clean)./gradlew :wear:lintDebug(0 errors)./gradlew :wear:assembleDebug(Build successful)