Hello guys, I am trying to use UnsingedIntegers in...
# multiplatform
Hello guys, I am trying to use UnsingedIntegers in my multi-platform project. I use it almost everywhere and I want to pass the compiler flag to avoid using annotations everywhere (https://kotlinlang.org/docs/reference/experimental.html#module-wide-use). I am also using the gradle kotlin-multiplatform and could someone tell me where I can put the compiler flag in the plugin?
In addition: is there a describtion of the kotlin-multiplatform gradle plugin anywhere? I mean something like an API of it, all the possible things one can do with it? All I could find were tutorials that describe a part of it. I also was not able to find the source for it. Forgive me if this a silly question, I am quite new to gradle as a whole.
Yes, you can pass compiler flag to every module that suppress experimental annotations of particular type
I believe this is the main official doc about multiplatform plugin https://kotlinlang.org/docs/reference/building-mpp-with-gradle.html#gradle-plugin
@gildor But where is the gradle plugin do I do that? In the multiplatform plugin, which object has the kotlinOptions propery?
Second section in official doc
Geez, thanks, missed it
Where could I find information on how to include node modules in the plugin? The plugin seems to support them, as I can tell from the available tasks. But also was not able to find any documentation on how to specify them
To be more precise, how can I affect what happens here?
It’s experimental feature of JS target, you can find some details in release notes https://blog.jetbrains.com/kotlin/2019/06/kotlin-1-3-40- As I remember it also works for MPP plugin for js target
Awesome, thank you! Can we expect more documentation on this in the future?
What I mean is it would be nice to have someplace where the entire plugin API is documented. But in any case thanks for the help!