Questions tagged [kotlin-multiplatform]

Refers to Kotlin Multiplatform projects, aimed to share codebase between JVM, JS, Android, and Native

Filter by
Sorted by
Tagged with
-1 votes
0 answers
10 views

Kotlin Multiplatform and KOtlin Compose Multiplatform

I would like to start with Kotlin Multiplatform and KOtlin Compose Multiplatform. Can I build an Android and iOS APP with a windows laptop. For info i only have a windows laptop and an old Ipad.
Canjo's user avatar
  • 13
-3 votes
0 answers
28 views

adding numbers in mobile development (newbie) [closed]

I decided to learn the kotlin language for mobile development, but I didn't think that I would face such a problem as transferring a value from a list to a variable, and also if I can't get around ...
M20D's user avatar
  • 1
1 vote
1 answer
33 views

XCode 15 simulator issue

I am trying to build a KMM project. Was working absolutely fine until some setting was updated accidentally. Ever since then I am not able to run the app from XCode. Here is the error I am getting: ...
Pranit Rane's user avatar
0 votes
0 answers
7 views

Kotlin Compose Multiplatform Desktop JVM Fatal Error

I'm looking to learn and test Compose Multiplatform. I've cloned https://github.com/JetBrains/compose-multiplatform-template and Gradle builds OK. When running the build though, the JVM hits a fatal ...
Adam's user avatar
  • 33
0 votes
1 answer
23 views

Is there a way to pass arguments between screens (navigation) for Kotlin Mulitplatform Desktop with Compose?

Quick Summary: Build Script isn't working with 'Compose for Desktop'. I have been able to use compose quite extensively (in terms of composables), and now unable to use the navigation part. I am ...
BoydyBoydy's user avatar
0 votes
0 answers
22 views

Is it possible to run shared computer vision model on camera in Kotlin Multiplatform?

Let's assume I have camera stream from IOS / Android. What kind of stream should it be? Can I have the same implementation for both platforms for running model on this stream? The model concerns ...
Jubiler's user avatar
0 votes
1 answer
32 views

Can 3rd party compose gradle library dependencies be used with Compose multiplatform?

I recently created my first (iOS & Android) Compose Multiplatform application using the official guide and template app here: Compose Multiplatform official GitHub As I was trying to port an ...
Paul Frank Allan's user avatar
0 votes
1 answer
16 views

KMM: embedAndSignAppleFrameworkForXcode error: Operation not permitted

I'm encountering an error when trying to build the iOS app for my project in XCode. The gradle task fails: Resolve mutations for :GCAppShared:embedAndSignAppleFrameworkForXcode (Thread[#808,Execution ...
realh's user avatar
  • 971
0 votes
0 answers
27 views

Kotlin Multiplatform Mobile (KMM) WebSocket code connecting twice on iOS

I'm working on a Kotlin Multiplatform Mobile (KMM) project where I'm using WebSockets to send and receive messages. I have been following the ktor client and server guides for a simple chat app. ...
Adrian S's user avatar
0 votes
0 answers
17 views

Why ComposeUIViewController callback is called twice in Compose Multiplatform?

I created a Compose Multiplatform project form Compose Multiplatform Wizard. When i ran it on ios simulator it called the ComposeUIViewController callback twice, though MainViewController called only ...
Shoaib Kakal's user avatar
  • 1,130
0 votes
1 answer
41 views

Is it possible to use a native library with platform-specific dependencies in a common KMP module?

My application uses the native library A. It is built as A.so for Android and A.framework for iOS and has the same codebase on both platforms. This library depends on another native library B, which ...
Maxim Sergeev's user avatar
0 votes
0 answers
22 views

Compose Multiplatform GIF

I'm trying to create a compose multiplatform application for Android and iOS. At the moment I am faced with the problem of adding GIFs or lottie animations, because the compose itself does not support ...
Victoria Olegovna's user avatar
0 votes
1 answer
21 views

painterResource is not receiving the parameter with the image kotlin multiplataform

