hi all. so i've created a standard multiplatform p...
# multiplatform
j
hi all. so i've created a standard multiplatform project using the KMM plugin. then i've created a sibling KMM module that I want my apps to depend on. so i've updated the shared module to depend on it as such (I've left the default name for this example):
Copy code
val 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:
Copy code
fun doSomething(): SomeKmmSharedModuleClass {}
Then the SomeKmmSharedModuleClass would be accessible from the iOS app. Anyone have any idea how to fix this?
1
j
exactly what i needed. thanks @Kris Wong
🍻 1