Has anyone shared a module that uses kotlinx.seria...
# kotlin-native
l
Has anyone shared a module that uses kotlinx.serialization to iOS? Even if I use implementation() in my build.gradle, it still exposes Decoder on my header file, like so:
Copy code
__attribute__((swift_name("Decoder")))
@protocol CommonDecoder
 (BOOL)decodeBoolean __attribute__((swift_name("decodeBoolean()")));
- (int8_t)decodeByte __attribute__((swift_name("decodeByte()")));
- (unichar)decodeChar __attribute__((swift_name("decodeChar()")));
- (double)decodeDouble __attribute__((swift_name("decodeDouble()")));
...
@end;
this causes import issues with Swift.Decoder and Swift.Encoder. How can I change the swift_name of this class that I dont own?
s
Wanna create a YouTrack issue? I know you've been facing this for a while and haven't found any answer on slack communities yet.
l
Good idea, will do 🙏 Sadly this conflict is bothering lead engineers of my company and I feel responsible for this. Filled here https://youtrack.jetbrains.com/issue/KT-49009, thanks for the suggestion!