For questions related to Kotlin Multiplatform Mobile, also known as KMM. It is an SDK for iOS and Android app development. Not to be confused with Kotlin Multiplatform which is abbreviated as KMP. KMM is an subset of KMP.
Questions tagged [kmm]
118 questions
0
votes
0 answers
Best practices for handling platform exclusive features in KMM
I have an existing iOS app and I'm trying out KMM. Ideally, when launched, the app would be available both for Android and iOS, but I'd like for existing iOS users not to lose their current content.
I started building a MigratorService in iosMain,…

Afonso
- 417
- 1
- 5
- 16
0
votes
0 answers
gradle sync is failed with the error "Collection is empty" while Android KMM module integration
Integrated the Kotlin Multiplatform Module in the existing android project but facing the error "collection is empty"

Vivek S
- 1
- 1
0
votes
0 answers
KMM iOS HttpClient NSURLSessionAuthChallengeDisposition type error issue
I am still new to KMM and need help on httpClient to ignore ssl certificate. I had made the request able to ignore ssl certificate by adding the following code to HTTPClient Android Engine:
HTTPClient(Android){
engine{
sslManager = {
…

Mocha Hilman
- 1
- 1
0
votes
0 answers
How remove one specific dependecy from commonMain in Kmm proyect, which generate conflic in Ktor implementation
I was developing an KMM App, where I try to implement an MVVM patter using Kotlin Multiplatform plugin.
My problem comes, due to I implement kotlinx-serialization-json, library, where is expose and incorrect Json classes, whihc throws the following…

Manuel Lucas
- 636
- 6
- 17
0
votes
1 answer
Setup ktor in kmm with android's network_security_config file
I’m integrating the certificate pinning to the ktor kmm
Does ktor use network_security_config file in android or we have to setup with below code programmatically?
actual class Test actual constructor() {
actual val httpClientEngine:…

Hien Nguyen
- 744
- 2
- 7
- 20
0
votes
1 answer
Kotlin multiplatform library exporting dependencies for JVM
I’m creating a multiplatform for jvm and iOS on kotlin using Gradle.
For the jvm, even if I define my dependencies as implementation, they are included in the library generated .pom and with runtime scope.
By using implementation, I was expecting…

Scarminio
- 169
- 1
- 7
0
votes
1 answer
Cross-platform phone authorization
I have an Android app where I use Firebase Auth API to confirm the user's phone, also I have my own server to store user data.
I'm planning to make cross-platform app using kmm. But problem is that Firebase Auth API require call…

MaxAstin
- 463
- 5
- 14
0
votes
1 answer
Model class doesn't find in KMM proyect which use Navigation Component
I was developing an App which make use of the Kotlin Multiplatform plugin, and I try to use the Navigation component, to navigate between the diferent fragments of my app.
My problem comes due to the complex structure of KMM proyect compare with…

Manuel Lucas
- 636
- 6
- 17
0
votes
1 answer
kotlin KMM face for watchOS?
Is it possible to create a Kotlin Multiplatform Mobile (KMM) watch face?
It is possible to set a watchOS target for a KMM app, but this seems to be primarily for a regular watchOS app. I cannot find any documentation about doing this for a watch…

Bastiaan Quast
- 2,802
- 1
- 24
- 50
0
votes
1 answer
Is AES 256 CBC Crypto (Cipher) logic is there in Kotlin Multi Platform (KMM)?
I found AES encryption logic in Kotlin by using JavaX libraries. Since it's specific to java (Android) so it's not executing for iOS.

HARISH KONCHADA
- 1
- 1
0
votes
0 answers
Response of Ktor failed with exception: kotlinx.serialization.json.JsonDecodingException: Unexpected JSON token at offset 0: Expected '[, kind: LIST'
I was developing an App in Kotlin Multiplatform, where I try to implement the regular libraries to networking, and local storage: Ktor with SqlDelight.
After set up the right configuration to make KMM compile fine, I try to connect with an API,…

Manuel Lucas
- 636
- 6
- 17
0
votes
1 answer
Ktor Multiplatform Bearer Token Refresh leads to "mutation attempt of frozen kotlin.native.internal.Ref"
I'm trying to get the Ktor client to refresh a Bearer token in a Kotlin Multiplatform project.
There is an example here how it's supposed to work.
My code for the http client config looks actually quite similar - besides the different requests for…

Jens
- 6,243
- 1
- 49
- 79
0
votes
1 answer
KMM ios flow.combine throwing no event loop error
suspend fun heyStackOverFlow(): Int {
val flow1 = flow { 1 }
val flow2 = flow { 2 }
return flow1.combine(flow2) { f1, f2 -> f1 + f2 }.single()
}
I use this in build.gradle
sourceSets {
val commonMain by getting {
…

Boldijar Paul
- 5,405
- 9
- 46
- 94
0
votes
1 answer
Special characters parsing in Ktor
I am trying to parse some special characters through the api's with Ktor in a KMM project but it seems like Ktor doesn't support it ?.
For eg :- I am trying to parse "Saut� Pans" here "�" is a special character and Ktor throws an exception saying :-…

WhiteSpidy.
- 1,107
- 1
- 6
- 28
0
votes
1 answer
Reading Character Array from Shared class in KotlinMultiPlatform (KMM)
How can I properly read the data from a mutable array in Swift from a Kotlin Module?
Kotlin Shared Module:
data class Tape(private val capacity: Int) {
val reel: MutableList
...
}
Swift:
tape.reel.compactMap({ $0 as? Character…

Travis Baksh
- 43
- 6