Repository navigation
Conversation
…e smoke test Drop the module.exports mix from src/index.ts (QuickCrypto now carries install and NativeKeyObjectHandle itself), use globalThis, and fall back from setImmediate to a microtask for process.nextTick. Add example/test/bare with a hash/cipher/sign/random smoke test (incl. multiformats@13.4.2 SHA-2) and a Bun.build bundle script.
…andalone iOS runner scripts/bare-host.sh ios clones margelo/nitro at the pinned nightly SHA into build/bare-host, applies a small overlay (RNQC Swift package, hybrid class registration, bundle aliases), bundles the shared smoke test for Hermes and runs it on an iOS simulator.
…umented runner Adds scripts/bare-host.sh android: overlays RNQC as a Gradle module into Nitro's standalone test runner, loads libQuickCrypto after Nitro core, and runs connectedDebugAndroidTest on an arm64-v8a emulator, failing on any JUnit failure or exported OpenSSL symbol.
Seed only the Hermes XCFramework, always write the Android result file, never adopt an unrelated attached device, guard the Nitro SHA against the peer pin, drop the unused chai-6 bundle path, and replace the bare-host callout with the proven recipe.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
Summary
This qualifies the Nitro Modules v1 port (RNQC 2.0) on
next. The full example-app suite passes on iOS and Android with no fixes needed. The PR also adds a bare-host smoke test: Hermes with no React Native, run in Nitro's own standalone test runner. It passes on an iOS simulator and an Android emulator, and it is the first time the bare Android library has been loaded at runtime.Changes
src/index.ts)module.exports, so a plain bundler can load it.installandNativeKeyObjectHandlenow live on the defaultQuickCryptoobject.globalThis.process.nextTickfalls back to a microtask when the host has nosetImmediate.example/test/bare/quick-crypto.test.ts), 15 cases:multiformats@13.4.2SHA-256 and SHA-512 on a subarray (the feat(hash): expose incremental hashing to standalone Nitro v1 #1099 scenario);createHashincremental vs one-shot, empty input, and reuse afterdigest.randomBytessync and callback,randomFillSync,getRandomValues.aliases.mjs).scripts/bare-host.sh ios|androidpackage.jsondisagree.example/test/bare/host/), then builds and runs the runner.connectedDebugAndroidTeston an emulator the script boots and shuts down itself. It uses an attached device only whenANDROID_SERIALis set.libQuickCrypto.soexports noEVP_,ERR_orSSL_symbols.docs/content/docs/guides/bare-host.mdx: the verified recipe replaces the "tracked in E2E qualification for Nitro Modules v1: React Native app plus a bare-host smoke test #1104" callout.plans/done/1104-e2e-bare-host-qualification.md: tracker, decisions and evidence.Testing
All runs were on macOS arm64 with Xcode 27.2.
bun run e2e:iospassed: 42 suites, 2211 tests, 0 failures.bun run e2e:androidpassed: 42 suites, 2211 tests, 0 failures.packages/nor the app's runtime code.scripts/bare-host.sh iospassed on an iPhone simulator running iOS 27.2 (arm64): 26 Swift tests, including all 15 quick-crypto cases.scripts/bare-host.sh androidpassed on a Nexus_7 AVD (API 35, arm64-v8a): 24 JUnit tests with 0 failures, and 0 exported OpenSSL symbols.bun tsc,bun lint,bun format,shellcheck scripts/bare-host.shand the pre-commit hooks all pass.cd packages/react-native-quick-crypto && bun run testpassed 19 tests at fcf8c29, the lastsrc/change.agentscm/local-validationattestation and screenshot posting don't apply, because the verifier only covers PRs intomain.Delivery
src/index.tschange reaches consumers in the RNQC 2.0 npm release.require()now returns the module namespace with read-only getters. Reads andinstall()behave as before, but assigning properties on it no longer works.Not verified
SODIUM_ENABLED.Closes #1104
🤖 Generated with Claude Code