grandstaish
08/26/2017, 2:15 AMrawType.kotlin.primaryConstructor
returns null
. What sorts of things do I need to keep in order for kotlin-reflect to be able to find the primary constructor of a class at runtime? Just keeping the @Metadata
annotation methods (as the library suggests) is not enough. Keeping all kotlin classes (-keep class kotlin.** { *; }
) does work, but I'd rather just keep what I need.udalov
-keep class kotlin.reflect.jvm.internal.ReflectionFactoryImpl { *; }
grandstaish
08/29/2017, 1:42 PM-keep class kotlin.reflect.** { *; }
and that didn't fix it either, apparently I need to keep something outside of kotlin-reflect 🤔Metadata
annotation (the readme just says to keep the methods of that annotation)