android / snippets

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

sync: main to latest #199

Closed compose-devrel-github-bot closed 9 months ago

compose-devrel-github-bot commented 9 months ago

sync-branches: New code has just landed in main, so let's bring latest up to speed!

google-cla[bot] commented 9 months ago

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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/AndroidManifest.xml:31](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/AndroidManifest.xml#L31), tag `android_compose_pip_manifest_entry` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:77](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L77), tag `android_compose_graphics_basic_polygon` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:101](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L101), tag `android_compose_graphics_polygon_rounding` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:129](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L129), tag `android_compose_graphics_polygon_rounding_smooth` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:158](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L158), tag `android_compose_graphics_polygon_morph` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:195](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L195), tag `android_compose_graphics_polygon_morph_animation` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:280](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L280), tag `android_compose_morph_clip_shape` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:307](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L307), tag `android_compose_graphics_morph_on_click` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:347](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L347), tag `android_compose_shapes_polygon_compose_shape` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:372](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L372), tag `android_compose_shapes_apply_as_clip` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:400](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L400), tag `android_compose_shapes_apply_as_clip_advanced` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:433](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L433), tag `android_compose_shapes_custom_rotating_morph_shape` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:521](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L521), tag `android_compose_shapes_custom_vertices` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:543](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L543), tag `android_compose_shapes_custom_vertices_draw` - [compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt:581](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/graphics/ShapesSnippets.kt#L581), tag `android_compose_shapes_radial_to_cartesian` - [compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt:68](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt#L68), tag `android_compose_custom_modifiers_1` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:55](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L55), tag `android_compose_pip_broadcast_receiver_constants` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:71](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L71), tag `android_compose_pip_builder_auto_enter` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:87](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L87), tag `android_compose_pip_find_activity` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:100](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L100), tag `android_compose_pip_button_click` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:116](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L116), tag `android_compose_pip_is_in_pip_mode` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:149](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L149), tag `android_compose_pip_ui_toggle` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:168](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L168), tag `android_compose_pip_toggle_pip_on_if_video_is_playing` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:177](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L177), tag `android_compose_pip_release_player` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:191](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L191), tag `android_compose_pip_post_12_should_enter_pip` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:215](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L215), tag `android_compose_pip_set_source_rect` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:244](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L244), tag `android_compose_pip_set_aspect_ratio` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:271](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L271), tag `android_compose_pip_broadcast_receiver` - [compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt:319](https://github.com/android/snippets/blob/0d296b9b9af54429a9f5131e77dd05cc52c54f91/compose/snippets/src/main/java/com/example/compose/snippets/pictureInPicture/PictureInPictureSnippets.kt#L319), tag `android_compose_pip_add_remote_actions`
You are about to delete 1 region tag. - [compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt:66](https://github.com/android/snippets/blob/5cb7dd2dbe30f0680e4f9f8b34839c8eae120252/compose/snippets/src/main/java/com/example/compose/snippets/modifiers/CustomModifierSnippets.kt#L66), tag `android_compose_custom_modifiers_1`

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

Not sure why CLA is failing here as I'm using a person access token for @compose-devrel-github-bot. Any ideas, @riggaroo ?

EDIT: I think it might be because the email is different on the commit and not compose-devrel-github-bot@google.com. Unfortunately the email isn't configurable for the GH action I'm using so I may have to update the workflow.

riggaroo commented 9 months ago

@arriolac why did you close this one? I'm confused why the update-deps one is working but this one isnt'

arriolac commented 8 months ago

I closed this PR as I was trying to get this PR to reopen with changes from #200.

The main difference between update-deps and sync_main_latest is the GH action used by the two (the former explicitly sets the commit author / email). Still not entirely sure why it is still failling.