diff --git a/AltStoreCore/Protocols/ALTAppPermission.swift b/AltStoreCore/Protocols/ALTAppPermission.swift index 80dad7cb..5db62992 100644 --- a/AltStoreCore/Protocols/ALTAppPermission.swift +++ b/AltStoreCore/Protocols/ALTAppPermission.swift @@ -51,7 +51,7 @@ public protocol ALTAppPermission: RawRepresentable, Hashable private struct KnownPermission: Decodable { var localizedName: String - var localizedDescription: String + var localizedDescription: String? var rawValue: String var symbolName: String @@ -156,36 +156,5 @@ extension ALTAppPrivacyPermission: ALTAppPermission { public var type: ALTAppPermissionType { .privacy } - 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 synthesizedName: String? { nil } - public var localizedDescription: String? { 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 - } - } } diff --git a/AltStoreCore/Resources/Permissions.plist b/AltStoreCore/Resources/Permissions.plist index f9639d9d..dbf20d38 100644 --- a/AltStoreCore/Resources/Permissions.plist +++ b/AltStoreCore/Resources/Permissions.plist @@ -651,7 +651,7 @@ key com.apple.developer.siri symbol - mic + mic.circle com.apple.developer.storekit.external-link.account @@ -863,5 +863,296 @@ hifispeaker.2 + privacy + + BluetoothAlways + + name + Bluetooth + key + BluetoothAlways + symbol + antenna.radiowaves.left.and.right + + BluetoothPeripheral + + name + Bluetooth (Peripherals) + key + BluetoothPeripheral + symbol + antenna.radiowaves.left.and.right + + Calendars + + name + Calendars + key + Calendars + symbol + calendar + + Reminders + + name + Reminders + key + Reminders + symbol + note.text + + Camera + + name + Camera + key + Camera + symbol + camera + + Microphone + + name + Microphone + key + Microphone + symbol + mic + + Contacts + + name + Contacts + key + Contacts + symbol + person.crop.circle + + FaceID + + name + Face ID + key + FaceID + symbol + faceid + + GKFriendList + + name + Game Center Friends List + key + GKFriendList + symbol + gamecontroller + + HealthClinicalHealthRecordsShare + + name + Health (Clinical Records) + key + HealthClinicalHealthRecordsShare + symbol + heart.text.square + + HealthShare + + name + Health + key + HealthShare + symbol + heart.text.square + + HealthUpdate + + name + Health (Add) + key + HealthUpdate + symbol + heart.text.square + + HomeKit + + name + HomeKit + key + HomeKit + symbol + homekit + + LocationAlways + + name + Location (Background) + key + LocationAlways + symbol + location.fill + + LocationAlwaysAndWhenInUse + + name + Location (Always) + key + LocationAlwaysAndWhenInUse + symbol + location.fill + + Location + + name + Location + key + Location + symbol + location.fill + + LocationWhenInUse + + name + Location (When Using) + key + LocationWhenInUse + symbol + location + + LocationTemporary + + name + Location (Temporary) + key + LocationTemporary + symbol + location + + AppleMusic + + name + Apple Music + key + AppleMusic + symbol + music.note + + Motion + + name + Motion + key + Motion + symbol + figure.run + + FallDetection + + name + Fall Detection + key + FallDetection + symbol + figure.fall + + LocalNetwork + + name + Local Network + key + LocalNetwork + symbol + network + + NearbyInteraction + + name + Nearby Interaction + key + NearbyInteraction + symbol + dot.radiowaves.left.and.right + + NearbyInteractionAllowOnce + + name + Nearby Interaction (Once) + key + NearbyInteractionAllowOnce + symbol + dot.radiowaves.left.and.right + + NFCReader + + name + NFC + key + NFCReader + symbol + sensor.tag.radiowaves.forward + + PhotoLibraryAdd + + name + Photos (Add) + key + PhotoLibraryAdd + symbol + photo + + PhotoLibrary + + name + Photos + key + PhotoLibrary + symbol + photo.stack + + UserTracking + + name + User Tracking + key + UserTracking + symbol + location.magnifyingglass + + SensorKit + + name + SensorKit + key + SensorKit + symbol + sensor + + Siri + + name + Siri + key + Siri + symbol + mic.circle + + SpeechRecognition + + name + Speech Recognition + key + SpeechRecognition + symbol + waveform.and.mic + + Identity + + name + ID Cards + key + Identity + symbol + wallet.pass + +