Skip to content

Comments

Refactor hiltViewModel import#2652

Merged
yschimke merged 1 commit intogoogle:mainfrom
yschimke:hiltviewmodel
Jul 11, 2025
Merged

Refactor hiltViewModel import#2652
yschimke merged 1 commit intogoogle:mainfrom
yschimke:hiltviewmodel

Conversation

@yschimke
Copy link
Collaborator

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.

WHAT

WHY

HOW

Checklist 📋

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

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.
@yschimke yschimke merged commit 9a1582c into google:main Jul 11, 2025
6 checks passed
kul3r4 pushed a commit to kul3r4/horologist-1 that referenced this pull request Sep 19, 2025
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.
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