From cbebc040ccf044aeeb4dd2256e51a59658d756c2 Mon Sep 17 00:00:00 2001 From: Moxie Marlinspike Date: Wed, 12 Nov 2014 16:03:58 -0800 Subject: [PATCH] Make ProGuard with with Dagger --- proguard.cfg | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/proguard.cfg b/proguard.cfg index e9bb976d3f..7d568c6af3 100644 --- a/proguard.cfg +++ b/proguard.cfg @@ -17,6 +17,20 @@ -keep class com.google.protobuf.** { *; } +## Dagger + +-dontwarn dagger.internal.codegen.** +-keepclassmembers class * { + @javax.inject.* *; + @dagger.* *; + (); +} +-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.