vxrn 2.0.0-beta.163.1 → 2.0.0-beta.165.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/exports/prebuildWithoutExpo.mjs +9 -0
- package/dist/exports/prebuildWithoutExpo.mjs.map +1 -1
- package/dist/exports/prebuildWithoutExpo.native.js +9 -0
- package/dist/exports/prebuildWithoutExpo.native.js.map +1 -1
- package/dist/plugins/reactNativeDevServer.mjs +8 -1
- package/dist/plugins/reactNativeDevServer.mjs.map +1 -1
- package/dist/plugins/reactNativeDevServer.native.js +8 -1
- package/dist/plugins/reactNativeDevServer.native.js.map +1 -1
- package/dist/utils/compileNativeDevBytecode.mjs +55 -0
- package/dist/utils/compileNativeDevBytecode.mjs.map +1 -0
- package/dist/utils/compileNativeDevBytecode.native.js +57 -0
- package/dist/utils/compileNativeDevBytecode.native.js.map +1 -0
- package/package.json +11 -10
- package/src/exports/prebuildWithoutExpo.test.ts +21 -4
- package/src/exports/prebuildWithoutExpo.ts +17 -0
- package/src/plugins/reactNativeDevServer.ts +11 -1
- package/src/utils/compileNativeDevBytecode.test.ts +61 -0
- package/src/utils/compileNativeDevBytecode.ts +62 -0
- package/types/exports/prebuildWithoutExpo.d.ts.map +1 -1
- package/types/plugins/reactNativeDevServer.d.ts.map +1 -1
- package/types/utils/compileNativeDevBytecode.d.ts +3 -0
- package/types/utils/compileNativeDevBytecode.d.ts.map +1 -0
|
@@ -1824,6 +1824,15 @@ ${schemes.map((scheme) => ` <data android:scheme="${scheme}" />`).joi
|
|
|
1824
1824
|
if (platform === "ios" && relativePath.endsWith("/AppDelegate.swift")) {
|
|
1825
1825
|
rendered = patchIosAppDelegateSceneLifecycle(rendered, appName, !!app.ios?.backgroundTasks, !!app.ios?.appIntents);
|
|
1826
1826
|
rendered = nativeProjectPatches.holdLaunchScreenOverRootView(rendered);
|
|
1827
|
+
const bundleURLProvider = "RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: \"index\")";
|
|
1828
|
+
if (!rendered.includes(bundleURLProvider)) {
|
|
1829
|
+
throw new Error("[vxrn] cannot request hermes dev bytecode: expected the template bundle URL provider");
|
|
1830
|
+
}
|
|
1831
|
+
rendered = rendered.replace(bundleURLProvider, `guard let bundleURL = RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index") else { return nil }
|
|
1832
|
+
if bundleURL.isFileURL { return bundleURL }
|
|
1833
|
+
var components = URLComponents(url: bundleURL, resolvingAgainstBaseURL: false)!
|
|
1834
|
+
components.queryItems!.append(URLQueryItem(name: "bytecode", value: "hermes"))
|
|
1835
|
+
return components.url`);
|
|
1827
1836
|
if (app.updates !== void 0) {
|
|
1828
1837
|
rendered = nativeProjectPatches.pointReleaseBundleURLAtOneUpdates(rendered);
|
|
1829
1838
|
}
|