Files
facebook-ios-sdk/FBSDKShareKit.podspec
joesusnick da76059698 Consolidating Swift and ObjC Targets (#1355)
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

Updates for v7.0.

Main change is that the SDK can not be developed using Swift. Default will be to build and distribute with Xcode11 using Swift5.

**Migration Concerns**
* CocoaPods
If you were using the 'Swift'  subspec of CocoaPods, ex:
`pod 'FBSDKCoreKit/Swift'`
you can now simply use:
`pod 'FBSDKCoreKit`
* Carthage
You will need to use Xcode 11 or later but no other changes should be necessary. The binaries will include the enhanced Swift interfaces by default.
* SPM
No changes
* xcodebuild
No real changes. The '-Swift' targets are deleted. ex:
target `FBSDKCoreKitSwift-Dynamic` is gone. You can simply use `FBSDKCoreKit-Dynamic` and it will include Swift files
* BUCK
Buck will continue to exclude Swift files for the moment. This is an ongoing effort.
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1355

Test Plan: CI and extensive manual testing to make sure we haven't broken any channels.

Reviewed By: dreamolight

Differential Revision: D21239951

Pulled By: joesus

fbshipit-source-id: 325e2049c5fb1b55769c066998dd4b50e0ccaccc
2020-05-04 11:09:55 -07:00

48 lines
1.8 KiB
Ruby

# Use the --use-libraries switch when pushing or linting this podspec
Pod::Spec.new do |s|
s.name = 'FBSDKShareKit'
s.version = '6.5.2'
s.summary = 'Official Facebook SDK for iOS to access Facebook Platform Sharing Features'
s.description = <<-DESC
The Facebook SDK for iOS ShareKit framework provides:
* Share content with Share Dialog and Message Dialog.
* Send Game Requests or App Invites to grow your app.
* 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.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 = 'Accounts', 'AudioToolbox', 'CoreGraphics', 'Foundation', 'QuartzCore', 'Security', 'Social', 'UIKit'
s.tvos.weak_frameworks = 'AudioToolbox', 'CoreGraphics', 'Foundation', 'QuartzCore', 'Security', 'UIKit'
s.requires_arc = true
s.default_subspecs = 'Share'
s.swift_version = '5.0'
s.header_dir = 'FBSDKShareKit'
s.prefix_header_contents = '#define FBSDKCOCOAPODS'
s.subspec 'Share' do |ss|
ss.dependency 'FBSDKCoreKit', "~> #{s.version}"
ss.exclude_files = 'FBSDKShareKit/FBSDKShareKit/include/**/*',
'FBSDKShareKit/FBSDKShareKit/Swift/Exports.swift'
ss.public_header_files = 'FBSDKShareKit/FBSDKShareKit/*.{h}'
ss.source_files = 'FBSDKShareKit/FBSDKShareKit/**/*.{h,m,swift}'
end
end