smart-location-lib icon indicating copy to clipboard operation
smart-location-lib copied to clipboard

Proguard: Cannot Obfuscate code

Open jayant-droid opened this issue 8 years ago • 3 comments

Following Warning Occurs when assemble code with Proguard enabled:

Warning:io.nlopez.smartlocation.rx.ObservableFactory$1: can't find superclass or interface rx.functions.Action0 Warning:io.nlopez.smartlocation.rx.ObservableFactory$2: can't find superclass or interface rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$3: can't find superclass or interface rx.functions.Action0 Warning:io.nlopez.smartlocation.rx.ObservableFactory$4: can't find superclass or interface rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$5: can't find superclass or interface rx.functions.Action0 Warning:io.nlopez.smartlocation.rx.ObservableFactory$6: can't find superclass or interface rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$7: can't find superclass or interface rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$8: can't find superclass or interface rx.Observable$OnSubscribe

Warning:io.nlopez.smartlocation.rx.ObservableFactory: can't find referenced class rx.Observable Warning:io.nlopez.smartlocation.rx.ObservableFactory: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory: can't find referenced class rx.Observable Warning:io.nlopez.smartlocation.rx.ObservableFactory$1: can't find referenced class rx.functions.Action0 Warning:io.nlopez.smartlocation.rx.ObservableFactory$2: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$2: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$2: can't find referenced class rx.Observable Warning:io.nlopez.smartlocation.rx.ObservableFactory$2: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$2: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$2$1: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$3: can't find referenced class rx.functions.Action0 Warning:io.nlopez.smartlocation.rx.ObservableFactory$4: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$4: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$4: can't find referenced class rx.Observable Warning:io.nlopez.smartlocation.rx.ObservableFactory$4: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$4: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$4$1: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$5: can't find referenced class rx.functions.Action0 Warning:io.nlopez.smartlocation.rx.ObservableFactory$6: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$6: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$6: can't find referenced class rx.Observable Warning:io.nlopez.smartlocation.rx.ObservableFactory$6: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$6: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$6$1: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$7: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$7: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$7: can't find referenced class rx.Observable Warning:io.nlopez.smartlocation.rx.ObservableFactory$7: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$7: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$7$1: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$8: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$8: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$8: can't find referenced class rx.Observable Warning:io.nlopez.smartlocation.rx.ObservableFactory$8: can't find referenced class rx.Subscriber Warning:io.nlopez.smartlocation.rx.ObservableFactory$8: can't find referenced class rx.Observable$OnSubscribe Warning:io.nlopez.smartlocation.rx.ObservableFactory$8$1: can't find referenced class rx.Subscriber Warning:javax.activation.CommandInfo: can't find referenced class java.beans.Beans Warning:okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement

Proguard.properites: -keep class io.nlopez.smartlocation.* {;}

//doesn't work

jayant-droid avatar Oct 20 '16 05:10 jayant-droid

I get the same problem. Can anyone help to resolve it?

coolmarat avatar Oct 24 '16 07:10 coolmarat

put -dontwarn io.nlopez.** into your proguard file

nienlm-hhtv avatar Oct 26 '16 10:10 nienlm-hhtv

Thank You it worked.

On Wed, Oct 26, 2016 at 4:25 PM, Niên Lê [email protected] wrote:

put -dontwarn io.nlopez.** into your proguard file

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mrmans0n/smart-location-lib/issues/175#issuecomment-256314144, or mute the thread https://github.com/notifications/unsubscribe-auth/AKHsbSJuEu_svezhM5JcW4EhA2Hll6tgks5q3zGbgaJpZM4KbvIv .

jayant-droid avatar Nov 03 '16 13:11 jayant-droid