Skip to content

Commit 81512af

Browse files
wanyingd1996Dagger Team
authored andcommitted
Add rules to stop LazyClassKey referenced classes being merged with R8.
Also adjusted the proguard rule to avoid keeping the LazyClassKeyProvider which is unnecessary. Issue#4323 RELNOTES=n/a PiperOrigin-RevId: 643422417
1 parent 33c7673 commit 81512af

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

java/dagger/proguard.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
-keepclasseswithmembers,includedescriptorclasses class * {
1+
-keepclassmembers,includedescriptorclasses class * {
22
@dagger.internal.KeepFieldType <fields>;
33
}

java/dagger/r8.pro

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
-identifiernamestring @dagger.internal.IdentifierNameString class ** {
22
static java.lang.String *;
3+
}
4+
-keepclassmembers,includedescriptorclasses,allowobfuscation,allowshrinking class * {
5+
@dagger.internal.KeepFieldType <fields>;
36
}

0 commit comments

Comments
 (0)