I'm trying to deploy Moko Resource to share images between platforms, I'm using Kotlin Multiplatform. After making all the settings and trying to enter the image path I receive an error message: "...
William Honorio's user avatar
1 vote
2 answers
111 views

Build failed in KMM project in IOS Emulator due to Xcode Run Script phase without specified outputs

I'm working on a Kotlin Multiplatform Mobile project, and while trying to build the iOS side, I'm encountering a build failure related to a script build phase. Here's the warning I'm receiving: ...
Moataz's user avatar
  • 519
1 vote
1 answer
28 views

KMM-iOS - How can I check ios version run time

In swift, the code check availability of APIs on different version. if #available(iOS 14.0, *) { // Do something for iOS 14.0 and later } else { // Fallback on earlier ...
Tam Nguyen Huy's user avatar
0 votes
1 answer
38 views

Seeking Practical Examples or Guidance on Navigation in Kotlin Multiplatform with Jetpack Compose Multiplatform

I am currently exploring Kotlin Multiplatform Mobile (KMP) development and am specifically delving into navigation using Jetpack Compose Multiplatform. While I comprehend the theoretical aspects of ...
Mado's user avatar
  • 339
0 votes
1 answer
21 views

Import .jar into KMM Project Shared Layer

I'm working on a Kotlin-Multiplatform project and I have a certain dependency in shared/build.gradle.kts for iosMain for which I want to edit the source code. shared/build.gradle.kts kotlin { ...
broken-cat's user avatar
0 votes
1 answer
25 views

Does not compare email correctly in exposed

There is a saveUserInfo method that checks if there is a user with such an email, but I log in with the same account and it creates an entry in the database for me every time, although it should not. ...
Morozov's user avatar
  • 4,890
1 vote
1 answer
36 views

How to use a Java library with KMM (Kotlin Multiplatform Mobile)

I am developing an Android application that uses the ST25 library to read NFC ST tags. I would like to port my application also to iOS using KMM, a cross-platform solution based on Kotlin. The ST25 ...
Matteo Trupia's user avatar
0 votes
1 answer
38 views

How do I include JVM dependencies along with an iOS KMM target when deploying to iOS using RoboVM?

Currently writing a LibGDX app that has KMM and JVM sub-projects. They currently compile and run on desktop and Android. Now I'm trying to get it working on iOS, which will use RoboVM. Since the app ...
Mirage's user avatar
  • 21
1 vote
1 answer
80 views

Quarkus returns 415 Unsupported Media Type with multipart when called from a ktor client in kotlin/js

