ribesg
02/04/2020, 2:43 PMNativeBuildType
do? When setting it to RELEASE
, it strips the result from at least 2 enums in the code leading to crashesArtyom Degtyarev [JB]
02/04/2020, 2:59 PMrelease
and debug
modes, see https://github.com/JetBrains/kotlin/blob/master/libraries/tools/kotlin-gradle-plugin/src/main/kotlin/org/jetbrains/kotlin/gradle/targets/native/NativeBinaryTypes.ktribesg
02/04/2020, 3:00 PMoptimized
ribesg
02/04/2020, 3:01 PMoptimized = true
leads to the errorribesg
02/04/2020, 3:01 PMkotlin.RuntimeException: Unexpected receiver type: com.mydomain.SomeEnum
Artyom Degtyarev [JB]
02/04/2020, 3:08 PMribesg
02/04/2020, 3:09 PMribesg
02/04/2020, 3:12 PMribesg
02/04/2020, 3:17 PMribesg
02/04/2020, 3:26 PMribesg
02/04/2020, 3:31 PMribesg
02/04/2020, 3:33 PMApiParticipationStatus
is an alias for the SomeEnum
in the error message, but removing the alias doesn’t change anything. Making this of
function return just one value of the Status
enum removes the errorribesg
02/04/2020, 3:40 PMArtyom Degtyarev [JB]
02/04/2020, 3:41 PMribesg
02/04/2020, 3:42 PMArtyom Degtyarev [JB]
02/04/2020, 4:06 PMribesg
02/05/2020, 9:00 AMList
, but not in my case. Or maybe there’s some list in an enumArtyom Degtyarev [JB]
02/05/2020, 9:06 AMribesg
02/05/2020, 10:35 AM