Skip to content

A Kotlin Symbol Processor to generate type adapter for GSON model class at compile time

License

Notifications You must be signed in to change notification settings

wsxyeah/gson-ksp

Repository files navigation

GSON-KSP

This is a ksp plugin to generate type adapter for your GSON model class.

Since most reflection operations at runtime are avoided, it is supposed to be faster than the normal GSON serializaiton/deserializaiton process.

Note this project is still working in progress 🚧.

TODOs

  • Java deserialization code generation
  • Java serialization code generation
  • Java TypeAdapterFactory generation
  • Basic @SerializedName annotation support
  • Kotlin code generation
  • Code decoupling
  • Replace switch-case branching with HashMap for better performance
  • Field include/exclude rules support
  • Code generation on demand

About

A Kotlin Symbol Processor to generate type adapter for GSON model class at compile time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published