From bc516a632698d01f31c039e25e3d8e716ef0ef6e Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 11 Apr 2024 13:00:39 -0400 Subject: [PATCH] Remove push proxy scheme build setting --- .../Sources/PushNotifications/PushManager.swift | 4 +--- Tusker.xcconfig.example | 1 + Tusker/Info.plist | 2 -- 3 files changed, 2 insertions(+), 5 deletions(-) diff --git a/Packages/PushNotifications/Sources/PushNotifications/PushManager.swift b/Packages/PushNotifications/Sources/PushNotifications/PushManager.swift index fcd364ff..16e5d223 100644 --- a/Packages/PushNotifications/Sources/PushNotifications/PushManager.swift +++ b/Packages/PushNotifications/Sources/PushNotifications/PushManager.swift @@ -24,15 +24,13 @@ public struct PushManager { @MainActor private static func createPushManager() -> any _PushManager { guard let info = Bundle.main.object(forInfoDictionaryKey: "TuskerInfo") as? [String: Any], - let scheme = info["PushProxyScheme"] as? String, let host = info["PushProxyHost"] as? String, - !scheme.isEmpty, !host.isEmpty else { logger.debug("Missing proxy info, push disabled") return DisabledPushManager() } var endpoint = URLComponents() - endpoint.scheme = scheme + endpoint.scheme = "https" endpoint.host = host let url = endpoint.url! logger.debug("Push notifications enabled with proxy \(url.absoluteString, privacy: .public)") diff --git a/Tusker.xcconfig.example b/Tusker.xcconfig.example index 1f7b0ed0..6d3aadb3 100644 --- a/Tusker.xcconfig.example +++ b/Tusker.xcconfig.example @@ -3,3 +3,4 @@ DEVELOPMENT_TEAM = YOUR_TEAM_ID BUNDLE_ID_PREFIX = com.example +TUSKER_PUSH_PROXY_HOST = diff --git a/Tusker/Info.plist b/Tusker/Info.plist index 5e2230e5..202b35d0 100644 --- a/Tusker/Info.plist +++ b/Tusker/Info.plist @@ -105,8 +105,6 @@ PushProxyHost $(TUSKER_PUSH_PROXY_HOST) - PushProxyScheme - $(TUSKER_PUSH_PROXY_SCHEME) SentryDSN $(SENTRY_DSN)