Proton ProGuard rules

Proton – is a lightweight dependency injection framework for Android.

Inspired by MiniGuice and RoboGuice.

ProGuard rules for Proton

ProGuard can, for example, analyze the transitive dependencies in your code and remove unused elements.. When obfuscating, ProGuard writes out class files named 'a.class', 'b.class', etc. You have to set up a ProGuard configuration in proguard-rules.pro file.

# Proton
-keepattributes *Annotation*
-keepclassmembers class * {
   @javax.inject.Inject (...);
}
-keepclassmembers class * {
   void *(**On*Event);
}

For more information about Proton please see the website.

Related ProGuard rules

Static Gson ProGuard rules

Popular ProGuard rules