revert: remove accidentally merged ios widget commits

Reverts commits d58c1a77 (feat: ios widget) and 08fe871d (wip: widget)
that were accidentally merged from feat/ios-widget-build-target branch.
This commit is contained in:
Fredrik Burmester
2026-01-05 21:28:00 +01:00
parent 5eae6e6cd0
commit a37a8753c2
28 changed files with 23 additions and 798 deletions

View File

@@ -1,48 +0,0 @@
#!/usr/bin/env node
/**
* Post-prebuild script to fix widget icon build settings
* Run this after `bun run prebuild`
*/
const fs = require("node:fs");
const path = require("node:path");
const projectPath = path.join(
__dirname,
"..",
"ios",
"Streamyfin.xcodeproj",
"project.pbxproj",
);
if (!fs.existsSync(projectPath)) {
console.log("⚠️ iOS project not found - skipping widget icon fix");
process.exit(0);
}
const contents = fs.readFileSync(projectPath, "utf-8");
// Find widget build configurations and add ASSETCATALOG_COMPILER_APPICON_NAME
const widgetBgColorPattern =
/ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = \$widgetBackground;/g;
const matches = contents.match(widgetBgColorPattern);
if (!matches || matches.length === 0) {
console.log("⚠️ No widget configurations found");
process.exit(0);
}
console.log(`🔧 Found ${matches.length} widget configurations`);
const newContents = contents.replace(
widgetBgColorPattern,
`ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = $widgetBackground;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;`,
);
if (newContents !== contents) {
fs.writeFileSync(projectPath, newContents);
console.log("✅ Widget icon fix applied successfully!");
} else {
console.log("⚠️ No changes needed");
}