Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jguz-pubnub committed Nov 14, 2024
1 parent 926e4ac commit 574a217
Show file tree
Hide file tree
Showing 67 changed files with 19 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ class PubNubKotlinMultiplatformPlugin : Plugin<Project> {
apply<KotlinCocoapodsPlugin>()
extensions.configure<KotlinMultiplatformExtension> {
(this as? ExtensionAware)?.extensions?.configure<CocoapodsExtension> {
ios.deploymentTarget = "14"
ios.deploymentTarget = "14.0"
osx.deploymentTarget = "11.0"
tvos.deploymentTarget = "14.0"
watchos.deploymentTarget = "7.0"

// Maps custom Xcode configuration to NativeBuildType
xcodeConfigurationToNativeBuildType["CUSTOM_DEBUG"] = NativeBuildType.DEBUG
Expand Down Expand Up @@ -90,6 +93,12 @@ class PubNubBaseKotlinMultiplatformPlugin : Plugin<Project> {
if (enableIosTargetOther) {
iosArm64()
iosX64()
macosArm64()
macosX64()
tvosArm64()
tvosSimulatorArm64()
watchosArm64()
watchosSimulatorArm64()
}
if (enableIosSimulatorArm64) {
iosSimulatorArm64()
Expand All @@ -110,7 +119,7 @@ class PubNubBaseKotlinMultiplatformPlugin : Plugin<Project> {
}

if (enableAnyIosTarget) {
getByName("iosMain") {
getByName("appleMain") {
it.dependsOn(nonJvm)
}
}
Expand Down
5 changes: 4 additions & 1 deletion pubnub-kotlin/pubnub-kotlin-api/pubnub_kotlin_api.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ Pod::Spec.new do |spec|
spec.summary = ''
spec.vendored_frameworks = 'build/cocoapods/framework/pubnub_kotlin_api.framework'
spec.libraries = 'c++'
spec.ios.deployment_target = '14'
spec.ios.deployment_target = '14.0'
spec.osx.deployment_target = '11.0'
spec.tvos.deployment_target = '14.0'
spec.watchos.deployment_target = '7.0'
spec.dependency 'PubNubSwift', '8.0.1'

if !Dir.exist?('build/cocoapods/framework/pubnub_kotlin_api.framework') || Dir.empty?('build/cocoapods/framework/pubnub_kotlin_api.framework')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ Pod::Spec.new do |spec|
spec.summary = ''
spec.vendored_frameworks = 'build/cocoapods/framework/pubnub_kotlin_core_api.framework'
spec.libraries = 'c++'
spec.ios.deployment_target = '14'
spec.ios.deployment_target = '14.0'
spec.osx.deployment_target = '11.0'
spec.tvos.deployment_target = '14.0'
spec.watchos.deployment_target = '7.0'
spec.dependency 'PubNubSwift', '8.0.1'

if !Dir.exist?('build/cocoapods/framework/pubnub_kotlin_core_api.framework') || Dir.empty?('build/cocoapods/framework/pubnub_kotlin_core_api.framework')
Expand Down

0 comments on commit 574a217

Please sign in to comment.