mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-10 15:23:27 +01:00
[AltStoreCore] Adds some common ALTPrivacyPermissions
* Apple Music * Bluetooth * Calendars * Camera * Face ID * Local Network * Microphone * Photos
This commit is contained in:
@@ -75,9 +75,36 @@ extension ALTEntitlement: ALTAppPermission
|
||||
extension ALTAppPrivacyPermission: ALTAppPermission
|
||||
{
|
||||
public var type: ALTAppPermissionType { .privacy }
|
||||
public var symbolName: String? { nil }
|
||||
|
||||
public var localizedName: String? { nil }
|
||||
public var localizedName: String? {
|
||||
switch self
|
||||
{
|
||||
case .photos: return NSLocalizedString("Photos", comment: "")
|
||||
case .camera: return NSLocalizedString("Camera", comment: "")
|
||||
case .faceID: return NSLocalizedString("Face ID", comment: "")
|
||||
case .appleMusic: return NSLocalizedString("Apple Music", comment: "")
|
||||
case .localNetwork: return NSLocalizedString("Local Network", comment: "")
|
||||
case .bluetooth: return NSLocalizedString("Bluetooth (Always)", comment: "")
|
||||
case .calendars: return NSLocalizedString("Calendars", comment: "")
|
||||
case .microphone: return NSLocalizedString("Microphone", comment: "")
|
||||
default: return nil
|
||||
}
|
||||
}
|
||||
|
||||
public var symbolName: String? {
|
||||
switch self
|
||||
{
|
||||
case .photos: return "photo"
|
||||
case .camera: return "camera"
|
||||
case .faceID: return "faceid"
|
||||
case .appleMusic: return "music.note"
|
||||
case .localNetwork: return "wifi"
|
||||
case .bluetooth: return "dot.radiowaves.forward"
|
||||
case .calendars: return "calendar"
|
||||
case .microphone: return "mic"
|
||||
default: return nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension ALTAppBackgroundMode: ALTAppPermission
|
||||
|
||||
Reference in New Issue
Block a user