Skip to content

fix: make EXUpdates as a dependency only when installed#361

Merged
hurali97 merged 4 commits into
mainfrom
fix/apps-without-ex-updates
Jun 8, 2026
Merged

fix: make EXUpdates as a dependency only when installed#361
hurali97 merged 4 commits into
mainfrom
fix/apps-without-ex-updates

Conversation

@hurali97

@hurali97 hurali97 commented Jun 5, 2026

Copy link
Copy Markdown
Member

Summary

This PR fixes the issue where expo-updates are added as dependency in Podspec of react-native-brownfield if the project is Expo. However, even Expo projects may not use expo-updates.

Test plan

  • Verified Locally on a new Expo App without expo-updates
  • CI Passes

Copilot AI review requested due to automatic review settings June 5, 2026 12:21
@hurali97 hurali97 changed the title fix: do not force EXUpdates for apps without it fix: make EXUpdates as a dependency only when installed Jun 5, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the ReactBrownfield.podspec so that Expo-host integration doesn’t unconditionally add the EXUpdates pod, avoiding build failures for Expo apps that don’t include expo-updates.

Changes:

  • Add a small helper to detect whether expo-updates is installed.
  • Gate the EXUpdates CocoaPods dependency behind that detection when REACT_NATIVE_BROWNFIELD_USE_EXPO_HOST=1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread packages/react-native-brownfield/ReactBrownfield.podspec Outdated
@hurali97 hurali97 requested a review from artus9033 June 5, 2026 12:25
@artus9033 artus9033 requested review from thymikee and removed request for thymikee June 5, 2026 16:58
Comment thread packages/react-native-brownfield/ReactBrownfield.podspec Outdated

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread packages/react-native-brownfield/ReactBrownfield.podspec Outdated
Comment thread packages/react-native-brownfield/ReactBrownfield.podspec
@hurali97 hurali97 merged commit aa14eb2 into main Jun 8, 2026
16 checks passed
@hurali97 hurali97 deleted the fix/apps-without-ex-updates branch June 8, 2026 12:14
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.

3 participants