curioustechizen02/05/2020, 3:41 PM
All the _`domain` modules serve the purpose of
MyApp - app - feature1_domain - feature1_presentation - feature2_domain - feature2_presentation - and so on
in KMP (they have platform-agnostic code already).
, and all the
modules have Android-specific code. Wondering what's the best approach to add iOS here. From what I understand, the goal is to generate a single
from the common code for use in iOS. I did not find any examples of this
Kris Wong02/05/2020, 3:49 PM
Sam02/05/2020, 3:51 PM
MyApp //Android depends on MyAppLib - app - feature1_presentation - feature2_presentation - and so on MyAppIOS //depends on MyAppLib.framework (umbrella framework) MyAppLib //Android & iOS lib - feature1_domain - feature2_domain - and so on
curioustechizen02/05/2020, 4:35 PM
Kris Wong02/05/2020, 4:36 PM
curioustechizen02/05/2020, 4:38 PM
Kris Wong02/05/2020, 4:40 PM
curioustechizen02/05/2020, 4:41 PM
modules are currently are
apply plugin: 'kotlin'
I could turn them all into
apply plugin: 'java-library'
apply plugin: 'org.jetbrains.kotlin.multiplatform'
Kris Wong02/05/2020, 4:43 PM
Larten02/05/2020, 4:50 PM
Kurt Renzo Acosta02/07/2020, 9:28 AM
Android: - app - feature-1 - feature-2 Shared: - shared-feature-1 (domain and data) - shared-feature-2 (domain and data) - shared-ios
just exports the modules through
and all other modules and you can consume it in android normally.