KSP / Kotlin Symbol Processing
Moving repetitive routing code to build time.
Defining the navigation graph by hand created repetitive code and merge problems as new screens were added. I developed a proof of concept for a KSP processor that reads @Destination annotations and generates the graph.
- 01 / SOURCE@Destination
- 02 / PROCESSORKotlin Symbol Processing
- 03 / OUTPUTGenerated navigation graph
My contribution was the proof of concept and initial processor. The framework team matured it and took it into the shared infrastructure and production.