Skip to content

Update the Wear media sample to Material3 and nav 3 - #2737

Merged
kul3r4 merged 76 commits into
google:mainfrom
kul3r4:m3
Jun 23, 2026
Merged

kul3r4 merged 76 commits into
google:mainfrom
kul3r4:m3

Conversation

@kul3r4

@kul3r4 kul3r4 commented Jun 18, 2026

Copy link
Copy Markdown
Collaborator

WHAT

Update the Wear media sample to Material3 and nav 3. SOme more work is required but breaking down otherwise it becomes a very large PR

WHY

Updating samples and guidance for media apps on Wear OS to use Material 3 requires changes in Horologist

HOW

Checklist 📋

  • Add explicit visibility modifier and explicit return types for public declarations
  • Run spotless check
  • Run tests
  • Update metalava's signature text files

kul3r4 and others added 30 commits July 4, 2025 15:52
From version 0.8 we are removing these methods since the reccomended way
is to use updateInstalledTiles instead.
* Update all dependencies
* Update screenshots

---------

Co-authored-by: Mend Renovate <bot@renovateapp.com>
* Switch AI module to m3

---------

Co-authored-by: yschimke <231923+yschimke@users.noreply.github.com>
* Updates to M3 and genai SDK

---------

Co-authored-by: yschimke <231923+yschimke@users.noreply.github.com>
The `androidx.hilt.navigation.compose.hiltViewModel` import has been changed to `androidx.hilt.lifecycle.viewmodel.compose.hiltViewModel` across multiple sample app files. This change reflects an update in the Hilt library where the `hiltViewModel` function is now located in a different package.
* Support images in AI sample

* 🤖 metalava

---------

Co-authored-by: yschimke <231923+yschimke@users.noreply.github.com>
* Increase text contrast

* spotlessApply
* Upgrade Publish plugin and remove explicit Sonatype host

The Publish plugin has been upgraded from v0.33.0 to v0.34.0.
This new version defaults to the Sonatype host `google.oss.sonatype.org`, allowing the removal of the explicit host configuration.

* publish javadoc

* workaround

* Don't fail on warnings

* Fix publishing?

* Fix publishing?

* Fix publishing?

* Update docs/updating.md

Co-authored-by: Gustavo Pagani <luizgrp@gmail.com>

* Update docs/updating.md

Co-authored-by: Gustavo Pagani <luizgrp@gmail.com>

---------

Co-authored-by: Gustavo Pagani <luizgrp@gmail.com>
…2662)

* Adds the FastScrollingTransformingLazyColumn into Horologist
* Add sample and test
* Added header rows to the sample and tests

---------

Co-authored-by: Bryson Paul <brysonpaul@google.com>
Co-authored-by: Yuri Schimke <yuri@schimke.ee>
* Update screenshots

* 🤖 Updates screenshots

* Avoid end screenshots for now

---------

Co-authored-by: yschimke <231923+yschimke@users.noreply.github.com>
…he FastScrollingTLC (google#2668)

* Remove all screenshots from before to get clean new ones for the test

* 🤖 Updates screenshots

* Increase scroll size in tests

* 🤖 Updates screenshots

* Update fast scrolling handling logic to be more performant

* use rotary behaviour

* spotless apply

* test clean

---------

Co-authored-by: Bryson Paul <brysonpaul@google.com>
Co-authored-by: Yuri Schimke <yschimke@google.com>
… of using custom logic (google#2669)

Co-authored-by: Bryson Paul <brysonpaul@google.com>
* Add API for capturing composable in Tiles

---------

Co-authored-by: yschimke <231923+yschimke@users.noreply.github.com>
Comment thread media/.idea/modules.xml Outdated
public fun getPageParam(backStack: NavBackStackEntry): Int? {
val pageNumber = backStack.arguments?.getInt(page, -1) ?: -1
return if (pageNumber < 0) null else pageNumber
public fun getPageParam(route: String): Int? {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we use typesafe deeplinks with nav3?

https://cs.android.com/search?q=DeepLinkRequest%20serializable&sq=

or at least androidx.navigation3.runtime.deeplink.DeepLinkRequest?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

made another attempt here to use TypeSafe navigation

Comment thread media/sample/build.gradle.kts Outdated
@kul3r4
kul3r4 merged commit cb37c1c into google:main Jun 23, 2026
6 checks passed
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.

9 participants