Skip to content

Commit cb0c6a6

Browse files
committed
Add .spi.yml
1 parent f9d2573 commit cb0c6a6

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-11
lines changed

.spi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version: 1
2+
external_links:
3+
documentation: "https://supabase.com/docs/reference/swift"

Examples/ProductSample/Data/AuthenticationRepository.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Supabase
1010

11-
protocol AuthenticationRepository {
11+
protocol AuthenticationRepository: Sendable {
1212
var currentUserID: UUID { get async throws }
1313

1414
func authStateListener() async -> AsyncStream<AuthenticationState>

Examples/ProductSample/Data/ProductImageStorageRepository.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import Foundation
99
import Storage
1010

11-
protocol ProductImageStorageRepository {
11+
protocol ProductImageStorageRepository: Sendable {
1212
func uploadImage(_ params: ImageUploadParams) async throws -> String
1313
func downloadImage(_ key: ImageKey) async throws -> Data
1414
}

Examples/ProductSample/Data/ProductRepository.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ struct InsertProductDto: Encodable {
2222
}
2323
}
2424

25-
protocol ProductRepository {
25+
protocol ProductRepository: Sendable {
2626
func createProduct(_ product: InsertProductDto) async throws
2727
func getProducts() async throws -> [Product]
2828
func getProduct(id: Product.ID) async throws -> Product

Examples/ProductSample/Domain/UseCases/UseCase.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
import Foundation
99
import Storage
1010

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
1414

1515
func execute(input: Input) -> Output
1616
}

Sources/Supabase/SupabaseClient.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Foundation
99
let version = _Helpers.version
1010

1111
/// Supabase Client.
12-
public class SupabaseClient {
12+
public final class SupabaseClient {
1313
let options: SupabaseClientOptions
1414
let supabaseURL: URL
1515
let supabaseKey: String

Sources/Supabase/Types.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Foundation
22
import GoTrue
33

4-
public struct SupabaseClientOptions {
4+
public struct SupabaseClientOptions: Sendable {
55
public let db: DatabaseOptions
66
public let auth: AuthOptions
77
public let global: GlobalOptions
88

9-
public struct DatabaseOptions {
9+
public struct DatabaseOptions: Sendable {
1010
/// The Postgres schema which your tables belong to. Must be on the list of exposed schemas in
1111
/// Supabase. Defaults to `public`.
1212
public let schema: String
@@ -16,7 +16,7 @@ public struct SupabaseClientOptions {
1616
}
1717
}
1818

19-
public struct AuthOptions {
19+
public struct AuthOptions: Sendable {
2020
/// A storage provider. Used to store the logged-in session.
2121
public let storage: GoTrueLocalStorage?
2222

@@ -30,7 +30,7 @@ public struct SupabaseClientOptions {
3030
}
3131
}
3232

33-
public struct GlobalOptions {
33+
public struct GlobalOptions: Sendable {
3434
public let headers: [String: String]
3535
public let session: URLSession
3636

0 commit comments

Comments
 (0)