feat: align native bridges with SDK 0.3.0 - #95
Conversation
|
test |
|
Code review 1 issue found. Checked for bugs and CLAUDE.md compliance. CLAUDE.md compliance: Surgical Changes violation in src/index.tsx File: src/index.tsx lines 19-114 (https://github.com/0xPolygon/oms-wallet-react-native-sdk/blob/3d2fe8aee38fe5feac7e8f9d0aef07557665726a/src/index.tsx) The export type block from types was fully re-alphabetized, moving dozens of pre-existing, unrelated exports to new positions. Examples:
These are pre-existing, unrenamed identifiers repositioned purely for alphabetical ordering -- not functionally required by the SDK 0.3.0 alignment. Rule violated -- AGENTS.md Surgical Changes (https://github.com/0xPolygon/oms-wallet-react-native-sdk/blob/3d2fe8aee38fe5feac7e8f9d0aef07557665726a/AGENTS.md):
Suggested fix: Keep pre-existing exports in their original order and only insert the new SDK 0.3.0 type exports (e.g., AccessGrant, SolanaBalance, SmartSessionGrant, etc.) at the end of the block or in logical groupings, matching the pre-existing style. No bugs found. Native bridge parameter ordering, type hydration, discriminated unions, and error handling are all consistent across TypeScript, iOS (Swift/ObjC), and Android (Kotlin) layers. |
Summary
Prepare the React Native SDK for version 0.3.0 by aligning its TypeScript API and native bridges with the released Swift and Kotlin SDK 0.3.0 packages.
Changes
Verification
yarn install --immutableyarn verify(35 tests; generated API current at 149 public API IDs)yarn codegen-drift-checkyarn check:package(108-file package dry-run, includingAPI.mdandMIGRATION.md)@polygonlabs/oms-wallet-react-nativefrom 0.2.0 to 0.3.0Release
The included minor changeset will release
@polygonlabs/oms-wallet-react-nativeas 0.3.0 after merge.