Skip to content

IR requiring KSP #498

Answered by ZacSweers
matejdro asked this question in Q&A
Discussion options

You must be logged in to vote

It doesn't require it, as the docs say you can disable it if you don't need proguard rule gen.

I'm hoping KSP will allow running KSP in parallel to kotlinc. You can also disable it in debug mode and only enable it for your release builds.

On top of all that, IR is still somewhat faster (no generating extra source files that need to be compiled) and allows doing more advanced things in generated adapters than we can't with Moshi-KSP (error aggregation, avoiding reflection with defaults constructors, etc).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ZacSweers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants