I'm using kotlinx.serialization in my android library (first time developing a library). Does anyone know if I need to supply any r8 rules for consumers of the library? I'm not proguarding/r8ing my library, but if an app uses r8 and uses my library will it still know to retain those Serialized fields? according to the docs https://github.com/Kotlin/kotlinx.serialization?tab=readme-ov-file#android i shouldn't have to add anything in my app, but now I'm curious if its any different if its an android library?
e
ephemient
10/22/2025, 7:06 PM
are you looking up any serializers at runtime or is everything statically referenced?
ephemient
10/22/2025, 7:08 PM
the proguard rules in kotlinx.serialization will carry through to your consumers, you don't need to re-export them. but there are a few cases where you might need your own rules
❤️ 1
c
Colton Idle
10/22/2025, 7:10 PM
Nothing too crazy. Seems like everything is statically referenced.