Skip to content

Migrate from Gson to kotlinx.serialization #68

Description

@yuga-hashimoto

現状

  • Gson + TypeToken で JSON シリアライズ

推奨

  • kotlinx.serialization に移行
  • @serializable アノテーションで compile-time チェック
  • OkHttp の converter を kotlinx.serialization に変更

根拠

  • KMP 互換(将来の iOS 展開の布石)
  • null safety がコンパイル時に保証
  • TypeToken の不要な boilerplate 削減
  • Kotlin 公式推奨ライブラリ

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions