v79
11/25/2020, 9:10 AMcomponents.main {
// Compile the component into an executable and a Kotlin/Native library.
outputKinds = [EXECUTABLE, KLIBRARY]
}
Which we all know doesn't work, components.main
is completely invalid syntax. I tried creating an empty Kotlin/Native library using Intellij's new project wizard did not add anything like outputKinds = KLIBRARY
.Artyom Degtyarev [JB]
11/25/2020, 9:14 AMv79
11/25/2020, 9:34 AMv79
11/25/2020, 9:47 AMbinaries {
executable("waveshare") {
this.optimized = false
entryPoint = "org.liamjd.pi.main"
}
}
v79
11/25/2020, 9:47 AMbinaries {
staticLib {
this.optimized = false
}
}
Artyom Degtyarev [JB]
11/25/2020, 9:52 AMsharedLib
, I suppose. Also, feel free to share your experience here, and file bugs at kotl.in/issue, Kotlin team is always interested in feedback.v79
11/25/2020, 9:53 AMUByteArray
which is already causing problems.v79
11/25/2020, 10:01 AMArtyom Degtyarev [JB]
11/25/2020, 10:50 AMfun exposeByteArray(): ByteArray =byteArrayOf(0x01, 0x00)
This should generate correct symbol for the library.
Please give it a try, and if it work for you too I think we’ll be able to mark ticket correctly, and go to the https://youtrack.jetbrains.com/issue/KT-36878 for the upvote button 😄v79
11/26/2020, 8:54 PMv79
11/26/2020, 9:17 PM