Skip to content

Add Hilt testing manifest activity artifact#5220

Open
loganrosen wants to merge 1 commit into
google:masterfrom
loganrosen:loganrosen-hilt-component-activity
Open

Add Hilt testing manifest activity artifact#5220
loganrosen wants to merge 1 commit into
google:masterfrom
loganrosen:loganrosen-hilt-component-activity

Conversation

@loganrosen

Copy link
Copy Markdown

Fixes #3394.

Summary

  • Add com.google.dagger:hilt-android-testing-manifest, a small published AAR with dagger.hilt.android.testing.HiltComponentActivity and a manifest activity entry for Hilt Android tests.
  • Wire Gradle/Bazel publishing, artifact validation, release deploy, API tracking, and coalesced Javadocs.
  • Add a consumer-shaped Hilt fixture instrumentation test that launches the activity from the manifest artifact and verifies ActivityComponent access.

Validation

  • :hilt-android-testing-manifest:assembleDebug
  • :hilt-android-testing-manifest:apiCheck
  • :hilt-android-testing-manifest:publishToMavenLocal
  • bazelisk build --noshow_progress //hilt-android-testing-manifest:artifact
  • bazelisk build --noshow_progress //:user-docs
  • Hilt simple fixture :app:assembleFreeDebug, :app:assembleFreeDebugAndroidTest, :app:assembleProDebug, :app:assembleProDebugAndroidTest
  • :app:connectedFreeDebugAndroidTest filtered to dagger.hilt.android.simple.HiltComponentActivityTest
  • Scratch Now in Android replacement trial with focused Robolectric tests against the new artifact

Adds a small published Android AAR containing a Hilt-enabled ComponentActivity and manifest entry for tests that launch activities through ActivityScenario or Compose rules.

Also wires Gradle/Bazel publishing, artifact validation, coalesced Javadocs, and a consumer-shaped Hilt fixture instrumentation test.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 2b0862cb-279b-4d8c-9ab0-53f462a5037c
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.

[Hilt] FR: Create a HiltComponentActivity artifact

1 participant