Skip to content

Commit

Permalink
Remove use of AppState wording
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Mar 8, 2024
1 parent 84b73f2 commit 05f8a29
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 25 deletions.
10 changes: 5 additions & 5 deletions Sources/AppDependency/Application/Application+internal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ extension Application {
guard isLoggingEnabled else { return }

let excludedFileIDs: [String] = [
"AppState/Application+StoredState.swift",
"AppState/Application+SyncState.swift",
"AppState/Application+SecureState.swift",
"AppState/Application+Slice.swift",
"AppState/Application+FileState.swift",
"AppDependency/Application+StoredState.swift",
"AppDependency/Application+SyncState.swift",
"AppDependency/Application+SecureState.swift",
"AppDependency/Application+Slice.swift",
"AppDependency/Application+FileState.swift",
]
let isFileIDValue: Bool = excludedFileIDs.contains(fileID.description) == false

Expand Down
12 changes: 6 additions & 6 deletions Sources/AppDependency/Application/Application+public.swift
Original file line number Diff line number Diff line change
Expand Up @@ -290,17 +290,17 @@ public extension Application {

extension Application {
/**
This function creates a `DependencySlice` of AppState that allows access to a specific part of the AppState's dependencies. It provides granular control over the AppState.
This function creates a `DependencySlice` of AppDependency that allows access to a specific part of the AppDependency's dependencies. It provides granular control over the AppDependency.

- Parameters:
- dependencyKeyPath: A KeyPath pointing to the dependency in AppState that should be sliced.
- dependencyKeyPath: A KeyPath pointing to the dependency in AppDependency that should be sliced.
- valueKeyPath: A KeyPath pointing to the specific part of the state that should be accessed.
- fileID: The identifier of the file.
- function: The name of the declaration.
- line: The line number on which it appears.
- column: The column number in which it begins.

- Returns: A Slice that allows access to a specific part of an AppState's state.
- Returns: A Slice that allows access to a specific part of an AppDependency's state.
*/
public static func dependencySlice<Value, SliceValue>(
_ dependencyKeyPath: KeyPath<Application, Dependency<Value>>,
Expand Down Expand Up @@ -335,17 +335,17 @@ extension Application {
}

/**
This function creates a `DependencySlice` of AppState that allows access to a specific part of the AppState's dependencies. It provides granular control over the AppState.
This function creates a `DependencySlice` of AppDependency that allows access to a specific part of the AppDependency's dependencies. It provides granular control over the AppDependency.

- Parameters:
- dependencyKeyPath: A KeyPath pointing to the dependency in AppState that should be sliced.
- dependencyKeyPath: A KeyPath pointing to the dependency in AppDependency that should be sliced.
- valueKeyPath: A KeyPath pointing to the specific part of the state that should be accessed.
- fileID: The identifier of the file.
- function: The name of the declaration.
- line: The line number on which it appears.
- column: The column number in which it begins.

- Returns: A Slice that allows access to a specific part of an AppState's state.
- Returns: A Slice that allows access to a specific part of an AppDependency's state.
*/
public static func dependencySlice<Value, SliceValue>(
_ dependencyKeyPath: KeyPath<Application, Dependency<Value>>,
Expand Down
6 changes: 3 additions & 3 deletions Sources/AppDependency/Application/Application.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ open class Application: NSObject {
static var shared: Application = Application()

#if !os(Linux) && !os(Windows)
/// Logger specifically for AppState
public static let logger: Logger = Logger(subsystem: "AppState", category: "Application")
/// Logger specifically for AppDependency
public static let logger: Logger = Logger(subsystem: "AppDependency", category: "Application")
#else
/// Logger specifically for AppState
/// Logger specifically for AppDependency
public static let logger: ApplicationLogger = ApplicationLogger()
#endif

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extension Application {
/// `DependencySlice` allows access and modification to a specific part of an AppState's dependencies. Supports `Dependency`.
/// `DependencySlice` allows access and modification to a specific part of an AppDependency's dependencies. Supports `Dependency`.
public struct DependencySlice<
Value,
SliceValue,
Expand Down
2 changes: 1 addition & 1 deletion Sources/AppDependency/PropertyWrappers/AppDependency.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// The `@AppDependency` property wrapper is a feature provided by AppState, intended to simplify dependency handling throughout your application. It makes it easy to access, share, and manage dependencies in a neat and Swift idiomatic way.
/// The `@AppDependency` property wrapper is a feature provided by AppDependency, intended to simplify dependency handling throughout your application. It makes it easy to access, share, and manage dependencies in a neat and Swift idiomatic way.
@propertyWrapper public struct AppDependency<Value> {
/// Path for accessing `Dependency` from Application.
private let keyPath: KeyPath<Application, Application.Dependency<Value>>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#if !os(Linux) && !os(Windows)
import SwiftUI

/// The `@ObservedDependency` property wrapper is a feature provided by AppState, intended to simplify dependency handling throughout your application. It makes it easy to access, share, and manage dependencies in a neat and Swift idiomatic way. It works the same as `@AppDependency`, but comes with the power of the `@ObservedObject` property wrapper.
/// The `@ObservedDependency` property wrapper is a feature provided by AppDependency, intended to simplify dependency handling throughout your application. It makes it easy to access, share, and manage dependencies in a neat and Swift idiomatic way. It works the same as `@AppDependency`, but comes with the power of the `@ObservedObject` property wrapper.
@propertyWrapper public struct ObservedDependency<Value>: DynamicProperty where Value: ObservableObject {
/// Path for accessing `ObservedDependency` from Application.
private let keyPath: KeyPath<Application, Application.Dependency<Value>>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// A property wrapper that provides access to a specific part of the AppState's dependencies.
/// A property wrapper that provides access to a specific part of the AppDependency's dependencies.
@propertyWrapper public struct DependencyConstant<Value, SliceValue, SliceKeyPath: KeyPath<Value, SliceValue>> {
/// Path for accessing `Dependency` from Application.
private let dependencyKeyPath: KeyPath<Application, Application.Dependency<Value>>
Expand All @@ -25,10 +25,10 @@
}

/**
Initializes a Constant with the provided parameters. This constructor is used to create a Constant that provides access and modification to a specific part of an AppState's dependencies. It provides granular control over the AppState.
Initializes a Constant with the provided parameters. This constructor is used to create a Constant that provides access and modification to a specific part of an AppDependency's dependencies. It provides granular control over the AppDependency.

- Parameters:
- dependencyKeyPath: A KeyPath that points to the dependency in AppState that should be sliced.
- dependencyKeyPath: A KeyPath that points to the dependency in AppDependency that should be sliced.
- valueKeyPath: A KeyPath that points to the specific part of the dependency that should be accessed.
*/
public init(
Expand Down Expand Up @@ -56,10 +56,10 @@
}

/**
Initializes a Constant with the provided parameters. This constructor is used to create a Constant that provides access and modification to a specific part of an AppState's dependencies. It provides granular control over the AppState.
Initializes a Constant with the provided parameters. This constructor is used to create a Constant that provides access and modification to a specific part of an AppDependency's dependencies. It provides granular control over the AppDependency.

- Parameters:
- dependencyKeyPath: A KeyPath that points to the dependency in AppState that should be sliced.
- dependencyKeyPath: A KeyPath that points to the dependency in AppDependency that should be sliced.
- valueKeyPath: A WritableKeyPath that points to the specific part of the state that should be accessed.
*/
public init(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Combine
import SwiftUI
#endif

/// A property wrapper that provides access to a specific part of the AppState's dependencies.
/// A property wrapper that provides access to a specific part of the AppDependency's dependencies.
@propertyWrapper public struct DependencySlice<Value, SliceValue> {
#if !os(Linux) && !os(Windows)
/// Holds the singleton instance of `Application`.
Expand Down Expand Up @@ -65,10 +65,10 @@ import SwiftUI
#endif

/**
Initializes a DependencySlice with the provided parameters. This constructor is used to create a DependencySlice that provides access and modification to a specific part of an AppState's dependencies. It provides granular control over the AppState.
Initializes a DependencySlice with the provided parameters. This constructor is used to create a DependencySlice that provides access and modification to a specific part of an AppDependency's dependencies. It provides granular control over the AppDependency.

- Parameters:
- dependencyKeyPath: A KeyPath that points to the dependency in AppState that should be sliced.
- dependencyKeyPath: A KeyPath that points to the dependency in AppDependency that should be sliced.
- valueKeyPath: A WritableKeyPath that points to the specific part of the state that should be accessed.
*/
public init(
Expand Down

0 comments on commit 05f8a29

Please sign in to comment.