Bump Version 7.0 (#1367)

Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1367

Bumping version to 7.0
Bumping Graph API version to 7.0

Reviewed By: jingping2015

Differential Revision: D21405159

fbshipit-source-id: 7ee479aff3ed663210ae0adb13840280d373d9da
This commit is contained in:
Joe Susnick
2020-05-05 11:50:09 -07:00
committed by Facebook GitHub Bot
parent b91ee8ed6a
commit efc6f4a241
14 changed files with 40 additions and 25 deletions

View File

@@ -96,7 +96,7 @@ jobs:
osx_image: xcode11
script: sh scripts/run.sh release cocoapods FBSDKGamingServicesKit FBSDKTVOSKit
- stage: verify release
osx_image: xcode 11.3
osx_image: xcode11.3
script: sh scripts/run.sh check-release-status
script: sh scripts/travis/script.sh

View File

@@ -9,10 +9,31 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
### Important
v7.0 will drop support for Xcode versions below 11. This is in line with [Apple's plans](https://developer.apple.com/news/?id=03262020b) to disallow submission of Apps that do not include the iOS 13 SDK.
This means that from v7.0 on, all SDK kits will be built using Xcode 11 and Swift 5.1.
[Full Changelog](https://github.com/facebook/facebook-ios-sdk/compare/v7.0.0...HEAD)
[Full Changelog](https://github.com/facebook/facebook-ios-sdk/compare/v6.5.2...HEAD)
## 7.0.0
## Changed
- Using version 7.0 of the Facebook Graph API
- Dropping support for Xcode versions below 11. This is in line with [Apple's plans](https://developer.apple.com/news/?id=03262020b) to disallow submission of Apps that do not include the iOS 13 SDK.
This means that from v7.0 on, all SDK kits will be built using Xcode 11 and Swift 5.1.
- Include the enhanced Swift interfaces
This primarily matters for how you include CocoaPods
| Distribution Channel | Old way | New Way |
| :--- | :--- | :--- |
| CocoaPods | `pod 'FBSDKCoreKit/Swift'` | `pod 'FBSDKCoreKit'` |
| Swift Package Manager | No change | No change |
| Carthage | No change | No change |
## Deprecated
- FBSDKMarketingKit
[2020-05-05](https://github.com/facebook/facebook-ios-sdk/releases/tag/v7.0.0) |
[Full Changelog](https://github.com/facebook/facebook-ios-sdk/compare/v6.5.2...v7.0.0)
## 6.5.2

View File

@@ -17,6 +17,6 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// The versions for FBSDK and Messenger SDK.
FBSDK_PROJECT_VERSION=6.5.2
FBSDK_PROJECT_VERSION=7.0.0
MNSDK_PROJECT_VERSION=TODO_SUPPORT_MNSDK

View File

@@ -3,7 +3,7 @@
Pod::Spec.new do |s|
s.name = 'FBSDKCoreKit'
s.version = '6.5.2'
s.version = '7.0.0'
s.summary = 'Official Facebook SDK for iOS to access Facebook Platform core features'
s.description = <<-DESC

View File

@@ -29,7 +29,7 @@
#define FBSDK_MAX_CRASH_LOGS 5
#define FBSDK_CRASH_PATH_NAME @"instrument"
#ifndef FBSDK_VERSION_STRING
#define FBSDK_VERSION_STRING @"6.5.2"
#define FBSDK_VERSION_STRING @"7.0.0"
#endif
static NSUncaughtExceptionHandler *previousExceptionHandler = NULL;

View File

@@ -92,5 +92,5 @@
#endif
#define FBSDK_VERSION_STRING @"6.5.2"
#define FBSDK_TARGET_PLATFORM_VERSION @"v6.0"
#define FBSDK_VERSION_STRING @"7.0.0"
#define FBSDK_TARGET_PLATFORM_VERSION @"v7.0"

View File

@@ -30,7 +30,7 @@
#import "FBSDKUtility.h"
static NSString *const _mockGraphPath = @"me";
static NSString *const _mockDefaultVersion = @"v6.0";
static NSString *const _mockDefaultVersion = @"v7.0";
static NSString *const _mockPrefix = @"graph.";
static NSDictionary<NSString *, NSString *> *const _mockParameters(void)
{
@@ -162,12 +162,12 @@ static NSDictionary<NSString *, NSString *> *const _mockEmptyParamter(void)
params:_mockParameters()
httpMethod:FBSDKHTTPMethodPOST
forBatch:YES];
NSString *expectedURL = @"https://graph.facebook.com/v6.0/me?fields=";
NSString *expectedURL = @"https://graph.facebook.com/v7.0/me?fields=";
XCTAssertEqualObjects(url, expectedURL);
// Test URLEncode and URLDecode
NSString *expectedEncodedURL = @"https%3A%2F%2Fgraph.facebook.com%2Fv6.0%2Fme%3Ffields%3D";
NSString *expectedEncodedURL = @"https%3A%2F%2Fgraph.facebook.com%2Fv7.0%2Fme%3Ffields%3D";
NSString *encodedSerializedURL = [FBSDKUtility URLEncode:expectedURL];
XCTAssertEqualObjects(encodedSerializedURL, expectedEncodedURL);

View File

@@ -3,7 +3,7 @@
Pod::Spec.new do |s|
s.name = 'FBSDKGamingServicesKit'
s.version = '6.5.2'
s.version = '7.0.0'
s.summary = 'Official Facebook SDK for iOS to access Facebook Gaming Services'
s.description = <<-DESC

View File

@@ -3,7 +3,7 @@
Pod::Spec.new do |s|
s.name = 'FBSDKLoginKit'
s.version = '6.5.2'
s.version = '7.0.0'
s.summary = 'Official Facebook SDK for iOS to access Facebook Platform with features like Login, Share and Message Dialog, App Links, and Graph API'
s.description = <<-DESC

View File

@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'FBSDKMarketingKit'
s.version = '6.5.2'
s.version = '7.0.0'
s.deprecated = true
s.summary = 'Official Facebook SDK for iOS to set up Codeless Events'

View File

@@ -3,7 +3,7 @@
Pod::Spec.new do |s|
s.name = 'FBSDKShareKit'
s.version = '6.5.2'
s.version = '7.0.0'
s.summary = 'Official Facebook SDK for iOS to access Facebook Platform Sharing Features'
s.description = <<-DESC

View File

@@ -3,7 +3,7 @@
Pod::Spec.new do |s|
s.name = 'FBSDKTVOSKit'
s.version = '6.5.2'
s.version = '7.0.0'
s.summary = 'Official Facebook SDK for tvOS to access Facebook Platform with features like Login and Graph API.'
s.description = <<-DESC

View File

@@ -3,7 +3,7 @@
Pod::Spec.new do |s|
s.name = 'FacebookSDK'
s.version = '6.5.2'
s.version = '7.0.0'
s.summary = 'Official Facebook SDK for iOS to access Facebook Platform'
s.description = <<-DESC

View File

@@ -30,18 +30,12 @@ For projects that include Swift, use `FacebookCore`, `FacebookLogin`, and `Faceb
### CocoaPods
1. If you explicitly **DO NOT** want to include Swift files, add the following to your `Podfile`:
1. Add the following to your `Podfile`:
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
If you would like to use versions of the pods that include Swift, add the following to your `Podfile`:
pod 'FBSDKCoreKit/Swift'
pod 'FBSDKLoginKit/Swift'
pod 'FBSDKShareKit/Swift'
2. Test your install by adding `import FBSDKCoreKit` to your `AppDelegate`
3. Check-out the tutorials available online at: <https://developers.facebook.com/docs/ios/getting-started>
4. Start coding! Visit <https://developers.facebook.com/docs/ios> for tutorials and reference documentation.