https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
m

Marcus

01/14/2021, 12:00 PM
To build upon https://kotlinlang.slack.com/archives/C3PQML5NU/p1610531551245000, digging around brought me the clue that I might want to try to set
-fmodules
for the
compilerOpts
. However, I can find no documentation on how to do this for a Cocoapod. Any suggestions?
a

Artyom Degtyarev [JB]

01/14/2021, 12:42 PM
Hello, @Marcus! Unfortunately, this flag is not supported, see https://youtrack.jetbrains.com/issue/KT-39120 for the details.
m

Marcus

01/14/2021, 12:44 PM
Hey @Artyom Degtyarev [JB]! Alright, thanks for the info. So no way to use a pod that uses
@import
for the moment, right?
a

Artyom Degtyarev [JB]

01/14/2021, 12:46 PM
AFAIK, yes. There is no workaround at the moment.
m

Marcus

01/14/2021, 12:46 PM
Thank you for clarifying.
k

Kris Wong

01/14/2021, 2:07 PM
i've been waiting on this one for some time myself
i am surprised there are not more people with dependencies between their pods
m

Marcus

01/14/2021, 2:16 PM
@Kris Wong Have you perchance tried to create your own pod that pulls in those dependencies? I'm trying build something of a wrapper pod to get around this. Ideally that could simply expose the APIs of the depended pods, but not sure yet if this could work.
k

Kris Wong

01/14/2021, 2:19 PM
the pod dependencies are configured correctly
m

Marcus

01/14/2021, 2:26 PM
No doubt. I've created my own pod that has
XMPPFramework
as its own dependency. I've already tried successfully to create a class in there that uses
XMPPFramework
classes and can expose them as properties to my Kotlin code. Now I wonder if my own pod could be configured in such a way that the whole
XMPPFramework
becomes visible automatically without me creating dozens of wrappers.
3 Views