Open haroldadmin opened 4 years ago
This issue is not resolved with just -keepnames class implements com.haroldadmin.vector.VectorViewModelFactory
.
Currently using the following additional proguard rules in MoonShot:
-keepnames class com.haroldadmin.vector.** { *; }
-keep class kotlin.Metadata { *; }
-keep class kotlin.reflect.jvm.internal.** { *; }
-keep class androidx.lifecycle.SavedStateHandle { *; }
Describe the bug On an app with code obfuscation turned on, there are crashes with the message "Incomplete class hierarchy" for VectorViewModel classes.
Here's the stacktrace from an obfuscated release build of MoonShot. This error is not present on unobfuscated builds.
This could possibly be because of obfuscation of Companion Objects of these classes. Investigate more and add the proguard rule if necessary.