I want to use kotlinx.serialization, but we also r...
# serialization
j
I want to use kotlinx.serialization, but we also really need strong obfuscation. Is there any way to use kotlinx.serialization (with retrofit) that would allow me to ignore the proguard rules, and move back to full obfuscation?
d
@SerialName
everywhere.
j
Well the issue is i want to use a nice api for retrofit, and i am currently using jake wharton's converter for retrofit. However, that does not work without proguard rules (so requires no obfuscation). I think an explicit Serializer module might work somehow, or just explicitly passing the serializer. Not sure what thebest way would be to allow obfuscation, but keep a nice retrofit service api
My current solution is instantiating a SerializersModule and just enumerate each
SerializableDataClass.serializer()
method, i am just hoping for sth better