Skip to content

Commit cbebc04

Browse files
committed
Make ProGuard with with Dagger
1 parent bea26e8 commit cbebc04

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

proguard.cfg

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@
1717

1818
-keep class com.google.protobuf.** { *; }
1919

20+
## Dagger
21+
22+
-dontwarn dagger.internal.codegen.**
23+
-keepclassmembers class * {
24+
@javax.inject.* *;
25+
@dagger.* *;
26+
<init>();
27+
}
28+
-keep class dagger.* { *; }
29+
-keep class javax.inject.* { *; }
30+
-keep class * extends dagger.internal.Binding
31+
-keep class * extends dagger.internal.ModuleAdapter
32+
-keep class * extends dagger.internal.StaticInjection
33+
2034
## GSON
2135

2236
# removes such information by default, so configure it to keep all of it.

0 commit comments

Comments
 (0)