218 Commits

Author SHA1 Message Date
Zebing Zong
d9822ce3ba Try to fix FBSDKCorekit Library not found for cocoapods (#1173)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1173

When I tried to integrate FBSDK with cocoapods, getting undefined symbol errors in files of `FBSDKEventInferencer.mm` and `FBSDKAddressInferencer.mm`. This is because FBSDKCoreKit.podspec hasn't specified c++ library to compile.
{F226154380}

Reviewed By: joesus

Differential Revision: D19326280

fbshipit-source-id: a070fc22a56e245f6c7193f13f5adfd34c88c624
2020-01-10 13:14:11 -08:00
Zebing Zong
9980c6754f create GraphAPI folder and move relative files under it (#1163)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1163

As title

Reviewed By: joesus

Differential Revision: D19247723

fbshipit-source-id: 374a393220a930ea2306fc2bfb99b0bc63f005e7
2020-01-03 17:22:37 -08:00
Tianqi Li
91f062ed26 bump version 5.13.1
Summary: as title

Reviewed By: ninanina0815

Differential Revision: D19121070

fbshipit-source-id: eca0d029baae77e97aba12f6b220ea78e5131eab
2019-12-16 13:42:47 -08:00
Zebing Zong
389b33f8fd Bump SDK version from 5.12.0 to 5.13.0 (#1149)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1149

As title

Reviewed By: tianqibt

Differential Revision: D18945244

fbshipit-source-id: df03e155d2c41e4a1dd85e6378767e57d4cc6a59
2019-12-12 01:11:38 -08:00
Stan Wu
016c75da78 Fix ios-sdk for Xcode project that gnereated by buck
Summary: As title

Reviewed By: tianqibt

Differential Revision: D18929482

fbshipit-source-id: 193d240ba8bc87f61913666baf1ef39242858c3a
2019-12-11 02:36:17 -08:00
Tianqi Li
62b010ffd1 fix podspec error
Summary: as title

Reviewed By: ninanina0815

Differential Revision: D18827734

fbshipit-source-id: 0c89f5b7790c869ed82da3440cc8f7e7548e81db
2019-12-04 23:31:22 -08:00
Tianqi Li
03ff7fef58 bump version to 5.12.0
Summary: as title

Reviewed By: YOUDAN

Differential Revision: D18806303

fbshipit-source-id: 7fc34934a3a3de3673521fd5ab40d144620a6884
2019-12-03 23:45:40 -08:00
Lina Jin
c9cdc8eaf5 add address inferencer
Summary:
add address inferencer

TODO
* vectorize before prediction

Reviewed By: KylinChang

Differential Revision: D18589778

fbshipit-source-id: 593d7ff837f674278301da6ec36df7b70673adca
2019-11-27 22:54:07 -08:00
Tao Chen
bf22d24569 Refactor on View Hierarchy (#1139)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1139

 - move ViewHierarchy.{h,m} and macros to folder ViewHierarchy
 - delete unused FBSDKFunctionEventBinding.h in MarketingKit. The interface FBSDKFunctionEventBinding doesn't have the implementaion but just a .h.

Reviewed By: joesus

Differential Revision: D18674274

fbshipit-source-id: 24c555a2adf0ae04899ffce4a2c73edec688b759
2019-11-25 15:06:55 -08:00
Joe Susnick
ccac786516 Bump Version 5.11.1 (#1129)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1129

Bumps version to 5.11.1

Reviewed By: Mxiim

Differential Revision: D18594564

fbshipit-source-id: 94573a7c7636c80d00362f70b8a47524f5708d94
2019-11-19 09:40:16 -08:00
joesusnick
6a83270d5b Fixing issue with Cocoapods used in Unity (#1122)
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

Fixing import errors when using Unity.
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1122

Test Plan: Open a new unity project that includes the SDK. Open the generated Xcode workspace. It should compile without error about improper header import syntax.

Reviewed By: Mxiim

Differential Revision: D18572442

Pulled By: joesus

fbshipit-source-id: bddea9a5b97d18f8b27b583dfcce6866c382aea0
2019-11-18 10:17:03 -08:00
Zilin Zhang
0d676874b2 Bump version 5.11.0
Summary: Bump version 5.11.0

Reviewed By: tianqibt

Differential Revision: D18520673

fbshipit-source-id: 57f7d7ee1eb20f734a13235168ac346e4d77b7c8
2019-11-14 21:59:12 -08:00
Zilin Zhang
1cb2e317fc Fix travis build (#1114)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1114

As title

Differential Revision: D18499160

fbshipit-source-id: ffda736eb3889f52e9069e921a0e2cd3640b6709
2019-11-14 00:12:53 -08:00
Joe Susnick
0cf2247794 Bump Version (#1109)
Summary:
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1109

Patch version 5.10.1 with various Swift Package Manager fixes.

Reviewed By: jingping2015

Differential Revision: D18451008

fbshipit-source-id: 13e471dbcd350f8fcfd32a7f61cc5b67971b706b
2019-11-12 19:55:13 -08:00
Tianqi Li
7433aa744f download and save model info
Summary:
as title

Following diffs will include:
* add old version file clear function
* for loop to enable each feature/usecase

Reviewed By: dreamolight

Differential Revision: D18362851

fbshipit-source-id: 322823fbfe9308f8522d44768aa78d19aae234e7
2019-11-11 13:25:27 -08:00
joesusnick
c2cfa0350e Must exclude include directories (#1098)
Summary:
Cocoapods will pass allow directories full of symlinks during linting but not while pushing to trunk.

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

This is very strange. Cocoapods was able to lint these podspecs successfully but pushing them to trunk resulted in an error.
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1098

Test Plan: Ran manually and pods are now available in trunk.

Reviewed By: dreamolight

Differential Revision: D18383388

Pulled By: joesus

fbshipit-source-id: 3012c3a1128531464aedac1d17094116c1767a32
2019-11-08 07:02:26 -08:00
Tao Chen
6358423729 fetch GK from server to enable the feature
Summary: - fetch feature GK from server to control enabling suggested events

Reviewed By: KylinChang

Differential Revision: D18383293

fbshipit-source-id: 67d40381d8e351da1764540e1e7bd5ef52037713
2019-11-07 17:16:18 -08:00
Joe Susnick
396cfbe37a Version Bump 5.10.0
Summary: Bumps version for releasing 5.10.0

Reviewed By: dreamolight

Differential Revision: D18350049

fbshipit-source-id: 27cde87a747e4678e72138a06653c5709e4f9c90
2019-11-06 10:55:57 -08:00
Joe Susnick
b726001c04 Bump Version 5.9.0
Summary: Bumping SDK version.

Reviewed By: jingping2015

Differential Revision: D18204300

fbshipit-source-id: 67628f1875132ebc3f3feed14b4dc2ec3c6fe70f
2019-10-29 11:19:46 -07:00
joesusnick
f3be0dab4c SPM Support (#1073)
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

Added a `Package.swift` manifest.
Updated imports to be non-modular for non-cocoapod setups.
Updated dynamic framework loader to compile with arc. - This should be checked. Not 100% sure I did not cause a regression.
Added a directory of symlinks to public header files - this was to get around a limitation in the SPM api where they will only accepts a path to header files (forces them to be located in the same directory) and not a list of header files.
Pull Request resolved: https://github.com/facebook/facebook-ios-sdk/pull/1073

Test Plan:
**SPM:**

`cd fbsource/fbobjc/ios-sdk`

Initialize a new repository, add all the files and create a new commit on master.
`git init`
`git add .`
`git commit -m "new commit"`

Open the package itself with >= Xcode 11 by opening `Package.swift` instead of the usual project and verify that it builds

Open a new project with >= Xcode 11 and add a new swift package. For the Package Repository field put the path to the sdk.
`file:///Users/$whoami/fbsource/fbobjc/ios-sdk`

then specify the branch as `master`. This sample project should build and you should be able to consume the kits with `import FBSDKCoreKit` or `FacebookCore` (for the Swift variant), `import FBSDKLoginKit` or `import FacebookLogin` and `import FBSDKShareKit` or `import FacebookShare`.

Make sure that LoginKit and ShareKit also expose CoreKit symbols.

**Xcode:**

Can build all schemes as expected
`BuildAllKits`
`FBSDKTVOSKit-Universal`
`FBSDKTVOSKit-Dynamic`
`SwiftKits`

**CocoaPods:**

`cd fbsource/fbojbc/ios-sdk`

`bundle exec pod lib lint FBSDKCoreKit.podspec`

`bundle exec pod lib lint FBSDKLoginKit.podspec --include-podspecs=FBSDKCoreKit.podspec --allow-warnings`

`bundle exec pod lib lint FBSDKShareKit.podspec --include-podspecs=FBSDKCoreKit.podspec --allow-warnings`

**BUCK:**

`cd fbsource/fbobjc/ios-sdk`
`buck build ios-sdk:FBSDKCoreKit`
`buck build ios-sdk:FBSDKLoginKit`
`buck build ios-sdk:FBSDKShareKit`

Also all of the other BUCK targets (will be covered by sandcastle)

Reviewed By: dreamolight

Differential Revision: D17879652

Pulled By: joesus

fbshipit-source-id: d931140d0fb3b554f1e29e5c2af7e2173316670d
2019-10-29 09:14:15 -07:00
Zilin Zhang
fe155d1e56 Bump version to 5.8.0
Summary: As title

Reviewed By: YOUDAN

Differential Revision: D17819199

fbshipit-source-id: 070d38d47fd5d90e81fcb12c80b5902c8fc45efa
2019-10-08 16:05:25 -07:00
Joe Susnick
d58983ab95 Bump Version 5.7.0
Summary: Bumps version to 5.7.0

Differential Revision: D17675410

fbshipit-source-id: fad8fa722fe724993e341a5bb38bea0e265d3755
2019-10-01 12:18:10 -07:00
Joe Susnick
16b7633e2d Renamed ObjC SDK as iOS SDK
Summary: The GitHub repo has been renamed from facebook-ios-sdk to facebook-objc-sdk

Reviewed By: jingping2015

Differential Revision: D17630050

fbshipit-source-id: 4fa7a3c4859af7fead71c4700a1151903d4734cc
2019-09-30 16:11:34 -07:00
Zilin Zhang
9d1df4e172 Add AAM to FBSDKCoreKit
Summary: Add AAM to FBSDKCoreKit along with changes in podspec and BUCK

Reviewed By: tianqibt

Differential Revision: D17532337

fbshipit-source-id: 770f421602ba8757dce4db3cebf4091605e0169d
2019-09-26 14:02:33 -07:00
Tianqi Li
cf9e0d837f Bump Version: 5.6.0
Summary: as title

Reviewed By: YOUDAN, dreamolight

Differential Revision: D17377457

fbshipit-source-id: 39e769695252654e78c30da4ad614649f4289506
2019-09-13 16:53:18 -07:00
Stan Wu
c57132b9be Refactor header importing to support generate_multiple_pod_projects for cocoapods 1.7.0
Summary: As title

Reviewed By: KylinChang

Differential Revision: D17364143

fbshipit-source-id: 797239a8d8d62176e26f94b7bb10bbca8cda5297
2019-09-13 11:40:16 -07:00
Stan Wu
35332dc367 Fix FBSDKCoreKit.podspec for Swift
Summary: As title

Reviewed By: joesus

Differential Revision: D17229976

fbshipit-source-id: 693dab87dfa3220e1c2e113117d3d7ab3c64bec9
2019-09-06 11:07:11 -07:00
joesusnick
75e50f599c Separate Swift targets (#1031)
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] describe the change (for example, what happens before the change, and after the change)

This is a step towards aligning Swift and Objective-C into a single SDK.

Currently we cannot ship a single target that includes both Swift and Objective-C because some consumers of the SDK are tied to older versions of Xcode. Including Swift would increase their binary size or force them to upgrade before Apple mandates an upgrade.

What we can do is prepare for this inevitability by moving the Swift files into this repository.

Additionally this is easier to maintain and allows us to us to reference ObjC files from Swift directly instead of treating them as a third party dependency.

This work raises a few questions about distribution channels (what will the starting versions be for instance) but that is an acceptable cost for the benefits we get from having all of our related code in one place.
Pull Request resolved: https://github.com/facebook/facebook-objc-sdk/pull/1031

Test Plan:
Able to build is the primary concern. That the old targets are not impacted by the new targets and that the new targets build correctly.

Ensure the older targets can build on Xcode 10.1
* FBSDKCoreKit
* FBSDKShareKit
* FBSDKLoginKit

Ensure the older AND newer targets can build on Xcode 10.3
* FBSDKCoreKit
* FBSDKShareKit
* FBSDKLoginKit
* FBSDKCoreKitSwift
* FBSDKShareKitSwift
* FBSDKLoginKitSwift

Ensure the older AND newer targets can build on the latest Xcode (11 beta 6)
// Note: Will need to clean build if you want to build the non-Swift version after building the Swift version
* FBSDKCoreKit
* FBSDKShareKit
* FBSDKLoginKit
* FBSDKCoreKitSwift
* FBSDKShareKitSwift
* FBSDKLoginKitSwift

Reviewed By: dreamolight

Differential Revision: D17164409

Pulled By: joesus

fbshipit-source-id: dbda5036487a2e626e271651b38262e56dac17ce
2019-09-05 17:02:27 -07:00
Stan Wu
8e4d90a430 Bump Version: 5.5.0
Summary: As title

Reviewed By: KylinChang

Differential Revision: D17144988

fbshipit-source-id: 2719c85c49784fba6ba10c9ed498c6233429ada1
2019-08-30 20:20:33 -07:00
Stan Wu
323a64bb73 Bump Version: 5.4.1
Summary: As title

Reviewed By: tianqibt, KylinChang

Differential Revision: D16950044

fbshipit-source-id: 741ad77fe36a4324583b2a551bb2546ef5260265
2019-08-21 16:09:19 -07:00
Tianqi Li
afd460f3f6 Bump Version:5.4.0
Summary: Auto generated diff

Reviewed By: YOUDAN

Differential Revision: D16838968

fbshipit-source-id: 8d2a4a119945d6923d01cf77ea1c59645962baa0
2019-08-15 15:31:44 -07:00
Jing Ping
1a223fd53b Bump SDK Version
Summary: update sdk and API version

Reviewed By: joesus

Differential Revision: D16550852

fbshipit-source-id: e861bf621bc82bc585f5f59de9386f14e58e59f2
2019-07-29 15:21:09 -07:00
Zilin Zhang
72068bf0e9 Bump Versionn: 5.2.3
Summary: Bump Versionn: 5.2.3

Reviewed By: jingping2015, dreamolight

Differential Revision: D16272411

fbshipit-source-id: b57dc334925e78372c06bdbee370af383d17d639
2019-07-15 22:11:39 -07:00
Stan Wu
817158280b Bump Versionn: 5.2.2
Summary: As title

Reviewed By: tianqibt

Differential Revision: D16256393

fbshipit-source-id: bed37a16af8fb3d59b4efa6400b0b9963984c250
2019-07-14 14:46:48 -07:00
Stan Wu
9db26b3917 Bump Version: 5.2.1
Summary: As title

Reviewed By: tianqibt

Differential Revision: D16092720

fbshipit-source-id: 79c28e4fdfdfbfb3cfdb1cd7c96b9f31a21830e7
2019-07-02 11:40:28 -07:00
Stan Wu
57712ca568 Bump Version 5.2.0
Summary: As title

Reviewed By: tianqibt

Differential Revision: D16069163

fbshipit-source-id: 0cd94bec7c8c1959fbc35be07e77ab9324daf6c4
2019-06-30 14:25:07 -07:00
Stan Wu
3d09574eed Bump Version: 5.1.1
Summary: As title

Reviewed By: KylinChang

Differential Revision: D15958486

fbshipit-source-id: 395e7e6ab0827238a87e8e3e3d7acb7087adf9ed
2019-06-22 15:51:36 -07:00
Tianqi Li
be22d5d786 Bump Version:5.1.0
Summary: Run `sh scripts/run.sh bump-version 5.1.0`

Reviewed By: YOUDAN

Differential Revision: D15949897

fbshipit-source-id: 9eaa9dba839a9e85714153b812893e056e73f28f
2019-06-21 15:31:46 -07:00
Zilin Zhang
37bb3901a6 Move gzip to Basic
Summary: Move gzip to Basic

Reviewed By: dreamolight

Differential Revision: D15873415

fbshipit-source-id: d1d9724ac5a99abb19e5c35fe754766cc7a7d697
2019-06-19 12:48:48 -07:00
Stan Wu
2dc842def5 Bump iOS SDK version to 5.0.2
Summary: As title

Reviewed By: wi3lau, YOUDAN

Differential Revision: D15689665

fbshipit-source-id: f6d9e5f568ca5531b02e597f1356661ceb659781
2019-06-05 21:12:46 -07:00
Jing Ping
1bfc8fea8d Bump IOS SDK version to 5.0.1
Summary: version bump

Reviewed By: stoyan

Differential Revision: D15445451

fbshipit-source-id: 787695a71a936509300a5a2783ace02fec9beb17
2019-05-22 11:22:47 -07:00
Afonso
e299c1a4b4 Update the FBSDKCoreKit podspec to take into account the new modulemap file (#988)
Summary:
With the introduction of the `FBSDKCoreKit.modulemap` to the Basics folder, after updating to the newer version of the pod, I keep getting the following warning:
<img width="470" alt="Screen Shot 2019-05-01 at 5 51 06 pm" src="https://user-images.githubusercontent.com/4775087/57009482-384d3e00-6c3a-11e9-95cb-80ed1ed3e795.png">
As it is not a source file, Xcode doesn't need to analyse because it won't be able to compile it.

- Restricted the type of source files to `.h` and `.m`

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] describe the change (for example, what happens before the change, and after the change)
Pull Request resolved: https://github.com/facebook/facebook-objc-sdk/pull/988

Reviewed By: codytwinton

Differential Revision: D15205123

Pulled By: tianqibt

fbshipit-source-id: 1fbfff432e25a7906589be7f209200f48b3f1601
2019-05-03 14:13:45 -07:00
Tianqi Li
ee53475a0f format FBSDKCoreKit.podspec
Summary: as title

Reviewed By: dreamolight

Differential Revision: D15162842

fbshipit-source-id: 6a5fb4333f925105aa8d4771fbd1820018ec0e07
2019-05-01 09:32:32 -07:00
Cody Winton
391e128682 Bump Version: 5.0.0 and Graph API v3.3
Summary: Ran scripts `sh scripts/run.sh bump-version 5.0.0` and `sh scripts/run.sh bump-api-version v3.3`

Reviewed By: jingping2015

Differential Revision: D15150268

fbshipit-source-id: 5638336e14b531f39c0a34e7b72c8b8f0737d6d9
2019-04-30 11:04:52 -07:00
Tianqi Li
ec5ed92dc7 Revert D14915505: revert due to Travis build error Back out "[iOS][2/n]change podsepc"
Differential Revision:
D14915505

Original commit changeset: bcf36962bbc9

fbshipit-source-id: 90d1285a05cc4fefb5e6c496268e101f13c59906
2019-04-12 12:06:57 -07:00
Tianqi Li
4119cf8256 revert due to Travis build error Back out "[iOS][2/n]change podsepc"
Summary: Original commit changeset: 4f31c9143769

Reviewed By: YOUDAN

Differential Revision: D14915505

fbshipit-source-id: bcf36962bbc93563e322f273a4e5ab324935dbaa
2019-04-12 10:42:08 -07:00
Tianqi Li
1a07f27d42 change podsepc
Summary: Create subspec for Basics and make other parts in CoreKit depends on Basics.

Reviewed By: dreamolight

Differential Revision: D14875453

fbshipit-source-id: dbace790817eb2031f59ef47a30a6765da9a7da6
2019-04-11 22:44:49 -07:00
Cody Winton
cf78216e94 Resolved Cocoapod linting issues (#981)
Summary:
Thanks for proposing a pull request.

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

- [ ] sign [contributor license agreement](https://developers.facebook.com/opensource/cla)
- [ ] describe the change (for example, what happens before the change, and after the change)
Pull Request resolved: https://github.com/facebook/facebook-objc-sdk/pull/981

Reviewed By: jingping2015

Differential Revision: D14766112

Pulled By: codytwinton

fbshipit-source-id: 006aceb137881415f47eb1aa2ef2f2ef7879a3df
2019-04-05 15:42:20 -07:00
Cody Winton
87d8a606a8 Bump Version 5.0.0-rc.1
Summary: Bumped version for first 5.0 RC

Reviewed By: dreamolight

Differential Revision: D14718312

fbshipit-source-id: 91522df58a87efd015f3458f506ba052310e8a39
2019-04-02 17:30:25 -07:00
Cody Winton
6d5a929dbf Bump Version 4.43.0
Summary: Retroactively bumped version to match 4.x-branch

Reviewed By: jingping2015

Differential Revision: D14718291

fbshipit-source-id: aeaec62a664c29f5c3004e421771f160a189b27c
2019-04-02 11:38:10 -07:00