Artifacts
iOS
- Generate Podspec
val generatePodspec = tasks.create("generatePodspec") {
val podspecText = “””
Pod::Spec.new do |spec|
spec.name = ""
spec.version = "$version"
spec.license = ""
spec.homepage = ""
spec.authors = ""
spec.summary = ""
spec.source = { :git => '
[email protected]:/Spec.git’, :branch => '$version' }
spec.platform = :ios, ""
spec.vendored_frameworks = 'cocoapods/debug/$frameworkName.framework'
spec.static_framework = true
spec.libraries = "c++", "sqlite3", ...
spec.module_name = "#{spec.name}_umbrella"
spec.pod_target_xcconfig = {
'KOTLIN_TARGET[sdk=iphonesimulator*]' => 'ios_x64',
'KOTLIN_TARGET[sdk=iphoneos*]' => 'ios_arm'
...
}
end
“””.trimIndent()
artifactsDir.resolve(".podspec”).writeText(podspecText)
}
[KMP: iosmodule/build.gradle]