Hi, I am trying to write a KSP which reads Android...
# ksp
s
Hi, I am trying to write a KSP which reads Androids
strings.xml
file from a given path and generates some code from it. The KSP would need to re-run whenever the
strings.xml
file changes (i.e. someone adds a new string). If I understand the docs on incremental processing correctly, then this is not possible because only Kotlin and Java files are tracked for changes? Is there any workaround for this problem?
e
sounds like something that should be done outside of KSP. a Gradle task that has
strings.xml
as input and produces a
OutputDirectory
of sources can be wired up to the main sourceset and it'll all work.
s
Thanks for the reply! Then I will try to do it with a gradle task 👍