android / snippets

Main repository for snippets surfaced on developer.android.com.
Apache License 2.0
671 stars 173 forks source link

Add snippets for Indication and Ripple migration #191

Closed arriolac closed 9 months ago

arriolac commented 9 months ago

Merging this against latest branch which uses the latest Compose versions so that main continues to use the latest stable version.

snippet-bot[bot] commented 9 months ago

Here is the summary of changes.

You are about to add 29 region tags. - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:89](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L89), tag `android_compose_interactions_interaction_state` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:102](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L102), tag `android_compose_interactions_interaction_source_input` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:110](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L110), tag `android_compose_interactions_mutable_interaction_source_input` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:118](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L118), tag `android_compose_interactions_high_level_component` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:139](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L139), tag `android_compose_interactions_hoverable` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:156](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L156), tag `android_compose_interactions_focusable` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:174](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L174), tag `android_compose_interactions_clickable` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:196](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L196), tag `android_compose_interactions_flow_apis` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:217](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L217), tag `android_compose_interactions_add_remove` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:247](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L247), tag `android_compose_interactions_is_pressed_or_dragged` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:251](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L251), tag `android_compose_interactions_last` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:262](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L262), tag `android_compose_interactions_batched` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:272](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L272), tag `android_compose_interactions_press_icon_button` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:303](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L303), tag `android_compose_interactions_press_icon_button_usage` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:314](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L314), tag `android_compose_interactions_indication` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:329](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L329), tag `android_compose_interactions_scale_node` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:368](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L368), tag `android_compose_interactions_scale_node_factory` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:381](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L381), tag `android_compose_interactions_button_indication` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:398](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L398), tag `android_compose_interactions_scale_button` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:428](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L428), tag `android_compose_interactions_scale_button_example` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:437](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L437), tag `android_compose_interactions_neon_node` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt:631](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/Interactions.kt#L631), tag `android_compose_interactions_neon_indication` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt:120](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt#L120), tag `android_compose_userinteractions_material_ripple` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt:187](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt#L187), tag `android_compose_userinteractions_scale_indication_node_factory` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt:199](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt#L199), tag `android_compose_userinteractions_scale_indication_node` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt:245](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt#L245), tag `android_compose_userinteractions_localusefallbackrippleimplementation` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt:254](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt#L254), tag `android_compose_userinteractions_localusefallbackrippleimplementation_app_theme` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt:264](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt#L264), tag `android_compose_userinteractions_disabled_ripple_configuration` - [compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt:284](https://github.com/android/snippets/blob/ad3517b59c1f51dfe69b7ee712224be3b29b10d6/compose/snippets/src/main/java/com/example/compose/snippets/touchinput/userinteractions/UserInteractions.kt#L284), tag `android_compose_userinteractions_my_ripple_configuration`

This comment is generated by snippet-bot. If you find problems with this result, please file an issue at: https://github.com/googleapis/repo-automation-bots/issues. To update this comment, add snippet-bot:force-run label or use the checkbox below:

arriolac commented 9 months ago

Going to merge this in as it it currently blocking a DAC page release. If there are any comments / concerns I can address that separately.

Note that I also created #192 to keep main and latest in sync