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
15 changes: 10 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,12 @@ jobs:
node-version-file: .nvmrc
registry-url: "https://registry.npmjs.org"

# Trusted publishing needs npm 11.5.1 or later.
# Trusted publishing needs npm 11.5.1 or later, and Node 22.14.0 or later
# (pinned in .nvmrc). Neither shows up in a dry run, which never
# authenticates. When the token exchange fails, npm falls back to the
# placeholder NODE_AUTH_TOKEN that setup-node writes and the registry
# answers "404 Not Found" on the PUT: the same error as a mismatched
# trusted publisher configuration on npmjs.com.
- name: "Update npm"
run: npm install --global npm@^11.5.1

Expand All @@ -288,12 +293,12 @@ jobs:
pattern: bindings-*
path: bindings

# Both build jobs generate the bindings. They embed checksums of the Rust
# API that uniffi checks at startup, so one set has to be right for both
# platforms. Ship the Android copy only after confirming the two match.
# Both build jobs generate the bindings, and only the Android copy ships.
# The expected API checksums that uniffi verifies at startup live in the
# TypeScript, so that is what has to match.
- name: "Check both platforms generated the same bindings"
run: |
diff --recursive bindings/bindings-android bindings/bindings-ios
diff --recursive bindings/bindings-android/src bindings/bindings-ios/src
cp -R bindings/bindings-android/cpp .
mkdir -p src/generated
cp -R bindings/bindings-android/src/generated/. src/generated/
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.19.0
v24.21.0
2 changes: 1 addition & 1 deletion docs/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ npm install bdk-rn

The package ships prebuilt native libraries for iOS and Android, so you do not need a Rust toolchain, and nothing is compiled or downloaded at install time.

While 1.x is in prerelease, versions are published under the `next` tag. Install one with `npm install bdk-rn@next`.
Prereleases (betas and release candidates) are published under the `next` tag instead of `latest`, so `npm install bdk-rn` never picks one up. To try the most recent one, run `npm install bdk-rn@next`.

### Requirements

Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"web": "expo start --web"
},
"dependencies": {
"bdk-rn": "file:../bdk-rn-1.1.0-alpha.0.tgz",
"bdk-rn": "1.1.0",
"expo": "~54.0.33",
"expo-status-bar": "~3.0.9",
"react": "19.1.0",
Expand Down
13 changes: 7 additions & 6 deletions example/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bdk-rn",
"version": "1.1.0-alpha.0",
"version": "1.2.0-dev",
"description": "React Native language bindings for the bitcoin development kit",
"main": "./lib/module/index.js",
"types": "./lib/typescript/src/index.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Keep in sync with bdk-ffi/bdk-ffi/rust-toolchain.toml.
#
# ubrn runs `cargo run` from this directory, and rustup passes the toolchain it
# picks here to child processes through RUSTUP_TOOLCHAIN, which overrides
# bdk-ffi's own rust-toolchain.toml. This file is what actually pins the
# toolchain that builds bdk-ffi.
[toolchain]
channel = "1.90.0"
components = ["clippy", "rustfmt"]
2 changes: 1 addition & 1 deletion tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@react-native/new-app-screen": "0.82.1",
"bdk-rn": "file:../bdk-rn-1.1.0-alpha.0.tgz",
"bdk-rn": "file:../bdk-rn-1.2.0-dev.tgz",
"react": "19.1.1",
"react-native": "0.82.1",
"react-native-fs": "^2.20.0",
Expand Down
12 changes: 6 additions & 6 deletions tests/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading