https://kotlinlang.org logo
Title
b

Benoye

11/15/2021, 1:25 PM
Hi, I don’t know if it is the right channel for this: I am exploring MVIKotlin et Decompose to potentially integrate them in my project I am testing the basic Counter with Decompose on iOS and there is a
Value
class in
ObservableValue
that is not found by XCode (I cloned the sample and I am not able to find with the sample either) Would you guys be able to tell me what I am missing here ? Thanks !
a

Arkadii Ivanov

11/15/2021, 1:27 PM
Hello! This is the right channel. The Value class comes from Decompose, which should be exported to the iOS framework: https://github.com/JetBrains/compose-jb/blob/9f2d767492c5c86d9b1b966ecc5afb5ccd0a193c/examples/todoapp/common/root/build.gradle.kts#L19
b

Benoye

11/15/2021, 1:28 PM
Great ! Thank you for the quick response !
🎉 1
Am I supposed to modify my
build.gradle.kts
file to add this ?
(I am using cocoapods in my build)
a

Arkadii Ivanov

11/15/2021, 1:44 PM
I'm not familiar with cocoapods, but I guess yes
Perhaps the following discussion may help? https://github.com/arkivanov/Decompose/discussions/204
b

Benoye

11/15/2021, 1:58 PM
Thank you, I am going to take a look
It works !
🎉 1
with
cocoapods {
 framework {
  export(...)
 }
}
a

Arkadii Ivanov

11/15/2021, 3:02 PM
Good! Thanks for letting us know!