Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ios)!: upgrade facebook-ios-sdk to v12 #132

Merged
merged 6 commits into from Nov 13, 2021
Merged

feat(ios)!: upgrade facebook-ios-sdk to v12 #132

merged 6 commits into from Nov 13, 2021

Conversation

CodeToTee
Copy link
Contributor

@CodeToTee CodeToTee commented Nov 12, 2021

Upgrade FBSDK to v12.1.0. This fixes #55.

BREAKING CHANGE:

  • For iOS, getAdvertiserID will always return null, as the upstream FBSDK no longer provides the advertiserID
  • iOS minimum deployment target changes from 9 to 10, due to upstream FBSDK change
  • setAdvertiserTrackingEnabled always returns true now, as it will never fail; no functional change from previous implementation

Here is a summary of the changes:

  • Updated react-native-fbsdk-next.podspec to specify FBSCK v12.1.0
  • Fixed compiler warnings and deprecations for iOS builds
  • Updated README to add additional instructions for running the example
  • Updated refresh-example.sh to extract the Facebook App ID into a variable
  • Updated example folder artifacts based on latest changes

I tested these changes by running the example and substituting my own local Facebook App ID and verified I could log in and log out with the test app.

Note: My editor trimmed some whitespace from the ends of a few lines in the README.md file, so the changes look larger than they actually are. All the content changes I made are near the end of the file.

@CodeToTee CodeToTee changed the title Upgrade fbsdk to v12 feat: Upgrade FBSDK to v12 Nov 12, 2021
Copy link
Collaborator

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fantastic, thank you thank you

Things I saw:

  • iOS/tvOS 9 -> 10 is breaking
  • iOS always returns nil from from getAdvertiserId now
  • setAdvertiserTrackingEnabled always returns true now (may not be a change but easy to note with an asterisk)

...I think that's it?

The changes to the docs and making the facebook app id dynamic is a nice touch

@mikehardy mikehardy changed the title feat: Upgrade FBSDK to v12 feat(ios)!: upgrade facebook-ios-sdk to v12 Nov 13, 2021
@mikehardy mikehardy added the pending-merge Just waiting on clean CI test run. Any maintainer should feel free to merge if CI is passing. label Nov 13, 2021
@CodeToTee
Copy link
Contributor Author

CodeToTee commented Nov 13, 2021 via email

@mikehardy
Copy link
Collaborator

No need to apologize, this is truly great. The notes were great. I should have prefaced that with a statement that I was more just "active listening" to make sure I got everything. I'll get this packed up and out the door

@mikehardy mikehardy merged commit d813153 into thebergamo:master Nov 13, 2021
@mikehardy mikehardy removed the pending-merge Just waiting on clean CI test run. Any maintainer should feel free to merge if CI is passing. label Nov 13, 2021
@mikehardy
Copy link
Collaborator

mikehardy commented Nov 13, 2021

Alright @thebergamo - one more big ol' breaking change queued up, I always like a second set of 👀 on them :-), specifically the commit so you can see the message here: d813153

Release script worked perfectly last time for v5 and should work this time too. I considered (before releasing v5) packing them together since this was already in progress, but just in case there are still people on iOS v9 I split it so the breaking changes are in two steps, and with the previous one they get close to current on the native SDKs but maintain iOS v9. Maybe that's useful? Anyway, I never fear major versions and don't mind them coming quickly as long as the breaking changes notes are written clearly

Let me know what you think, and if it's good 🚀 🚀 :-)

@CodeToTee CodeToTee deleted the upgrade-FBSDK-to-v12 branch November 15, 2021 13:15
@mikehardy
Copy link
Collaborator

Alright, going to go ahead and launch this after a second look myself. If I break it, I'll try to pick up the pieces :-) but hopefully it just goes. Thanks again @NiwotSmitty

github-actions bot pushed a commit that referenced this pull request Nov 15, 2021
# [6.0.0](v5.0.0...v6.0.0) (2021-11-15)

* feat(ios)!: upgrade facebook-ios-sdk to v12 (#132) ([d813153](d813153)), closes [#132](#132)

### BREAKING CHANGES

* iOS minimum 10.0, getAdvertiserID always null on iOS, setAdvertiserTrackingEnabled always returns true on iOS
@github-actions
Copy link

🎉 This PR is included in version 6.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@mikehardy mikehardy mentioned this pull request Nov 15, 2021
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Forward port to facebook-ios-sdk v12
2 participants