I have a module `core` that declares some core dat...
# serialization
c
I have a module
core
that declares some core data types, and another module
feat
that provides more features around them. In particular,
feat
provides a custom KotlinX.Serialization format. Still, I want
core
data types to be serializable in all formats. What I've done: •
core
has an
implementation
dependency on
kotlinx-serialization-core
core
data types have
@Serializable(with = …)
with a handwritten serializer. Do I need the serialization plugin on that module?
👌 1
e
AFAIK yes. it's important that the compiler plugin translates
@Serializable(with = …)
into a static
serializer()
function on the class