Skip to content

Commit

Permalink
fixing Cocoapods specs
Browse files Browse the repository at this point in the history
  • Loading branch information
akornich committed Feb 17, 2021
1 parent 9ee57f1 commit 6300314
Show file tree
Hide file tree
Showing 7 changed files with 243 additions and 6 deletions.
2 changes: 1 addition & 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-alpha39"
s.version = "2.0.0-alpha40"
s.name = "RollbarCommon"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down
2 changes: 1 addition & 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-alpha39"
s.version = "2.0.0-alpha40"
s.name = "RollbarDeploys"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down
2 changes: 1 addition & 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-alpha39"
s.version = "2.0.0-alpha40"
s.name = "RollbarKSCrash"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down
2 changes: 1 addition & 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-alpha39"
s.version = "2.0.0-alpha40"
s.name = "RollbarNotifier"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down
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-alpha39";
static NSString * const NOTIFIER_VERSION = @"2.0.0-alpha40";

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

Expand Down
2 changes: 1 addition & 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-alpha39"
s.version = "2.0.0-alpha40"
s.name = "RollbarPLCrashReporter"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
s.description = <<-DESC
Expand Down
237 changes: 237 additions & 0 deletions RollbarSDK.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,237 @@
#
# Be sure to run `pod spec lint RollbarSDK.podspec' to ensure this is a valid spec.
#
# To learn more about Podspec attributes see https://guides.cocoapods.org/syntax/podspec.html
# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/
#

Pod::Spec.new do |sdk|

# Rollbar SDK:
# ============
sdk.version = "2.0.0-alpha40"
sdk.name = "RollbarSDK"
s.summary = "Application or client side SDK for interacting with the Rollbar API Server."
sdk.description = <<-DESC
Find, fix, and resolve errors with Rollbar.
Easily send error data using Rollbar API.
Analyze, de-dupe, send alerts, and prepare the data for further analysis.
Search, sort, and prioritize via the Rollbar dashboard.
DESC
sdk.homepage = "https://rollbar.com"
# sdk.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif"
sdk.license = { :type => "MIT", :file => "LICENSE" }
# sdk.license = "MIT (example)"
sdk.documentation_url = "https://docs.rollbar.com/docs/ios"
sdk.authors = { "Andrey Kornich (Wide Spectrum Computing LLC)" => "[email protected]",
"Rollbar" => "[email protected]" }
# sdk.author = { "Andrey Kornich" => "[email protected]" }
# Or just: sdk.author = "Andrey Kornich"
sdk.social_media_url = "http://twitter.com/rollbar"
sdk.source = { :git => "https://github.com/rollbar/rollbar-apple.git",
:tag => "v#{sdk.version}"
}
sdk.resource = "rollbar-logo.png"
sdk.ios.deployment_target = "9.0"
sdk.osx.deployment_target = "10.10"
sdk.tvos.deployment_target = "11.0"
sdk.watchos.deployment_target = "4.0"

# RollbarCommon module:
# =====================
sdk.subspec 'RollbarCommon' do |common|
common.name = "RollbarCommon"

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

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

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

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

# RollbarDeploys module:
# =====================
sdk.subspec "RollbarDeploys" do |deploys|
deploys.name = "RollbarDeploys"

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

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

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

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

# RollbarNotifier module:
# =====================
sdk.subspec "RollbarNotifier" do |notifier|
notifier.name = "RollbarNotifier"

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

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

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

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

# RollbarKSCrash module:
# =====================
sdk.subspec "RollbarKSCrash" do |kscrash|
kscrash.name = "RollbarKSCrash"

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

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

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

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

end

0 comments on commit 6300314

Please sign in to comment.