RxJava和FasterXML有一个有效的proguard规则吗?

现在阻止我在生产中使用kotlin的唯一问题是我找不到一个正确的proguard文件。

我用什么:

1.Kotlin

2.Anko

3.Jackson-科特林模块

以下是警告消息:

:app:proguardRelease Warning: com.fasterxml.jackson.databind.ext.DOMSerializer: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry Warning: rx.internal.util.unsafe.BaseLinkedQueueConsumerNodeRef: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.BaseLinkedQueueProducerNodeRef: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.ConcurrentCircularArrayQueue: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.ConcurrentSequencedCircularArrayQueue: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.MpmcArrayQueueConsumerField: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.MpmcArrayQueueProducerField: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.MpscLinkedQueue: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.SpmcArrayQueueConsumerField: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.SpmcArrayQueueProducerField: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.SpscArrayQueue: can't find referenced class sun.misc.Unsafe Warning: rx.internal.util.unsafe.UnsafeAccess: can't find referenced class sun.misc.Unsafe Warning: there were 41 unresolved references to classes or interfaces. 

一个更好的就是把这个aar作为一个依赖:

https://github.com/artem-zinnatullin/RxJavaProGuardRules

这与Kotlin无关。 忽略您的proguard文件中的警告:

 -dontwarn sun.misc.Unsafe -dontwarn org.w3c.dom.bootstrap.DOMImplementationRegistry