84 questions
0
votes
0
answers
24
views
Koin VM/navigation on Kotlin Multiplatform - singleton viewmodel becoming unable to launch coroutine after popBackStack
Maybe I'm doing something wrong but this seems very strange to me took me a while to track down the cause but basically ViewModels are getting corrupted whenusing popBackStack or swipe left, vm's are ...
0
votes
0
answers
45
views
Using Clerk in Kotlin Multiplatform (KMP)
I'm trying to implement Clerk authentication in my Android Kotlin Multiplatform project following the official Clerk Android Quickstart Guide, but the SDK artifact referenced in the documentation ...
0
votes
1
answer
117
views
Kotlin arrow optics ksp plugin inside KMP project
Im trying to get the ksp plugin for arrow optics up and running in a KMP project.
I stared by only including the ksp plugin in the Android build file:
plugins {
// ...
alias(libs.plugins.ksp)
}...
0
votes
0
answers
69
views
How to add space between text input and top of keyboard
My screen has an input field at the bottom. When opening the keyboard (Android, iOS), it pushes the input to the top so it stays above the keyboard. The baseline of the input is above the keyboard.
...
0
votes
0
answers
78
views
Kotlin Multiplatform: slow iOS debugging in Android Studio?
I’ve been experimenting with debugging the iOS side of a Kotlin Multiplatform project directly in Android Studio. Overall, it works — I can set breakpoints in shared Kotlin code, step through logic, ...
3
votes
1
answer
110
views
How to bundle an additional JAR file (updater) into a Compose for Desktop installer?
Problem Description:
I'm developing a Kotlin Multiplatform application with Compose for Desktop and want to implement an auto-updater. My architecture consists of two parts:
The main application (...
2
votes
1
answer
209
views
Setting up cocoapods on kmp (kotlin multiplatform) project in separate gradle file
Im trying to setup cocoapods in kmp project on android studio in separate cocoapods.gradle.kts file to be able to exclude it if platform is windows and run it if its mac.
In my build.gradle.kts:
if (...
0
votes
1
answer
100
views
How to override language to get localised string for a specific language in Kotlin Multiplatform project?
I have 2 language support in my app. Language files are arranged like below:
composeApp/src/commonMain/composeResources/values/lang.xml
composeApp/src/commonMain/composeResources/values-bn/lang.xml
...
0
votes
0
answers
42
views
how to take full screenshot in KMP Compose. actual iOS
package goodeva.smartsafety.opa.kmp.presentation.feature.upload
import platform.UIKit.*
import platform.Foundation.*
import platform.CoreGraphics.*
import kotlinx.cinterop.*
actual class ...
1
vote
0
answers
137
views
SwiftKlib plugin fails: cinterop... .klib does not exist – how to resolve?
I'm using the SwiftKlib Gradle Plugin in my Kotlin Multiplatform Mobile (KMM) project to call Swift code from Kotlin/Native.
When i click sync i get errors like this:
Failed to generate cinterop for :...
0
votes
0
answers
52
views
Voyager - How to hide bottom bar on detail screen and preserve tab state?
I'm using Voyager for bottom tab navigation in my Jetpack Compose app. I have four tabs: Home, Appointment, Prescription, and Profile, each defined using TabNavigator.
Inside each tab, I want to ...
4
votes
2
answers
683
views
Undefined symbols for architecture arm64: "_kfun:androidx.lifecycle.viewmodel.compose
I'm facing an issue when building the iOS app for KMP
Undefined symbols for architecture arm64: "_kfun:androidx.lifecycle.viewmodel.compose#...
0
votes
0
answers
64
views
AWS Cognito User Pool save Google user from mobile
I'm doing KMP project with AWS Cognito without libraries and I want to add Google sign in.
I added Google in Federated identity provider sign-in and when I test it on webpage Cognito provides, it ...
1
vote
1
answer
63
views
passing context to android platform in kmp project
in my kmp project i want to implement a reminder in android and ios platform .
interface ReminderScheduler {
fun scheduleReminder(reminder: Reminder)
fun cancelReminder(id: String)
}
expect ...
0
votes
1
answer
94
views
Kotlin Multi platform Long Decimal Decoding fails
Kotlin Multi platform - Decoding fails - with Double with more decimals
{
"Test": [0.1, 0.01, 0.001, 0.0001, 0.0001]
}
Note: The challenge is not in Kotlin alone. The change is with Kotlin ...
0
votes
0
answers
83
views
How to migrate a SQLDelight DB in a KMP app using code migration?
The documentation on the Code Migration section states how to perform such migration but it doesn't say where do you put this code, or if there's something else to do to make it work.
1
vote
1
answer
192
views
Compose Multiplatform: java.lang.IllegalStateException: Could not load font in multi-module project
I’m working on a multi-module Compose Multiplatform (CMP) project and created a new CMP library module using libs.plugins.multiplatform.library.
However, when I added font resources and tried to use ...
0
votes
0
answers
74
views
KMP project using shared module with maven local. Shared module not found
I'm starting a KMP project using native UI's (Compose and Swift UI) and want it to control the shared module version independently by platform.
The project was created with the KMP Wizard.
When some ...
0
votes
0
answers
87
views
KMP: Platform directory inside shared directory
I'm pretty new to KMP and see often in sample code that there is an androidMain on the same level as commonMain and iOSMain. This is straight forward and I understand this.
BUT there are also platform ...
2
votes
1
answer
145
views
Knuth Morris Pratt Algorithm
Given a string of DNA characters (accepted characters: A, C, G, T) and a disease, with gene x (consider a pattern P to be found) also using the same alphabet.
The task is to search the DNA strand ...
1
vote
2
answers
676
views
CMP/KMP iOS build failed with "No matching variant of androidx.compose.foundation:foundation:1.7.0.."
I have composed a multiplatform project with Android and iOS. The Android app runs and installs successfully, but when I run the iOS app from XCode build, it fails with the below error.
🛑 No ...
0
votes
0
answers
87
views
How can i upload image to firebase storage from compose multiplatform Uri? and why i can't use await?
protected suspend fun uploadProfileImage(userId: String, imageUri: Uri): String {
val fileRef = storage.reference.child("profile_images/$userId.jpg")
fileRef.putFile(imageUri).await()...
0
votes
0
answers
101
views
Get the point of user clicked on the MKMapView kotlin multiplatform
I have started a new project with KMM(Kotlin multiplatform).
I need to use the original IOS map (MKMapView) in my project.
According to the instructions of this article
integrating-mapkit-in-compose-...
0
votes
0
answers
436
views
How to implement Google authenticate with Firebase using Compose Multiplatform
I tried to implement the Google authentication with Firebase in Compose Multiplatform framework using Kotlin in mobile engineering, but I didn't find the way to build it for iOS. I composed the Google ...
1
vote
0
answers
114
views
How to use KMP project as Module in Android Project
I have created a separate KMP project using KMP Wizard and I am using native UI for both platform(Android and iOS) in respective folders, Maintaining the business logics in shared Folder with clean ...