Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animation not working using proGuard #302

Open
yogirana5557 opened this issue May 26, 2021 · 1 comment
Open

Animation not working using proGuard #302

yogirana5557 opened this issue May 26, 2021 · 1 comment

Comments

@yogirana5557
Copy link

I am using LineChart & tried to build release apk using proGuard, animation is not working as expected

@qwertyway
Copy link

I also faced this issue. I can see the lib uses reflection for animations, for example
ObjectAnimator.ofFloat(dataPoint, "screenDegrees", 0f, dataPoint.screenDegrees)

I found 2 entities used this way - DataPoint and DonutDataPoint. So we must keep their names unchanged

Include this into proguard-rules.pro file

-keepnames class com.db.williamchart.data.DataPoint { *; }
-keepnames class com.db.williamchart.data.DonutDataPoint  { *; }

I think this should be mentioned in the lib description

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants