What is the correct way to introduce custom code generator for anvil running in KSP mode?
IlyaGulya opened this issue · 6 comments
IlyaGulya commented
Previously we've had to implement CodeGenerator
and provide it with @AutoService(CodeGenerator::class)
Do we now just implement regular KSP processor and apply it as any other?
IlyaGulya commented
I've made a KSP processor, it seems to be working just fine.
I will not close this issue, in case you have some concerns 🙂
matejdro commented
Does that mean that custom code generators for Anvil are now deprecated?
RBusarow commented
Not at all.
matejdro commented
So, approach from poster above is not correct?
IlyaGulya commented
So, approach from poster above is not correct?
No, if you're using Anvil in KSP mode, you will need KSP processor.
Otherwise you will need a regular anvil code generator.
matejdro commented
But I assume that eventually everything will be moving away from kapt to ksp? And then it will be deprecated?