mirror of
https://github.com/home-assistant/iOS.git
synced 2026-04-12 15:26:45 -05:00
## Summary Follow-up fixes after #4444 merged, addressing issues found during Mac Catalyst testing: - **Fix `›` character in Frequent Updates footer** — `.strings` files don't interpret `\uXXXX` escapes at runtime; replaced with the literal `›` character - **Fix Mac Catalyst compilation** — `ActivityKit` APIs (`ActivityAttributes`, `Activity`, `ActivityUIDismissalPolicy`, etc.) are marked unavailable on Mac Catalyst even though `canImport(ActivityKit)` returns true there. Replaced all `#if canImport(ActivityKit)` and bare `#if os(iOS)` guards around ActivityKit code with `#if os(iOS) && !targetEnvironment(macCatalyst)`. Files affected: - `HALiveActivityAttributes.swift` - `LiveActivityRegistry.swift` - `HandlerLiveActivity.swift` - `LiveActivitySettingsView.swift` - `HADynamicIslandView.swift` - `HALockScreenView.swift` - `HALiveActivityConfiguration.swift` - `Widgets.swift` (three `HALiveActivityConfiguration()` call sites) - `Environment.swift`, `AppDelegate.swift`, `HAAPI.swift`, `NotificationsCommandManager.swift`, `SettingsItem.swift` (inline guards) ## Test plan - [x] iOS builds and runs - [x] macOS (Mac Catalyst) builds and launches - [ ] Live Activities settings entry does not appear on macOS (filtered by `isTestFlight` + `#available(iOS 17.2, *)`) - [ ] Live Activities work as expected on iOS TestFlight build 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>