square/anvil

What is the correct way to introduce custom code generator for anvil running in KSP mode?

IlyaGulya opened this issue · 6 comments

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?

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 🙂

Does that mean that custom code generators for Anvil are now deprecated?

Not at all.

So, approach from poster above is not correct?

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.

But I assume that eventually everything will be moving away from kapt to ksp? And then it will be deprecated?