moko-socket-io
moko-socket-io copied to clipboard
Support for without org.jetbrains.kotlin.native.cocoapods
Please add support for without jetbrains cocoapods
hi. without cocoapods plugin you need add manual linking:
kotlin.targets.matching { it is org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget }
.configureEach {
val target = this as org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget
target.binaries.matching { it is org.jetbrains.kotlin.gradle.plugin.mpp.Framework }
.configureEach {
val framework = this as org.jetbrains.kotlin.gradle.plugin.mpp.Framework
val frameworks = listOf(
project.rootProject.file("path-where-located-mokoSocketIo.framework")
).map { "-F${it.path}" }
framework.linkerOpts(frameworks)
}
}