Commit Graph

196 Commits

Author SHA1 Message Date
Jawwad Ahmad
f8d1a5ca6f Bump SDK version to 13.0.0 and Graph API Version to v13.0
Summary:
Ran:
```
scripts/run.sh bump-version 13.0.0
scripts/run.sh bump-api-version v13.0
```

Also fixed old paths in script and excluded Package.swift from update check since it is generated later.

Reviewed By: jamestouri

Differential Revision: D34260762

fbshipit-source-id: 7081f07c9f7c670f4350e82415765300d0749e86
2022-02-16 01:11:28 -08:00
Jawwad Ahmad
105a784e7e Drop support for iOS 10.0. Update deployment target for iOS and tvOS to iOS 11.0
Summary: The IPHONEOS_DEPLOYMENT_TARGET and TVOS_DEPLOYMENT_TARGET are now 11.0

Reviewed By: samodom

Differential Revision: D33721097

fbshipit-source-id: 95afae6119fe09c0773252890aef6411f54d24d1
2022-01-24 18:23:07 -08:00
Sam Odom
96feffdfa1 Update package manifest, pod specs for v12.3.1
Reviewed By: joesus

Differential Revision: D33677881

fbshipit-source-id: af72134b4b4f1e5bf11d021d6ad0415af7a51064
2022-01-20 08:37:45 -08:00
Sam Odom
9d09f91589 Bump version from 12.3.0 to 12.3.1
Reviewed By: jawwad

Differential Revision: D33666490

fbshipit-source-id: dd09888a8cdbcbc354b479490544212edaa4f48e
2022-01-19 13:57:35 -08:00
Joe Susnick
7a30c9220c Updating release artifacts for 12.3.0
Summary: $title

Reviewed By: samodom

Differential Revision: D33638832

fbshipit-source-id: 963e8cacdbb45add3e0ff77b28004280f6e0d333
2022-01-18 12:38:43 -08:00
Joe Susnick
d982d18bb1 Bump SDK version to 12.3.0
Summary: $title

Reviewed By: samodom

Differential Revision: D33454388

fbshipit-source-id: 9b0372506309257d9b32dfff96d49ea3b88d0a39
2022-01-06 09:00:42 -08:00
Andres Suarez
1be77973cc Update copyright headers from Facebook to Meta
Reviewed By: aaronabramov

Differential Revision: D33331776

fbshipit-source-id: 31b16e5e4cd0bb26c1e7cf49d9f8168eefdfe5ce
2021-12-27 17:08:35 -08:00
Jawwad Ahmad
ee1f3d104f Re-Update Package.swift and podspecs with new checksums and sha1s for v12.2.1
Reviewed By: samodom

Differential Revision: D33000400

fbshipit-source-id: b17babbd6dde7802c4d125c32e6a036a0500dbb1
2021-12-09 16:19:45 -08:00
Jawwad Ahmad
de45e32f4e Update Package.swift and podspecs with new checksums and sha1s for v12.2.1
Summary:
I ran this on the release branch: remote/fbobjc/releases/release-ios-sdk-v12.2.1
```
time swift run --build-path=`mkscratch path` runner prepare-release | xcpretty
```

I created this diff on the release branch but I'm rebasing this onto master first. It needs to be in master in case someone points their SPM to master, that way they still get the latest release. Once it's in master it will be picked into the release branch.

Reviewed By: samodom

Differential Revision: D32988695

fbshipit-source-id: 849ebca96be82a9f847d2f043e59285aa4b02f91
2021-12-09 09:19:00 -08:00
Jawwad Ahmad
948e4e89eb Bump SDK version to 12.2.1
Reviewed By: jamestouri

Differential Revision: D32955602

fbshipit-source-id: 0e5bd1939ae0cb5c88cdcd6145de807aff1bc9f0
2021-12-08 12:19:13 -08:00
Jawwad Ahmad
e30bfae338 Update Package.swift and podspecs with new checksums and sha1s for v12.2.0
Reviewed By: joesus

Differential Revision: D32874575

fbshipit-source-id: bfe4cc5a6722d8218ae6780fb3241eb0708810b8
2021-12-06 08:10:20 -08:00
Jawwad Ahmad
f7c9fbc5c0 Bump SDK version to 12.2.0
Summary: Also updated the changelog

Reviewed By: samodom

Differential Revision: D32785335

