Skip to content

Commit

Permalink
Make ProGuard with with Dagger
Browse files Browse the repository at this point in the history
  • Loading branch information
moxie0 committed Nov 13, 2014
1 parent bea26e8 commit cbebc04
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions proguard.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cbebc04

Please sign in to comment.