Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ Key libraries in this repo to pull docs for: `react-native`, `react-native-build

## Project Overview

`@0xsequence/oms-react-native-sdk` is a React Native SDK (Turbo Module) for the OMS platform,
`@polygonlabs/oms-wallet-react-native` is a React Native SDK (Turbo Module) for the OMS platform,
bridging native iOS (Swift) and Android (Kotlin) SDKs to TypeScript. It exposes wallet auth (email
OTP, OIDC redirect), transaction signing, balance queries, and session management to React Native
and Expo apps.
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

All notable changes to `@0xsequence/oms-react-native-sdk` are documented here.
All notable changes to `@polygonlabs/oms-wallet-react-native` are documented here.

Format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
Versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
Expand All @@ -16,6 +16,7 @@ Versions follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Added bare React Native and Expo development-build guidance, native Google ID-token examples, and native autolinking checks.

### Changed
- Renamed the npm package to `@polygonlabs/oms-wallet-react-native`.
- Updated the native Swift and Kotlin dependencies to `0.2.0`.
- Renamed public wallet records to `WalletAccount` and normalized absent JavaScript values to `undefined`.
- Aligned public result unions, errors, networks, fee selection, and indexer models across Android and iOS.
Expand Down
12 changes: 6 additions & 6 deletions PUBLISHING.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Publishing

Release process for `@0xsequence/oms-react-native-sdk`.
Release process for `@polygonlabs/oms-wallet-react-native`.

Only maintainers with npm publish access should publish. Publish from `master` after CI is green.

Expand All @@ -11,7 +11,7 @@ Use an exact semantic version. Add an `-alpha.N` suffix only for a prerelease.
Check that the version is not already published:

```sh
npm view @0xsequence/oms-react-native-sdk@<version> version
npm view @polygonlabs/oms-wallet-react-native@<version> version
```

An npm 404 means the version is available. If npm prints a version, choose a new version.
Expand Down Expand Up @@ -83,7 +83,7 @@ Add `--tag alpha` to both commands only for an alpha release. Stable releases pu
Verify npm sees the published version:

```sh
npm view @0xsequence/oms-react-native-sdk@<version> version dist.integrity
npm view @polygonlabs/oms-wallet-react-native@<version> version dist.integrity
```

## 7. Tag The Release
Expand All @@ -109,9 +109,9 @@ Update the standalone Expo example to the newly published npm tarball:
yarn expo-example:install:published
```

Commit the updated `examples/expo-example/package.json` and
`examples/expo-example/package-lock.json`. This happens after publication because npm cannot
produce a valid registry lock entry for an unpublished version.
Commit the updated `examples/expo-example/package-lock.json` and any manifest change produced by
npm. The release PR can declare the new package name and version in `package.json`, but npm cannot
produce its registry lock entry until that package has been published.

If the package should become the default install later, move the npm dist-tag deliberately in a
separate step.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @0xsequence/oms-react-native-sdk
# @polygonlabs/oms-wallet-react-native

OMS Wallet SDK for bare React Native apps and Expo development builds on iOS and Android.

Expand All @@ -17,7 +17,7 @@ The package contains native code. Expo Go and React Native Web are not supported
Install the package:

```sh
npm install @0xsequence/oms-react-native-sdk
npm install @polygonlabs/oms-wallet-react-native
```

React Native autolinking connects the native modules. Install the iOS pods after adding the package:
Expand All @@ -31,7 +31,7 @@ npx pod-install
Install the package in an Expo SDK 56 app:

```sh
npx expo install @0xsequence/oms-react-native-sdk
npx expo install @polygonlabs/oms-wallet-react-native
```

Create a native development build with prebuild or EAS Build:
Expand All @@ -49,7 +49,7 @@ No SDK config plugin is required. Add your redirect scheme to the app's Expo con
Create one `OMSWallet` and reuse it for the lifetime of the app:

```ts
import { OMSWallet } from '@0xsequence/oms-react-native-sdk';
import { OMSWallet } from '@polygonlabs/oms-wallet-react-native';

const omsWallet = new OMSWallet({
publishableKey: '<publishable-key>',
Expand Down Expand Up @@ -92,7 +92,7 @@ await omsWallet.wallet.signInWithOidcIdToken({
The app presents the browser and passes the returned callback URI to OMS Wallet. For the fixed OMS Google and Apple configurations, use `OmsRelayOidcProviders`:

```ts
import { OmsRelayOidcProviders } from '@0xsequence/oms-react-native-sdk';
import { OmsRelayOidcProviders } from '@polygonlabs/oms-wallet-react-native';

