Has anyone tried publishing KMM library on mavenLo...
# multiplatform
s
Has anyone tried publishing KMM library on mavenLocal() and using it on iOS? I used
maven-publish
plugin and executed publishToMavenLocal after assemble task. But when trying to use the native specific implementation of the KMM (expect/actual), i'm not able to get the methods, .knm only has the common code Are there any additional steps that aren't mentioned anywhere?
r
Do you mean that you are trying to import the module in XCode?
If so, maven is not the tool for that.
Here's the relevant Kotlin documentation that you should look through: https://kotlinlang.org/docs/multiplatform-ios-integration-overview.html
IMHO, the simplest integration is the direct integration method (https://kotlinlang.org/docs/multiplatform-direct-integration.html#how-to-set-up), but not knowing anything about your project, I can't say what would be best for you.