Is there a way to have expect/actual for compose m...
# multiplatform
a
Is there a way to have expect/actual for compose multiplatform, but with an actual for all compose multiplatform (ios, native, web etc) and ONLY a separate actual for Android? So for example: 1. have expect somewhere for public use (in commonMain?) 2. have actual for all the compose multiplatform implementations 3. but! have a SEPARATE actual only for android
m
Add a new intermediate source set that contains all your targets except android and then define your actual implementation there in this source set https://kotlinlang.org/docs/multiplatform-hierarchy.html#creating-additional-source-sets https://github.com/Kotlin/kotlinx.html/blob/363b34ec4f558bdc848461b41d7c5d8adbe3c1de/build.gradle.kts#L130
🙌 1
☝️ 1
a
Thanks @MR3Y I’ll check it out!