const callbackUri = 'com.example.app://auth/callback';
const started = await omsWallet.wallet.startOidcRedirectAuth({
Expand All @@ -116,7 +116,7 @@ import {
FeeOptionSelectors,
Networks,
parseUnits,
} from '@0xsequence/oms-react-native-sdk';
} from '@polygonlabs/oms-wallet-react-native';

const signature = await omsWallet.wallet.signMessage({
network: Networks.polygon,
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ within 7 business days.

## Scope

This policy covers the `@0xsequence/oms-react-native-sdk` npm package and the native bridge modules
This policy covers the `@polygonlabs/oms-wallet-react-native` npm package and the native bridge modules
in `android/` and `ios/`. Example apps (`examples/`) are not considered in scope.
2 changes: 1 addition & 1 deletion examples/expo-example/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# OMS Expo Example

Expo development-build example for `@0xsequence/oms-react-native-sdk`.
Expo development-build example for `@polygonlabs/oms-wallet-react-native`.

This app mirrors the SDK demo flow with email login, Google redirect login,
wallet selection, message signing, signature verification, and transaction
Expand Down
2 changes: 1 addition & 1 deletion examples/expo-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"typecheck": "tsc --noEmit"
},
"dependencies": {
"@0xsequence/oms-react-native-sdk": "0.1.0-alpha.4",
"@polygonlabs/oms-wallet-react-native": "0.2.0",
"expo": "~56.0.8",
"expo-dev-client": "~56.0.19",
"expo-web-browser": "~56.0.5",
Expand Down
2 changes: 1 addition & 1 deletion examples/expo-example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
type PendingWalletSelection,
type WalletAccount,
type WalletActivationResult,
} from '@0xsequence/oms-react-native-sdk';
} from '@polygonlabs/oms-wallet-react-native';

WebBrowser.maybeCompleteAuthSession();

Expand Down
2 changes: 1 addition & 1 deletion examples/sdk-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"build:ios": "react-native build-ios --mode Debug"
},
"dependencies": {
"@0xsequence/oms-react-native-sdk": "workspace:*",
"@polygonlabs/oms-wallet-react-native": "workspace:*",
"react": "19.2.3",
"react-native": "0.85.3",
"react-native-inappbrowser-reborn": "3.7.1"
Expand Down
2 changes: 1 addition & 1 deletion examples/sdk-example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import {
type PendingWalletSelection,
type WalletAccount,
type WalletActivationResult,
} from '@0xsequence/oms-react-native-sdk';
} from '@polygonlabs/oms-wallet-react-native';
import GoogleIdTokenAuth from '../specs/NativeGoogleIdTokenAuth';

