androidproguardandroidplot

ProGuard configuration for AndroidPlot


Since building a release version of my app with ProGuard enabled, my plot style is reset to the default and I see many warnings in Logcat informing me of unsupported parameters:

Error inflating XML: Setter for field "[...]" does not exist.

I've pinpointed this to be coming from AndroidPlot's Configurator, but haven't found any official ProGuard configuration for this project.


Solution

  • The mechanism through which AndroidPlot sets the configuration parameters relies heavily on reflection, and in that light I've decided it's useless to try to obfuscate anything inside this library:

    -keep class com.androidplot.** { *; }