darkmoon_uk
07/28/2025, 3:40 AMcommonMain `@Preview`s WORK in IntelliJ ✨K K kodee happy
I can't believe it, I feel high... drunk... elated... all at the same time, it's too much.
Whoever made this happen, you are champions of the universe, you are our messiahs.
Here; here is the forbidden knowledge that must now be committed in stone, so that future tech-archaeologists can piece-together what this moment meant, for those blessed enough to live it:
kotlin = "2.1.21"
compose = "1.9.0-beta01"
viewmodel-compose = "2.9.1" (must be latest to compile vs Compose)
Android, Desktop targets (and an iOS in my case)
compose.dependencies.uiToolingPreview in commonMain
compose.dependencies.uiTooling in both androidMain and jvmMain
IntelliJ IDEA 2025.1.4.1 (Ultimate Edition)darkmoon_uk
07/28/2025, 7:04 AMChris Sinco [G]
07/28/2025, 8:12 AMArjan van Wieringen
07/28/2025, 1:18 PMzsmb
07/29/2025, 7:40 AMGuilherme Delgado
07/29/2025, 9:59 AMkotlinxCompose = "1.8.2")darkmoon_uk
07/29/2025, 10:07 AM2.2.0 👌Guilherme Delgado
07/29/2025, 10:09 AM"com.android.library" gradle plugin? Because I do not have an kotlin { androidTarget() ... and it works 🙌
android {
namespace = ...
dependencies { debugImplementation(compose.uiTooling) }
}zsmb
07/29/2025, 3:48 PMzsmb
07/29/2025, 3:53 PMGuilherme Delgado
07/29/2025, 4:03 PMandroidApp (depends on shared-ui)
• browserApp (depends on shared-ui)
• desktopApp (depends on shared-ui)
• iosApp (depends on shared-ui)
• shared-ui
Modules browserApp desktopApp and iosApp define a “override screens” within their respective targets — for example, SplashScreenWasm or SplashScreenDesktop , with different animations/layouts (and internal composables). The shared-ui will have these targets.
In contrast, androidApp doesn’t require such a “override screens” and instead directly invokes the public composables from commonMain. Working example here.okarm
08/01/2025, 5:08 PM@sample displayed the code sample instead of //unresolved, we would be 90 % towards global utopia!