authorgravatar for julius0216@outlook.comJulius Marminge <julius0216@outlook.com> 2026-09-04 23:52:52-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-09-04 23:52:52-07:00
log2759ef05bb1cccc55fb2ac747bf8769de8d745e1
treef840e16de5240f5d2e855c94b5a3f2e81530ea46
parent4a42fc62e15018973b0088667d037b2a35c4c261
signature Signed by PGP key B5690EEEBB952194

chore(mobile): remove obsolete widget wiring script (#9960)


1 files changed, 0 insertions(+), 30 deletions(-)

apps/mobile/scripts/wire-widget-asset-catalog.cjs deleted-30
......@@ -1,30 +0,0 @@
1"use strict";
2
3// One-off: apply the widget asset-catalog wiring to the already-generated
4// ios/ project so the current build compiles ExpoWidgetsTarget/Assets.xcassets
5// without a full `expo prebuild`. The durable equivalent lives in
6// plugins/withWidgetLogoAsset.cjs and runs on prebuild.
7
8const path = require("path");
9const fs = require("fs");
10
11const xcodePath = require.resolve("xcode", {
12 paths: [
13 require.resolve("@expo/config-plugins", { paths: [require.resolve("expo/package.json")] }),
14 ],
15});
16const xcode = require(xcodePath);
17const { addWidgetAssetCatalog } = require("../plugins/lib/addWidgetAssetCatalog.cjs");
18
19const pbxprojPath = path.join(__dirname, "..", "ios", "T3CodeDev.xcodeproj", "project.pbxproj");
20const proj = xcode.project(pbxprojPath);
21proj.parseSync();
22
23const added = addWidgetAssetCatalog(proj, { targetName: "ExpoWidgetsTarget" });
24
25if (added) {
26 fs.writeFileSync(pbxprojPath, proj.writeSync());
27 console.log("Added widget asset-compile phase to ExpoWidgetsTarget.");
28} else {
29 console.log("No change: phase already present.");
30}