-
Notifications
You must be signed in to change notification settings - Fork 376
fix: keep WorkManager InputMerger for R8 (AGP 9); minified demo + CI #2589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bc2a545
8dcd746
35ea4fa
7cec8e1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,3 +19,8 @@ | |||||||||
| # If you keep the line number information, uncomment this to | ||||||||||
| # hide the original source file name. | ||||||||||
| #-renamesourcefileattribute SourceFile | ||||||||||
|
|
||||||||||
| # Demo-only suppression for optional OTel transitive classes. | ||||||||||
|
||||||||||
| # Demo-only suppression for optional OTel transitive classes. | |
| # Demo-only suppression for Jackson core and AutoValue inner class pulled in as | |
| # optional OpenTelemetry exporter transitive deps; these classes are not used | |
| # by the demo app. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new consumer rule keeps all classes in the app (and all transitive deps) that extend
androidx.work.InputMerger. Since this file is shipped as AAR consumer rules, this can unintentionally reduce shrinking/obfuscation for any customInputMergersubclasses in a host app and slightly increase APK size. Consider narrowing the rule to just the WorkManager mergers that are actually instantiated by reflection in this scenario (e.g., the built-inandroidx.work.*InputMergerimplementations) or otherwise scoping it to the minimal set needed to fix the reported crash.