mrmans0n / smart-location-lib

Android library project that lets you manage the location updates to be as painless as possible
1.65k stars 353 forks source link

Proguard: Cannot Obfuscate code #175

Open jayant-droid opened 7 years ago

jayant-droid commented 7 years ago

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

coolmarat commented 7 years ago

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

nienlm-hhtv commented 7 years ago

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

jayant-droid commented 7 years ago

Thank You it worked.

On Wed, Oct 26, 2016 at 4:25 PM, Niên Lê notifications@github.com 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 .