Commit 24c5002
committed
Add R8 keep rule for Hilt_* base classes to fix ClassCastException in release builds
Use -keep,allowobfuscation,allowshrinking instead of bare -keep so that
R8 can still rename and remove unused Hilt_* classes while preventing
vertical class merging that breaks the bytecode-transformed hierarchy.
Fixes #46681 parent 445e6f0 commit 24c5002
2 files changed
Lines changed: 12 additions & 2 deletions
File tree
- hilt-android/main/resources/META-INF/com.android.tools
- proguard
- r8
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments