https://kotlinlang.org logo
#squarelibraries
Title
# squarelibraries
w

wiktor

08/16/2022, 5:20 AM
hey 👋 I just wanted to ask: is it possible to use molecule in a KMM ? I would like to place the logic in a shared module and subscribe to StateFlow from android/ios targets
k

KamilH

08/16/2022, 6:38 AM
I asked similar question above, the answer is that we need to wait until JetBrains Compose 1.2 is stable, then there will be an update to molecule with support for iOS target
w

wiktor

08/16/2022, 11:59 AM
Thanks, what about using it in a shared module and accepting that iOS target won't compile for a bit, is it possibile? I tried this today, but I don't know if I misconfigured the dependency/ had a gradle issue or or is it not supported.
noob question, I applied plugin like this (
shared
module): I also added
Copy code
classpath("app.cash.molecule:molecule-gradle-plugin:0.4.0")
in dependencies in the buildscript block in the root build file
it gives me
Could not resolve app.cash.molecule:molecule-runtime:0.4.0.
, what do I do wrong here? @KamilH
5 Views