forked from shadowfacts/Tusker
Remove push proxy scheme build setting
This commit is contained in:
parent
1cd6af1236
commit
bc516a6326
|
@ -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)")
|
||||
|
|
|
@ -3,3 +3,4 @@
|
|||
DEVELOPMENT_TEAM = YOUR_TEAM_ID
|
||||
BUNDLE_ID_PREFIX = com.example
|
||||
|
||||
TUSKER_PUSH_PROXY_HOST =
|
||||
|
|
|
@ -105,8 +105,6 @@
|
|||
<dict>
|
||||
<key>PushProxyHost</key>
|
||||
<string>$(TUSKER_PUSH_PROXY_HOST)</string>
|
||||
<key>PushProxyScheme</key>
|
||||
<string>$(TUSKER_PUSH_PROXY_SCHEME)</string>
|
||||
<key>SentryDSN</key>
|
||||
<string>$(SENTRY_DSN)</string>
|
||||
</dict>
|
||||
|
|
Loading…
Reference in New Issue