stephanenicolas / robospice

Repo of the Open Source Android library : RoboSpice. RoboSpice is a modular android library that makes writing asynchronous long running tasks easy. It is specialized in network requests, supports caching and offers REST requests out-of-the box using extension modules.
Apache License 2.0
2.95k stars 545 forks source link

ProGuard warning: can't find referenced method setLatestEventInfo #437

Open mgramenitskiy opened 8 years ago

mgramenitskiy commented 8 years ago

The (previously deprecated) Notification method setLatestEventInfo was completely removed in API level 23 (Android 6.0, Marshmallow). ProGuard says: Warning:com.octo.android.robospice.SpiceService: can't find referenced method 'void setLatestEventInfo(android.content.Context,java.lang.CharSequence,java.lang.CharSequence,android.app.PendingIntent)' in library class android.app.Notification

wiradikusuma commented 8 years ago

Add this in your proguard-rules.pro file:

-dontwarn com.octo.android.robospice.SpiceService

It's not ideal, but the missing method is only used when VERSION.SDK_INT < 11, so for most people it's safe to ignore.

bogdanzurac commented 8 years ago

Thanks for the workaround. Could we also get a new release with a fix for this? Or at the very least, a notice in the readme file for future reference.