Files
NativeScript/packages/core/native-helpers.ts
Osei Fortune 4bb347ca69 feat: initial wintercg modules
Adding initial support for the following URL, TextEncoder, TextDecoder, atob, btoa.

This also setups up a cargo workspace (rust) for future developments.

iOS adds a local pod dep until we move to using a pod for the runtime dep.
2024-01-08 01:55:57 -04:00

15 lines
300 B
TypeScript

declare const __non_webpack_require__;
if (global.isAndroid) {
try {
__non_webpack_require__('system_lib://libnativescriptcorev8.so');
} catch (error) {}
}
if (global.isIOS) {
try {
const installer = global.NativeScriptCoreModuleInstaller.new();
installer.install();
} catch (error) {}
}