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

fix: prevent iOS crash when Google Cast is not enabled and React Native's new architecture is #61

Conversation

chriszs
Copy link
Contributor

@chriszs chriszs commented Jul 21, 2024

What does this Pull Request do?

Removes the cast methods from the list of methods exported to React Native on iOS when USE_GOOGLE_CAST is not enabled.

Why is this Pull Request needed?

iOS apps without this crash on React Native's new architecture after being built with Google Cast support, because otherwise the code tries to reference missing methods.

Are there any points in the code the reviewer needs to double check?

No.

Are there any Pull Requests open in other repos which need to be merged with this?

No.

Addresses Issue(s):

GitHub Issue

@chriszs chriszs requested a review from a team as a code owner July 21, 2024 13:09
@chriszs chriszs changed the title fix: prevent cash without cast on new arch fix: prevent iOS cash when Google Cast is not enabled on React Native's new architecture Jul 21, 2024
@chriszs chriszs changed the title fix: prevent iOS cash when Google Cast is not enabled on React Native's new architecture fix: prevent iOS cash when Google Cast is not enabled when using React Native's new architecture Jul 21, 2024
@chriszs chriszs changed the title fix: prevent iOS cash when Google Cast is not enabled when using React Native's new architecture fix: prevent iOS cash when Google Cast is not enabled and React Native's new architecture is Jul 21, 2024
@AmitaiB AmitaiB changed the title fix: prevent iOS cash when Google Cast is not enabled and React Native's new architecture is fix: prevent iOS crash when Google Cast is not enabled and React Native's new architecture is Jul 24, 2024
@Jmilham21
Copy link
Collaborator

Thanks, @chriszs. This resolves the build issue for iOS. We have some internal tickets to ensure we best support the new architecture, but this should get everyone started on iOS, at least.

I think something with the new architecture is breaking our Android implementation. We will address this with our internal ticket unless you or someone wants to tackle it first

Copy link
Collaborator

@Jmilham21 Jmilham21 left a comment

Choose a reason for hiding this comment

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

✅ Resolves build issues with new architecture.

@Jmilham21 Jmilham21 merged commit 6b0b4f2 into jwplayer:master Jul 24, 2024
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