Skip to content

Commit

Permalink
fix: invalid identifier for _Helpers target (#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev authored Jun 6, 2024
1 parent 32de22f commit b2c8aee
Show file tree
Hide file tree
Showing 79 changed files with 85 additions and 85 deletions.
22 changes: 11 additions & 11 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,24 +30,24 @@ let package = Package(
],
targets: [
.target(
name: "_Helpers",
name: "Helpers",
dependencies: [
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
]
),
.testTarget(
name: "_HelpersTests",
name: "HelpersTests",
dependencies: [
.product(name: "CustomDump", package: "swift-custom-dump"),
"_Helpers",
"Helpers",
]
),
.target(
name: "Auth",
dependencies: [
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
.product(name: "Crypto", package: "swift-crypto"),
"_Helpers",
"Helpers",
]
),
.testTarget(
Expand All @@ -56,7 +56,7 @@ let package = Package(
.product(name: "CustomDump", package: "swift-custom-dump"),
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
"_Helpers",
"Helpers",
"Auth",
"TestHelpers",
],
Expand All @@ -65,7 +65,7 @@ let package = Package(
],
resources: [.process("Resources")]
),
.target(name: "Functions", dependencies: ["_Helpers"]),
.target(name: "Functions", dependencies: ["Helpers"]),
.testTarget(
name: "FunctionsTests",
dependencies: [
Expand All @@ -83,7 +83,7 @@ let package = Package(
.product(name: "CustomDump", package: "swift-custom-dump"),
.product(name: "InlineSnapshotTesting", package: "swift-snapshot-testing"),
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"),
"_Helpers",
"Helpers",
"Auth",
"PostgREST",
"Realtime",
Expand All @@ -96,14 +96,14 @@ let package = Package(
name: "PostgREST",
dependencies: [
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
"_Helpers",
"Helpers",
]
),
.testTarget(
name: "PostgRESTTests",
dependencies: [
.product(name: "SnapshotTesting", package: "swift-snapshot-testing"),
"_Helpers",
"Helpers",
"PostgREST",
],
exclude: ["__Snapshots__"]
Expand All @@ -112,7 +112,7 @@ let package = Package(
name: "Realtime",
dependencies: [
.product(name: "ConcurrencyExtras", package: "swift-concurrency-extras"),
"_Helpers",
"Helpers",
]
),
.testTarget(
Expand All @@ -124,7 +124,7 @@ let package = Package(
"TestHelpers",
]
),
.target(name: "Storage", dependencies: ["_Helpers"]),
.target(name: "Storage", dependencies: ["Helpers"]),
.testTarget(
name: "StorageTests",
dependencies: [
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/AuthAdmin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 25/01/24.
//

import _Helpers
import Foundation
import Helpers

public struct AuthAdmin: Sendable {
var configuration: AuthClient.Configuration { Current.configuration }
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/AuthClient.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

#if canImport(AuthenticationServices)
import AuthenticationServices
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/AuthClientConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 29/04/24.
//

import _Helpers
import Foundation
import Helpers

#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/AuthMFA.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

/// Contains the full multi-factor authentication API.
public struct AuthMFA: Sendable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/AuthStateChangeListener.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Created by Guilherme Souza on 17/02/24.
//

import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

/// A listener that can be removed by calling ``AuthStateChangeListenerRegistration/remove()``.
///
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 14/12/23.
//

import _Helpers
import Foundation
import Helpers

extension AuthClient.Configuration {
private static let dateFormatterWithFractionalSeconds = { () -> ISO8601DateFormatter in
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Deprecated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 14/12/23.
//

import _Helpers
import Foundation
import Helpers

#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Internal/APIClient.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

extension HTTPClient {
init(configuration: AuthClient.Configuration) {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Internal/CodeVerifierStorage.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

struct CodeVerifierStorage: Sendable {
var get: @Sendable () -> String?
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Internal/Dependencies.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

struct Dependencies: Sendable {
var configuration: AuthClient.Configuration
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Internal/EventEmitter.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

struct AuthStateChangeEventEmitter {
static let shared = AuthStateChangeEventEmitter(emitter: .init(initialEvent: nil, emitsLastEventWhenAttaching: false))
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Internal/Helpers.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

/// Extracts parameters encoded in the URL both in the query and fragment.
func extractParams(from url: URL) -> [String: String] {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Internal/SessionManager.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

struct SessionManager: Sendable {
var session: @Sendable () async throws -> Session
Expand Down
2 changes: 1 addition & 1 deletion Sources/Auth/Internal/SessionStorage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 24/10/23.
//

import _Helpers
import Foundation
import Helpers

/// A locally stored ``Session``, it contains metadata such as `expirationDate`.
struct StoredSession: Codable {
Expand Down
6 changes: 3 additions & 3 deletions Sources/Auth/Types.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import _Helpers
import Foundation
import Helpers

public typealias AnyJSON = _Helpers.AnyJSON
public typealias JSONObject = _Helpers.JSONObject
public typealias AnyJSON = Helpers.AnyJSON
public typealias JSONObject = Helpers.JSONObject

public enum AuthChangeEvent: String, Sendable {
case initialSession = "INITIAL_SESSION"
Expand Down
4 changes: 2 additions & 2 deletions Sources/Functions/FunctionsClient.swift
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

#if canImport(FoundationNetworking)
import FoundationNetworking
#endif

let version = _Helpers.version
let version = Helpers.version

/// An actor representing a client for invoking functions.
public final class FunctionsClient: Sendable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Functions/Types.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

/// An error type representing various errors that can occur while invoking functions.
public enum FunctionsError: Error, LocalizedError {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions Sources/PostgREST/Defaults.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
// Created by Guilherme Souza on 14/12/23.
//

import _Helpers
import Foundation
import Helpers

let version = _Helpers.version
let version = Helpers.version

extension PostgrestClient.Configuration {
private static let supportedDateFormatters: [ISO8601DateFormatter] = [
Expand Down
2 changes: 1 addition & 1 deletion Sources/PostgREST/PostgrestBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
8 changes: 4 additions & 4 deletions Sources/PostgREST/PostgrestClient.swift
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

public typealias PostgrestError = _Helpers.PostgrestError
public typealias HTTPError = _Helpers.HTTPError
public typealias AnyJSON = _Helpers.AnyJSON
public typealias PostgrestError = Helpers.PostgrestError
public typealias HTTPError = Helpers.HTTPError
public typealias AnyJSON = Helpers.AnyJSON

#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Sources/PostgREST/PostgrestFilterBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

public class PostgrestFilterBuilder: PostgrestTransformBuilder {
public enum Operator: String, CaseIterable, Sendable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/PostgREST/PostgrestQueryBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

public final class PostgrestQueryBuilder: PostgrestBuilder {
/// Perform a SELECT query on the table or view.
Expand Down
2 changes: 1 addition & 1 deletion Sources/PostgREST/PostgrestRpcBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

struct NoParams: Encodable {}

Expand Down
2 changes: 1 addition & 1 deletion Sources/PostgREST/PostgrestTransformBuilder.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

public class PostgrestTransformBuilder: PostgrestBuilder {
/// Perform a SELECT on the query result.
Expand Down
2 changes: 1 addition & 1 deletion Sources/PostgREST/URLQueryRepresentable.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import _Helpers
import Foundation
import Helpers

/// A type that can fit into the query part of a URL.
public protocol URLQueryRepresentable {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Realtime/RealtimeChannel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers
import Swift

/// Container class of bindings to the channel
Expand Down
2 changes: 1 addition & 1 deletion Sources/Realtime/RealtimeClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

#if canImport(FoundationNetworking)
import FoundationNetworking
Expand Down
2 changes: 1 addition & 1 deletion Sources/Realtime/RealtimeMessage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.

import _Helpers
import Foundation
import Helpers

/// Data that is received from the Server.
public struct RealtimeMessage {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Realtime/V2/CallbackManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
// Created by Guilherme Souza on 24/12/23.
//

import _Helpers
import ConcurrencyExtras
import Foundation
import Helpers

final class CallbackManager: @unchecked Sendable {
struct MutableState {
Expand Down
2 changes: 1 addition & 1 deletion Sources/Realtime/V2/PostgresAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 23/12/23.
//

import _Helpers
import Foundation
import Helpers

public struct Column: Equatable, Codable, Sendable {
public let name: String
Expand Down
2 changes: 1 addition & 1 deletion Sources/Realtime/V2/PostgresActionData.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 26/12/23.
//

import _Helpers
import Foundation
import Helpers

struct PostgresActionData: Codable {
var type: String
Expand Down
2 changes: 1 addition & 1 deletion Sources/Realtime/V2/PresenceAction.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 24/12/23.
//

import _Helpers
import Foundation
import Helpers

public struct PresenceV2: Hashable, Sendable {
/// The presence reference of the object.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Realtime/V2/PushV2.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
// Created by Guilherme Souza on 02/01/24.
//

import _Helpers
import Foundation
import Helpers

actor PushV2 {
private weak var channel: RealtimeChannelV2?
Expand Down
Loading

0 comments on commit b2c8aee

Please sign in to comment.