Category "kotlin-multiplatform"

How we can mock a CoroutineDatabase in ktor?

I use the KMongo tool How we can mock a Coroutine Database? How can we mock our database in a koin module? Is there a way to do this? Thanks for guiding me Meth

Xcode fails to build KMM project due to shared:linkPodDebugFrameworkIos

I am building a small project with KMM, it builds perfectly fine on android but cannot build it in XCode. Cocoapods was also installed an genereted without any

Gradle multi-project only executes tests for one project

I have a multi-project gradle build with four Kotlin Multiplatform modules, two of which have tests. When I run gradle check, if any of the tests from one of th

Observe stdout from multiplatform kotlin commonTest code

I just want to see the output from a few simple println(...) in my Kotlin mulitplatform commonTest code. My build.gradle.kts looks a little like: import org.je

KMM on iOS: There is no event loop. Use runBlocking { ... } to start one

I'm trying to use coroutines in a Kotlin Multiplatform project. I'm not experienced in either. I'm trying to call this function fun startFlow { coroutineSco

KMM - Casting a sealed class/interface in swift not possible

Within my KMM library I use sealed interfaces/classes to represent certain states/errors. I decided to use sealed interfaces/classes because these states must h

Kotlin Multiplatform Project Unit Test Issue

Today I just updated my Android Studio to Android Studio 3.5.2 Build #AI-191.8026.42.35.5977832, built on October 31, 2019 JRE: 1.8.0_202-release-1483-b49-5587

KMM: Compilation failed: Unexpected IrType kind: KIND_NOT_SET

I'm trying to run tests in the shared library. Setup (versions should be the same for both machines - all are up to date as of today): Kotlin 1.6.21 (tried 1.6.

Kotlin Multiplatform Compose + Desktop + Web + Mobile

Is it possible at the moment to have a kotlin multiplatform project using compose for sharing the ui code for desktop, web, and mobile at the same time? All the

Azure pipeline fails on building Kotlin Multiplatform shared framework usinig embedAndSignAppleFrameworkForXcode and fastlane

I'm working on a Kotlin Multiplatform project which is building fine locally but I can't get it to work on an Azure DevOps pipeline. Some good things to know: n

Unable to bring window to foreground with compose desktop

With the following code the application window can be hidden using the button and restored using a global shortcut ALT+S. Now I would like to also use the short