Skip to content

Commit

Permalink
fixing Cocoapods podspeecs
Browse files Browse the repository at this point in the history
  • Loading branch information
akornich committed Feb 13, 2021
1 parent 64d9a03 commit c222ce3
Show file tree
Hide file tree
Showing 7 changed files with 92 additions and 7 deletions.
8 changes: 7 additions & 1 deletion RollbarCommon.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Pod::Spec.new do |s|

s.version = "2.0.0-alpha30"
s.version = "2.0.0-alpha31"
s.name = "RollbarCommon"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down Expand Up @@ -59,4 +59,10 @@ Pod::Spec.new do |s|
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/#{s.name}/**"
# }

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
s.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }

end
8 changes: 7 additions & 1 deletion RollbarDeploys.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Pod::Spec.new do |s|

s.version = "2.0.0-alpha30"
s.version = "2.0.0-alpha31"
s.name = "RollbarDeploys"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down Expand Up @@ -60,4 +60,10 @@ Pod::Spec.new do |s|
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/#{s.name}/**"
# }

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
s.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }

end
8 changes: 7 additions & 1 deletion RollbarKSCrash.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Pod::Spec.new do |s|

s.version = "2.0.0-alpha30"
s.version = "2.0.0-alpha31"
s.name = "RollbarKSCrash"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down Expand Up @@ -61,4 +61,10 @@ Pod::Spec.new do |s|
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/#{s.name}/**"
# }

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
s.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }

end
8 changes: 7 additions & 1 deletion RollbarNotifier.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Pod::Spec.new do |s|

s.version = "2.0.0-alpha30"
s.version = "2.0.0-alpha31"
s.name = "RollbarNotifier"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down Expand Up @@ -60,4 +60,10 @@ Pod::Spec.new do |s|
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/#{s.name}/**"
# }

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
s.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }

end
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#pragma mark - constants

static NSString * const NOTIFIER_VERSION = @"2.0.0-alpha30";
static NSString * const NOTIFIER_VERSION = @"2.0.0-alpha31";

static NSString * const NOTIFIER_NAME = @"rollbar-apple";

Expand Down
8 changes: 7 additions & 1 deletion RollbarPLCrashReporter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Pod::Spec.new do |s|

s.version = "2.0.0-alpha30"
s.version = "2.0.0-alpha31"
s.name = "RollbarPLCrashReporter"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down Expand Up @@ -61,4 +61,10 @@ Pod::Spec.new do |s|
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/#{s.name}/**"
# }

s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

s.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
s.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }

end
57 changes: 56 additions & 1 deletion RollbarSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Pod::Spec.new do |sdk|

# Rollbar SDK:
# ============
sdk.version = "2.0.0-alpha30"
sdk.version = "2.0.0-alpha31"
sdk.name = "RollbarSDK"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
sdk.description = <<-DESC
Expand Down Expand Up @@ -70,6 +70,10 @@ Pod::Spec.new do |sdk|
# "USE_HEADERMAP" => "NO",
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/RollbarCommon/**"
# }
common.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
common.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
common.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
common.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
end

# RollbarDeploys module:
Expand Down Expand Up @@ -106,6 +110,10 @@ Pod::Spec.new do |sdk|
# "USE_HEADERMAP" => "NO",
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/RollbarDeploys/**"
# }
deploys.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
deploys.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
deploys.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
deploys.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
end

# RollbarNotifier module:
Expand Down Expand Up @@ -142,6 +150,10 @@ Pod::Spec.new do |sdk|
# "USE_HEADERMAP" => "NO",
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/RollbarNotifier/**"
# }
notifier.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
notifier.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
notifier.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
notifier.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
end

# RollbarKSCrash module:
Expand Down Expand Up @@ -177,6 +189,49 @@ Pod::Spec.new do |sdk|
# "USE_HEADERMAP" => "NO",
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/#{kscrash.name}/**"
# }
kscrash.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
kscrash.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
kscrash.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
kscrash.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
end

# RollbarPLCrashReporter module:
# ==============================
sdk.subspec "RollbarPLCrashReporter" do |plcrash|
plcrash.name = "RollbarPLCrashReporter"

# Any platform, if omitted:
# plcrash.platform = :ios
# plcrash.platform = :ios, "5.0"

# When using multiple platforms:
# plcrash.ios.deployment_target = "9.0"
# plcrash.osx.deployment_target = "10.10"
# plcrash.tvos.deployment_target = "11.0"
# plcrash.watchos.deployment_target = "4.0"

plcrash.source_files = "#{plcrash.name}/Sources/#{plcrash.name}/**/*.{h,m}"
# plcrash.exclude_files = "Classes/Exclude"
plcrash.public_header_files = "#{plcrash.name}/Sources/#{plcrash.name}/include/*.h"
# plcrash.module_map = "#{plcrash.name}/Sources/#{plcrash.name}/include/module.modulemap"
# plcrash.resource = "../rollbar-logo.png"
# plcrash.resources = "Resources/*.png"
# plcrash.preserve_paths = "FilesToSave", "MoreFilesToSave"

plcrash.dependency "RollbarSDK/RollbarCommon"
plcrash.framework = "Foundation"
# plcrash.frameworks = "SomeFramework", "AnotherFramework"
# plcrash.library = "iconv"
# plcrash.dependency "JSONKit", "~> 1.4"
plcrash.requires_arc = true
# plcrash.xcconfig = {
# "USE_HEADERMAP" => "NO",
# "HEADER_SEARCH_PATHS" => "$(PODS_ROOT)/Sources/#{plcrash.name}/**"
# }
plcrash.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
plcrash.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
plcrash.tvos.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
plcrash.tvos.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=appletvsimulator*]' => 'arm64' }
end

end

0 comments on commit c222ce3

Please sign in to comment.