kotlin-native Questions
1
I want to use C code in my Kotlin/Multiplatform project (common level).
By this article:
https://theprogrammershangout.com/resources/kotlin/native/creating-c-bindings.md/
I got my .klib file and no...
Ringtail asked 18/10, 2020 at 6:49
0
I cannot find out how to use CPointer in Kotlin/Native; In my iOS source set, I need to build the Kotlin equivalent of the following Object-c code (only including relevant parts of the code):
//Ob...
Ecumenism asked 3/8, 2020 at 3:36
3
My goal is to write a Kotlin library, compile it to WebAssembly and call its functions from JS. Since a few hours I try to get a simple hello world to work. The documentation on this topic is eithe...
Basque asked 10/1, 2019 at 23:5
2
Solved
I want to create an app exposing a web server with a REST API in Kotlin Native, but I can't find any recent project or lib.
There's kwang but it doesn't seems to be maintained anymore and it depend...
Precedency asked 19/11, 2019 at 21:57
1
For the first time, I'm using Android Studio to build a multiplatform project. I have created an Android app module that uses the multiplatform lib on Android.
I have also used XCode to build an iO...
Aileen asked 15/3, 2020 at 10:58
0
I have a project for android that uses an own library with kotlin/native to share it with iOS app. I started it with this tutorial.
It's working perfectly, already on production, so I'm very happy...
Trexler asked 17/3, 2020 at 19:56
1
Solved
Kotlin have great technology for compiling to native binaries - it's based on LLVM.
But Java bytecode can compile to LLVM too - there is a java frontend for compile .class files into LLVM bitcode.
...
Marimaria asked 7/3, 2020 at 17:15
2
Solved
I am trying to include support for ktor and kotlinx (serialization and coroutines to be exact) to my Kotlin/Native project. All libraries work on the Android version of the project, but when I try ...
Supervisory asked 16/1, 2019 at 16:27
0
I want to create a simple multiplatform app for android and IOS this is my common module config
kotlin{
sourceSets{
commonMain{
dependencies{
implementation "org.jetbrains.kotlin:kotlin-stdlib...
Gaffney asked 20/1, 2020 at 3:8
3
Update:
It works if I first execute a coroutine without timeout and then withTimeout. But If I execute a coroutine withTimeout first then it gives me an error. same goes for Async as well.
I am cr...
Deuteragonist asked 17/12, 2019 at 9:4
1
Solved
In my app, I have two classes, a swift class inheriting from a kotlin class:
Swift class:
public class MySensor: RawSensor
[...]
public override func notifyChanged(values: KotlinFloatArray) {...
Oxide asked 7/11, 2019 at 17:19
3
Solved
I'm working on a Kotlin-multiplatform library for Android and iOS. I want to write some platform-specific unit test. The tests run as expected for the shared code and Android but not for iOS.
Belo...
Limy asked 2/1, 2019 at 12:36
1
Solved
Fighting with a Kotlin Multiplatform project I have ended with the problem of needing to work with NsData on my iOS platform from the sharedModule working with Kotlin Native.
Because of this, I ne...
Tracitracie asked 23/10, 2019 at 10:46
1
Solved
The official Kotlin/Native documentation states that Kotlin/Native
.. is an LLVM based backend for the Kotlin compiler.
As far as I understand:
The Kotlin compiler (kotlinc) produces .class ...
Smack asked 10/9, 2019 at 13:44
1
I'm wondering how I'd be able to import my cinterop-ted library to gradle build of the kotlin multiplatform build.
I've already created the library.def file and filled it, I also generated the lib...
Obligate asked 23/7, 2019 at 18:38
1
Solved
Here is a simple script
fun main() {
print("ready> ")
val input = readLine()
println("User input: $input")
}
When I run this program with gradle runReleaseExecutableMacos I expect that I'l...
Coalfish asked 14/7, 2019 at 22:20
1
Solved
I'm found some explanation of Kotlin/Native memory management model in JetBrains FAQ.
A: Kotlin/Native provides an automated memory management scheme,
similar to what Java or Swift provides. T...
Toadstool asked 10/4, 2019 at 10:38
1
Solved
So I know Kotlin Native is obviously Native and Kotlin JVM isn't but is the code between Kotlin JVM and Kotlin Native:
1. Different Compiler and Different Code
2. Different Compiler and Similar Cod...
Sarina asked 28/3, 2019 at 21:58
1
Solved
OK, so I want to create a native app to read some environment variables, and based on some business logic, change the value of them to something else. I decided to do it in Kotlin.
I managed to fi...
Lyte asked 5/3, 2019 at 10:4
2
Solved
I'm trying to call Swift/Objective-C code from Kotlin in a multiplatform project. There are no problems with calls to platform code. But when I'm trying to call some library (or framework, not sure...
Surefire asked 2/1, 2019 at 11:24
1
Solved
I'm beginner in Kotlin native and my objective is build a lib that our Rest APIs include it and I use it on iOS and Android.
I knew ktor and implemented this in my project but when I run build proj...
Ezraezri asked 8/1, 2019 at 8:12
1
I'm trying to use cocoapods framework in Kotlin Multiplatform project.
So I
added framework to Pods file.
ran pod install.
created .def file
added cinterop config in build.gradle
./gradlew cinte...
Romanfleuve asked 5/1, 2019 at 0:3
1
Solved
I'm trying to understand the journey Kotlin source code goes through when it is compiled. The documentation states
When targeting the JVM, Kotlin produces Java compatible bytecode. When targetin...
Matriculate asked 25/11, 2018 at 22:36
2
Solved
I'm trying to add a vendored framework built with Kotlin/Native in a private CocoaPod but I get an error:
I have generated an iOS framework with Kotlin/Native.
I copy the framework folder (compil...
Gabrila asked 27/2, 2018 at 20:55
2
Solved
In a C++ file, I want to convert a const char* to KString, so that I can then pass the KString to a Kotlin file using Kotlin/Native.
I believe the answer lies in the function
OBJ_GETTER(utf8ToUt...
Animalcule asked 5/12, 2017 at 23:41
© 2022 - 2024 — McMap. All rights reserved.