Reputation: 6079
I'm trying to build an apk and proguard it but it fails with messages like:
Error:ProGuard: [radis] Warning: kotlin.dom.EventListenerHandler: can't find superclass or interface org.w3c.dom.events.EventListener
Error:ProGuard: [radis] Warning: kotlin.dom.CloseableEventListener: can't find referenced class org.w3c.dom.events.EventTarget
Error:ProGuard: [radis] Warning: kotlin.dom.CloseableEventListener: can't find referenced class org.w3c.dom.events.EventListener
Error:ProGuard: [radis] Warning: kotlin.dom.DomPackage: can't find referenced class org.w3c.dom.events.MouseEvent
Error:ProGuard: [radis] Warning: kotlin.dom.DomPackage: can't find referenced class org.w3c.dom.events.Event
I added in my proguard.cfg, -dontwarn on kotlin.dom.** but it does not help.
Upvotes: 8
Views: 1396
Reputation: 6079
I was not using standard proguard-android-optimized so I edited my config to match as much as possible (I have ACRA config as well) and add -dontwarn kotlin.** and -dontwarn org.w3c.dom.events.* and it's proguarding now.
Another problem pops up with Dexing I'm still investigating
Upvotes: 6