Add support for variant aware KSP arguments
See original GitHub issueI would like to provide variant specific KSP arguments. For example, I would like kspDebug
and kspRelease
to have different arguments.
An example use case is Room
or DeepLinkDispatch
. Both are kotlin symbol processors which write output to a directory. The directoy must be task specific so that kspDebug
and kspRelease
do not write to the same directory. Two tasks which write to the same directory disable up-to-date checks and caching in Gradle because the build becomes non-deterministic.
For reference, Java annotation processors and KAPT both provide a way of passing task specific arguments to the annotation processors.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:20
- Comments:7 (3 by maintainers)
Top Results From Across the Web
PartVariant Guide - Modelling and Texturing Discussion
I'm trying to figure out why you are attempting to use MM value lookups; are you trying to add color tints to pre-existing...
Read more >Nelson Osacky on Twitter: "@ZacSweers @Sp4ghettiCode Do you ...
I have some fun KSP cacheability issues for you to add. ... Add support for variant aware KSP arguments · Issue #861 ·...
Read more >Room & Kotlin Symbol Processing - Medium
The goal of this post is to give a head start to annotation processor authors on what to look out for when adding...
Read more >FAQ — PETSc 3.18.2 documentation
Why doesn't PETSc use Qd to implement support for extended precision? ... SNESSetFromOptions(), or KSPSetFromOptions() reset all the parameters I previously ...
Read more >So, how do I write a Kotlin Symbol Processor (KSP)?
contravariant — Type<in OtherType> (we add in before the actual type); invariant — Type<OtherType> (just add the argument type itself). After we ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Forget my comment above. It is not needed since we will not be passing arguments from AGP’s
CommandLineArgumentProvider
to KSP.This issue to add support for variant aware KSP arguments has no status update.
I might not have full context on this issue, what’s the current status?