android-proguard-snippets icon indicating copy to clipboard operation
android-proguard-snippets copied to clipboard

add proguard config for circular progress button

Open iceberg1369 opened this issue 9 years ago • 5 comments

I have included circular progress button to my project. The problem is that once i enable proguard animations does no work properly. I have all kind of proguard config but no success yet. So i would be very appreciated if you find some eay to work around this

iceberg1369 avatar May 03 '15 05:05 iceberg1369

Are you referring to this library? https://github.com/dmytrodanylyk/circular-progress-button

krschultz avatar May 03 '15 13:05 krschultz

yes exactly

iceberg1369 avatar May 03 '15 14:05 iceberg1369

I have the same problem!

HugeTimor avatar Jul 15 '15 17:07 HugeTimor

@HugeTimor proguard seems to strip the progress color set.

To resolve this I had to include the library manually and customize it from the library's color resource. With respect to my project, i just wanted a white in the progress bar. So I replaced most of the colors with white

<color name="cpb_grey">#ffdedede</color> <color name="cpb_blue">#ffffff</color> <color name="cpb_blue_dark">#ffffff</color> <color name="cpb_red">#ffff4444</color> <color name="cpb_red_dark">#ffcd3a3a</color> <color name="cpb_green">#ffffff</color> <color name="cpb_green_dark">#ffffff</color> <color name="cpb_white">@android:color/white</color>

Knexis avatar Aug 26 '16 18:08 Knexis

Hello. Seems like a lot of people is using this library. I'll post my solution for that bug. Simply add: -keep class com.dd.** {*;} to your proguard-rules.pro file

Szczypiorek44 avatar Jul 31 '17 06:07 Szczypiorek44