Feat: Prebuilt Binaries - #23
Open
Psycarlo wants to merge 2 commits into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prebuilt native binaries + Expo support
Makes
bdk-rninstallable with a plainnpm install/npx expo install. No Rust toolchain, no manual tarball download.How it works
.github/workflows/release.yml): pushing av*tag builds the Rust binaries (Android: arm64-v8a, armeabi-v7a, x86, x86_64 · iOS: device + arm64/x86_64 simulators), attaches them as zips to a GitHub Release with SHA-256 checksums and build provenance attestation, then publishes to npm via trusted publishing. Checksums are injected into the publishedpackage.json; binaries are stripped so the tarball stays small.scripts/postinstall.js): downloads the zips for the matching release, verifies checksums, extracts them into place. SupportsBDK_RN_SKIP_POSTINSTALL,BDK_RN_BINARY_BASE_URL(mirror), andBDK_RN_ARTIFACTS_DIR(offline installs).app.plugin.js): fails prebuild with a clear error if the New Architecture is disabled; sets required gradle properties.Before the first release
bdk-rnpackage namev1.0.0tag already exists; the workflow refuses existing releases)