fbshipit-source-id: 35a8cc0c748c4c5c0efe50f74f63630d914565ec
2021-12-01 20:50:41 -08:00
Jawwad Ahmad
7c05a7943b Update Package.swift and podspecs with new checksums and sha1s for v12.1.0
Reviewed By: jamestouri

Differential Revision: D32063815

fbshipit-source-id: d5845e252c7f38fa79e334855009c285109d6ae3
2021-11-01 16:37:53 -07:00
Jawwad Ahmad
7baa8e6eac Update ios.deployment_target in podspecs to 10.0
Summary: iOS 9 was actually dropped in v12.0.0 but the deployment_target in the podspec files hadn't been updated

Reviewed By: joesus

Differential Revision: D32077658

fbshipit-source-id: 81ea1521cca0011f528a8d59020bb178d98962e7
2021-11-01 15:18:28 -07:00
Johnny Xue
69591c1065 Fix up remaining license headers under ios-sdk
Reviewed By: zertosh

Differential Revision: D31871162

fbshipit-source-id: 9665c7b2dc59e32bb06b65b13033c253c44e4fd3
2021-10-26 22:19:48 -07:00
Jawwad Ahmad
2373ffab29 Bump SDK version to 12.1.0
Reviewed By: samodom

Differential Revision: D31924716

fbshipit-source-id: 6f641cf855997d8380d536ba990ca910ac5d7f9e
2021-10-26 08:24:47 -07:00
Andres Suarez
325eb64e5e Apply LICENSELINT
Reviewed By: johnny2217

Differential Revision: D31866195

fbshipit-source-id: 96c9e2047491ab2b10a3dc8d0b8d570d72c48825
2021-10-22 12:29:20 -07:00
Jawwad Ahmad
2f161a41d4 Update Package.swift and podspecs with new checksums and sha1s for v12.0.2
Summary:
I ran this on the release branch: remote/fbobjc/releases/release-ios-sdk-v12.0.2
```
swift run runner prepare-release | xcpretty
```

This diff will be merged into master and then picked into the release branch. It needs to be in master in case someone points their SPM to master, that way they still get the latest release.

Reviewed By: joesus, samodom

Differential Revision: D31717002

fbshipit-source-id: 5de7939ce16d1fee07f7a32dfe288dc4cc90dc6a
2021-10-16 19:04:59 -07:00
Jawwad Ahmad
3e1d62d19d Bump SDK version to 12.0.2
Summary: This release will re-add compatibility with Xcode 12

Reviewed By: joesus

Differential Revision: D31716891

fbshipit-source-id: ae1dbf3453d8223fd3ba022bfba51c394d23aeab
2021-10-16 19:04:59 -07:00
Jawwad Ahmad
b49d765e9d Update Package.swift and podspecs with new checksums and sha1s for v12.0.1
Summary:
I ran this on the release branch: remote/fbobjc/releases/release-ios-sdk-v12.0.1
```
swift run runner prepare-release | xcpretty
```

This diff was created on the release branch but I'm going to rebase it on master so that it can be merged into master. (It needs to be in master in case someone points their SPM to master, that way they still get the latest release).

After its merged into master, I will pick it into the release branch.

Reviewed By: samodom

Differential Revision: D31696499

fbshipit-source-id: aaabbd71bc4e35a3e03cf81c2b6fad4d95f6833c
2021-10-15 12:59:50 -07:00
Jawwad Ahmad
8e28e93626 Bump SDK version to 12.0.1
Summary:
Version bump for 12.0.1 to release a fix for Share Dialog not presenting for SDK 12.0.0

https://github.com/facebook/facebook-ios-sdk/issues/1909

Updated changelog

Reviewed By: samodom

Differential Revision: D31688308

fbshipit-source-id: 7038a111714def6d636ddf7babb194107771ea7e
2021-10-15 10:58:00 -07:00
Jawwad Ahmad
40f38fa69e Update Package.swift and podspecs with new checksums and sha1s for v12.0.0
Reviewed By: joesus

Differential Revision: D31569122

fbshipit-source-id: c5181e87e40de5b02243d0869ccd23cba365bbb3
2021-10-12 08:52:24 -07:00
Jawwad Ahmad
5f328652bf Rename "FacebookSDK.xcframework.zip" to "FacebookSDK_Dynamic.xcframework.zip" to make it clear that it contains Dynamic XCFrameworks
Reviewed By: samodom

