Skip to content

Commit

Permalink
feat: Updates documentation and fixes advanced concurrency warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
m-housh committed May 8, 2024
1 parent dbfd9ac commit 8035ea9
Show file tree
Hide file tree
Showing 13 changed files with 132 additions and 291 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1530"
version = "1.7">
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1530"
version = "1.7">
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1530"
version = "1.7">
version = "1.8">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES"
Expand Down
3 changes: 3 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ let package = Package(
name: "SupabaseDependenciesTests",
dependencies: [
"SupabaseDependencies"
],
swiftSettings: [
.enableExperimentalFeature("StrictConcurrency")
]
),
.testTarget(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ extension AuthController {
allowedCredentials: AllowedCredentials = .any,
user: User = .mock,
session: Session? = nil,
uuid: @escaping () -> UUID = UUID.init,
date: @escaping () -> Date = Date.init
uuid: @escaping @Sendable () -> UUID = { UUID() },
date: @escaping @Sendable () -> Date = { Date() }
) -> Self {


final class Storage {
final class Storage: @unchecked Sendable {
var currentUser: User
var currentSession: Session? = nil

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Auth
import Dependencies
import Foundation

/// Wraps an `Supabase.Auth.AuthClient` to provide override capabilities for login and signup flows.
/// Wraps a `Supabase.Auth.AuthClient` to provide override capabilities for login and signup flows.
///
/// You will generally want to expose this as a `Dependency` in your application and create it with the
/// ``AuthController/live(auth:)`` method.
Expand Down Expand Up @@ -102,8 +102,6 @@ public struct AuthController: Sendable {
///
/// - Parameters:
/// - scope: The sign out scope, default is to sign out of all sessions.
///
/// - SeeAlso: ``Supabase/Auth/signOut``
public func logout(scope: SignOutScope = .global) async throws {
try await client.signOut(scope: scope)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ extension DatabaseRoute {

extension DatabaseRoute.Order {

/// Allows creating an ascending ``DatabaseRoute.Order`` from a column.
/// Allows creating an ascending ``DatabaseRoute/Order`` from a column.
///
/// ### Example
/// ```swift
Expand All @@ -102,7 +102,7 @@ extension DatabaseRoute.Order {
)
}

/// Allows creating a descending ``DatabaseRoute.Order`` from a column.
/// Allows creating a descending ``DatabaseRoute/Order`` from a column.
///
/// ### Example
/// ```swift
Expand Down Expand Up @@ -131,7 +131,7 @@ extension DatabaseRoute.Order {

extension DatabaseRoute.Column {

/// Allows creating an ascending ``DatabaseRoute.Order`` from a column.
/// Allows creating an ascending ``DatabaseRoute/Order`` from a column.
///
/// ### Example
/// ```swift
Expand All @@ -153,7 +153,7 @@ extension DatabaseRoute.Column {
)
}

/// Allows creating a descending ``DatabaseRoute.Order`` from a column.
/// Allows creating a descending ``DatabaseRoute/Order`` from a column.
///
/// ### Example
/// ```swift
Expand Down

This file was deleted.

0 comments on commit 8035ea9

Please sign in to comment.