vxrn 2.0.0-beta.144.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.
- package/dist/exports/prebuildWithoutExpo.mjs +21 -0
- package/dist/exports/prebuildWithoutExpo.mjs.map +1 -1
- package/dist/exports/prebuildWithoutExpo.native.js +78 -20
- package/dist/exports/prebuildWithoutExpo.native.js.map +1 -1
- package/package.json +10 -10
- package/src/exports/prebuildWithoutExpo.test.ts +42 -6
- package/src/exports/prebuildWithoutExpo.ts +23 -0
- package/types/exports/prebuildWithoutExpo.d.ts.map +1 -1
|
@@ -1025,6 +1025,13 @@ class OneWidgetsBridge: RCTEventEmitter {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
`);
|
|
1027
1027
|
}
|
|
1028
|
+
const IPAD_APP_ICON_SIZES = [
|
|
1029
|
+
["20x20", ["1x", "2x"]],
|
|
1030
|
+
["29x29", ["1x", "2x"]],
|
|
1031
|
+
["40x40", ["1x", "2x"]],
|
|
1032
|
+
["76x76", ["1x", "2x"]],
|
|
1033
|
+
["83.5x83.5", ["2x"]]
|
|
1034
|
+
];
|
|
1028
1035
|
async function generateAppIcons(args) {
|
|
1029
1036
|
const { root, dest, platform, app } = args;
|
|
1030
1037
|
if (!app.icon) return;
|
|
@@ -1044,6 +1051,15 @@ async function generateAppIcons(args) {
|
|
|
1044
1051
|
const iconDir = path.join(assetsDir, `${name}.appiconset`);
|
|
1045
1052
|
FSExtra.mkdirSync(iconDir, { recursive: true });
|
|
1046
1053
|
const contents = structuredClone(template);
|
|
1054
|
+
if (app.ios?.tablet) {
|
|
1055
|
+
for (const [size, scales] of IPAD_APP_ICON_SIZES) {
|
|
1056
|
+
for (const scale of scales) contents.images.push({
|
|
1057
|
+
idiom: "ipad",
|
|
1058
|
+
scale,
|
|
1059
|
+
size
|
|
1060
|
+
});
|
|
1061
|
+
}
|
|
1062
|
+
}
|
|
1047
1063
|
for (const image of contents.images) {
|
|
1048
1064
|
const points = Number.parseFloat(image.size.split("x")[0]);
|
|
1049
1065
|
const scale = Number.parseInt(image.scale, 10);
|
|
@@ -1793,6 +1809,11 @@ use_frameworks! :linkage => :${app.ios.useFrameworks}`);
|
|
|
1793
1809
|
throw new Error("[vxrn] expected two React Native Gradle plugin paths");
|
|
1794
1810
|
}
|
|
1795
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"])`);
|
|
1796
1817
|
}
|
|
1797
1818
|
if (platform === "android" && relativePath === "app/build.gradle" && app.android?.minify) {
|
|
1798
1819
|
const minify = "def enableProguardInReleaseBuilds = false";
|