From 09e2043ce05f18c6fb62091e24219bdb447c5bfb Mon Sep 17 00:00:00 2001 From: enricobuehler Date: Thu, 16 Jul 2026 19:18:26 +0200 Subject: [PATCH] chore(apple/M1): move widget sources into the Xcode target's synced folder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Xcode created the PunktfunkWidgetsExtension target with a file-system- synchronized root group at clients/apple/PunktfunkWidgets/, so the target compiles whatever lives there. Deleted the three generated stubs (PunktfunkWidgets.swift / PunktfunkWidgetsBundle.swift / PunktfunkWidgetsControl.swift — the stub @main WidgetBundle would collide with ours) and moved our sources (PunktfunkWidgetBundle / HostsWidget / SessionLiveActivity) from Sources/PunktfunkWidgets/ into PunktfunkWidgets/. Kept the generated Info.plist (build-excluded via the sync exception set) and Assets.xcassets. Still outside Sources/, so SwiftPM ignores it; swift build green. project.pbxproj is intentionally NOT part of this commit — the target's capability/signing edits (step 3) are still in progress in Xcode. Co-Authored-By: Claude Opus 4.8 (1M context) --- .../AccentColor.colorset/Contents.json | 11 ++++++ .../AppIcon.appiconset/Contents.json | 35 +++++++++++++++++++ .../Assets.xcassets/Contents.json | 6 ++++ .../WidgetBackground.colorset/Contents.json | 11 ++++++ .../PunktfunkWidgets/HostsWidget.swift | 0 clients/apple/PunktfunkWidgets/Info.plist | 11 ++++++ .../PunktfunkWidgetBundle.swift | 0 .../SessionLiveActivity.swift | 0 8 files changed, 74 insertions(+) create mode 100644 clients/apple/PunktfunkWidgets/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 clients/apple/PunktfunkWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 clients/apple/PunktfunkWidgets/Assets.xcassets/Contents.json create mode 100644 clients/apple/PunktfunkWidgets/Assets.xcassets/WidgetBackground.colorset/Contents.json rename clients/apple/{Sources => }/PunktfunkWidgets/HostsWidget.swift (100%) create mode 100644 clients/apple/PunktfunkWidgets/Info.plist rename clients/apple/{Sources => }/PunktfunkWidgets/PunktfunkWidgetBundle.swift (100%) rename clients/apple/{Sources => }/PunktfunkWidgets/SessionLiveActivity.swift (100%) diff --git a/clients/apple/PunktfunkWidgets/Assets.xcassets/AccentColor.colorset/Contents.json b/clients/apple/PunktfunkWidgets/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/clients/apple/PunktfunkWidgets/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/clients/apple/PunktfunkWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json b/clients/apple/PunktfunkWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..23058801 --- /dev/null +++ b/clients/apple/PunktfunkWidgets/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,35 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "tinted" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/clients/apple/PunktfunkWidgets/Assets.xcassets/Contents.json b/clients/apple/PunktfunkWidgets/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/clients/apple/PunktfunkWidgets/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/clients/apple/PunktfunkWidgets/Assets.xcassets/WidgetBackground.colorset/Contents.json b/clients/apple/PunktfunkWidgets/Assets.xcassets/WidgetBackground.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/clients/apple/PunktfunkWidgets/Assets.xcassets/WidgetBackground.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/clients/apple/Sources/PunktfunkWidgets/HostsWidget.swift b/clients/apple/PunktfunkWidgets/HostsWidget.swift similarity index 100% rename from clients/apple/Sources/PunktfunkWidgets/HostsWidget.swift rename to clients/apple/PunktfunkWidgets/HostsWidget.swift diff --git a/clients/apple/PunktfunkWidgets/Info.plist b/clients/apple/PunktfunkWidgets/Info.plist new file mode 100644 index 00000000..0f118fb7 --- /dev/null +++ b/clients/apple/PunktfunkWidgets/Info.plist @@ -0,0 +1,11 @@ + + + + + NSExtension + + NSExtensionPointIdentifier + com.apple.widgetkit-extension + + + diff --git a/clients/apple/Sources/PunktfunkWidgets/PunktfunkWidgetBundle.swift b/clients/apple/PunktfunkWidgets/PunktfunkWidgetBundle.swift similarity index 100% rename from clients/apple/Sources/PunktfunkWidgets/PunktfunkWidgetBundle.swift rename to clients/apple/PunktfunkWidgets/PunktfunkWidgetBundle.swift diff --git a/clients/apple/Sources/PunktfunkWidgets/SessionLiveActivity.swift b/clients/apple/PunktfunkWidgets/SessionLiveActivity.swift similarity index 100% rename from clients/apple/Sources/PunktfunkWidgets/SessionLiveActivity.swift rename to clients/apple/PunktfunkWidgets/SessionLiveActivity.swift