Proguard rules?
kaciula opened this issue · 2 comments
kaciula commented
When building the app using Proguard I get the following errors. Any hints on what to add in my proguard file?
com.spotify.mobius.First: can't find referenced class com.google.auto.value.AutoValue |
-- | --
com.spotify.mobius.Next: can't find referenced class com.google.auto.value.AutoValue |
com.spotify.mobius.extras.Program: can't find referenced class com.google.auto.value.AutoValue |
com.spotify.mobius.extras.patterns.InnerUpdate: can't find referenced class com.google.auto.value.AutoValue |
org.slf4j.LoggerFactory: can't find referenced class org.slf4j.impl.StaticLoggerBinder |
org.slf4j.MDC: can't find referenced class org.slf4j.impl.StaticMDCBinder |
org.slf4j.MarkerFactory: can't find referenced class org.slf4j.impl.StaticMarkerBinder |
there were 17 unresolved references to classes or interfaces. |
Exception while processing task java.io.IOException: Please correct the above warnings first. |
togi commented
You could add some -dontwarn
declartations, but that seems more like a workaround. We use it in several apps without any special proguard rules. Maybe it's something about how your dependencies are set up?
kaciula commented
@togi Thanks for the suggestion about -dontwarn
. I thought AutoValue was somehow used by Mobius but it seems the app is working fine without it.
These are the proguard lines I am using:
-dontwarn com.google.auto.value.AutoValue
-dontwarn org.slf4j.impl.StaticLoggerBinder
-dontwarn org.slf4j.impl.StaticMDCBinder
-dontwarn org.slf4j.impl.StaticMarkerBinder