From 630031444b76188f7ebd7e0b1d5aba7288f62615 Mon Sep 17 00:00:00 2001 From: Andrey Kornich Date: Tue, 16 Feb 2021 23:21:37 -0800 Subject: [PATCH] fixing Cocoapods specs --- RollbarCommon.podspec | 2 +- RollbarDeploys.podspec | 2 +- RollbarKSCrash.podspec | 2 +- RollbarNotifier.podspec | 2 +- .../RollbarNotifier/DTOs/RollbarConfig.m | 2 +- RollbarPLCrashReporter.podspec | 2 +- RollbarSDK.podspec | 237 ++++++++++++++++++ 7 files changed, 243 insertions(+), 6 deletions(-) create mode 100644 RollbarSDK.podspec diff --git a/RollbarCommon.podspec b/RollbarCommon.podspec index 920ed53d..ccf60445 100644 --- a/RollbarCommon.podspec +++ b/RollbarCommon.podspec @@ -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 diff --git a/RollbarDeploys.podspec b/RollbarDeploys.podspec index 8e1c8ec1..0cffc6e3 100644 --- a/RollbarDeploys.podspec +++ b/RollbarDeploys.podspec @@ -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 diff --git a/RollbarKSCrash.podspec b/RollbarKSCrash.podspec index 84e2de1c..734cd70b 100644 --- a/RollbarKSCrash.podspec +++ b/RollbarKSCrash.podspec @@ -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 diff --git a/RollbarNotifier.podspec b/RollbarNotifier.podspec index 2fd824a3..67f7bccb 100644 --- a/RollbarNotifier.podspec +++ b/RollbarNotifier.podspec @@ -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 diff --git a/RollbarNotifier/Sources/RollbarNotifier/DTOs/RollbarConfig.m b/RollbarNotifier/Sources/RollbarNotifier/DTOs/RollbarConfig.m index 5da2b3fa..a3eda112 100644 --- a/RollbarNotifier/Sources/RollbarNotifier/DTOs/RollbarConfig.m +++ b/RollbarNotifier/Sources/RollbarNotifier/DTOs/RollbarConfig.m @@ -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"; diff --git a/RollbarPLCrashReporter.podspec b/RollbarPLCrashReporter.podspec index 2da65578..9d9793e7 100644 --- a/RollbarPLCrashReporter.podspec +++ b/RollbarPLCrashReporter.podspec @@ -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 diff --git a/RollbarSDK.podspec b/RollbarSDK.podspec new file mode 100644 index 00000000..a7ffe179 --- /dev/null +++ b/RollbarSDK.podspec @@ -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)" => "akornich@gmail.com", + "Rollbar" => "support@rollbar.com" } + # sdk.author = { "Andrey Kornich" => "akornich@gmail.com" } + # 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