vxrn 2.0.0-beta.145.1 → 2.0.0-beta.147.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.
@@ -1809,6 +1809,11 @@ use_frameworks! :linkage => :${app.ios.useFrameworks}`);
1809
1809
  throw new Error("[vxrn] expected two React Native Gradle plugin paths");
1810
1810
  }
1811
1811
  rendered = rendered.replace(hardcodedGradlePlugin, `includeBuild(new File(["node", "--print", "require('module').createRequire(require.resolve('react-native/package.json')).resolve('@react-native/gradle-plugin/package.json')"].execute(null, settingsDir).text.trim()).parentFile.canonicalPath)`);
1812
+ const autolinkCommand = "ex.autolinkLibrariesFromCommand()";
1813
+ if (rendered.split(autolinkCommand).length !== 2) {
1814
+ throw new Error("[vxrn] expected one React Native autolinking command");
1815
+ }
1816
+ rendered = rendered.replace(autolinkCommand, `ex.autolinkLibrariesFromCommand(["node", ["node", "--print", "require.resolve('@react-native-community/cli/build/bin.js')"].execute(null, settingsDir).text.trim(), "config"])`);
1812
1817
  }
1813
1818
  if (platform === "android" && relativePath === "app/build.gradle" && app.android?.minify) {
1814
1819
  const minify = "def enableProguardInReleaseBuilds = false";