Make ProGuard with with Dagger

This commit is contained in:
Moxie Marlinspike 2014-11-12 16:03:58 -08:00
parent bea26e83da
commit cbebc040cc

View File

@ -17,6 +17,20 @@
-keep class com.google.protobuf.** { *; }
## Dagger
-dontwarn dagger.internal.codegen.**
-keepclassmembers class * {
@javax.inject.* *;
@dagger.* *;
<init>();
}
-keep class dagger.* { *; }
-keep class javax.inject.* { *; }
-keep class * extends dagger.internal.Binding
-keep class * extends dagger.internal.ModuleAdapter
-keep class * extends dagger.internal.StaticInjection
## GSON
# removes such information by default, so configure it to keep all of it.