This table lists all the artifacts in the
|Artifact||Current Stable Release||Next Release Candidate||Beta Release||Alpha Release|
Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.
See the Issue Tracker documentation for more information.
Hilt-Navigation-Compose Version 1.0.0
December 15, 2021
androidx.hilt:hilt-navigation-compose:1.0.0-rc01 is released with no changes since
1.0.0-beta01. Version 1.0.0-rc01 contains these commits.
November 17, 2021
androidx.hilt:hilt-navigation-compose:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.
- Remove deprecated
hiltNavGraphViewModel()function and its overloads. These were all replaced by
June 16, 2021
androidx.hilt:hilt-navigation-compose:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
hiltViewModel()method now aligns with the
viewModel()API changes in Lifecycle-ViewModel-Compose
1.0.0-alpha07and now takes an optional
ViewModelStoreOwnerparameter, rather than having a no argument version and one that takes only a
NavBackStackEntry. This allows you to continue to use
hiltViewModel()to access the default owner provided by
ViewModelStoreOwnerto specify any specific owner. (I2628d)
May 18, 2021
androidx.hilt:hilt-navigation-compose:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
hiltViewModel()and removed the extension on
NavControllersince a user can directly use the
navigation-composeAPI for getting a
NavBackStackEntryfrom a route. (I6ef57)
androidx.hilt:hilt-navigation-compose:1.0.0-alpha02is only compatible with Compose version
hilt-navigation-composenow depends on Navigation
March 10, 2021
androidx.hilt:hilt-navigation-compose:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
:hilt-navigation-composeartifact provides APIs that allow users to get a
ViewModelfrom a Navigation back stack entry within a Compose application using
:navigation-compose. The function
hiltNavGraphViewModel()can either take a
NavBackStackEntryor a 'route' string that can be used to scope the
ViewModelto either the current back stack entry or to a parent entry in the stack. (Ia9234)
May 5, 2021
androidx.hilt:hilt-*:1.0.0 is released. Version 1.0.0 contains these commits.
Major features of 1.0.0
androidx.hiltartifacts offers extensions for integrating Hilt with various other AndroidX libraries, such as WorkManager and Navigation. To see a list of features and examples check out the integration documentation.
March 10, 2021
androidx.hilt:hilt-*:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.
@Deprecatedtypes from the AndroidX Hilt artifacts, specifically
@androidx.hilt.Assisted. Note that
@ViewModelInjectwas replaced by @HiltViewModel. (I626fe)
January 27, 2021
androidx.hilt:hilt-*:1.0.0-alpha03 is released. Version 1.0.0-alpha03 contains these commits.
- Provide APIs for retrieving
@HiltViewModelannotated ViewModel from a Navigation
NavBackStackEntry. The artifact
hiltNavGraphViewModelsKotlin extension while
HiltViewModelFactoryfactory method that takes in a
NavBackStackEntryas argument and returns a
ViewModelProvider.Facctorythat can be used with
ViewModelProvideror other View Model retrieving APIs, such as Compose’s
viewModel(HiltViewModelFactory(AmbientContext.current, backStackEntry)). (I00e67)
@HiltWorkeris now a type annotation and requires the usage of @AssistedInject in the constructor. (Ic2f15)
@ViewModelInject. Equivalent functionality is now offered by
@HiltViewModel, which is now part of the core Hilt Android APIs. (I36a41)
- Fix an issue where AndroidX Hilt extension Modules would not get correctly picked up by Hilt causing Workers to not be available for creation. (I3181c, b/159540434)
- Migrate AndroidX Hilt extensions to the
SingletonComponent, removing the deprecated warning of using
ApplicationCompoonent. (I9c916, b/175849092)
July 22, 2020
androidx.hilt:hilt-*:1.0.0-alpha02 is released. Version 1.0.0-alpha02 contains these commits.
- Fixed an issue of duplicate saved state keys when a non-Hilt injected ViewModel was requested from an
@AndroidEntryPoint-annotated class. (b/158737069)
- Fixed an issue in
HiltWorkerFactorywhere it wouldn’t correctly initialize nested Worker classes annotated with
June 10, 2020
androidx.hilt:hilt-*:1.0.0-alpha01 is released. Version 1.0.0-alpha01 contains these commits.
androidx.hilt package and libraries extend the functionality of Dagger Hilt to enable dependency injection of certain classes from the androidx libraries.