Skip to content

Make addCardToAppleWallet fail consistently when module is not linked - #62

Merged
JakubKorytko merged 1 commit into
Expensify:mainfrom
MegaManSec:pr/jr-13-6f8ad2a
Sep 30, 2026
Merged

JakubKorytko merged 1 commit into
Expensify:mainfrom
MegaManSec:pr/jr-13-6f8ad2a

Conversation

@MegaManSec

Copy link
Copy Markdown
Contributor

No description provided.

(cherry picked from commit 6f8ad2aa92a14a3999fb5f2852b9b6ac1fdb1f9f)

@JakubKorytko JakubKorytko left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Tested on iOS and Android (release builds, RN 0.81), linked and unlinked.

Linked: behavior unchanged on both platforms.
Unlinked on iOS: main resolves addCardToAppleWallet to 'error' silently, this PR rejects with the linking error as intended.

Note that on iOS the library currently crashes when unlinked (new NativeEventEmitter() requires a non-null argument), so this only takes effect together with #67. Android is unaffected (addCardToAppleWallet rejects as not available). LGTM.

@JakubKorytko

Copy link
Copy Markdown
Member

thanks!

@JakubKorytko
JakubKorytko merged commit eba9eb5 into Expensify:main Sep 30, 2026
11 checks passed
@os-botify

os-botify Bot commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 0.1.29 🎉

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