Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [kotlin-multiplatform]

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

kotlin-multiplatform
0 votes
1 answer
12 views

Can not create instance of viewModel in Compose Multiplatform Desktop App

I am just playing with compose multiplatform and injecting viewModel using Koin. Here are my koin Initialization in common Module: fun initKoin(config: KoinAppDeclaration? = null) { startKoin { ...
Reyjohn's user avatar
  • 2,684
0 votes
0 answers
31 views

FFMPEG C++/Kotlin Encode data from ByteArray (ByteBuffer) to subtitles and mux it with video

I need to mux some byte data encoded to base64 String to mpeg-ts container. Can't find any solution to somehow encode this data to AVPacket. Using of "avcodec_encode_subtitle" supposes to ...
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 ...
Maverick1st's user avatar
  • 3,774
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 ...
dhruv reddy's user avatar
0 votes
0 answers
25 views

Firebase integration for Compose for desktop [closed]

I needed to make a desktop application. I preferred Compose for Desktop because I have experience with jetpack compose on Android, but Firebase doesn't support desktop app directly. How can I solve ...
mkysln's user avatar
  • 1
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 ...
Jhonny Luis's user avatar
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 ...
lancylot2004's user avatar
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 ...
Howard Lang's user avatar
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 ...
Dang Xuan Thong's user avatar
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 ...
Oleksandr Nos's user avatar
0 votes
1 answer
22 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 ...
Peter Araujo's user avatar
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:...
Shahvez Ali's user avatar
0 votes
0 answers
18 views

How can i import my KMM Library to any kotlin application?

I have a KMM Library project and i want to test it on an app. I published library as mavenLocal and it is in my .m2 folder. When i trying to implement and import my library from my app gradle could ...
Yusuf's user avatar
  • 1
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 ...
Hossam Sadekk's user avatar
0 votes
1 answer
132 views
+50

What gradle entries are required for implementing KSP and Room in a Kotlin Multiplatform

I am in the process of converting a kotlin application to kotlin multiplatform (anroid only for now to get through initial configuration) with room. This included moving to a libs.versions.toml file ...
GeorgeRussell's user avatar

15 30 50 per page
1
2 3 4 5
115