jeran
02/04/2021, 8:32 PMval commonMain by getting {
dependencies {
api(project(":kmmsharedmodule"))
}
}
And now my shared module can use all the code it wants from the kmmsharedmodule. great. Also you'll note I've used api
instead of implementation
, which means my Android app also has access to the kmmsharedmodule code. BUT, the kmmsharedmodule's api is not being exposed to the iOS app via the framework. from the iOS app I can only get access to the kmmsharedmodule if I use something from it in the public api of the shared module. for example if I had in the shared module something like:
fun doSomething(): SomeKmmSharedModuleClass {}
Then the SomeKmmSharedModuleClass would be accessible from the iOS app.
Anyone have any idea how to fix this?Kris Wong
02/04/2021, 8:38 PMjeran
02/04/2021, 8:52 PM