Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

I'm building an app using Kotlin Multiplatform (Compose Multiplatform) and need to prevent screenshots on sensitive screens (QR codes) for security reasons. What Works: Android - Using FLAG_SECURE ...
Hamza's user avatar
  • 1
-6 votes
0 answers
25 views

I am working on a **Kotlin Multiplatform (KMP)** project with a **multi-module architecture**, and I am confused about the best practices for naming modules and packages. I have searched for a while, ...
Curious Head's user avatar
0 votes
1 answer
55 views

I’m running a Compose Multiplatform project and encountering an unexpected warning at build time. Any insights would be appreciated. com.android.application The 'org.jetbrains.kotlin.multiplatform' ...
Vivek Modi's user avatar
  • 7,869
1 vote
1 answer
33 views

I'm currently learning KMP for Android, iOS, Web with native UI approach so that I can develop an application that works everywhere. I want to know that the way we use React+TS for making native UI ...
Raghav Jindal's user avatar
1 vote
0 answers
74 views

I have a Kotlin Multiplatform Mobile project (KMP) targeting Android + iOS. My setup: Kotlin version: 2.2.21 Kotlin Multiplatform plugin: 2.2.21 CocoaPods plugin in build.gradle.kts: plugins { ...
sepideh's user avatar
  • 59
Best practices
0 votes
0 replies
44 views

How to include Java in this project and enable mixed development with both Java and Kotlin. I want to know how to use Java and Kotlin interoperably in a Kotlin Multiplatform Compose Desktop project, ...
Sidnio's user avatar
  • 302
0 votes
0 answers
53 views

I am building a Kotlin Multiplatform app where I want to use shared UI with Compose for both Android and iOS. However, I need some native views with their own state for certain parts of the app, so I’...
AlexelNintendero's user avatar
1 vote
0 answers
81 views

PROBLEM Hi, I have IntelliJ Ultimate 2025.2.4, and Android Studio 2025.2.1. When I create a new default project in either one > download all the sources it needs > sync gradle > then click ...
Action Jackson's user avatar
0 votes
0 answers
136 views

I am integrating Google Maps SDK for iOS into my Kotlin Multiplatform (KMP) project. Earlier I was using CocoaPods and everything was working. Now I migrated to Swift Package Manager (SPM) and removed ...
Pawandeep Singh's user avatar
0 votes
1 answer
80 views

I built a cross-platform project using Kotlin Multiplatform targeting Android, Windows, and macOS. Now, I need to implement a media player that must support HLS. Because of this, I ruled out the ...
deacon-qin's user avatar
1 vote
0 answers
96 views

I’m currently working on a Kotlin Multiplatform (KMP) project that includes a module for Google Maps integration (:core:maps:v2). Everything works fine on Android, but when I try to build for iOS, I ...
xtornasol512's user avatar
  • 2,439
2 votes
0 answers
42 views

After using VNDocumentCameraViewController in Compose Multiplatform iOS, all popup-based components (AlertDialog, DatePickerDialog, ExposedDropdownMenuBox) stop working. Open AlertDialog - works fine ...
Laya's user avatar
  • 21
2 votes
1 answer
192 views

PROBLEM Hi, I'm getting an endless loop of "Waiting for all target devices to come online", or the emulator just shows the Android intro but never loads. The JVM version of the program runs ...
Action Jackson's user avatar
1 vote
0 answers
58 views

I'm trying to set up Dagger in a Kotlin Multiplatform module for Android only as a POC for a migration of a project. Therefore, I needed to set up kapt and followed the instructions in Kmp in Kapt ...
Noge Dev's user avatar
2 votes
1 answer
170 views

My Goal: I'm trying to implement an autocomplete TextField in Jetpack Compose. The desired behavior is: A user starts typing in a TextField. A list of suggestions, filtered by the user's input, ...
Pantastix's user avatar
  • 428
0 votes
0 answers
35 views

TLDR: can we expose interfaces from commonMain to JS that can be implemented in Typescript? Exposing from jsMain appears to work fine: If I expose interface from jsMain with external and @JsExport @...
user7858768's user avatar
  • 1,086
1 vote
1 answer
360 views

I’m building a Kotlin Multiplatform (KMP) app that runs on both Android and iOS. Currently, I’m storing the JWT token using Preferences DataStore on Android androidx.datastore.preferences.core ...
Pawandeep Singh's user avatar
0 votes
1 answer
121 views

I’m using Jetpack DataStore (Preferences) in a Kotlin Multiplatform Mobile (KMM/KMP) project to store some user data, including a JSON-serialized object: class DataStoreVM( private val dataStore: ...
Pawandeep Singh's user avatar
0 votes
0 answers
63 views

So I'm working on a Kotlin Multiplatform project and ran into this weird limitation - you can't use @JsExport in commonMain, only in jsMain. This seems really counterintuitive since the whole point of ...
user7858768's user avatar
  • 1,086
1 vote
0 answers
95 views

I've been reworking an android app to make it a compatible with the the kotlin multiplatform framework. After getting stuck I decided to start with a fresh, very basic setup and build out from there. ...
Wesley Cramer's user avatar
0 votes
0 answers
166 views

I’m building an app with Compose Multiplatform (Kotlin Multiplatform) and I need to control the screen orientation for certain screens. For example: Screen X should always be shown in landscape mode. ...
Daniel Sem's user avatar
1 vote
1 answer
233 views

Kotlin Multiplatform for IntelliJ Idea (Community) Linux and Windows released. Version: 0.9-252.26199-IJ_CE-176. I have installed the plugin and restart the ide it says Plugins 'Kotlin Multiplatform', ...
Surendra's user avatar
1 vote
0 answers
67 views

I am developing a desktop application for Windows using Compose Multiplatform and implementing an external web login flow (e.g., OAuth). After a successful login in the browser, the service needs to ...
ChoiUS's user avatar
  • 11
5 votes
3 answers
409 views

Material3 rememberDatePickerState() crashing in desktop and iOS platforms. I am using kotlin = "2.2.10" version for my Kotlin Compose Multiplatform (KMP/CMP) project. It runs fine on android ...
Touhid's user avatar
  • 1,754
2 votes
2 answers
137 views

I have a Kotlin project for desktop which uses Room DB. The main function looks like this: import androidx.room.Database import androidx.room.Room import androidx.room.RoomDatabase import androidx....
axolotlKing0722's user avatar
4 votes
1 answer
242 views

BACKGROUND Hi, I'm new to Kotlin, Kotlin Multi Platform, and Jetpack Compose, but not a noob to programming. I found a use for a KMP project, and have been working on making a NavGraph and a ...
Action Jackson's user avatar
0 votes
0 answers
88 views

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, ...
Mohamed Salem's user avatar
2 votes
1 answer
229 views

How can I embed After Effects animations exported with Bodymovin extension as Lottie JSON format in a Compose Multiplatform app (Desktop/Windows/Linux/macOS, Android, iOS, Web/JS/WASM)? Is there a ...
Mahozad's user avatar
  • 26.4k
2 votes
1 answer
173 views

I recently updated my project to Compose Multiplatform 1.9.0-beta03 and Material3 1.9.0-beta03. After the update, I can no longer access: CircularWavyProgressIndicator ButtonDefaults....
Vivek Modi's user avatar
  • 7,869
3 votes
1 answer
174 views

The following code gives me output I did not expect. @Composable fun App() { MaterialTheme { Box( modifier = Modifier .fillMaxSize() .background(...
sanitizedUser's user avatar
1 vote
1 answer
60 views

@Entity data class Log( @PrimaryKey val id: String, val date: Long, val note: String, ) @Entity( foreignKeys = [ ForeignKey( entity = Log::class, ...
Surendra's user avatar
0 votes
0 answers
56 views

I am trying to create a multimodule KMP project. I have created a module name theme. Inside that I want to define my color, typography and all theme releted code. Now I have created a directory named ...
Sumita Das's user avatar
1 vote
0 answers
41 views

In the kotlin KMP documentation found For Windows apps, deep link schemes can be declared by adding keys with necessary information to the Windows registry (for Windows 8 and earlier) or by ...
d-feverx's user avatar
  • 1,702
0 votes
0 answers
79 views

I've got a compose multiplatform(desktop mainly) project with some UI packed to *.jar resources config for the feature project compose.resources { packageOfResClass = "com.sample.feature"...
Alex Shapkin's user avatar
0 votes
0 answers
56 views

I want to make a common dropdown for two TextField. I have manage to do something like following. But there is a problem with focusing. When I click again on the second TextField to open dropdown, it ...
Surendra's user avatar
2 votes
1 answer
87 views

I'm trying to get short audio samples into my iOS app (in Kotlin Multiplatform). Here's my relatively simple setup (sampleRateInHz is defined elsewhere): val bufferSize: AVAudioFrameCount = 512u val ...
Ryan's user avatar
  • 23
0 votes
1 answer
202 views

In CSS, we have absolute position attribute to define the layer and position of an element within in our app. The absolute position ignores the default styling flow of the structure and can also work ...
404's user avatar
  • 88
1 vote
1 answer
706 views

Full reproducible example here I'm working on a Jetpack Compose Multiplatform project. In my module ui-system, I have a drawable located at: ui-system/src/commonMain/composeResources/drawable/compose-...
Yannick's user avatar
  • 6,199
1 vote
0 answers
76 views

i have a very simple image Image( imageVector = vectorResource(Res.drawable.swords), contentDescription = null, modifier = Modifier.width(82.dp) .clip(shape = ...
Nogi's user avatar
  • 154
1 vote
1 answer
72 views

There are two functions to be used as the entry point for a CMP desktop application: fun usage application() fun main() = application { ... } awaitApplication() suspend fun main() = awaitApplication { ...
Mahozad's user avatar
  • 26.4k
2 votes
1 answer
242 views

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 (...
Nikola Srdoč's user avatar
0 votes
0 answers
43 views

I am developing an application using Kotlin and Compose Multiplatform. The Android and iOS versions work correctly, but the web application displays a blank screen. Here is the content of Main.kt ...
Joe Rakhimov's user avatar
  • 5,143
0 votes
0 answers
88 views

I’m working on integrating Kotlin scripting support into an OSGi environment. The project is Maven-based, and I’ve included all the necessary dependencies for .kts script execution. Currently, I’m ...
HIMANSHU SINGHAL's user avatar
0 votes
0 answers
82 views

I am using Mockery lib for mocking in my Kotlin Multiplatform project. Even though I am using a mock instance; I am getting the error: Each 'every' block requires single mock call! dev.mokkery....
Shreyash.K's user avatar
  • 1,238
0 votes
0 answers
60 views

When I start the iOS app, I want to send parameters from Firebase to my KMP project. I put annotations in the KMP Kotlin class so that it would be visible, the bridge class that is generated in ...
FlipNovid's user avatar
  • 1,229
1 vote
0 answers
75 views

I have some code that needs to be completed in C++, and I hope to compile the C++ code into some form of dynamic library or klib, which can then be used in the Kotlin multiplatform project or as a ...
masterQian's user avatar
0 votes
1 answer
113 views

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 ...
Touhid's user avatar
  • 1,754
0 votes
2 answers
105 views

I want to check if there is an update on App Store for the app. To do so, I need to get the last version of the app in App Store. For android (it's working fine): actual class AppUpdateManager(private ...
Zinfine's user avatar
  • 31
1 vote
1 answer
256 views

I am building a KMP project, and I need to calculate the screen width and display data accordingly. How can I get the width in DP? The current implementation does not give the correct width. Common- ...
Pawandeep Singh's user avatar
2 votes
1 answer
110 views

The setup In Jetpack Compose, I have a Column (gray) with two elements, a long text (yellow) and a short text (cyan): @Composable @Preview fun Foo() = Column( Modifier .background(Color....
axolotlKing0722's user avatar

1
2 3 4 5
45