mirror of
https://github.com/home-assistant/iOS.git
synced 2026-02-08 06:11:05 -06:00
Fixes #2214. ## Summary Updates to building with Xcode 14 as the minimum. Updates all dependencies (as many both require Xcode 14 to update and would not work with it without updating). ## Any other notes This excludes `arm64` (new in Xcode 14) from watchOS builds. This is due to App Store Connect having a bad heuristic for file size: > ITMS-90389: Size Limit Exceeded - The size of watch application '/Payload/Home Assistant.app/Watch/HomeAssistant-WatchApp.app' (102MB) has exceeded the 75MB size limit. Our binary file is larger than 75 MB unthinned and our thinned install size is sub-25 MB, so I don't think this is testing the right thing. In either case, we're somehow below whatever the limit actually is with just `arm64_32_v8` and `arm_v7k` slices. The first build on TF using the Xcode 14 build for distribution is 2022.413.
19 lines
520 B
Swift
19 lines
520 B
Swift
import Foundation
|
|
import UserNotifications
|
|
|
|
public extension UNNotificationContent {
|
|
var clientEventTitle: String {
|
|
var eventText = ""
|
|
if !title.isEmpty {
|
|
eventText = "\(title)"
|
|
if !subtitle.isEmpty {
|
|
eventText += " - \(subtitle)"
|
|
}
|
|
} else if let message = (userInfo["aps"] as? [String: Any])?["alert"] as? String {
|
|
eventText = message
|
|
}
|
|
|
|
return L10n.ClientEvents.EventType.Notification.title(eventText)
|
|
}
|
|
}
|