Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 298
Paul Lammertsma Avatar asked Jul 07 '26 00:07

Paul Lammertsma


1 Answers

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.** { *; }
like image 66
Paul Lammertsma Avatar answered Jul 09 '26 08:07

Paul Lammertsma



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!