Skip to content

fix: add hasEligibleTokenizationTarget to Android paper spec - #135

Merged
JakubKorytko merged 3 commits into
mainfrom
fix/paper-spec-has-eligible-tokenization-target
Oct 29, 2026
Merged

JakubKorytko merged 3 commits into
mainfrom
fix/paper-spec-has-eligible-tokenization-target

Conversation

@JakubKorytko

@JakubKorytko JakubKorytko commented Oct 29, 2026 •

Copy link
Copy Markdown
Member

Details

WalletModule.kt overrides hasEligibleTokenizationTarget, but the old architecture spec (android/src/paper/.../NativeWalletSpec.java) never declared it. With newArchEnabled=false the Android build fails:

WalletModule.kt:274:3 'hasEligibleTokenizationTarget' overrides nothing.

It came in with the UAPP change (PR 75) and is in the published 0.2.x versions, so any app still on the old architecture can't build Android. New architecture apps are not affected, codegen generates the spec from src/NativeWallet.ts.

This adds the missing abstract method, in the same position as in src/NativeWallet.ts.

It also restores @ReactMethod and @DoNotStrip on activateAppleWalletPass and IOSFailAddPaymentPass. They were dropped while resolving merge conflicts. Both are iOS only, so nothing calls them on Android, but every other method in the spec has the annotations.

Related Issues

None

Manual Tests

In apps/basic-example/android, compile the library module on both architectures:

./gradlew -PnewArchEnabled=false :expensify_react-native-wallet:compileDebugKotlin :expensify_react-native-wallet:compileDebugJavaWithJavac
./gradlew -PnewArchEnabled=true :expensify_react-native-wallet:compileDebugKotlin :expensify_react-native-wallet:compileDebugJavaWithJavac

Before: the old architecture build fails with the error above. After: both succeed.

Linked PRs

None

@JakubKorytko
JakubKorytko marked this pull request as ready for review October 29, 2026 10:28
@JakubKorytko
JakubKorytko requested a review from a team October 29, 2026 10:29
@melvin-bot
melvin-bot Bot requested review from marcochavezf and removed request for a team October 29, 2026 10:30
@JakubKorytko
JakubKorytko merged commit fea25f9 into main Oct 29, 2026
7 of 8 checks passed
@os-botify

os-botify Bot commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

🚀 Published to npm in 0.3.1 🎉

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