Either wrong ProGuard ruleset or you run a particularly flawed Samsung Android version.
proguard setting
-dontwarn rx.**
-keep class rx.schedulers.Schedulers {
public static
}
-keep class rx.schedulers.ImmediateScheduler {
public
}
-keep class rx.schedulers.TestScheduler {
public
}
-keep class rx.schedulers.Schedulers {
public static ** test();
}
Yup those are definitely wrong. Those are the rules with RxJava 1.0.16 (Unless they changed something with 1.0.17, those should also work)
-keepclassmembers class rx.internal.util.unsafe.*ArrayQueue*Field* {
long producerIndex;
long consumerIndex;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef {
rx.internal.util.atomic.LinkedQueueNode producerNode;
}
-keepclassmembers class rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef {
rx.internal.util.atomic.LinkedQueueNode consumerNode;
}
-dontwarn sun.misc.Unsafe
@vanniktech thx T_T
Looks like this issue is resolved and can be closed.
// @chonamdoo you can use ProGuard rules for RxJava baked as aar https://github.com/artem-zinnatullin/RxJavaProGuardRules, I keep them updated with RxJava releases!
Closing. Please reopen it if you still have any question for proguard
Most helpful comment
Looks like this issue is resolved and can be closed.
// @chonamdoo you can use ProGuard rules for RxJava baked as
aarhttps://github.com/artem-zinnatullin/RxJavaProGuardRules, I keep them updated with RxJava releases!