Can KSP be used to generate Kotlin code from some ...
# ksp
t
Can KSP be used to generate Kotlin code from some files in resources? I am looking for something similar to how the Android R class is generated from resources. Can KSP be used for this?
đźš« 2
e
you don't need ksp for this, you can register a gradle task that generates it, possibly using https://square.github.io/kotlinpoet/
plus1 1
t
Thanks, I will look into it.
j
KSP can’t read resource files, so no.