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

Michal Harakal

10/03/2020, 12:44 PM
I have question following on discussion regarding multimodules and xcode framework. https://kotlinlang.slack.com/archives/C3PQML5NU/p1590965140229000 I have following setup. “umbrella module” -> ModuleA,ModulB I can see in ios(in header.h file) classes from ModuleA or ModuleB only if they are used in the umbrella Modulle itself. Which is normally fine, but my ModuleB are data classes and I would like to use them directly in iOS. How can I force, that classes from moduleB are exported too into xcode framework? Here link to the project (that are classes from the module “presentation” which are missing) https://github.com/dukecon/dukecon_mobile/blob/feature/kotlin-1.4-migration/shared/dukecon_umbrella/build.gradle.kts#L25
Umbrella module is solely for iOS. For Android I can work with multimodules without limitations…
l

louiscad

10/03/2020, 1:27 PM
One could argue the umbrella module is the app module on Android.
m

Michal Harakal

10/03/2020, 1:30 PM
for now I use build variants on Android to achieve different modules combinations. But I have issue with iOS. Meanwhile I have found that I have to export
export(project(":shared:presentation"))
it in the framework binary section. But this doesn’t work with the nice
ios()
shortcut so I am fignting with manual definition of iOS targets …
2 Views