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 themain
function to see the code generation in action. - start - contains the minimum project configuration to start writing a custom Kotlin symbol processor.