mirror of
https://github.com/d4rken-org/capod.git
synced 2026-09-14 18:26:11 -04:00
R8 full mode strips no-arg constructors from work-runtime classes accessed via Class.newInstance() reflection (WorkDatabase_Impl, OverwritingInputMerger, etc). Replace narrow WorkDatabase_Impl keep rule with broad androidx.work.** rule. Also add @Keep to Hilt WidgetEntryPoint and wrap provideGlance setup in try-catch so the widget shows an error message instead of spinning forever.
8 lines
424 B
Prolog
8 lines
424 B
Prolog
-keep class eu.darken.capod.BuildConfig { *; }
|
|
-dontobfuscate
|
|
|
|
# work-runtime 2.7.1 (pulled by Glance) uses Class.newInstance() reflection throughout.
|
|
# R8 full mode strips no-arg constructors not reachable by static analysis.
|
|
# Keep all constructors in the work package. Remove when Glance upgrades to work-runtime 2.10+.
|
|
# See: https://issuetracker.google.com/issues/243257364
|
|
-keep class androidx.work.** { <init>(...); } |