Differential Revision: D31458979

fbshipit-source-id: 7924542cd0d3d7b1dced29e05513bb48e068589e
2021-10-07 10:37:17 -07:00
Jawwad Ahmad
a52d4f3284 Update Package.swift and podspecs with new checksums and sha1s for the 12.0.0 release
Reviewed By: joesus

Differential Revision: D31433423

fbshipit-source-id: c2292ac1ee43ca978662c43f4fcd0b8ba9753474
2021-10-06 09:38:38 -07:00
Joe Susnick
a798a82c1b Updated Manifest and Podspec for v12
Summary: Updated the Podspecs and Package Manifest for the artifacts to be released.

Reviewed By: samodom

Differential Revision: D31380729

fbshipit-source-id: c7caf5d9cc16e37a350b7d13ad2cb3888e5b2f1c
2021-10-04 17:54:17 -07:00
Joe Susnick
9e6201f53c Update CoreKit Podspec to include AEM Dependency
Summary: $title

Reviewed By: samodom

Differential Revision: D31271248

fbshipit-source-id: 9e9f5577357b0da59a41c0c038c3956493af4afe
2021-10-01 07:53:20 -07:00
Joe Susnick
3b0656d738 Updating Podspec and Package Manifest for v12
Reviewed By: jawwad

Differential Revision: D31238033

fbshipit-source-id: 364ccae492828434ab4aaffb5e610cb8cc22f3c8
2021-10-01 07:53:20 -07:00
Jawwad Ahmad
27d8fa4d79 Bump SDK version to 12.0.0 and Graph API Version to 12.0
Reviewed By: joesus

Differential Revision: D31216089

fbshipit-source-id: ab4fd5432ff3fbde1b06f2c80c5311a3ba354b92
2021-09-27 19:35:19 -07:00
Jawwad Ahmad
186a5f3453 Bump version to 11.2.1
Summary:
Ran: `scripts/run.sh bump-version 11.2.1`
Updated CHANGELOG.md

Reviewed By: KylinChang

Differential Revision: D30998929

fbshipit-source-id: 8956eec933e3b0e41a26f7f0ed7c917b27d032b2
2021-09-17 08:24:29 -07:00
Joe Susnick
aae5d56c8b Using XCFrameworks with CocoaPods
Summary: Vendors the prebuilt XCFrameworks via CocoaPods.

Reviewed By: jawwad

Differential Revision: D30705506

fbshipit-source-id: 59e8a7ca624bec0d01d2a524788bdec1cc3e4fe8
2021-09-02 08:26:00 -07:00
Jawwad Ahmad
b296ae7b32 Bump Version: 11.2.0
Summary: Ran: scripts/run.sh bump-version 11.2.0

Reviewed By: joesus

Differential Revision: D30657111

fbshipit-source-id: 3ed3902d7ff141bd23ba1f2275d644f2498e4ab2
2021-08-31 14:28:46 -07:00
Joe Susnick
ce2a7a28c1 Remove symlinked headers from CoreKit 2/2
Summary: Actually moving the files. Needs to go in a separate commit so that HG doesn't consider them to be additions. There may be an hg command that handles symlinks more gracefully but I don't know what it is.

Reviewed By: jawwad

Differential Revision: D30522433

fbshipit-source-id: de5ee14ee982c69203d19fcdb9f0468ddb640333
2021-08-26 07:10:01 -07:00
Joe Susnick
954bb0dcde Bump Version 11.1.0
Summary: $title

Reviewed By: jawwad

Differential Revision: D29886262

fbshipit-source-id: 0abd46d24519614d6767a5b73c001a052e15393d
2021-07-23 19:24:46 -07:00
Xin Wu
952ae230d6 FBSDK adopts AEMKit
Summary:
In these stacked diffs, we are going to abstract AEM logic inside FBSDKCoreKit to an independent module called FBAEMKit.

In the end state, FBSDK, MMP and S2S will rely on the same AEMKit.

In this diff:
1. add `FBSDKAEMNetworker` to adopt `FBAEMNetworking`
2. in `FBSDKAEMNetworker`, we still use `FBSDKGraphRequest` to fire a graph API request
3. replace `FBSDKAEMReporter` with `FBAEMReporter`
4. update BUCK
5. added cocoapod support

Reviewed By: joesus

Differential Revision: D29274621

