Skip to content

Commit fe2e94e

Browse files
committed
feat(hkdf): implement HKDF with WebCrypto support and native C++ backend
Includes: - Native HKDF implementation (C++, Nitro, Android/iOS) - WebCrypto HKDF integration in subtle.ts - UI Fix: Custom Checkbox component replacing Switch - iOS Fix: Update REACT_NATIVE_PATH in project.pbxproj
1 parent be541d6 commit fe2e94e

26 files changed

Lines changed: 888 additions & 179 deletions

File tree

bun.lock

Lines changed: 0 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/index.ts

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,24 @@ if (typeof global.structuredClone === 'undefined') {
3131
import 'event-target-polyfill';
3232

3333
// readable-stream
34-
// @ts-expect-error - although process.version is readonly, we're setting it for readable-stream
35-
global.process.version = 'v22.0.0';
34+
if (typeof global.process !== 'undefined') {
35+
const descriptor = Object.getOwnPropertyDescriptor(global.process, 'version');
36+
if (!descriptor || descriptor.writable || descriptor.configurable) {
37+
try {
38+
Object.defineProperty(global.process, 'version', {
39+
value: 'v22.0.0',
40+
writable: true,
41+
enumerable: true,
42+
configurable: true,
43+
});
44+
} catch (e) {
45+
console.warn('Failed to define process.version:', e);
46+
}
47+
}
48+
} else {
49+
// @ts-expect-error - process is not defined
50+
global.process = { version: 'v22.0.0' };
51+
}
3652

3753
import { AppRegistry } from 'react-native';
3854
import App from './src/App';

0 commit comments

Comments
 (0)