From 3e075ee499159d7b76c09ebc372fef55bcdde0a1 Mon Sep 17 00:00:00 2001 From: Jeremy Massel <1123407+jkmassel@users.noreply.github.com> Date: Tue, 1 Sep 2026 13:45:31 -0600 Subject: [PATCH] Remove unused wordpress-rs dependency from the stats widget MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `XcodeTarget_StatsWidget` linked `WordPressAPI` (and its static `wordpress-rs` xcframework), but neither the widget target nor `JetpackStatsWidgetsCore` references any of its symbols — the static library was duplicated into `JetpackStatsWidgets.appex` as dead weight. Removing the dependency drops ~26.6 MB of loaded code (`__TEXT` 33.0 -> 8.0 MB) from the widget binary (arm64/Release) with no functional change; the widget still builds and links cleanly. --- Modules/Package.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/Package.swift b/Modules/Package.swift index 46aba57d1de7..157fc629184e 100644 --- a/Modules/Package.swift +++ b/Modules/Package.swift @@ -640,8 +640,7 @@ enum XcodeSupport { // "_OBJC_CLASS_$_DDLog", referenced from: // in AppExtensionsService.o .product(name: "CocoaLumberjack", package: "CocoaLumberjack"), - .product(name: "CocoaLumberjackSwift", package: "CocoaLumberjack"), - .product(name: "WordPressAPI", package: "wordpress-rs") + .product(name: "CocoaLumberjackSwift", package: "CocoaLumberjack") ] ) ]