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(notifee): Event listeners with M1 support #5

Merged
merged 2 commits into from
Jan 31, 2021

Conversation

helenaford
Copy link
Contributor

Updated notifee-demo.sh with a couple of things:

  1. disabled flipper, there's no support currently for M1 Apple M1 chip: ARM64 simulator build fails / CocoaLibEvent facebook/flipper#1758
  2. Added arch -arch x86_64 before pod install. Not needed if developer has install ffi globally but it helps to have it there to ensure it works (Got error while trying pod install CocoaPods/CocoaPods#10220).
  3. Removed --repo-update

Added event listeners for onForegroundEvent and onBackgroundEvent
example-output

cd ios && pod install --repo-update && cd ..
if [ "$(uname -m)" == "arm64" ]; then
echo "Installing pods with prefix arch -arch x86_64"
cd ios && arch -arch x86_64 pod install && cd ..
Copy link
Owner

Choose a reason for hiding this comment

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

fascinating! would have never known to that - flipper disable I knew but obviously wasn't implemented - but this is some subtle magic. Thanks

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks Mike! Your script is great. It was fun to try it out, very handy and useful!

Copy link
Owner

@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.

LGreatTM - thanks @helenaford

@mikehardy mikehardy merged commit ff79a82 into mikehardy:master Jan 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants