Chirag Redij
10/25/2025, 10:40 AMZyle Moore
10/25/2025, 8:22 PMKaren Frangulyan
10/26/2025, 12:17 AMBackHandler in CMP now. But how can I call the back press handler manually, for example, on a button click?
On Android I can simply use LocalOnBackPressedDispatcherOwner.current and I can be sure that the correct back press logic will work, like calling a BackHandler if someone installed it, or falling back to nav controller if not (I’m on Nav2). Is there something similar in CMP?Giorgi
10/26/2025, 12:23 PMVinay
10/26/2025, 4:27 PMcommonMain and androidMain modules. However, since the entire implementation already exists in the Android package, I’m wondering if redoing it in KMP adds much value.
I also considered another approach: keeping both the Android and KMP packages locally, making the KMP module a library, and adding it as a dependency in the Android project. Then, I could move the shared code into the KMP module while keeping Android-specific files in the Android package.
Could you please suggest which approach is better?
Also, note that the Android and iOS packages are currently built using different build systems.
And to get the app fully working in KMP, do I need to make changes only in the KMP package or in both the Android and KMP packages?Azim Ansari
10/27/2025, 7:36 AMHoratio Thomas
10/27/2025, 10:58 AMSmoothie
10/27/2025, 3:30 PMHieu Vu
10/27/2025, 3:35 PM-ObjC flag, add dependencies from nativeBridge to XCode project (as per spmforkmp log says)
So I used spmforkmp to get dependencies and implement it in Swift, then call it in Kotlin code. However, when the code run through GoogleSignInCode, it throws this error
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[OIDAuthorizationService presentAuthorizationRequest:presentingViewController:callback:]: unrecognized selector sent to class 0x10d9370b0'
terminating due to uncaught exception of type NSException
CoreSimulator 1048 - Device: iPhone 15 Pro Max (4E2318C4-8258-4F78-A679-52CE4D6F3CE4) - Runtime: iOS 17.2 (21C62) - DeviceType: iPhone 15 Pro MaxVinay
10/27/2025, 6:38 PMJustin Tullgren
10/27/2025, 7:12 PMSmoothie
10/27/2025, 8:39 PMUndefined symbol: _OBJC_CLASS_$__TtC19TestStaticFramework19TestStaticFramework
But it shouldn't happen as it is a static library, I expect symboles to be included in the .framework generated by composeApp task.
#########################
# DEF FILE
#########################
proprieties
language = Objective-C
modules = TestStaticFramework
package = swift.tsf
#########################
# GRADLE IOS CONF
#########################
kotlin
listOf(iosArm64(), iosSimulatorArm64()).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "ComposeApp"
isStatic = true
}
val baseDir = "${rootDir.absolutePath}/TestStaticFramework/build/TestStaticFramework.xcframework"
val frameworkDir = when (iosTarget.konanTarget) {
KonanTarget.IOS_SIMULATOR_ARM64 -> "$baseDir/ios-arm64_x86_64-simulator"
KonanTarget.IOS_ARM64 -> "$baseDir/ios-arm64"
else -> error("Unsupported target: ${iosTarget.konanTarget}")
}
val frameworkPath = "$frameworkDir/TestStaticFramework.framework"
val main by iosTarget.compilations.getting
main.cinterops.create("TestStaticFramework") {
defFile("${rootDir.absolutePath}/TestStaticFramework/TestStaticFramework.def")
compilerOpts(
"-F$frameworkDir",
"-fmodules"
)
}
iosTarget.binaries.all {
linkerOpts(
"-F$frameworkPath",
"-framework",
"TestStaticFramework"
)
}
}
#########################
# Static Lib Symbole
#########################
nm -gU TestStaticFramework
#########################
TestStaticFramework_vers.o:
0000000000000040 S _TestStaticFrameworkVersionNumber
0000000000000000 S _TestStaticFrameworkVersionString
TestStaticFramework.o:
0000000000000000 T _$s19TestStaticFrameworkAAC5helloSSyF
0000000000000140 T _$s19TestStaticFrameworkAAC5helloSSyFTj
000000000000021c S _$s19TestStaticFrameworkAAC5helloSSyFTq
0000000000000058 T _$s19TestStaticFrameworkAACABycfC
0000000000000078 T _$s19TestStaticFrameworkAACABycfc
00000000000000a8 T _$s19TestStaticFrameworkAACMa
00000000000001e8 S _$s19TestStaticFrameworkAACMn
00000000000001c8 S _$s19TestStaticFrameworkAACMo
0000000000000134 T _$s19TestStaticFrameworkAACMu
0000000000000388 S _$s19TestStaticFrameworkAACN
0000000000000104 T _$s19TestStaticFrameworkAACfD
00000000000001dc S _$s19TestStaticFrameworkMXM
0000000000000388 S _OBJC_CLASS_$__TtC19TestStaticFramework19TestStaticFramework
00000000000003e0 D _OBJC_METACLASS_$__TtC19TestStaticFramework19TestStaticFramework
00000000000001d8 S ___swift_reflection_version
0000000000000280 S __swift_FORCE_LOAD_$_swiftCompatibility56_$_TestStaticFramework
0000000000000268 S __swift_FORCE_LOAD_$_swiftCoreFoundation_$_TestStaticFramework
0000000000000270 S __swift_FORCE_LOAD_$_swiftDispatch_$_TestStaticFramework
0000000000000250 S __swift_FORCE_LOAD_$_swiftFoundation_$_TestStaticFramework
0000000000000260 S __swift_FORCE_LOAD_$_swiftObjectiveC_$_TestStaticFramework
0000000000000278 S __swift_FORCE_LOAD_$_swiftXPC_$_TestStaticFramework
0000000000000258 S __swift_FORCE_LOAD_$_swift_Builtin_float_$_TestStaticFramework
0000000000000224 S _symbolic So8NSObjectC
0000000000000232 S _symbolic _____ 19TestStaticFrameworkAACSkash
10/28/2025, 8:56 AMtabBarMinimizeBehavior from iOS 26 when having a SwiftUI TabView with a compose powered content view as tabbar item?Jeremie D
10/28/2025, 12:30 PMSerializer has not been found for type 'Instant'. To use context serializer as fallback, explicitly annotate type or property with @Contextual , trying to make sure i don't go down an endless rabbit hole
if anyone is using instant and ktor and standard serializable stuff could you share with me your configurations/plugins versions?shikhar
10/28/2025, 12:33 PMCrashed: com.apple.root.default-qos
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000016d98f100
0 libsystem_pthread.dylib 0x7690 pthread_get_qos_class_np + 918
com.apple.root.default-qos
0 libsystem_kernel.dylib 0x65d4 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x2b58 _pthread_cond_wait + 984
2 calendar 0xfda40 kfun:kotlinx.atomicfu.locks.SynchronizedObject.waitForUnlockAndLock#internal + 72 (NativeMutexNode.kt:72)
Link: https://github.com/Kotlin/kotlinx-atomicfu/issues/563
Posting it here since there isn’t a dedicated channel for atomicfushikhar
10/28/2025, 12:35 PMloke
10/28/2025, 3:51 PMWeakReference. However, once the reference is cleared, I need to remove the key from the hashmap.
In the Java backend, I can do this by leveraging ReferenceQueue and check when a reference has been dropped, and then remove the corresponding key (tracked in a separate hashmap).
But, I struggle to figure out a way to achieve this using the JS and Native backends. To be honest, I'm not sure these backends have the necessary infrastructure to make this possible. There certainly doesn't seem to be anything similar to ReferenceQueue. Using Cleaner is unfortunately not sufficient, since I can't change the code so that it works with wrapper objects. The thing that is returned from the namespace object has to be of type Symbol, not SymbolWrapper which includes a Cleaner.Deniz Tumer
10/28/2025, 10:04 PMYaroslav Shuliak
10/29/2025, 3:54 AMWebElementView composable that works using iframes so it will probably have issues with z-orderDumitru Preguza
10/29/2025, 7:25 PMSuresh Maidaragi
10/30/2025, 8:06 AMdylan
10/30/2025, 10:34 AMcompose multiplatform ressources when you want to load/read a json file on all platforms?
We have a mock server we use for offline testing/development and we currently add json as strings in a kotlin file but would be nice if we can change this to loading a specific json file when the mock server needs to respond instead of using the string val.Pat Teruel
10/30/2025, 2:24 PMGenerating Xcode files. I wish I could tell my project to not discover them. Hopefuly someone knows.filipebaptista
10/30/2025, 5:31 PMesdrasdl
10/30/2025, 8:22 PMUnable to find method ''void com.android.build.api.variant.KotlinMultiplatformAndroidComponentsExtension.onVariant(kotlin.jvm.functions.Function1)''
'void com.android.build.api.variant.KotlinMultiplatformAndroidComponentsExtension.onVariant(kotlin.jvm.functions.Function1)'
I've setup a sample at Github: https://github.com/esdrasdl/android-cmp-bug
I'm not sure if it a bug in Compose Multiplatform or AGP, but I wanted to share this sample to help investigate the issue.ebtokyo
10/30/2025, 9:14 PMcom.android.library plugin? I want to lint compose code in commonMain and androidMain. I couldn't find a way yet but I know it should be possible because circuit project do it. Looks like via spotless... 🤔Moref
10/30/2025, 9:55 PMyoussef hachicha
10/31/2025, 9:30 AMS.
10/31/2025, 11:22 AMNathan Fallet
10/31/2025, 11:59 AM