Morfly / ksp-sample

Kotlin Symbol Processing (KSP) sample project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Kotlin Symbol Processing (KSP) Sample Project

Sample annotation processor created with Kotlin Symbol Processing (KSP) API. The repository supplements a blog post "So, how do I write a Kotlin Symbol Processor (KSP)?" featured on ProAndroidDev.com.

There are 2 working directories in this repository:

  • completed - contains the completed project with the KSP annotation processor that is ready to run. Open main-project/.../Main.kt and run the main function to see the code generation in action.
  • start - contains the minimum project configuration to start writing a custom Kotlin symbol processor.

About

Kotlin Symbol Processing (KSP) sample project

License:MIT License


Languages

Language:Kotlin 100.0%