mirror of
https://github.com/zhigang1992/facebook-ios-sdk.git
synced 2026-01-12 22:47:16 +08:00
Summary: Thanks for proposing a pull request! To help us review the request, please complete the following: - [x] sign [contributor license agreement](https://developers.facebook.com/opensource/cla) - [x] I've ensured that all existing tests pass and added tests (when/where necessary) - [x] I've updated the documentation (when/where necessary) and [Changelog](CHANGELOG.md) (when/where necessary) - [x] I've added the proper label to this pull request (e.g. `bug` for bug fixes) ## Pull Request Details Fixing import errors when using Unity. Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1122 Test Plan: Open a new unity project that includes the SDK. Open the generated Xcode workspace. It should compile without error about improper header import syntax. Reviewed By: Mxiim Differential Revision: D18572442 Pulled By: joesus fbshipit-source-id: bddea9a5b97d18f8b27b583dfcce6866c382aea0
107 lines
6.1 KiB
Ruby
107 lines
6.1 KiB
Ruby
# Use the --use-libraries switch when pushing or linting this podspec
|
|
|
|
Pod::Spec.new do |s|
|
|
|
|
s.name = 'FBSDKCoreKit'
|
|
s.version = '5.11.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 = '8.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', '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/AppEvents/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppLink/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Basics/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/**/*']
|
|
|
|
s.default_subspecs = 'Core', 'Basics'
|
|
s.swift_version = '5.0'
|
|
s.xcconfig = {'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) FBSDKCOCOAPODS=1' }
|
|
|
|
s.subspec 'Basics' do |ss|
|
|
ss.source_files = 'FBSDKCoreKit/FBSDKCoreKit/Basics/*.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Basics/**/*.{h,m}'
|
|
ss.public_header_files = 'FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Basics/*.h'
|
|
ss.private_header_files = 'FBSDKCoreKit/FBSDKCoreKit/Basics/Internal/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Basics/Instrument/**/*.h'
|
|
ss.library = 'z'
|
|
end
|
|
|
|
s.subspec 'Core' do |ss|
|
|
ss.dependency 'FBSDKCoreKit/Basics'
|
|
ss.exclude_files = 'FBSDKCoreKit/FBSDKCoreKit/Basics/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Basics/**/*.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/include/**/*'
|
|
ss.source_files = 'FBSDKCoreKit/FBSDKCoreKit/**/*.{h,m,mm}'
|
|
ss.public_header_files = 'FBSDKCoreKit/FBSDKCoreKit/Internal/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppLink/*.h'
|
|
ss.private_header_files = 'FBSDKCoreKit/FBSDKCoreKit/Internal/**/*.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/**/*.h'
|
|
ss.resources = 'FacebookSDKStrings.bundle'
|
|
ss.ios.exclude_files = 'FBSDKCoreKit/FBSDKCoreKit/FBSDKDeviceButton.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/FBSDKDeviceViewControllerBase.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/Device/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Swift/**/*'
|
|
ss.tvos.exclude_files = 'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/AAM/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/SuggestedEvents/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/Codeless/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/FBSDKHybridAppEventsScriptMessageHandler.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppEvents/Internal/ML/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/AppLink/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/FBSDKGraphErrorRecoveryProcessor.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/FBSDKMeasurementEvent.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/FBSDKMutableCopying.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/FBSDKProfile.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/FBSDKProfilePictureView.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/FBSDKURL.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/BridgeAPI/**/*',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLinkReturnToRefererView_Internal.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAppLink_Internal.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKAudioResourceLoader.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKContainerViewController.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMeasurementEvent_Internal.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKMonotonicTime.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKProfile+Internal.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKSystemAccountStoreAdapter.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKTriStateBOOL.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/FBSDKURL_Internal.h',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKCloseIcon.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKColor.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/UI/FBSDKMaleSilhouetteIcon.{h,m}',
|
|
'FBSDKCoreKit/FBSDKCoreKit/Internal/WebDialog/**/*'
|
|
end
|
|
|
|
s.subspec 'Swift' do |ss|
|
|
ss.dependency 'FBSDKCoreKit/Core'
|
|
ss.platform = :ios
|
|
ss.source_files = 'FBSDKCoreKit/FBSDKCoreKit/Swift/*.{h,m,swift}'
|
|
ss.exclude_files = 'FBSDKCoreKit/FBSDKCoreKit/Swift/Exports.swift'
|
|
end
|
|
end
|