vxrn 2.0.0-beta.142.1 → 2.0.0-beta.145.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.
@@ -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);