Commit Graph

175 Commits

Author SHA1 Message Date
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
Tianqi Li
5a5222ab0b Bump Version: 8.2.0
Summary: As title

Reviewed By: joesus

Differential Revision: D24867556

fbshipit-source-id: 98f47c4cb87149295539b69acae5b6116d044c41
2020-11-11 14:40:21 -08:00
Stan Wu
1053abf5b3 Expose a few functions in FBSDKUserDataStore as public (#1557)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1557

As title

Reviewed By: Oliverccccct, tianqibt, KylinChang

Differential Revision: D24723890

fbshipit-source-id: dff26144a4b7c0515423e58b42c69d2a82543f53
2020-11-04 23:44:22 -08:00
Joe Susnick
aa4a454658 Bump Version 8.1.0
Summary:
ran:
`sh scripts/run.sh bump-version 8.1.0`
Manually updated CHANGELOG.md.

Reviewed By: YOUDAN, KylinChang

Differential Revision: D24506932

fbshipit-source-id: 9ed6d6b58a35d8dee299462847628c6400325b45
2020-10-26 18:09:30 -07:00
Alberto Gragera Cerrajero
6771546b8e Unit Test Hardening (FBSDKAppLinkResolver)
Summary:
The main goal of this diff is to remove OHHTPStubs from the FBSDKAppLinkResolver test code.

The easiest way to do that has been to extract the request building part from FBSDKAppLinkResolver to it own class.

These allows us to:

- Assert correctness over some parts of the request independently
- Inject a builder mock in FBSDKAppLinkResolver so we can control the FBSDKGraphRequest and inject the response we want, without having to mock the http layer at all.

Reviewed By: joesus

Differential Revision: D24077192

fbshipit-source-id: 54141fe1a0533bc97503e7a241387c0d0c4da5e3
2020-10-10 00:43:50 -07:00
Zilin Zhang
1bb5d46e77 Remove dynamic linking of ASIdentifierManager
Summary: As title

Reviewed By: Oliverccccct, dreamolight

Differential Revision: D23947476

fbshipit-source-id: 383c574b2966e0870bb1aba2a7b52d12cf9ad50b
2020-09-27 12:39:31 -07:00
Joe Susnick
cc9f67162c Bump v8.0.0 (#1497)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1497

$title

Reviewed By: robtimp

Differential Revision: D23857192

fbshipit-source-id: b15055daee5a981abc88a55af7abf838f22fbe50
2020-09-23 15:43:34 -07:00
joesusnick
5391abc104 fbshipit-source-id: fafb217e6ccb2f8da19871a8acb4397e15d6d79e 2020-09-22 10:00:24 -07:00
Zilin Zhang
a94fbd4ce0 Bump version 7.1.1
Summary: As title

Reviewed By: joesus

Differential Revision: D22242732

fbshipit-source-id: 4b800f4dbd835d1f8f490442b6199a2a2ce45945
2020-06-25 15:23:32 -07:00
Joe Susnick
d503e88ce7 Make pods modular (#1412)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1412

Cocoapods that combine Swift and ObjC need to enable modules to be statically loaded.

So in the Podfile if you need to include `use_modular_headers!` if you do NOT include `use_frameworks!`.

This is a pain for users who don't care about how we handle modular headers in our SDK so we should make it easy for them to be able to load our libraries statically and still import them as modules.

More info:
http://blog.cocoapods.org/CocoaPods-1.5.0/
https://stackoverflow.com/questions/52910973/how-to-remove-use-frameworks-and-keep-using-swift-pods-on-an-objective-c-projec

Also updates ruby syntax to be more readable.

Reviewed By: KylinChang

Differential Revision: D22048806

fbshipit-source-id: f09699f78b90e75792fdbd0267c3391b1d528f8a
2020-06-22 11:53:27 -07:00
Zilin Zhang
39c44e7b90 Bump version v7.1.0
Summary: As title

Reviewed By: ninanina0815

Differential Revision: D22149024

fbshipit-source-id: 0c8c3adb1dae22828df0d14bb9bb2c95c5256b0b
2020-06-22 07:43:43 -07:00
Joe Susnick
e598025476 Bump version 7.0.1
Summary: Bumps version to 7.0.1

Reviewed By: dloomb

Differential Revision: D21942281

fbshipit-source-id: 8f6a7b16d97ed215141ce140c524d832d4fcfc52
2020-06-09 09:52:03 -07:00
Joe Susnick
efc6f4a241 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
2020-05-05 11:53:54 -07:00
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
Joe Susnick
cdb8c71fb7 Bump Version 6.5.2
Summary: Bumps version to 6.5.2

Reviewed By: tianqibt

Differential Revision: D21312461

fbshipit-source-id: 588ae2d9d4ee8e814693b0e33fc71ac92f08f780
2020-04-29 18:32:26 -07:00
Joe Susnick
7a6532a385 Bump Version 6.5.1 (#1354)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1354

Patches v6.5.0 of the iOS SDK.

Reviewed By: tianqibt

Differential Revision: D21213007

fbshipit-source-id: 4835582cdd3416547eb4a4d4dc40769fea8b1c8d
2020-04-23 17:39:53 -07:00
Tianqi Li
c791884e83 bump version to 6.5.0
Summary: as title

Reviewed By: KylinChang

Differential Revision: D21137062

fbshipit-source-id: c92df67d5b38b277e0bc94daef99e232bbf72ac7
2020-04-20 15:56:18 -07:00
Joe Susnick
ef687a4c1b Bump Version 6.4.0 (#1340)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1340

Bumps version to 6.4.0

Reviewed By: Mxiim

Differential Revision: D21030075

fbshipit-source-id: cb0f4ba2db543ba0af1e37722fe5896000ae2f01
2020-04-15 10:55:06 -07:00
Zilin Zhang
9e0e1021a7 Bump version 6.3.0 (#1294)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1294

As title

Reviewed By: YOUDAN

Differential Revision: D20651369

fbshipit-source-id: 7d18a162e36b0699d6cdb512b02628b86ea2cfbd
2020-03-25 19:02:39 -07:00
Zilin Zhang
d78287e6f0 Bump version 6.2.0 (#1276)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1276

As title

Reviewed By: YOUDAN

Differential Revision: D20332647

fbshipit-source-id: 185413578db591c0f8a8241eb32445d34f2764b4
2020-03-09 14:32:24 -07:00
Joe Susnick
0a1c09ff2d Removing CoreLocation weak-linking from podspecs (#1268)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1268

Not sure why we were weak-linking core location. I am assuming this was related in some way to the deprecated PlacesKit but am not positive.

Reviewed By: Oliverccccct

Differential Revision: D20167000

fbshipit-source-id: 4b8e69d3e263667cb29ac6ecebb87c0da3ba93bb
2020-02-29 09:22:36 -08:00
Joe Susnick
5a7e223d0f Bump Version: 6.0.0 (#1220)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1220

Bumps sdk version to 6.0.0
Bumps api version to v6.0

Reviewed By: jingping2015, ZebingZong, KylinChang

Differential Revision: D19698716

fbshipit-source-id: 165ad3f3ac0f5c686e965f521e9d807f9f21d523
2020-02-04 16:26:59 -08:00