diff --git a/FBSDKCoreKit.podspec b/FBSDKCoreKit.podspec index 40af249d9..d07056867 100644 --- a/FBSDKCoreKit.podspec +++ b/FBSDKCoreKit.podspec @@ -2,9 +2,9 @@ Pod::Spec.new do |s| - s.name = "FBSDKCoreKit" - s.version = "4.38.0" - s.summary = "Official Facebook SDK for iOS to access Facebook Platform's core features" + s.name = 'FBSDKCoreKit' + s.version = '4.38.0' + s.summary = 'Official Facebook SDK for iOS to access Facebook Platform core features' s.description = <<-DESC The Facebook SDK for iOS CoreKit framework provides: @@ -13,21 +13,27 @@ Pod::Spec.new do |s| * Working with Access Tokens and User Profiles DESC - s.homepage = "https://developers.facebook.com/docs/ios/" - s.license = { :type => "Facebook Platform License", :file => "LICENSE" } + s.homepage = 'https://developers.facebook.com/docs/ios/' + s.license = { :type => 'Facebook Platform License', :file => 'LICENSE' } s.author = 'Facebook' s.platform = :ios, :tvos - s.ios.deployment_target = '7.0' + s.ios.deployment_target = '8.0' s.tvos.deployment_target = '9.0' - s.source = { :git => "https://github.com/facebook/facebook-objc-sdk.git", - :tag => "sdk-version-4.38.0" + s.source = { :git => 'https://github.com/facebook/facebook-objc-sdk.git', + :tag => 'sdk-version-4.38.0' } s.ios.weak_frameworks = 'Accounts', 'CoreLocation', 'Social', 'Security', 'QuartzCore', 'CoreGraphics', 'UIKit', 'Foundation', 'AudioToolbox' s.tvos.weak_frameworks = 'CoreLocation', 'Security', 'QuartzCore', 'CoreGraphics', 'UIKit', 'Foundation', 'AudioToolbox' + # This excludes `FBSDKCoreKit/FBSDKCoreKit/Internal_NoARC/` folder, as that folder includes only `no-arc` files. + s.requires_arc = ['FBSDKCoreKit/FBSDKCoreKit/*', + 'FBSDKCoreKit/FBSDKCoreKit/Internal/**/*'] + + s.ios.dependency 'Bolts', '~> 1.9' + s.public_header_files = 'FBSDKCoreKit/FBSDKCoreKit/*.h' s.source_files = 'FBSDKCoreKit/FBSDKCoreKit/**/*.{h,m}' s.resources = 'FacebookSDKStrings.bundle' @@ -53,7 +59,6 @@ Pod::Spec.new do |s| 'FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/Codeless/*', 'FBSDKCoreKit/FBSDKCoreKit/Internal/AppEvents/FBSDKHybridAppEventsScriptMessageHandler.{h,m}', 'FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/**/*', - 'FBSDKCoreKit/FBSDKCoreKit/Internal/Cryptography/**/*', 'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLinkReturnToRefererView_Internal.h', 'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLink_Internal.h', 'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.{h,m}', @@ -68,10 +73,4 @@ Pod::Spec.new do |s| 'FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.{h,m}', 'FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.{h,m}', 'FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/**/*' - - # This excludes `FBSDKCoreKit/FBSDKCoreKit/Internal_NoARC/` folder, as that folder includes only `no-arc` files. - s.requires_arc = ['FBSDKCoreKit/FBSDKCoreKit/*', - 'FBSDKCoreKit/FBSDKCoreKit/Internal/**/*'] - - s.ios.dependency 'Bolts', '~> 1.7' end diff --git a/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m b/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m index 43343a2a4..f66086588 100644 --- a/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m +++ b/FBSDKCoreKit/FBSDKCoreKit/FBSDKApplicationDelegate.m @@ -150,10 +150,14 @@ static NSString *const FBSDKAppLinkInboundEvent = @"fb_al_inbound"; openURL:(NSURL *)url options:(NSDictionary *)options { - return [self application:application - openURL:url - sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] - annotation:options[UIApplicationOpenURLOptionsAnnotationKey]]; + if (@available(iOS 9.0, *)) { + return [self application:application + openURL:url + sourceApplication:options[UIApplicationOpenURLOptionsSourceApplicationKey] + annotation:options[UIApplicationOpenURLOptionsAnnotationKey]]; + } + + return NO; } #endif @@ -299,9 +303,11 @@ static NSString *const FBSDKAppLinkInboundEvent = @"fb_al_inbound"; // Dispatch openURL calls to prevent hangs if we're inside the current app delegate's openURL flow already NSOperatingSystemVersion iOS10Version = { .majorVersion = 10, .minorVersion = 0, .patchVersion = 0 }; if ([FBSDKInternalUtility isOSRunTimeVersionAtLeast:iOS10Version]) { - [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) { - handler(success, nil); - }]; + if (@available(iOS 10.0, *)) { + [[UIApplication sharedApplication] openURL:url options:@{} completionHandler:^(BOOL success) { + handler(success, nil); + }]; + } } else { BOOL opened = [[UIApplication sharedApplication] openURL:url]; diff --git a/FBSDKLoginKit.podspec b/FBSDKLoginKit.podspec index ba257ddc5..ecf60c591 100644 --- a/FBSDKLoginKit.podspec +++ b/FBSDKLoginKit.podspec @@ -18,7 +18,7 @@ Pod::Spec.new do |s| s.author = 'Facebook' s.platform = :ios, :tvos - s.ios.deployment_target = '7.0' + s.ios.deployment_target = '8.0' s.tvos.deployment_target = '9.0' s.source = { :git => 'https://github.com/facebook/facebook-objc-sdk.git', @@ -30,12 +30,17 @@ Pod::Spec.new do |s| s.requires_arc = true + # Allow the weak linking to Bolts (see FBSDKAppLinkResolver.h) in Cocoapods 0.39.0 + s.pod_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } + s.dependency 'FBSDKCoreKit' + s.ios.source_files = 'FBSDKLoginKit/FBSDKLoginKit/**/*.{h,m}' s.ios.public_header_files = 'FBSDKLoginKit/FBSDKLoginKit/*.{h}' s.tvos.source_files = 'FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.{h,m}', 'FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginCodeInfo.{h,m}', 'FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManager.{h,m}', 'FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.{h,m}', + 'FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKError.{h,m}', 'FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginCodeInfo+Internal.h', 'FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginError.{h,m}', 'FBSDKLoginKit/FBSDKLoginKit/Internal/FBSDKDeviceLoginManagerResult+Internal.h' @@ -44,8 +49,4 @@ Pod::Spec.new do |s| 'FBSDKLoginKit/FBSDKLoginKit/FBSDKDeviceLoginManagerResult.h', 'FBSDKLoginKit/FBSDKLoginKit/FBSDKLoginConstants.h' - # Allow the weak linking to Bolts (see FBSDKAppLinkResolver.h) in Cocoapods 0.39.0 - s.pod_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } - s.dependency 'FBSDKCoreKit' - end diff --git a/FBSDKMarketingKit.podspec b/FBSDKMarketingKit.podspec index 527d32a76..85522c5c0 100644 --- a/FBSDKMarketingKit.podspec +++ b/FBSDKMarketingKit.podspec @@ -1,24 +1,24 @@ Pod::Spec.new do |s| - s.name = "FBSDKMarketingKit" - s.version = "4.38.0" - s.summary = "Official Facebook SDK for iOS to set up Codeless Events" + s.name = 'FBSDKMarketingKit' + s.version = '4.38.0' + s.summary = 'Official Facebook SDK for iOS to set up Codeless Events' s.description = <<-DESC The Facebook SDK for iOS Marketing framework provides: * Set up codeless events. DESC - s.homepage = "https://developers.facebook.com/docs/ios/" + s.homepage = 'https://developers.facebook.com/docs/ios/' - s.author = "Facebook" - s.license = { :type => "Facebook Platform License", :file => "LICENSE.txt" } + s.author = 'Facebook' + s.license = { :type => 'Facebook Platform License', :file => 'LICENSE.txt' } s.platform = :ios - s.source = { :http => "https://origincache.facebook.com/developers/resources/?id=FacebookSDKs-iOS-4.38.0.zip", :type => :zip } - s.source_files = "FBSDKMarketingKit.framework/**/*.h" - s.public_header_files = "FBSDKMarketingKit.framework/**/*.h" - s.ios.vendored_frameworks = "FBSDKMarketingKit.framework" + s.source = { :http => 'https://origincache.facebook.com/developers/resources/?id=FacebookSDKs-iOS-4.38.0.zip', :type => :zip } + s.source_files = 'FBSDKMarketingKit.framework/**/*.h' + s.public_header_files = 'FBSDKMarketingKit.framework/**/*.h' + s.ios.vendored_frameworks = 'FBSDKMarketingKit.framework' - s.ios.deployment_target = "8.0" + s.ios.deployment_target = '8.0' - s.ios.dependency "FBSDKCoreKit", "~> 4.38.0" + s.ios.dependency 'FBSDKCoreKit' end diff --git a/FBSDKPlacesKit.podspec b/FBSDKPlacesKit.podspec index 30fb042c0..7fc0bd9b3 100644 --- a/FBSDKPlacesKit.podspec +++ b/FBSDKPlacesKit.podspec @@ -2,9 +2,9 @@ Pod::Spec.new do |s| - s.name = "FBSDKPlacesKit" - s.version = "4.38.0" - s.summary = "Official Facebook SDK for iOS to access Facebook Places" + s.name = 'FBSDKPlacesKit' + s.version = '4.38.0' + s.summary = 'Official Facebook SDK for iOS to access Facebook Places' s.description = <<-DESC The Facebook SDK for iOS PlacesKit framework provides: @@ -12,23 +12,23 @@ Pod::Spec.new do |s| * Find the current place a user is in. DESC - s.homepage = "https://developers.facebook.com/docs/ios/" - s.license = { :type => "Facebook Platform License", :file => "LICENSE" } + s.homepage = 'https://developers.facebook.com/docs/ios/' + s.license = { :type => 'Facebook Platform License', :file => 'LICENSE' } s.author = 'Facebook' - s.platform = :ios, "9.0" - s.ios.deployment_target = "7.0" + s.platform = :ios + s.ios.deployment_target = '8.0' - s.source = { :git => "https://github.com/facebook/facebook-objc-sdk.git", - :tag => "sdk-version-4.38.0" + s.source = { :git => 'https://github.com/facebook/facebook-objc-sdk.git', + :tag => 'sdk-version-4.38.0' } - s.weak_frameworks = "Accounts", "CoreLocation", "Social", "Security", "Foundation" + s.weak_frameworks = 'Accounts', 'CoreLocation', 'Social', 'Security', 'Foundation' s.requires_arc = true - s.source_files = "FBSDKPlacesKit/FBSDKPlacesKit/**/*.{h,m}" - s.public_header_files = "FBSDKPlacesKit/FBSDKPlacesKit/*.{h}" + s.source_files = 'FBSDKPlacesKit/FBSDKPlacesKit/**/*.{h,m}' + s.public_header_files = 'FBSDKPlacesKit/FBSDKPlacesKit/*.{h}' # Allow the weak linking to Bolts (see FBSDKAppLinkResolver.h) in Cocoapods 0.39.0 s.pod_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } s.dependency 'FBSDKCoreKit' diff --git a/FBSDKPlacesKit/FBSDKPlacesKit/FBSDKPlacesManager.m b/FBSDKPlacesKit/FBSDKPlacesKit/FBSDKPlacesManager.m index 23fe5ccc2..00584a1f8 100644 --- a/FBSDKPlacesKit/FBSDKPlacesKit/FBSDKPlacesManager.m +++ b/FBSDKPlacesKit/FBSDKPlacesKit/FBSDKPlacesManager.m @@ -127,6 +127,7 @@ typedef void (^FBSDKLocationRequestCompletion)(CLLocation *_Nullable location, N locationError = error; dispatch_group_leave(locationAndBeaconsGroup); }]; + [self.locationManager requestLocation]; dispatch_group_enter(locationAndBeaconsGroup); diff --git a/FBSDKPlacesKit/FBSDKPlacesKit/Internal/FBSDKPlacesBluetoothScanner.m b/FBSDKPlacesKit/FBSDKPlacesKit/Internal/FBSDKPlacesBluetoothScanner.m index aa6d91630..08ad26bf2 100644 --- a/FBSDKPlacesKit/FBSDKPlacesKit/Internal/FBSDKPlacesBluetoothScanner.m +++ b/FBSDKPlacesKit/FBSDKPlacesKit/Internal/FBSDKPlacesBluetoothScanner.m @@ -75,12 +75,16 @@ static NSTimeInterval const scanLength = 0.5; - (void)_startScan { - if (self.manager.isScanning) { - return; +#if __IPHONE_OS_VERSION_MAX_ALLOWED > __IPHONE_9_0 + if (@available(iOS 9.0, *)) { + if (self.manager.isScanning) { + return; + } } - +#endif + [self.discoveredBeacons removeAllObjects]; - + [self.manager scanForPeripheralsWithServices:self.bluetoothServices options:@{ CBCentralManagerScanOptionAllowDuplicatesKey : @YES }]; self.updateTimeoutTimer = [NSTimer scheduledTimerWithTimeInterval:scanLength target:self selector:@selector(_finalizeBluetoothScan) userInfo:nil repeats:NO]; self.didPerformScan = YES; diff --git a/FBSDKShareKit.podspec b/FBSDKShareKit.podspec index ea0a79827..b4ab55198 100644 --- a/FBSDKShareKit.podspec +++ b/FBSDKShareKit.podspec @@ -2,9 +2,9 @@ Pod::Spec.new do |s| - s.name = "FBSDKShareKit" - s.version = "4.38.0" - s.summary = "Official Facebook SDK for iOS to access Facebook Platform's Sharing Features" + s.name = 'FBSDKShareKit' + s.version = '4.38.0' + s.summary = 'Official Facebook SDK for iOS to access Facebook Platform Sharing Features' s.description = <<-DESC The Facebook SDK for iOS ShareKit framework provides: @@ -13,16 +13,16 @@ Pod::Spec.new do |s| * Publish content and open graph stories with the Graph API DESC - s.homepage = "https://developers.facebook.com/docs/ios/" - s.license = { :type => "Facebook Platform License", :file => "LICENSE" } + s.homepage = 'https://developers.facebook.com/docs/ios/' + s.license = { :type => 'Facebook Platform License', :file => 'LICENSE' } s.author = 'Facebook' s.platform = :ios, :tvos - s.ios.deployment_target = '7.0' + s.ios.deployment_target = '8.0' s.tvos.deployment_target = '9.0' - s.source = { :git => "https://github.com/facebook/facebook-objc-sdk.git", - :tag => "sdk-version-4.38.0" + s.source = { :git => 'https://github.com/facebook/facebook-objc-sdk.git', + :tag => 'sdk-version-4.38.0' } s.ios.weak_frameworks = 'Accounts', 'AudioToolbox', 'CoreGraphics', 'CoreLocation', 'Foundation', 'QuartzCore', 'Security', 'Social', 'UIKit' @@ -30,10 +30,36 @@ Pod::Spec.new do |s| s.requires_arc = true - s.ios.source_files = 'FBSDKShareKit/FBSDKShareKit/**/*.{h,m}' + s.header_dir = 'FBSDKShareKit' + # Allow the weak linking to Bolts (see FBSDKAppLinkResolver.h) in Cocoapods 0.39.0 + s.pod_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } + s.dependency 'FBSDKCoreKit' + s.public_header_files = 'FBSDKShareKit/FBSDKShareKit/*.{h}' + s.ios.source_files = 'FBSDKShareKit/FBSDKShareKit/**/*.{h,m}' s.ios.exclude_files = 'FBSDKShareKit/FBSDKShareKit/FBSDKDeviceShareButton.{h,m}', 'FBSDKShareKit/FBSDKShareKit/FBSDKDeviceShareViewController.{h,m}' + s.tvos.exclude_files = 'FBSDKShareKit/FBSDKShareKit/FBSDKAppGroupAddDialog.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKAppGroupContent.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKAppGroupJoinDialog.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKAppInviteContent.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKAppInviteDialog.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKCameraEffectArguments.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKCameraEffectTextures.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKGameRequestContent.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKGameRequestDialog.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKLikeButton.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKLikeControl.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKLikeObjectType.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKLiking.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKMessageDialog.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKSendButton.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKShareButton.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKShareCameraEffectContent.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKShareDialog.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKShareDialogMode.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKSharingButton.{h,m}', + 'FBSDKShareKit/FBSDKShareKit/FBSDKSharingScheme.{h,m}' s.tvos.source_files = 'FBSDKShareKit/FBSDKShareKit/FBSDKDeviceShareButton.{h,m}', 'FBSDKShareKit/FBSDKShareKit/FBSDKDeviceShareViewController.{h,m}', 'FBSDKShareKit/FBSDKShareKit/FBSDKHashtag.{h,m}', @@ -66,10 +92,4 @@ Pod::Spec.new do |s| 'FBSDKShareKit/FBSDKShareKit/Internal/FBSDKShareOpenGraphValueContainer+Internal.h', 'FBSDKShareKit/FBSDKShareKit/Internal/FBSDKShareUtility.{h,m}', 'FBSDKShareKit/FBSDKShareKit/Internal/FBSDKVideoUploader.{h,m}' - - s.header_dir = "FBSDKShareKit" - # Allow the weak linking to Bolts (see FBSDKAppLinkResolver.h) in Cocoapods 0.39.0 - s.pod_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' } - s.dependency 'FBSDKCoreKit', '~> 4.38.0' - end diff --git a/FBSDKTVOSKit.podspec b/FBSDKTVOSKit.podspec index 16af62360..9ca510d54 100644 --- a/FBSDKTVOSKit.podspec +++ b/FBSDKTVOSKit.podspec @@ -26,8 +26,8 @@ Pod::Spec.new do |s| s.public_header_files = 'FBSDKTVOSKit/FBSDKTVOSKit/*.h' s.header_dir = 'FBSDKTVOSKit' - s.dependency 'FBSDKCoreKit', '~> 4.11' + s.dependency 'FBSDKCoreKit' # We have a compile time depend on FBSDKShareKit - s.dependency 'FBSDKShareKit', '~> 4.33' - s.dependency 'FBSDKLoginKit', '~> 4.11' + s.dependency 'FBSDKShareKit' + s.dependency 'FBSDKLoginKit' end diff --git a/Facebook-iOS-SDK.podspec b/Facebook-iOS-SDK.podspec index da1e1e98d..9bc80ee2c 100644 --- a/Facebook-iOS-SDK.podspec +++ b/Facebook-iOS-SDK.podspec @@ -2,9 +2,9 @@ Pod::Spec.new do |s| - s.name = "Facebook-iOS-SDK" - s.version = "4.37.0" - s.summary = "(DEPRECATED: Use FacebookSDK instead) Official Facebook SDK for iOS to access Facebook Platform" + s.name = 'Facebook-iOS-SDK' + s.version = '4.38.0' + s.summary = '(DEPRECATED: Use FacebookSDK instead) Official Facebook SDK for iOS to access Facebook Platform' s.description = <<-DESC (DEPRECATED: Use FacebookSDK podspec instead) @@ -14,15 +14,16 @@ Pod::Spec.new do |s| * Simpler Graph API access to provide more social context. DESC - s.homepage = "https://developers.facebook.com/docs/ios/" - s.license = { :type => "Facebook Platform License", :file => "FacebookSDKs-iOS-universal-4.37.0/iOS/LICENSE.txt" } + s.homepage = 'https://developers.facebook.com/docs/ios/' + s.license = { :type => 'Facebook Platform License', :file => 'LICENSE' } s.author = 'Facebook' s.platform = :ios, :tvos s.ios.deployment_target = '8.0' s.tvos.deployment_target = '9.0' - s.source = { :http => 'https://origincache.facebook.com/developers/resources/?id=FacebookSDKs-iOS-universal-4.37.0.zip', :type => :zip } + s.source = { :git => 'https://github.com/facebook/facebook-objc-sdk.git', + :tag => 'sdk-version-4.38.0' } s.ios.weak_frameworks = 'Accounts', 'CoreLocation', 'Social', 'Security', 'QuartzCore', 'CoreGraphics', 'UIKit', 'Foundation', 'AudioToolbox', 'WebKit' s.tvos.weak_frameworks = 'CoreLocation', 'Security', 'QuartzCore', 'CoreGraphics', 'UIKit', 'Foundation', 'AudioToolbox' @@ -32,56 +33,34 @@ Pod::Spec.new do |s| s.deprecated = true s.deprecated_in_favor_of = 'FacebookSDK' - s.dependency 'Bolts', '~> 1.7' + s.dependency 'Bolts', '~> 1.9' + s.default_subspecs = 'CoreKit', 'MarketingKit' - s.subspec 'CoreKit' do |spec| - spec.ios.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKCoreKit.framework/**/*.h' - spec.ios.resources = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FacebookSDKStrings.bundle' - spec.ios.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKCoreKit.framework/**/*.h' - spec.ios.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKCoreKit.framework' - spec.tvos.source_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKCoreKit.framework/**/*.h' - spec.tvos.resources = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FacebookSDKStrings.bundle' - spec.tvos.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKCoreKit.framework/**/*.h' - spec.tvos.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKCoreKit.framework' + s.subspec 'CoreKit' do |ss| + ss.dependency 'FBSDKCoreKit' end - s.subspec 'LoginKit' do |spec| - spec.ios.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKLoginKit.framework/**/*.h' - spec.ios.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKLoginKit.framework/**/*.h' - spec.ios.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKLoginKit.framework' - spec.tvos.source_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKLoginKit.framework/**/*.h' - spec.tvos.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKLoginKit.framework/**/*.h' - spec.tvos.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKLoginKit.framework' - spec.dependency 'Facebook-iOS-SDK/CoreKit' + s.subspec 'LoginKit' do |ss| + ss.dependency 'Facebook-iOS-SDK/CoreKit' + ss.dependency 'FBSDKLoginKit' end - s.subspec 'ShareKit' do |spec| - spec.ios.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKShareKit.framework/**/*.h' - spec.ios.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKShareKit.framework/**/*.h' - spec.ios.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKShareKit.framework' - spec.tvos.source_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKShareKit.framework/**/*.h' - spec.tvos.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKShareKit.framework/**/*.h' - spec.tvos.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKShareKit.framework' - spec.dependency 'Facebook-iOS-SDK/CoreKit' + s.subspec 'ShareKit' do |ss| + ss.dependency 'Facebook-iOS-SDK/CoreKit' + ss.dependency 'FBSDKShareKit' end - s.subspec 'TVOSKit' do |spec| - spec.platform = :tvos - spec.source_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKTVOSKit.framework/**/*.h' - spec.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKTVOSKit.framework/**/*.h' - spec.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKTVOSKit.framework' - spec.dependency 'Facebook-iOS-SDK/ShareKit' - spec.dependency 'Facebook-iOS-SDK/LoginKit' + s.subspec 'TVOSKit' do |ss| + ss.platform = :tvos + ss.dependency 'Facebook-iOS-SDK/ShareKit' + ss.dependency 'Facebook-iOS-SDK/LoginKit' + ss.dependency 'FBSDKTVOSKit' end - s.subspec 'PlacesKit' do |spec| - spec.platform = :ios - spec.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKPlacesKit.framework/**/*.h' - spec.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKPlacesKit.framework/**/*.h' - spec.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKPlacesKit.framework' - spec.dependency 'Facebook-iOS-SDK/CoreKit' + s.subspec 'PlacesKit' do |ss| + ss.platform = :ios + ss.dependency 'Facebook-iOS-SDK/CoreKit' + ss.dependency 'FBSDKPlacesKit' end - s.subspec 'MarketingKit' do |spec| - spec.platform = :ios - spec.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKMarketingKit.framework/**/*.h' - spec.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKMarketingKit.framework/**/*.h' - spec.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKMarketingKit.framework' - spec.dependency 'Facebook-iOS-SDK/CoreKit' + s.subspec 'MarketingKit' do |ss| + ss.platform = :ios + ss.dependency 'Facebook-iOS-SDK/CoreKit' + ss.dependency 'FBSDKMarketingKit' end end diff --git a/FacebookSDK.podspec b/FacebookSDK.podspec index 091bd3ce3..f9ffdc8ca 100644 --- a/FacebookSDK.podspec +++ b/FacebookSDK.podspec @@ -2,9 +2,9 @@ Pod::Spec.new do |s| - s.name = "FacebookSDK" - s.version = "4.37.0" - s.summary = "Official Facebook SDK for iOS to access Facebook Platform" + s.name = 'FacebookSDK' + s.version = '4.38.0' + s.summary = 'Official Facebook SDK for iOS to access Facebook Platform' s.description = <<-DESC The Facebook SDK for iOS enables you to use Facebook's Platform such as: @@ -13,72 +13,50 @@ Pod::Spec.new do |s| * Simpler Graph API access to provide more social context. DESC - s.homepage = "https://developers.facebook.com/docs/ios/" - s.license = { :type => "Facebook Platform License", :file => "FacebookSDKs-iOS-universal-4.37.0/iOS/LICENSE.txt" } + s.homepage = 'https://developers.facebook.com/docs/ios/' + s.license = { :type => 'Facebook Platform License', :file => 'LICENSE' } s.author = 'Facebook' s.platform = :ios, :tvos s.ios.deployment_target = '8.0' s.tvos.deployment_target = '9.0' - s.source = { :http => 'https://origincache.facebook.com/developers/resources/?id=FacebookSDKs-iOS-universal-4.37.0.zip', :type => :zip } + s.source = { :git => 'https://github.com/facebook/facebook-objc-sdk.git', + :tag => 'sdk-version-4.38.0' } s.ios.weak_frameworks = 'Accounts', 'CoreLocation', 'Social', 'Security', 'QuartzCore', 'CoreGraphics', 'UIKit', 'Foundation', 'AudioToolbox', 'WebKit' s.tvos.weak_frameworks = 'CoreLocation', 'Security', 'QuartzCore', 'CoreGraphics', 'UIKit', 'Foundation', 'AudioToolbox' s.requires_arc = true - s.dependency 'Bolts', '~> 1.7' + s.dependency 'Bolts', '~> 1.9' s.default_subspecs = 'CoreKit', 'MarketingKit' - s.subspec 'CoreKit' do |spec| - spec.ios.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKCoreKit.framework/**/*.h' - spec.ios.resources = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FacebookSDKStrings.bundle' - spec.ios.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKCoreKit.framework/**/*.h' - spec.ios.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKCoreKit.framework' - spec.tvos.source_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKCoreKit.framework/**/*.h' - spec.tvos.resources = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FacebookSDKStrings.bundle' - spec.tvos.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKCoreKit.framework/**/*.h' - spec.tvos.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKCoreKit.framework' + s.subspec 'CoreKit' do |ss| + ss.dependency 'FBSDKCoreKit' end - s.subspec 'LoginKit' do |spec| - spec.ios.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKLoginKit.framework/**/*.h' - spec.ios.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKLoginKit.framework/**/*.h' - spec.ios.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKLoginKit.framework' - spec.tvos.source_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKLoginKit.framework/**/*.h' - spec.tvos.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKLoginKit.framework/**/*.h' - spec.tvos.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKLoginKit.framework' - spec.dependency 'FacebookSDK/CoreKit' + s.subspec 'LoginKit' do |ss| + ss.dependency 'FacebookSDK/CoreKit' + ss.dependency 'FBSDKLoginKit' end - s.subspec 'ShareKit' do |spec| - spec.ios.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKShareKit.framework/**/*.h' - spec.ios.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKShareKit.framework/**/*.h' - spec.ios.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKShareKit.framework' - spec.tvos.source_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKShareKit.framework/**/*.h' - spec.tvos.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKShareKit.framework/**/*.h' - spec.tvos.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKShareKit.framework' - spec.dependency 'FacebookSDK/CoreKit' + s.subspec 'ShareKit' do |ss| + ss.dependency 'FacebookSDK/CoreKit' + ss.dependency 'FBSDKShareKit' end - s.subspec 'TVOSKit' do |spec| - spec.platform = :tvos - spec.source_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKTVOSKit.framework/**/*.h' - spec.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKTVOSKit.framework/**/*.h' - spec.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/tvOS/FBSDKTVOSKit.framework' - spec.dependency 'FacebookSDK/ShareKit' - spec.dependency 'FacebookSDK/LoginKit' + s.subspec 'TVOSKit' do |ss| + ss.platform = :tvos + ss.dependency 'FacebookSDK/ShareKit' + ss.dependency 'FacebookSDK/LoginKit' + ss.dependency 'FBSDKTVOSKit' end - s.subspec 'PlacesKit' do |spec| - spec.platform = :ios - spec.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKPlacesKit.framework/**/*.h' - spec.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKPlacesKit.framework/**/*.h' - spec.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKPlacesKit.framework' - spec.dependency 'FacebookSDK/CoreKit' + s.subspec 'PlacesKit' do |ss| + ss.platform = :ios + ss.dependency 'FacebookSDK/CoreKit' + ss.dependency 'FBSDKPlacesKit' end - s.subspec 'MarketingKit' do |spec| - spec.platform = :ios - spec.source_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKMarketingKit.framework/**/*.h' - spec.public_header_files = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKMarketingKit.framework/**/*.h' - spec.vendored_frameworks = 'FacebookSDKs-iOS-universal-4.37.0/iOS/FBSDKMarketingKit.framework' - spec.dependency 'FacebookSDK/CoreKit' + s.subspec 'MarketingKit' do |ss| + ss.platform = :ios + ss.dependency 'FacebookSDK/CoreKit' + ss.dependency 'FBSDKMarketingKit' end end