vxrn 2.13.10 → 2.14.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.
@@ -1872,6 +1872,17 @@ ${line}
1872
1872
  rendered = `${trailed}
1873
1873
  # One.UI.Map: set by native.app.android.googleMapsApiKey.
1874
1874
  ${line}
1875
+ `;
1876
+ }
1877
+ }
1878
+ if (platform === "android" && relativePath === "gradle.properties") {
1879
+ const line = "edgeToEdgeEnabled=true";
1880
+ if (!rendered.includes(line)) {
1881
+ const trailed = rendered.endsWith("\n") ? rendered : `${rendered}
1882
+ `;
1883
+ rendered = `${trailed}
1884
+ # Edge-to-edge: set by one prebuild to match enableEdgeToEdge in MainActivity.
1885
+ ${line}
1875
1886
  `;
1876
1887
  }
1877
1888
  }
@@ -2416,10 +2427,13 @@ function applyAndroidDependencyPatches(args) {
2416
2427
  return;
2417
2428
  }
2418
2429
  const activityPath = path.join(root, "android", "app", "src", "main", "java", ...app.android.applicationId.split("."), "MainActivity.kt");
2419
- const rendered = nativeProjectPatches.holdLaunchScreenInMainActivity(nativeProjectPatches.addReactNativeScreensFix(readFileSync(activityPath, "utf8")));
2430
+ const rendered = nativeProjectPatches.holdLaunchScreenInMainActivity(nativeProjectPatches.enableEdgeToEdgeInMainActivity(nativeProjectPatches.addReactNativeScreensFix(readFileSync(activityPath, "utf8"))));
2420
2431
  if (!rendered.includes("RNScreensFragmentFactory")) {
2421
2432
  throw new Error("[vxrn] failed to apply the react-native-screens activity patch");
2422
2433
  }
2434
+ if (!rendered.includes("enableEdgeToEdge")) {
2435
+ throw new Error("[vxrn] failed to apply the edge-to-edge activity patch");
2436
+ }
2423
2437
  writeFileSync(activityPath, rendered);
2424
2438
  }
2425
2439
  async function getNativeDependencyInventory(root) {