From 619abb48b02b5211cb52a1ba5d193d356364d02a Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 13 May 2024 13:35:50 +0800 Subject: [PATCH 1/3] Add more playback speeds on iOS --- .../Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift b/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift index 2a0a32049..face0b5af 100644 --- a/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/AudioPlayer/ExpandedAudioPlayer.swift @@ -364,6 +364,8 @@ playbackRateButton(rate: 1.0, title: "1.0×", selected: audioController.playbackRate == 1.0) playbackRateButton(rate: 1.1, title: "1.1×", selected: audioController.playbackRate == 1.1) playbackRateButton(rate: 1.2, title: "1.2×", selected: audioController.playbackRate == 1.2) + playbackRateButton(rate: 1.2, title: "1.2×", selected: audioController.playbackRate == 1.3) + playbackRateButton(rate: 1.2, title: "1.2×", selected: audioController.playbackRate == 1.4) playbackRateButton(rate: 1.5, title: "1.5×", selected: audioController.playbackRate == 1.5) playbackRateButton(rate: 1.7, title: "1.7×", selected: audioController.playbackRate == 1.7) playbackRateButton(rate: 2.0, title: "2.0×", selected: audioController.playbackRate == 2.0) From 4150ac8ded2c4399958530a079e841c8492724ab Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 13 May 2024 13:44:28 +0800 Subject: [PATCH 2/3] Add some extra debug info on configured environment --- .../Sources/Models/AppEnvironment.swift | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/apple/OmnivoreKit/Sources/Models/AppEnvironment.swift b/apple/OmnivoreKit/Sources/Models/AppEnvironment.swift index b57f6bf81..b33056036 100644 --- a/apple/OmnivoreKit/Sources/Models/AppEnvironment.swift +++ b/apple/OmnivoreKit/Sources/Models/AppEnvironment.swift @@ -69,6 +69,21 @@ public extension AppEnvironment { "\(serverBaseURL.absoluteString)/api/graphql" } + var name: String { + switch self { + case .demo: + return "Demo" + case .prod: + return "Production" + case .test: + return "Test" + case .local: + return "Local" + case .custom: + return "Self hosted" + } + } + var serverBaseURL: URL { switch self { case .demo: From f5a87d883500cfa33f54779e25f3e9077be25f98 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Mon, 13 May 2024 14:01:32 +0800 Subject: [PATCH 3/3] Add some extra debug info on configured environment --- apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift b/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift index d6b16d333..d6de5c14c 100644 --- a/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift +++ b/apple/OmnivoreKit/Sources/App/Views/Profile/ProfileView.swift @@ -204,7 +204,7 @@ struct ProfileView: View { ) } - Section(footer: Text(viewModel.appVersionString)) { + Section(footer: Text(viewModel.appVersionString + " - \(dataService.appEnvironment.name)")) { NavigationLink( destination: ManageAccountView() ) {