From 7caa1fa909fa4962ee416f8e9dfa43a65f3afbe3 Mon Sep 17 00:00:00 2001 From: Guilherme Souza Date: Mon, 23 Oct 2023 05:40:02 -0300 Subject: [PATCH] Remove deprecated code --- Examples/ProductSample/SupportFiles/Config.plist | 10 ++++++++++ Sources/GoTrue/Deprecated.swift | 14 -------------- Sources/Realtime/RealtimeClient.swift | 14 -------------- 3 files changed, 10 insertions(+), 28 deletions(-) create mode 100644 Examples/ProductSample/SupportFiles/Config.plist delete mode 100644 Sources/GoTrue/Deprecated.swift diff --git a/Examples/ProductSample/SupportFiles/Config.plist b/Examples/ProductSample/SupportFiles/Config.plist new file mode 100644 index 00000000..8375f903 --- /dev/null +++ b/Examples/ProductSample/SupportFiles/Config.plist @@ -0,0 +1,10 @@ + + + + + SUPABASE_ANON_KEY + eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InVza3ptZWF6YXRkanFwYW1vcHp1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE2OTc2NjUyNTAsImV4cCI6MjAxMzI0MTI1MH0.ancFNlg7-MZ4_dtZ1f3tg6Hbyn1OG8zXusw_UVY8WlQ + SUPABASE_URL + https://uskzmeazatdjqpamopzu.supabase.co + + diff --git a/Sources/GoTrue/Deprecated.swift b/Sources/GoTrue/Deprecated.swift deleted file mode 100644 index 3db80c61..00000000 --- a/Sources/GoTrue/Deprecated.swift +++ /dev/null @@ -1,14 +0,0 @@ -import Foundation - -extension GoTrueMetaSecurity { - @available(*, deprecated, renamed: "captchaToken") - public var hcaptchaToken: String { - get { captchaToken } - set { captchaToken = newValue } - } - - @available(*, deprecated, renamed: "init(captchaToken:)") - public init(hcaptchaToken: String) { - self.init(captchaToken: hcaptchaToken) - } -} diff --git a/Sources/Realtime/RealtimeClient.swift b/Sources/Realtime/RealtimeClient.swift index 3133a2d1..eb9ab62a 100644 --- a/Sources/Realtime/RealtimeClient.swift +++ b/Sources/Realtime/RealtimeClient.swift @@ -193,20 +193,6 @@ public class RealtimeClient: TransportDelegate { ) } - @available(*, deprecated, renamed: "init(_:params:vsn:)") - public convenience init( - endPoint: String, - params: Payload? = nil, - vsn: String = Defaults.vsn - ) { - self.init( - endPoint: endPoint, - transport: { url in URLSessionTransport(url: url) }, - paramsClosure: { params }, - vsn: vsn - ) - } - public init( endPoint: String, transport: @escaping ((URL) -> Transport),