edrd
08/24/2021, 9:44 PMCodeGeneration
API does not seem to support writing to a different source set rather than the one being processed. My workaround is to pass fileName = "../../(a lot more "../")/jsMain/OutputFileName"
.
Is there any other way to achieve this?edrd
08/24/2021, 9:44 PMedrd
08/24/2021, 9:47 PMtargetPlatform
parameter (of type enum) on CodeGenerator.createNewFile
. What do you think?Ting-Yuan Huang
08/25/2021, 6:12 AMcommonMain
, androidDebug
, jsTest
, etc.
2. Another related issue is providing target or source-set specific ksp configuration, so that ksp doesn't apply on all compilations.
Because this is a new model (compared to kapt), there is no know solution / practice. We are still exploring how to do it right. Ideas are welcome and let's discuss before spending non-trivial amount of time on implementation.edrd
08/26/2021, 12:43 AM