fix(android): remove WorkManager auto-initializer (lintVitalRelease) #61

Merged
bvandeusen merged 1 commits from dev into main 2026-06-01 16:55:52 -04:00
Owner

Fast-follow on the Dockerfile fix. The next failure in the v2026.06.01 chain: android.yml release build (run 110, job 282) failed at lintVitalRelease:

AndroidManifest.xml:13: Error: Remove androidx.work.WorkManagerInitializer
from your AndroidManifest.xml when using on-demand initialization.
[RemoveWorkManagerInitializer from androidx.work]

MinstrelApplication implements Configuration.Provider and supplies HiltWorkerFactory, but the work-runtime library auto-registers WorkManagerInitializer via androidx-startup, racing the on-demand path. Lint catches this as a release blocker. AOSP-recommended fix: merge the InitializationProvider entry and remove the nested WorkManagerInitializer meta-data with tools:node="remove".

After merge I'll force-move v2026.06.01 to the new main HEAD; the workflow concurrency: cancel-in-progress will kill the in-flight tag runs from the broken HEAD.

Fast-follow on the Dockerfile fix. The next failure in the v2026.06.01 chain: `android.yml` release build (run 110, job 282) failed at `lintVitalRelease`: ``` AndroidManifest.xml:13: Error: Remove androidx.work.WorkManagerInitializer from your AndroidManifest.xml when using on-demand initialization. [RemoveWorkManagerInitializer from androidx.work] ``` `MinstrelApplication` implements `Configuration.Provider` and supplies `HiltWorkerFactory`, but the work-runtime library auto-registers `WorkManagerInitializer` via androidx-startup, racing the on-demand path. Lint catches this as a release blocker. AOSP-recommended fix: merge the `InitializationProvider` entry and remove the nested `WorkManagerInitializer` meta-data with `tools:node="remove"`. After merge I'll force-move `v2026.06.01` to the new main HEAD; the workflow `concurrency: cancel-in-progress` will kill the in-flight tag runs from the broken HEAD.
bvandeusen added 1 commit 2026-06-01 16:55:47 -04:00
fix(android): remove WorkManager auto-initializer (lintVitalRelease)
android / Build + lint + test (push) Successful in 4m26s
android / Build signed release APK (push) Has been skipped
f080afc38c
The android.yml release build (run 110, job 282) failed at
lintVitalRelease with:

  AndroidManifest.xml:13: Error: Remove androidx.work.WorkManagerInitializer
  from your AndroidManifest.xml when using on-demand initialization.
  [RemoveWorkManagerInitializer from androidx.work]

MinstrelApplication implements androidx.work.Configuration.Provider
and supplies the HiltWorkerFactory, so WorkManager initializes
on-demand at first WorkManager.getInstance(...) call. The androidx-
startup InitializationProvider that ships with the work-runtime
library still auto-registers WorkManagerInitializer, racing the
on-demand path. Lint catches this as a release blocker.

Fix: merge the InitializationProvider entry and remove the nested
WorkManagerInitializer meta-data with tools:node='remove'. This is
the AOSP-recommended fix when an Application is its own
Configuration.Provider.
bvandeusen merged commit 2534384ed1 into main 2026-06-01 16:55:52 -04:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: bvandeusen/minstrel#61