File tree Expand file tree Collapse file tree 7 files changed +14
-11
lines changed Expand file tree Collapse file tree 7 files changed +14
-11
lines changed Original file line number Diff line number Diff line change
1
+ version : 1
2
+ external_links :
3
+ documentation : " https://supabase.com/docs/reference/swift"
Original file line number Diff line number Diff line change 8
8
import Foundation
9
9
import Supabase
10
10
11
- protocol AuthenticationRepository {
11
+ protocol AuthenticationRepository : Sendable {
12
12
var currentUserID : UUID { get async throws }
13
13
14
14
func authStateListener( ) async -> AsyncStream < AuthenticationState >
Original file line number Diff line number Diff line change 8
8
import Foundation
9
9
import Storage
10
10
11
- protocol ProductImageStorageRepository {
11
+ protocol ProductImageStorageRepository : Sendable {
12
12
func uploadImage( _ params: ImageUploadParams ) async throws -> String
13
13
func downloadImage( _ key: ImageKey ) async throws -> Data
14
14
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ struct InsertProductDto: Encodable {
22
22
}
23
23
}
24
24
25
- protocol ProductRepository {
25
+ protocol ProductRepository : Sendable {
26
26
func createProduct( _ product: InsertProductDto ) async throws
27
27
func getProducts( ) async throws -> [ Product ]
28
28
func getProduct( id: Product . ID ) async throws -> Product
Original file line number Diff line number Diff line change 8
8
import Foundation
9
9
import Storage
10
10
11
- protocol UseCase < Input, Output> {
12
- associatedtype Input
13
- associatedtype Output
11
+ protocol UseCase < Input, Output> : Sendable {
12
+ associatedtype Input : Sendable
13
+ associatedtype Output : Sendable
14
14
15
15
func execute( input: Input ) -> Output
16
16
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import Foundation
9
9
let version = _Helpers. version
10
10
11
11
/// Supabase Client.
12
- public class SupabaseClient {
12
+ public final class SupabaseClient {
13
13
let options : SupabaseClientOptions
14
14
let supabaseURL : URL
15
15
let supabaseKey : String
Original file line number Diff line number Diff line change 1
1
import Foundation
2
2
import GoTrue
3
3
4
- public struct SupabaseClientOptions {
4
+ public struct SupabaseClientOptions : Sendable {
5
5
public let db : DatabaseOptions
6
6
public let auth : AuthOptions
7
7
public let global : GlobalOptions
8
8
9
- public struct DatabaseOptions {
9
+ public struct DatabaseOptions : Sendable {
10
10
/// The Postgres schema which your tables belong to. Must be on the list of exposed schemas in
11
11
/// Supabase. Defaults to `public`.
12
12
public let schema : String
@@ -16,7 +16,7 @@ public struct SupabaseClientOptions {
16
16
}
17
17
}
18
18
19
- public struct AuthOptions {
19
+ public struct AuthOptions : Sendable {
20
20
/// A storage provider. Used to store the logged-in session.
21
21
public let storage : GoTrueLocalStorage ?
22
22
@@ -30,7 +30,7 @@ public struct SupabaseClientOptions {
30
30
}
31
31
}
32
32
33
- public struct GlobalOptions {
33
+ public struct GlobalOptions : Sendable {
34
34
public let headers : [ String : String ]
35
35
public let session : URLSession
36
36
You can’t perform that action at this time.
0 commit comments