An annotation processor that generates Moshi adapters from Kotlin classes. There is a reflective adapter for Kotlin but that requires the Kotlin reflection library which adds a lot of methods and increases the binary size which in a constrained environment such as Android is something is not preferable. This is where Kotshi comes in, it generates fast and optimized adapters for your Kotlin data classes, just as if you'd written them by hand yourself. It will automatically regenerate the adapters when you modify your class. It's made to work with minimal setup, through there are limitations. Most of the limitations will be addressed as the support for Kotlin annotation processors improves.

Features

  • Documentation available
  • Examples available
  • You can use default values just like you normally would in Kotlin
  • Registered adapters
  • Kotshi only processes files written in Kotlin, types written in Java are not supported
  • Only data classes, enums, sealed classes and data objects are supported
  • Only constructor properties will be serialized

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

Apache License V2.0

Follow Kotshi

Kotshi Web Site

Other Useful Business Software
Build AI Apps with Gemini 3 on Vertex AI Icon
Build AI Apps with Gemini 3 on Vertex AI

Access Google’s most capable multimodal models. Train, test, and deploy AI with 200+ foundation models on one platform.

Vertex AI gives developers access to Gemini 3—Google’s most advanced reasoning and coding model—plus 200+ foundation models including Claude, Llama, and Gemma. Build generative AI apps with Vertex AI Studio, customize with fine-tuning, and deploy to production with enterprise-grade MLOps. New customers get $300 in free credits.
Try Vertex AI Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Kotshi!

Additional Project Details

Programming Language

Kotlin

Related Categories

Kotlin Libraries

Registered

2024-02-12