I have this Quarkus endpoint: @POST @Consumes(MediaType.MULTIPART_FORM_DATA) @RolesAllowed("ADMIN") suspend fun createPost( @Context ctx: SecurityContext, ...
Yousef's user avatar
  • 287
1 vote
1 answer
151 views

Kotlin Multiplatform: Execution failed for task ':shared:linkDebugFrameworkIosSimulatorArm64' [duplicate]

When trying to build a Kotlin Multiplatform App for iOS (from both Xcode and Android Studio), an error returns regarding the linkDebugFramework and the PhaseScriptExecution run script. This stacktrace ...
hokobaro's user avatar
1 vote
1 answer
161 views

Kotlin Multiplatform error :shared:linkDebugFrameworkIosSimulatorArm64

I setup a KMP project but I can't start the iOS Simulator. Android works perfectly. When trying to run the iOS the following gradle task fails: The /Applications/Xcode.app/Contents/Developer/...
froots's user avatar
  • 65
1 vote
0 answers
47 views

Another supplier is already registered with the key: DefaultChildStack while using Decompose and Koin

What is expected on process death and orientation change, the component instance be retained and state preserved What I've tried In a compose multiplatform project shared directory class ...
ayitinya's user avatar
0 votes
0 answers
37 views

KMM Memory Leak (RAM + Disk) issue when using MongoDB Realms on iOS

I have been using Java Realm in the past for an Android app, that I migrated recently to Kotlin Multiplatform in order to make it compatible with iOS. After testing, it appears that by running it in ...
rowjammer's user avatar
1 vote
0 answers
58 views

Not able to perform network calls unit testing in KMM (Kotlin multiplatform mobile)

I'm writing my logical part in shared folder. Am using KTOR library to fetch the data from server. Here is my code to fetch the data from server: fun testApi( success: () -> Unit, failure: (...
Ritika's user avatar
  • 66
0 votes
0 answers
11 views

kotlin multiplatform for ios framework with private api : __NSCFBoolean

Use kmm's cross-platform capabilities to create a new kmm app, compile and run iosApp to generate shared.framework, but shared.framework contains private api: __NSCFBoolean. Since the appStore review ...
LRH's user avatar
  • 11
0 votes
1 answer
20 views

KMM library build failed with e: Could not find

When building a Kotlin Multiplatform library, using CocoaPods as explained here: https://kotlinlang.org/docs/native-cocoapods.html you may encounter the following errors: Execution failed for task ':...
Nico's user avatar
  • 2,590
1 vote
0 answers
82 views

Unresolved reference: androidTarget

I am new to KMM. Recently I'm working to builda a Note app usiing KMM. So, after completing the project I'm facing this error. enter image description here My build.graadle.kts(:shared) file plugins { ...
towhidSoyon's user avatar
0 votes
0 answers
25 views

Issue with MOKO Resource Library: Images Directory Not Generated for Compose Multiplatform

I am currently utilizing the MOKO resource library to share resources across a Compose multiplatform project. While the build process seems to work seamlessly for string resources, I am encountering ...
Mado's user avatar
  • 339
0 votes
0 answers
14 views

KMM appLinkIntent on ios

I'm currently learning kmm and cmp in particular and I'm redesigning the project to jetbrains compose from jetpack compose(android-only). Almost all the problems are solved except that I can't imagine ...
Lucker's user avatar
  • 1
0 votes
0 answers
20 views

How can I allow overlapping inside card view in Kotlin multiplatform mobile

I am new to Kotlin multiplatform and trying to create list of card view with the dropdown menu the problem is I could not be able to allow overlapping like I wanted. Box( modifier = ...
salih suat kükrer's user avatar
0 votes
0 answers
39 views

Plugin error when adding Kotlin Multiplatform Mobile project to android gradle multiproject build

I have two projects, android library (which is supposed to be used in other projects) and Kotlin Multiplatform Mobile project which holds some common code to be shared between android and iOS versions ...
Piotr Śmietana's user avatar
0 votes
1 answer
76 views

The authentication session doesn't behave as intended when wrapped with 'authenticate("auth-session")' in my app

Here is my main class in which I configure all the components of the application: internal fun Application.module() { install(Koin) { modules(getKoinModule()) } val localSource ...
Morozov's user avatar
  • 4,890
0 votes
0 answers
41 views

Trouble accessing shared Kotlin Multiplatform Mobile (KMM) code in iOS static library

I’ve been working on a Kotlin Multiplatform Mobile (KMM) project and have successfully shared common code between an Android app in Android Studio and an iOS app in Xcode. However, I’m facing an issue ...
Raja Yendluri's user avatar
0 votes
0 answers
22 views

How to publish a KMM library for android project to consume it?

I have made a KMM library, I want to publish it in localMaven so that native android app can consume it. I am following this article, But the issue is after running the command ./gradlew ...
Abhishek Agarwal's user avatar
0 votes
0 answers
25 views

didFinishPickingMediaWithInfo not called when using UIImagePickerController in KMM (Compose Multiplatform)

I'm trying to use UIImagePickerController in KMM project (Compose Multiplatform) @Composable actual fun ImagePickerView() { var bitmap by remember { mutableStateOf<ImageBitmap?>(null) } ...
Lubomir Babev's user avatar
0 votes
0 answers
22 views

How can I detect keyboard opening and closing in compose multiplatform?

All the answers that i saw related to detecting the Keyboard open and close event are specific to android (using the WindowInsets). Is there a way to get the keyboard open/close event in the shared ...
David's user avatar
  • 1,016
0 votes
2 answers
109 views

Compose Multiplatform vs Jetpack Compose on Android

I understand that Compose Multiplatform, when used for iOs, is not SwiftUI. But what about when using Compose Multiplatform in KMM, is Compose Multiplatform on Android the same as the original Jetpack ...
stefan.at.kotlin's user avatar
1 vote
0 answers
25 views

The nuances of working with deep links in Compose Android

Good day! I’m trying to understand the nuances of Deep Links’ work and some questions arose that I couldn’t find the answers to on my own. The questions are: Is it possible to implement a navigation ...
Сергей Беляков's user avatar
0 votes
1 answer
31 views

Open up Touch Keyboard on Kotlin Compose Desktop Text Fields Windows 10

I'm having difficulty getting the soft keyboard to automatically show up in a Kotlin Multiplatform with Compose Desktop app on a Windows 10 device set in tablet mode on a Pipo touch screen computer. I ...
Jesser's user avatar
  • 86
1 vote
1 answer
77 views

TLS sessions are not supported on Native platform

I'm getting a "TLS sessions are not supported on Native platform" message I'm building an application using KMP (KMM previously) and I'll have to send some requests to an API. This is how I'...
Abdulrahman Hasanato's user avatar
0 votes
1 answer
45 views

Can I call Swift URL Session from Kotlin Multiplatform?

I am working on an architecture where View is in Swift, VM in swift, however want to get the repository in Kotlin multiplatform. I understand immediate question would be why you want to separate ...
Dipesh Pokhrel's user avatar
0 votes
0 answers
37 views

Kotlin MPP: iOS Memory overload when using Kotlin defined function

I’m creating a kotlin multiplatform application that runs on web, iOS and Android that will process images captured from the device’s video stream. The processing works fine on Android and web, but ...
Callen's user avatar
  • 1
0 votes
1 answer
61 views

How to get reference objects in many-to-many relationship in Realm (Kotlin SDK)?

I'm trying to implement a many-to-many relationship between Record and Tag objects. Each Record can have multiple tags. open class Record : RealmObject { @PrimaryKey var id: String = "&...
San's user avatar
  • 66
0 votes
0 answers
32 views

Import jar into Kotlin multiplatform with gradle

I am trying to figure out the best way to import a jar with Kotlin Multiplatform with Gradle. I have tried doing an implementation(file("path)) in my JVM source set, but that has not worked for ...
Kerry's user avatar
  • 283
1 vote
1 answer
19 views

Unable to import AppDatabase.Schema into KMM Android DatabaseDriverFactory

Just trying KMM with sqldelight 2.0.0. AppDatabase is correctly generated: However I am unable to import it into my DatabaseDriverFactory: ` What am I missing here? The AppDatabase is generated and ...
stefan.at.kotlin's user avatar
0 votes
1 answer
45 views

Kotlin Multiplatform generated code is not aware of target's code

I've a KMP shared module that imports a KSP library to generate code for iOS targets, and it works as expected: However, I’m facing a strange behavior; my generated code cannot see/access what’s in ...
GuilhE's user avatar
  • 11.6k
0 votes
0 answers
54 views

How to Integrate Kotlin Multiplatform Static libraries in xcode ios mobile

listOf( iosX64(), iosArm64(), iosSimulatorArm64() ).forEach { it.binaries.staticLib { baseName = "shared" } } The above code shared Module level build.gradle.kts ...
Raja Yendluri's user avatar
0 votes
0 answers
32 views

How to get the reference of the KotlinNativeTarget object that I have instantiate from a kotlin{} block, to use it on another task?

I want to create a gradle plugin, to handle my kotlin-native project(s). Since I am reusing part of the logic, the obvious thing to do is to create a stand-alone plugin. The problem is that my logic ...
Panayotis's user avatar
  • 1,802

1
2 3 4 5
28