Skip to content
Draft
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
852 changes: 852 additions & 0 deletions .github/native/hosted_native.py

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions .github/native/nodeify.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/usr/bin/env node
'use strict';

const path = require('node:path');

// Match setup.sh's existing polyfills without invoking its dependency installer.
// The unfiltered --hack command selects every core shim, including packages this
// app does not depend on, and makes valid imports such as constants unresolvable.
const SHIMS = Object.freeze([
'buffer', 'events', 'process', 'stream', 'inherits', 'path', 'assert', 'crypto',
]);

function runNodeify(root = path.resolve(__dirname, '../..')) {
if (process.cwd() !== root) {
throw new Error('Run native Node compatibility preparation from the repository root.');
}
const cli = require.resolve('rn-nodeify/cmd.js', { paths: [root] });
const coreList = require.resolve(path.join(path.dirname(cli), 'coreList.js'));
require(coreList);
require.cache[coreList].exports = [...SHIMS];
const originalArguments = process.argv;
try {
// No --install flag: the pinned upstream CLI can apply its existing module
// and file compatibility fixes, but cannot enter installShims().
process.argv = [process.execPath, cli, '--hack'];
require(cli);
} finally {
process.argv = originalArguments;
}
}

module.exports = { runNodeify, SHIMS };
if (require.main === module) runNodeify();
22 changes: 22 additions & 0 deletions .github/native/startup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Intentionally stop before persisting a PIN or generating any recovery material.
appId: ${APP_ID}
name: Disposable startup and passcode input
---
- launchApp:
clearState: true
permissions:
all: deny
- extendedWaitUntil:
visible: Create a passcode
timeout: 180000
- assertNotVisible: Confirm your passcode
- tapOn:
id: key_1
- tapOn:
id: key_2
- tapOn:
id: key_3
- tapOn:
id: key_4
- assertVisible: Confirm your passcode
- stopApp
Loading
Loading