mirror of
https://github.com/home-assistant/iOS.git
synced 2026-04-13 01:12:53 -05:00
Starting in iOS 15, there's a number of crashes happening in the background with Realm. They don't appear to be due to the file lock in the shared app container, but this may help resolve them either way -- easy to see if the next beta doesn't crash a bunch.
37 lines
1.1 KiB
Swift
37 lines
1.1 KiB
Swift
import Foundation
|
|
|
|
enum ZoneManagerIgnoreReason: LocalizedError, Equatable {
|
|
case duringOneShot
|
|
case locationUpdateTooOld
|
|
case locationMissingEntries
|
|
case unknownRegionState
|
|
case unknownRegion
|
|
case zoneDisabled
|
|
case ignoredSSID(String)
|
|
case beaconExitIgnored
|
|
case recentlyUpdated
|
|
|
|
var errorDescription: String? {
|
|
switch self {
|
|
case .duringOneShot:
|
|
return "ignoring during one shot"
|
|
case .locationMissingEntries:
|
|
return "location update missing evennts"
|
|
case .locationUpdateTooOld:
|
|
return "location update from the past"
|
|
case .unknownRegionState:
|
|
return "unknown region state"
|
|
case .unknownRegion:
|
|
return "unknown region id"
|
|
case .zoneDisabled:
|
|
return "zone has tracking disabled"
|
|
case let .ignoredSSID(ssid):
|
|
return "ignored due to ssid \(ssid)"
|
|
case .beaconExitIgnored:
|
|
return "beacon exit ignored"
|
|
case .recentlyUpdated:
|
|
return "recent location update already occurred"
|
|
}
|
|
}
|
|
}
|