iOS/Sources/Extensions/Intents/IntentHandler.swift
Zac West d4324cc6d6
Fix cases of sending invalid sensor values on macOS (#1972)
- Stops caching of sensor values and now sends them to the server regardless if we think they have changed. Fixes #1473. The sensor container was (a) prone to issues (as it could not fully capture network semantics) and (b) not updated for multi-server support.
- Moves all intent handling that I can into the app for iOS 14+ / macOS 11+. The only intent that must be in the extension is the focus intent, which now strictly updates just the focus sensor on macOS, since it did not have access to all sensor values. Fixes #1921.
2021-12-05 10:00:47 -08:00

9 lines
180 B
Swift

import Intents
import Shared
class IntentHandler: INExtension {
override func handler(for intent: INIntent) -> Any {
IntentHandlerFactory.handler(for: intent)
}
}