JakeWharton / ViewPagerIndicator

Paging indicator widgets compatible with the ViewPager from the Android Support Library and ActionBarSherlock.
http://viewpagerindicator.com
10.13k stars 4.01k forks source link

Doesn't compile against MNC SDK #362

Open joshzana opened 9 years ago

joshzana commented 9 years ago

The FloatMath.ceil method has gone from being deprecated in API 22 to being deleted in the M preview SDK (along with several other FloatMath methods) The advice is to use Math methods instead. This affects LinPageIndicator, which uses ceil in two places.

Pitel commented 9 years ago

Just got this. After trying to build my app with SDK 23.

Workaround

Add -dontwarn com.viewpagerindicator.LinePageIndicator to proguard-rules.pro and don't use LinePageIndicator.

rekire commented 9 years ago

I would not relay on this workaround. This will cause crashes on Android Marshmallow.

When I view the bug counter I guess that this library won't been upgraded. The solution is similar to this stackoverflow question: http://stackoverflow.com/q/32065160/995926