Skip to content

Upgrading Hilt 2.42 -> 2.44 adds a new deprecation warning #3601

@liutikas

Description

@liutikas

Upgrading Hilt 2.42 -> 2.44 adds a new deprecation warning.

When we upgraded androidx from Hilt 2.42 to 2.44 (https://android-review.googlesource.com/c/platform/frameworks/support/+/2242564) we started getting a new compile warning:

  > Task :hilt:hilt-navigation-fragment:hiltJavaCompileDebugAndroidTest
  $OUT_DIR/androidx/hilt/hilt-navigation-fragment/build/generated/hilt/component_sources/debugAndroidTest/androidx/hilt/navigation/fragment/HiltNavGraphViewModelLazyTest_TestComponentDataSupplier.java:16: warning: [deprecation] applicationContextModule(ApplicationContextModule) in Builder has been deprecated
          .applicationContextModule(
  1 warning

Test class https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:hilt/hilt-navigation-fragment/src/androidTest/java/androidx/hilt/navigation/fragment/HiltNavGraphViewModelLazyTest.kt;l=62

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions