mirror of
https://github.com/zhigang1992/facebook-ios-sdk.git
synced 2026-01-12 22:47:16 +08:00
Summary:
Made these updates to fix the following errors:
```
$ pod trunk push --allow-warnings --synchronous FacebookGamingServices.podspec
Updating spec repo `cocoapods`
Validating podspec
-> FacebookGamingServices (12.3.1)
- ERROR | [iOS] unknown: Encountered an unknown error (There is a circular dependency between FacebookGamingServices and FBSDKGamingServicesKit) during validation.
[!] The spec did not pass validation, due to 1 error.
$ pod trunk push --allow-warnings --synchronous FacebookGamingServices.podspec
Updating spec repo `cocoapods`
Validating podspec
-> FacebookGamingServices (12.3.1)
- NOTE | xcodebuild: note: Using new build system
- NOTE | xcodebuild: note: Using codesigning identity override: -
- NOTE | xcodebuild: note: Build preparation complete
- NOTE | [iOS] xcodebuild: note: Planning
- NOTE | [iOS] xcodebuild: note: Building targets in parallel
[!] Unable to accept duplicate entry for: FacebookGamingServices (12.3.1)
[!] FacebookGamingServices has been deprecated in favor of FBSDKGamingServicesKit
```
Here are the only differences now:
```
diff FBSDKGamingServicesKit.podspec FacebookGamingServices.podspec
9a10,11
> s.deprecated = true
> s.deprecated_in_favor_of = 'FBSDKGamingServicesKit'
11c13
< s.name = 'FBSDKGamingServicesKit'
---
> s.name = 'FacebookGamingServices'
---
```
Reviewed By: samodom
Differential Revision: D34448844
fbshipit-source-id: 91dc87f562f6e6588e0f75f384cead2ce5abad1f
63 lines
2.5 KiB
Ruby
63 lines
2.5 KiB
Ruby
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
# All rights reserved.
|
|
#
|
|
# This source code is licensed under the license found in the
|
|
# LICENSE file in the root directory of this source tree.
|
|
|
|
# Use the --use-libraries switch when pushing or linting this podspec
|
|
|
|
Pod::Spec.new do |s|
|
|
s.deprecated = true
|
|
s.deprecated_in_favor_of = 'FBSDKGamingServicesKit'
|
|
|
|
s.name = 'FacebookGamingServices'
|
|
s.version = '13.0.0'
|
|
s.summary = 'Official Facebook SDK for iOS to access Facebook Gaming Services'
|
|
|
|
s.description = <<-DESC
|
|
The official Facebook SDK for iOS Gaming Services.
|
|
|
|
See full documentation at:
|
|
https://developers.facebook.com/docs/games/gaming-services/sdk-ios
|
|
DESC
|
|
|
|
s.homepage = 'https://developers.facebook.com/docs/ios/'
|
|
s.license = {
|
|
type: 'Facebook Platform License',
|
|
text: <<-LICENSE
|
|
Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved.
|
|
|
|
You are hereby granted a non-exclusive, worldwide, royalty-free license to use,
|
|
copy, modify, and distribute this software in source code or binary form for use
|
|
in connection with the web services and APIs provided by Facebook.
|
|
|
|
As with any software that integrates with the Facebook platform, your use of
|
|
this software is subject to the Facebook Platform Policy
|
|
[http://developers.facebook.com/policy/]. This copyright notice shall be
|
|
included in all copies or substantial portions of the software.
|
|
|
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
LICENSE
|
|
}
|
|
s.author = 'Facebook'
|
|
|
|
s.platform = :ios
|
|
s.ios.deployment_target = '11.0'
|
|
|
|
s.swift_version = '5.0'
|
|
|
|
s.source = {
|
|
http: "https://github.com/facebook/facebook-ios-sdk/releases/download/v#{s.version}/FacebookSDK_Dynamic.xcframework.zip",
|
|
sha1: '608a15c67bb641d49fc59fc2186cd39c45a3941b'
|
|
}
|
|
s.vendored_frameworks = "XCFrameworks/FBSDKGamingServicesKit.xcframework"
|
|
s.dependency "FBSDKCoreKit_Basics", "#{s.version}"
|
|
s.dependency "FBSDKCoreKit", "#{s.version}"
|
|
s.dependency "FBSDKShareKit", "#{s.version}"
|
|
end
|