vxrn 2.0.0-beta.163.1 → 2.0.0-beta.165.2

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.
@@ -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
  }