Skip to content

Commit

Permalink
Add rules to stop LazyClassKey referenced classes being merged with R8.
Browse files Browse the repository at this point in the history
Also adjusted the proguard rule to avoid keeping the LazyClassKeyProvider which is unnecessary.

Issue#4323

RELNOTES=n/a
PiperOrigin-RevId: 643422417
  • Loading branch information
wanyingd1996 authored and Dagger Team committed Jun 14, 2024
1 parent 33c7673 commit 81512af
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion java/dagger/proguard.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
-keepclasseswithmembers,includedescriptorclasses class * {
-keepclassmembers,includedescriptorclasses class * {
@dagger.internal.KeepFieldType <fields>;
}
3 changes: 3 additions & 0 deletions java/dagger/r8.pro
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
-identifiernamestring @dagger.internal.IdentifierNameString class ** {
static java.lang.String *;
}
-keepclassmembers,includedescriptorclasses,allowobfuscation,allowshrinking class * {
@dagger.internal.KeepFieldType <fields>;
}

0 comments on commit 81512af

Please sign in to comment.