File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,22 @@ public final class SupabaseClient: @unchecked Sendable {
71
71
options. global. session
72
72
}
73
73
74
+ #if !os(Linux)
75
+ /// Create a new client.
76
+ /// - Parameters:
77
+ /// - supabaseURL: The unique Supabase URL which is supplied when you create a new project in
78
+ /// your project dashboard.
79
+ /// - supabaseKey: The unique Supabase Key which is supplied when you create a new project in
80
+ /// your project dashboard.
81
+ public convenience init ( supabaseURL: URL , supabaseKey: String ) {
82
+ self . init (
83
+ supabaseURL: supabaseURL,
84
+ supabaseKey: supabaseKey,
85
+ options: SupabaseClientOptions ( )
86
+ )
87
+ }
88
+ #endif
89
+
74
90
/// Create a new client.
75
91
/// - Parameters:
76
92
/// - supabaseURL: The unique Supabase URL which is supplied when you create a new project in
Original file line number Diff line number Diff line change @@ -51,4 +51,13 @@ final class SupabaseClientTests: XCTestCase {
51
51
]
52
52
)
53
53
}
54
+
55
+ #if !os(Linux)
56
+ func testClientInitWithDefaultOptionsShouldBeAvailableInNonLinux( ) {
57
+ _ = SupabaseClient (
58
+ supabaseURL: URL ( string: " https://project-ref.supabase.co " ) !,
59
+ supabaseKey: " ANON_KEY "
60
+ )
61
+ }
62
+ #endif
54
63
}
You can’t perform that action at this time.
0 commit comments