fbshipit-source-id: baa4dd86df358cd56d867745fd741caab5f1c586
2021-07-20 23:11:26 -07:00
James Touri
0708079c2d Bump version 11.0.1
Reviewed By: joesus

Differential Revision: D29303848

fbshipit-source-id: 9a0a77679d82ffca6dd01f675299962ddb858fa6
2021-06-22 10:20:07 -07:00
Joe Susnick
6eca9dd749 Bump Graph and SDK Versions to 11.0 (#1757)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1757

$title

Reviewed By: jawwad

Differential Revision: D28807145

fbshipit-source-id: 343bdcb9b35cbab1ebfb7c1c644f7e2523c27bc5
2021-06-01 16:24:21 -07:00
Joe Susnick
7a5bf25599 Add Basics Podspec
Summary: The issue is that we have a mismatch between how basics is consumed. In terms of BUCK, SPM, and Xcodebuild it's a true module. In the case of CocoaPods it's a "subspec" which is not actually a module. This means we have differences in import statements, and general inconsistencies between our build processes which slows development and is a general pain to manage.

Reviewed By: jawwad

Differential Revision: D28522118

fbshipit-source-id: 953629bd5f365af1fcc064e0f7b6fcf0a07ab48d
2021-05-20 21:33:47 -07:00
Joe Susnick
60a834810b Making Basics a real module
Summary:
FBSDKCoreKit_Basics is currently a module for Swift Package Manager and BUCK but not for CocoaPods or Xcodebuild.

This aims to bring the four in line by separating it into its own module for Xcode builds.

Reviewed By: dreamolight

Differential Revision: D28312787

fbshipit-source-id: b31136de9eb98b31d061d289cd0ea7116acf1c14
2021-05-12 11:46:29 -07:00
Joe Susnick
2331450275 Fix SPM Integration (#1744)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1744

Making the BridgeAPI files public broke the SPM integration. This fixes it by getting rid of modular import statements at the top level.

Reviewed By: jingping2015

Differential Revision: D28335156

fbshipit-source-id: f0543a2f625c2856ac3c2cc351dcf68b5345e89a
2021-05-10 18:01:53 -07:00
Zilin Zhang
38be767ace Bump Version 9.3.0
Summary: $title

Reviewed By: joesus

Differential Revision: D27991669

fbshipit-source-id: dba1925859d48b905d4f242f52c649f2281fdbf2
2021-04-28 12:29:32 -07:00
Joe Susnick
2324da800c Swift Rewrite Pre-work
Summary:
Reorganizes to set us up for a Swift rewrite.

One thing to note about this rewrite is that we cannot simply replace arbitrary files. The dependency graph is extremely important because Swift Package Manager does not support mixed Swift and Objective-C source files.

The high level goal is to maintain backwards compatibility for users importing FBSDKCoreKit while still moving the implementation to Swift under the hood.

To do this, we will need to introduce a new module, LegacyCoreKit which will serve as the source of existing ObjC files.

The existing Swift Package Manager module, FacebookCore, will depend on LegacyCoreKit and will host the top-level Swift files. Top-level in this case refers to those files with the fewest callers from inside the SDK itself; a prime example of this is ApplicationDelegate.

To maintain backwards compatibility for the interfaces, the existing module FBSDKCoreKit will be repurposed to provide wrapper interfaces for FacebookCore.

At the modular level, the dependency graph will look like this:

LegacyCoreKit    the original ObjC implementation undergoing the rewrite
 ↓
FacebookCore    the rewritten native Swift files
 ↓
FBSDKCoreKit    backwards compatible ObjC interfaces

There's still work to do for this including:
* Update CocoaPods to use follow the same structure of relying on an underlying module for the original ObjC implementation
* Update the Xcode targets to follow the same structure and use an underlying module for the original ObjC implementation
* Remove OCMock so that we are forced to restructure the dependencies to be injectable

Reviewed By: Oliverccccct

Differential Revision: D27855791

fbshipit-source-id: f3b5fbbe67492d3a131d475688e91ee8ab51ae6b
2021-04-23 09:44:40 -07:00
Colton Schlosser
8138f8c03c Have cocoapods rebuild FacebookSDKStrings.bundle so xcode processes strings files (#1713)
Summary:
The end result is the final product ends up converting the strings files from the current text format to a minified binary plist format.

Size change:
Before
246,293 bytes (365 KB on disk)

After
133,039 bytes (184 KB on disk)

Nice ~100KB win for installed app size.

I decided to leave the bundle alone instead of breaking out the strings into their own folder because I didn't know if anything else was using the bundle currently. It doesn't look like spm is using it, which is probably a bug.

Also I'm not sure if these strings have test coverage or not, but if not I can help make sure various translations are still working correctly. Not sure where exactly these strings are used.

To help us review the request, please complete the following:

- [x] sign [contributor license agreement](https://code.facebook.com/cla)
- [x] I've ensured that all existing tests pass and added tests (when/where necessary) Wasn't sure how to run them all, I assume PR process has CI that will run them.
- [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) I can't add labels.

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

Test Plan:
Create a new iOS project called `CocoaPodsTranslations` and point to the local pods:

```
// Podfile

target 'CocoaPodsTranslations' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for CocoaPodsTranslations
  pod 'FBSDKCoreKit', :path => '/Users/joesusnick/fbsource/fbobjc/ios-sdk'
  pod 'FBSDKLoginKit', :path => '/Users/joesusnick/fbsource/fbobjc/ios-sdk'

end
```

Adds localizations for a few languages by hitting the '+' under Localization in the project settings. (You'll need to make sure something is checked in the boxes so just accept whatever the default suggestions are)

Then change the schemes's locale in the 'edit scheme' as shown in the video and run.

{F609517560}

Complete flow to show logout alert dialog:

{F609518875}

Reviewed By: khp

Differential Revision: D27881169

Pulled By: joesus

fbshipit-source-id: 0dcb3d641e639a229020012a8b54ee7248ce9098
2021-04-20 11:47:48 -07:00
Joe Susnick
d4b0dbd616 Bump Version 9.2.0
Summary: $title

Reviewed By: tianqibt

Differential Revision: D27605128

fbshipit-source-id: ceea947db5ad3efd84cc5cc70a5eecc3407ae3a9
2021-04-12 09:56:13 -07:00
Joe Susnick
39e2d5e79d Rollback Proposed v10 Bump
Summary: It makes sense to wait until we have more pressing breaking changes to release a major version.

Reviewed By: KylinChang

Differential Revision: D26796073

fbshipit-source-id: f01d622bb7f8451a67309d8c3f62284ceda9a678
2021-03-03 21:49:00 -08:00
Joe Susnick
be7c303b7c Bump Version v10.0.0
Summary: Updating major version to match Graph API release.

Reviewed By: linmx0130

Differential Revision: D26711406

fbshipit-source-id: 2ba166ff86b0d97aececa630e6ee4585ff520aae
2021-03-02 18:13:52 -08:00
Joe Susnick
054620417d Bump Version 9.1.0
Summary: $title

Reviewed By: jingping2015

Differential Revision: D26674136

fbshipit-source-id: fad0fddb08af475a8ee6f3ae58daafc915edaa5d
2021-02-27 08:14:33 -08:00
Joe Susnick
c9da77b1e5 Saner header paths for CoreKit podspec
Summary: Minor cleanup - Removes some paths in `public_header_files` that were being clobbered anyway by `private_header_files`.

Reviewed By: Oliverccccct

Differential Revision: D26429454

fbshipit-source-id: 6d84edc48b74e9bf35e366b0c659b155b12007b6
2021-02-17 13:25:43 -08:00
Mengxiao Lin
967379a8da Compile FBSDKDynamicFrameworkLoader.m with ARC (#1650)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1650

Following https://github.com/facebook/facebook-ios-sdk/issues/1645

Move `FBSDKDynamicFrameworkLoader.m` to `Internal` so that it will be compiled with ARC.

Reviewed By: joesus

Differential Revision: D26387787

fbshipit-source-id: ed88d077ed7affcb27710a74ac06f1d2d25eb54e
2021-02-11 14:05:22 -08:00
Zilin Zhang
ed2bb1319a Bump version 9.0.1
Summary: As title

Reviewed By: joesus

Differential Revision: D26215176

fbshipit-source-id: 19c0291c6cdb2fa678d90d852be8015501284b63
2021-02-05 16:46:33 -08:00
Joe Susnick
c4ff459a94 Version 9.0
Summary: $title

Reviewed By: jingping2015

Differential Revision: D25786200

fbshipit-source-id: 285f0ed5c7a6b398bcbe541feaae250243369b29
2021-01-08 11:32:30 -08:00