Join Slack
Powered by
Can KSP be used to generate Kotlin code from some ...
# ksp
t
Thomas
01/12/2022, 1:43 PM
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
evant
01/12/2022, 2:14 PM
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
Thomas
01/12/2022, 2:16 PM
Thanks, I will look into it.
j
Jiaxiang
01/12/2022, 7:53 PM
KSP can’t read resource files, so no.
3
Views
Open in Slack
Previous
Next