This repository was archived by the owner on Jan 12, 2026. It is now read-only.
Can you just import decompose in common source set? #154
Unanswered
plusmobileapps
asked this question in
Q&A
Replies: 1 comment 6 replies
|
Decompose has to be exported to the framework, so one can use things like At the time I was writing it, the usual We should definitely add this information to the docs, but before we should check how it will work with Kotlin 1.5.0. Thanks for raising! |
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
I was looking over the Todo decompose sample on Jetbrains compose and noticed in the root module
build.gradle.ktsfile that it's exporting a specific version of decompose for the emulator or device architecture. Is this actually needed, or is there some specific reason this is done for that project? The installation instruction make it seem like the decompose dependency can be added to common source set only, or maybe there is some extra documentation I could add for Multiplatform setup?ios { binaries { framework { when (val target = this.compilation.target.name) { "iosX64" -> { export(Deps.ArkIvanov.Decompose.decomposeIosX64) export(Deps.ArkIvanov.MVIKotlin.mvikotlinMainIosX64) } "iosArm64" -> { export(Deps.ArkIvanov.Decompose.decomposeIosArm64) export(Deps.ArkIvanov.MVIKotlin.mvikotlinMainIosArm64) } else -> error("Unsupported target: $target") } } } }All reactions