SrSouza
08/07/2023, 3:27 PMNSDictionary
.
Our working code on Android is crashing on iOS because of that.
Anyone face that issue and know if there is any workaround to force to keep the JsonObject type?SrSouza
08/07/2023, 3:29 PMpublic fun JsonObject.asPrimitiveMap(): Map<String, Any?> =
entries.associate {
it.key to it.value.extractedContent
}
__attribute__((objc_subclassing_restricted))
__attribute__((swift_name("SerializationExKt")))
@interface KotlinSharedSerializationExKt : KotlinSharedBase
+ (NSDictionary<NSString *, id> *)asPrimitiveMap:(NSDictionary<NSString *, KotlinSharedKotlinx_serialization_jsonJsonElement *> *)receiver __attribute__((swift_name("asPrimitiveMap(_:)")));
@end
Is crashing on iOS when trying to call entries
Alex Acosta
08/15/2023, 9:24 PMAlex Acosta
08/15/2023, 9:24 PM