All Questions
Tagged with kotlin kotlin-multiplatform
1,262
questions
0
votes
0
answers
14
views
Error "Caused by: org.gradle.api.UnknownDomainObjectException: SourceSet with name 'commonTest' not found." while trying to register a gradle task
I have the following issue with Android Studio in my Kotlin Multiplatform Project.
I want to add conformance tests to my project and for this i wanted to add a new source set and have all the test ...
0
votes
0
answers
21
views
How easy would it be to build a native android app with Kotlin and then use the same code with Kotlin multiplatform to allow it to be an iOS app too? [closed]
Normally when trying to build cross platform apps people use frameworks like flutter or react native. However my idea is to build the app native on android with compose ( so the app harnesses the ...
0
votes
0
answers
13
views
How to directly connect a kmp desktop app with mysql
We are working on a multiplatform app, for this KMP (Kotlin Multiplatform) has been used, the app is planned to be launched in three versions, IOs, Android and Desktop, in the desktop section, it has ...
0
votes
1
answer
31
views
Kotlin Multiplatform serialization does not link for ios target
While compiling a Multiplatform Project with some simple @Serializable classes, such as:
@Serializable
data class Something(
val value: Int,
val otherValue: String,
)
to the iosApp target, the ...
0
votes
0
answers
24
views
kotlin multiplatform expect/actual usage
I used the KMP Library Wizard to generate a boilerplate project to support both Android and iOS. I can't figure out why the following code is not flagged by the compiler. I don't understand how the ...
0
votes
0
answers
18
views
How to use Proguard code obfuscation with Compose Desktop? [duplicate]
I'm going to build a compose desktop application using compose multiplatform framework and wanted to obfuscate code using ProGuard. And on their GitHub page, they also had a tutorial about ways to ...
0
votes
0
answers
33
views
Kotlin Multiplatform: how to add firebase dependancy to wasmJs module?
I struggle for quite a few days now with just adding Firebase to my KMP project.
I don't see any good example which uses Firebase for web within KMP.
When I try to add Firebase's setup suggested by ...
0
votes
1
answer
21
views
Kotlin Multiplatform Library - Best practices for library dependencies
I'm creating a Kotlin Multiplatform library that interacts with a Restful HTTP API service. The library depends on Ktor and Kotlin Serialization. When importing the library, users also have to import ...
0
votes
0
answers
16
views
how to use ktor or networking in kmp web wasm project
I have downloaded the kmp project from kotlin wizard online everything works fine for mobile applications but when it comes to wasm web it does resolve dependencies here is the error :composeApp:...
0
votes
0
answers
21
views
Unresolved reference when adding module dependency in Gradle for Compose Multiplatform project
I'm having trouble resolving a module dependency in my Compose Multiplatform project. I have a module named designSystem under the path composeApp:core:designSystem, and I'm trying to include it in my ...
0
votes
0
answers
20
views
KMP issue with add material3 dependency
Hello there i am starting my first project with kotlin multi platform
i am trying to add material3 dependency by adding this
implementation(libs.androidx.material3.android)
into
commonMain....
0
votes
0
answers
10
views
TestScope doesn't work in Kotlin Multiplatform
I was trying to run a unit test of my kmp code on android(local) with TestScope by injecting it into the view model.
Here's the code:
class FrankfurterRepository(engine: HttpClientEngine) {
private ...
0
votes
1
answer
80
views
Kotlin Multiplatform + Jetpack Navigation + Android Studio Koala 2024.1.1 Patch 1 issues
I've started moving one of my older project (Java) to the KMP setup, my goal was to just move around the structure to KMP and slowly import Kotlin code from the shared folder into the androidApp.
I ...
0
votes
0
answers
22
views
Integrating TrustWalletCore in KMM Project: Issues with Swift Wrapper and Dependencies
Hello Stack Overflow community,
I'm currently working on a Kotlin Multiplatform Mobile (KMM) project and trying to integrate the TrustWalletCore library. I've encountered several issues, particularly ...
0
votes
0
answers
15
views
I cannot make a POST request with the Ktor library in Kotlin
I have a KMM library project in Kotlin, and I want to write a sendEvent function. The purpose of the function is to use an SSLPinner class to make a request to the server with the pinned HTTP client ...