From 5ace1991d0cbdb7c8724c9d912c777f1152bd572 Mon Sep 17 00:00:00 2001 From: foxster-mp4 Date: Mon, 29 May 2023 12:46:54 -0700 Subject: [PATCH] Add additional Quark Source permissions --- app.html | 2 +- js/app.js | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 1 deletion(-) diff --git a/app.html b/app.html index f6dd202..520c475 100644 --- a/app.html +++ b/app.html @@ -94,7 +94,7 @@

None

-

The developer has not specified any permission required by this app.

+

The developer has not specified any permissions required by this app.

diff --git a/js/app.js b/js/app.js index ec82032..c239438 100644 --- a/js/app.js +++ b/js/app.js @@ -148,6 +148,7 @@ function main(json) { app.permissions?.forEach(permission => { var permissionType, icon; switch (permission.type) { + // AltStore-supported permissions case "background-audio": permissionType = "Background Audio"; icon = "volume-up-fill"; @@ -160,6 +161,56 @@ function main(json) { permissionType = "Photos" icon = "image-fill"; break; + // Additional permissions + case "camera": + permissionType = "Camera" + icon = "camera-fill"; + break; + case "music": + permissionType = "Music Library" + icon = "music-note-list"; + break; + case "location": + permissionType = "Location" + icon = "geo-alt-fill"; + break; + case "microphone": + permissionType = "Microphone" + icon = "mic-fill"; + break; + case "contacts": + permissionType = "Contacts" + icon = "people-fill"; + break; + case "bluetooth": + permissionType = "Bluetooth" + icon = "bluetooth"; + break; + case "faceid": + permissionType = "Fade ID" + icon = "person-bounding-box"; + break; + case "network": + permissionType = "Network" + icon = "wifi"; + break; + case "calendar": + case "calendars": + permissionType = "Calendar" + icon = "calendar-date"; + break; + case "reminders": + permissionType = "Reminders" + icon = "list-ul"; + break; + case "siri": + permissionType = "Siri" + icon = "gear-wide-connected"; + break; + case "speech-recognition": + permissionType = "Speech Recognition" + icon = "soundwave"; + break; default: permissionType = permission.type.replaceAll("-", " "); icon = "gear-wide-connected";