Join Slack
Powered by
In my KSP processor, how do I tell if my current t...
# ksp
m
martmists
01/26/2023, 11:59 AM
In my KSP processor, how do I tell if my current target is a native android target vs a wasm target vs a regular native target? I couldn't find anything on SymbolProcessorEnvironment providing that information
r
Robert Jaros
01/26/2023, 12:11 PM
You can't, but there are workarounds possible: check discussion
https://github.com/google/ksp/pull/1021
Robert Jaros
01/26/2023, 12:13 PM
You can see working example in KVision sources:
https://github.com/rjaros/kvision/blob/master/kvision-tools/kvision-ksp-processor/src/main/kotlin/io/kvision/ksp/KVProcessor.kt#L79
m
martmists
01/26/2023, 12:45 PM
I see your solution relies on the sourceset name rather than its type, is there any way around this until #1021 is merged?
15
Views
Open in Slack
Previous
Next