Josh Yun
05/02/2022, 12:38 PMsealed class Data
object DataChild1 : Data()
object DataChild2 : Data()
and this is what I am trying to do:
val dataList = Data::class.sealedSubclasses.mapNotNull { it.objectInstance }
It works fine when I do not apply obfuscation.Josh Yun
05/02/2022, 12:39 PM@Keep
-keep * extends Data
-keep class kotlin.Metadata { *; }
none of those worked 😞