Removes support for “background mode” permissions

This commit is contained in:
Riley Testut
2023-05-26 14:58:52 -05:00
committed by Magesh K
parent 038efd9f9e
commit 99db3dc086
7 changed files with 5 additions and 47 deletions

View File

@@ -84,7 +84,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)
}
}
@@ -105,7 +104,6 @@ public class AppPermission: NSManagedObject, Decodable, Fetchable
{
case entitlement
case privacyType = "privacy"
case backgroundMode = "background"
case usageDescription
}
@@ -132,11 +130,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 = ""