Removes support for “background mode” permissions

This commit is contained in:
Riley Testut
2023-05-26 14:58:52 -05:00
parent b662b90ea7
commit 4ed40cd544
7 changed files with 5 additions and 47 deletions

View File

@@ -23,7 +23,6 @@ public class AppPermission: NSManagedObject, Decodable, Fetchable
{
case .entitlement: return ALTEntitlement(rawValue: self._permission)
case .privacy: return ALTAppPrivacyPermission(rawValue: self._permission)
case .backgroundMode: return ALTAppBackgroundMode(rawValue: self._permission)
default: return UnknownAppPermission(rawValue: self._permission)
}
}
@@ -44,7 +43,6 @@ public class AppPermission: NSManagedObject, Decodable, Fetchable
{
case entitlement
case privacyType = "privacy"
case backgroundMode = "background"
case usageDescription
}
@@ -71,11 +69,6 @@ public class AppPermission: NSManagedObject, Decodable, Fetchable
self._permission = privacyType
self.type = .privacy
}
else if let backgroundMode = try container.decodeIfPresent(String.self, forKey: .backgroundMode)
{
self._permission = backgroundMode
self.type = .backgroundMode
}
else
{
self._permission = ""