const DEMO_PUBLISHABLE_KEY =
Expand Down
2 changes: 1 addition & 1 deletion examples/trails-actions-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
},
"dependencies": {
"0xtrails": "0.16.2",
"@0xsequence/oms-react-native-sdk": "workspace:*",
"@0xtrails/api": "0.16.2",
"@polygonlabs/oms-wallet-react-native": "workspace:*",
"react": "19.2.3",
"react-native": "0.85.3",
"react-native-inappbrowser-reborn": "3.7.1",
Expand Down
2 changes: 1 addition & 1 deletion examples/trails-actions-example/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import {
type OMSWalletSessionState,
type Network,
type SendTransactionResponse,
} from '@0xsequence/oms-react-native-sdk';
} from '@polygonlabs/oms-wallet-react-native';
import {
encodeFunctionData,
formatUnits,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@0xsequence/oms-react-native-sdk",
"name": "@polygonlabs/oms-wallet-react-native",
"version": "0.2.0",
"description": "OMS Wallet SDK for React Native and Expo development builds.",
"homepage": "https://github.com/0xsequence/react-native-sdk",
Expand Down
2 changes: 1 addition & 1 deletion scripts/install-expo-example-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ trap restore_manifest EXIT
cp "$EXPO_DIR/package.json" "$TMP_DIR/package.json"
cp "$EXPO_DIR/package-lock.json" "$TMP_DIR/package-lock.json"

TARBALL="$TMP_DIR/oms-react-native-sdk-$PACKAGE_VERSION.tgz"
TARBALL="$TMP_DIR/oms-wallet-react-native-$PACKAGE_VERSION.tgz"

cd "$ROOT_DIR"
yarn prepare
Expand Down
2 changes: 1 addition & 1 deletion scripts/verify-expo-autolinking.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const executable = path.join(
'.bin',
'expo-modules-autolinking'
);
const packageName = '@0xsequence/oms-react-native-sdk';
const packageName = '@polygonlabs/oms-wallet-react-native';

for (const platform of ['android', 'ios']) {
const result = spawnSync(
Expand Down
2 changes: 1 addition & 1 deletion src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import type {

function unsupported(): never {
throw new Error(
"'@0xsequence/oms-react-native-sdk' is only supported on native platforms."
"'@polygonlabs/oms-wallet-react-native' is only supported on native platforms."
);
}

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"rootDir": ".",
"paths": {
"@0xsequence/oms-react-native-sdk": ["./src/index"]
"@polygonlabs/oms-wallet-react-native": ["./src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down
58 changes: 29 additions & 29 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -48,33 +48,6 @@ __metadata:
languageName: node
linkType: hard

"@0xsequence/oms-react-native-sdk@workspace:*, @0xsequence/oms-react-native-sdk@workspace:.":
version: 0.0.0-use.local
resolution: "@0xsequence/oms-react-native-sdk@workspace:."
dependencies:
"@eslint/compat": "npm:^2.0.3"
"@eslint/eslintrc": "npm:^3.3.5"
"@eslint/js": "npm:^10.0.1"
"@react-native/babel-preset": "npm:0.85.3"
"@react-native/eslint-config": "npm:0.85.3"
"@types/react": "npm:^19.2.0"
del-cli: "npm:^7.0.0"
eslint: "npm:^9.39.4"
eslint-config-prettier: "npm:^10.1.8"
eslint-plugin-ft-flow: "npm:^3.0.11"
eslint-plugin-prettier: "npm:^5.5.5"
prettier: "npm:^3.8.1"
react: "npm:19.2.3"
react-native: "npm:0.85.3"
react-native-builder-bob: "npm:^0.42.1"
turbo: "npm:^2.8.21"
typescript: "npm:^6.0.2"
peerDependencies:
react: ">=19.2.0"
react-native: ">=0.85.0"
languageName: unknown
linkType: soft

"@0xsequence/wallet-primitives@npm:3.0.0-beta.19":
version: 3.0.0-beta.19
resolution: "@0xsequence/wallet-primitives@npm:3.0.0-beta.19"
Expand Down Expand Up @@ -2747,6 +2720,33 @@ __metadata:
languageName: node
linkType: hard

"@polygonlabs/oms-wallet-react-native@workspace:*, @polygonlabs/oms-wallet-react-native@workspace:.":
version: 0.0.0-use.local
resolution: "@polygonlabs/oms-wallet-react-native@workspace:."
dependencies:
"@eslint/compat": "npm:^2.0.3"
"@eslint/eslintrc": "npm:^3.3.5"
"@eslint/js": "npm:^10.0.1"
"@react-native/babel-preset": "npm:0.85.3"
"@react-native/eslint-config": "npm:0.85.3"
"@types/react": "npm:^19.2.0"
del-cli: "npm:^7.0.0"
eslint: "npm:^9.39.4"
eslint-config-prettier: "npm:^10.1.8"
eslint-plugin-ft-flow: "npm:^3.0.11"
eslint-plugin-prettier: "npm:^5.5.5"
prettier: "npm:^3.8.1"
react: "npm:19.2.3"
react-native: "npm:0.85.3"
react-native-builder-bob: "npm:^0.42.1"
turbo: "npm:^2.8.21"
typescript: "npm:^6.0.2"
peerDependencies:
react: ">=19.2.0"
react-native: ">=0.85.0"
languageName: unknown
linkType: soft

"@radix-ui/primitive@npm:1.1.3":
version: 1.1.3
resolution: "@radix-ui/primitive@npm:1.1.3"
Expand Down Expand Up @@ -10115,10 +10115,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "oms-client-react-native-sdk-example@workspace:examples/sdk-example"
dependencies:
"@0xsequence/oms-react-native-sdk": "workspace:*"
"@babel/core": "npm:^7.25.2"
"@babel/preset-env": "npm:^7.25.3"
"@babel/runtime": "npm:^7.25.0"
"@polygonlabs/oms-wallet-react-native": "workspace:*"
"@react-native-community/cli": "npm:20.1.3"
"@react-native-community/cli-platform-android": "npm:20.1.3"
"@react-native-community/cli-platform-ios": "npm:20.1.3"
Expand All @@ -10140,12 +10140,12 @@ __metadata:
resolution: "oms-client-react-native-sdk-trails-actions-example@workspace:examples/trails-actions-example"
dependencies:
0xtrails: "npm:0.16.2"
"@0xsequence/oms-react-native-sdk": "workspace:*"
"@0xtrails/api": "npm:0.16.2"
"@babel/core": "npm:^7.25.2"
"@babel/plugin-transform-export-namespace-from": "npm:^7.27.1"
"@babel/preset-env": "npm:^7.25.3"
"@babel/runtime": "npm:^7.25.0"
"@polygonlabs/oms-wallet-react-native": "workspace:*"
"@react-native-community/cli": "npm:20.1.3"
"@react-native-community/cli-platform-android": "npm:20.1.3"
"@react-native-community/cli-platform-ios": "npm:20.1.3"
Expand Down
Loading