mirror of
https://github.com/zhigang1992/facebook-ios-sdk.git
synced 2026-04-28 09:26:46 +08:00
Summary: The main goal of this diff is to remove OHHTPStubs from the FBSDKAppLinkResolver test code. The easiest way to do that has been to extract the request building part from FBSDKAppLinkResolver to it own class. These allows us to: - Assert correctness over some parts of the request independently - Inject a builder mock in FBSDKAppLinkResolver so we can control the FBSDKGraphRequest and inject the response we want, without having to mock the http layer at all. Reviewed By: joesus Differential Revision: D24077192 fbshipit-source-id: 54141fe1a0533bc97503e7a241387c0d0c4da5e3
73 lines
3.2 KiB
Ruby
73 lines
3.2 KiB
Ruby
# Use the --use-libraries switch when pushing or linting this podspec
|
|
|
|
Pod::Spec.new do |s|
|
|
|
|
s.name = 'FBSDKCoreKit'
|
|
s.version = '8.0.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:
|
|
* App Events (for App Analytics)
|
|
* Graph API Access and Error Recovery
|
|
* 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.author = 'Facebook'
|
|
|
|
s.platform = :ios, :tvos
|
|
s.ios.deployment_target = '9.0'
|
|
s.tvos.deployment_target = '10.0'
|
|
|
|
s.source = {
|
|
git: 'https://github.com/facebook/facebook-ios-sdk.git',
|
|
tag: "v#{s.version}"
|
|
}
|
|
|
|
s.ios.weak_frameworks = 'Accelerate', 'Accounts', 'AdSupport', 'Social', 'Security', 'StoreKit', '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/AppEvents/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppLink/**/*',
|
|
'Sources/FBSDKCoreKit_Basics/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/GraphAPI/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/**/*']
|
|
|
|
s.default_subspecs = 'Core', 'Basics'
|
|
s.swift_version = '5.0'
|
|
s.pod_target_xcconfig = {
|
|
'GCC_PREPROCESSOR_DEFINITIONS': '$(inherited) FBSDKCOCOAPODS=1',
|
|
'DEFINES_MODULE': 'YES'
|
|
}
|
|
s.user_target_xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS': '$(inherited) FBSDKCOCOAPODS=1' }
|
|
s.library = 'c++', 'stdc++'
|
|
|
|
s.subspec 'Basics' do |ss|
|
|
ss.source_files = 'Sources/FBSDKCoreKit_Basics/**/*.{h,m}'
|
|
ss.library = 'z'
|
|
end
|
|
|
|
s.subspec 'Core' do |ss|
|
|
ss.dependency 'FBSDKCoreKit/Basics'
|
|
ss.exclude_files = 'Sources/FBSDKCoreKit_Basics/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/include/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Swift/Exports.swift'
|
|
ss.source_files = 'FBSDKCoreKit/FBSDKCoreKit/**/*.{h,hpp,m,mm,swift}'
|
|
ss.public_header_files = 'FBSDKCoreKit/FBSDKCoreKit/Internal/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppLink/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppLink/Resolver/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/GraphAPI/*.h'
|
|
ss.private_header_files = 'FBSDKCoreKit/FBSDKCoreKit/Internal/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/**/*.h'
|
|
ss.resources = 'FacebookSDKStrings.bundle'
|
|
ss.library = 'c++', 'stdc++'
|
|
end
|
|
end
|