From 9475927f186f83b16990318b465d8eb0ad6baf93 Mon Sep 17 00:00:00 2001 From: Leif Date: Wed, 17 Jan 2024 22:32:52 -0700 Subject: [PATCH] Move files to new folders --- .../Types/{ => Dependency}/Application+Dependency.swift | 0 .../Types/{ => Helper}/Application+Scope.swift | 8 ++++---- .../Types/{ => Helper}/MutableApplicationState.swift | 0 .../Types/{ => Slice}/Application+OptionalSlice.swift | 0 .../Application+OptionalSliceOptionalValue.swift | 0 .../Application/Types/{ => Slice}/Application+Slice.swift | 0 .../Types/{ => State}/Application+SecureState.swift | 0 .../Application/Types/{ => State}/Application+State.swift | 0 .../Types/{ => State}/Application+StoredState.swift | 0 .../Types/{ => State}/Application+SyncState.swift | 0 .../PropertyWrappers/{ => Dependency}/AppDependency.swift | 0 .../AppState/PropertyWrappers/{ => Slice}/Constant.swift | 0 .../PropertyWrappers/{ => Slice}/OptionalConstant.swift | 0 .../PropertyWrappers/{ => Slice}/OptionalSlice.swift | 0 Sources/AppState/PropertyWrappers/{ => Slice}/Slice.swift | 0 .../AppState/PropertyWrappers/{ => State}/AppState.swift | 0 .../PropertyWrappers/{ => State}/SecureState.swift | 0 .../PropertyWrappers/{ => State}/StoredState.swift | 0 .../AppState/PropertyWrappers/{ => State}/SyncState.swift | 0 19 files changed, 4 insertions(+), 4 deletions(-) rename Sources/AppState/Application/Types/{ => Dependency}/Application+Dependency.swift (100%) rename Sources/AppState/Application/Types/{ => Helper}/Application+Scope.swift (82%) rename Sources/AppState/Application/Types/{ => Helper}/MutableApplicationState.swift (100%) rename Sources/AppState/Application/Types/{ => Slice}/Application+OptionalSlice.swift (100%) rename Sources/AppState/Application/Types/{ => Slice}/Application+OptionalSliceOptionalValue.swift (100%) rename Sources/AppState/Application/Types/{ => Slice}/Application+Slice.swift (100%) rename Sources/AppState/Application/Types/{ => State}/Application+SecureState.swift (100%) rename Sources/AppState/Application/Types/{ => State}/Application+State.swift (100%) rename Sources/AppState/Application/Types/{ => State}/Application+StoredState.swift (100%) rename Sources/AppState/Application/Types/{ => State}/Application+SyncState.swift (100%) rename Sources/AppState/PropertyWrappers/{ => Dependency}/AppDependency.swift (100%) rename Sources/AppState/PropertyWrappers/{ => Slice}/Constant.swift (100%) rename Sources/AppState/PropertyWrappers/{ => Slice}/OptionalConstant.swift (100%) rename Sources/AppState/PropertyWrappers/{ => Slice}/OptionalSlice.swift (100%) rename Sources/AppState/PropertyWrappers/{ => Slice}/Slice.swift (100%) rename Sources/AppState/PropertyWrappers/{ => State}/AppState.swift (100%) rename Sources/AppState/PropertyWrappers/{ => State}/SecureState.swift (100%) rename Sources/AppState/PropertyWrappers/{ => State}/StoredState.swift (100%) rename Sources/AppState/PropertyWrappers/{ => State}/SyncState.swift (100%) diff --git a/Sources/AppState/Application/Types/Application+Dependency.swift b/Sources/AppState/Application/Types/Dependency/Application+Dependency.swift similarity index 100% rename from Sources/AppState/Application/Types/Application+Dependency.swift rename to Sources/AppState/Application/Types/Dependency/Application+Dependency.swift diff --git a/Sources/AppState/Application/Types/Application+Scope.swift b/Sources/AppState/Application/Types/Helper/Application+Scope.swift similarity index 82% rename from Sources/AppState/Application/Types/Application+Scope.swift rename to Sources/AppState/Application/Types/Helper/Application+Scope.swift index c611211..b6da680 100644 --- a/Sources/AppState/Application/Types/Application+Scope.swift +++ b/Sources/AppState/Application/Types/Helper/Application+Scope.swift @@ -4,15 +4,15 @@ extension Application { For example, it could be used to scope a state to a particular screen or user interaction flow. */ - struct Scope { + public struct Scope { /// The name of the scope context - let name: String + public let name: String /// The specific id for this scope context - let id: String + public let id: String /// Key computed property which builds a unique key for a given scope by combining `name` and `id` separated by "/" - var key: String { + public var key: String { "\(name)/\(id)" } } diff --git a/Sources/AppState/Application/Types/MutableApplicationState.swift b/Sources/AppState/Application/Types/Helper/MutableApplicationState.swift similarity index 100% rename from Sources/AppState/Application/Types/MutableApplicationState.swift rename to Sources/AppState/Application/Types/Helper/MutableApplicationState.swift diff --git a/Sources/AppState/Application/Types/Application+OptionalSlice.swift b/Sources/AppState/Application/Types/Slice/Application+OptionalSlice.swift similarity index 100% rename from Sources/AppState/Application/Types/Application+OptionalSlice.swift rename to Sources/AppState/Application/Types/Slice/Application+OptionalSlice.swift diff --git a/Sources/AppState/Application/Types/Application+OptionalSliceOptionalValue.swift b/Sources/AppState/Application/Types/Slice/Application+OptionalSliceOptionalValue.swift similarity index 100% rename from Sources/AppState/Application/Types/Application+OptionalSliceOptionalValue.swift rename to Sources/AppState/Application/Types/Slice/Application+OptionalSliceOptionalValue.swift diff --git a/Sources/AppState/Application/Types/Application+Slice.swift b/Sources/AppState/Application/Types/Slice/Application+Slice.swift similarity index 100% rename from Sources/AppState/Application/Types/Application+Slice.swift rename to Sources/AppState/Application/Types/Slice/Application+Slice.swift diff --git a/Sources/AppState/Application/Types/Application+SecureState.swift b/Sources/AppState/Application/Types/State/Application+SecureState.swift similarity index 100% rename from Sources/AppState/Application/Types/Application+SecureState.swift rename to Sources/AppState/Application/Types/State/Application+SecureState.swift diff --git a/Sources/AppState/Application/Types/Application+State.swift b/Sources/AppState/Application/Types/State/Application+State.swift similarity index 100% rename from Sources/AppState/Application/Types/Application+State.swift rename to Sources/AppState/Application/Types/State/Application+State.swift diff --git a/Sources/AppState/Application/Types/Application+StoredState.swift b/Sources/AppState/Application/Types/State/Application+StoredState.swift similarity index 100% rename from Sources/AppState/Application/Types/Application+StoredState.swift rename to Sources/AppState/Application/Types/State/Application+StoredState.swift diff --git a/Sources/AppState/Application/Types/Application+SyncState.swift b/Sources/AppState/Application/Types/State/Application+SyncState.swift similarity index 100% rename from Sources/AppState/Application/Types/Application+SyncState.swift rename to Sources/AppState/Application/Types/State/Application+SyncState.swift diff --git a/Sources/AppState/PropertyWrappers/AppDependency.swift b/Sources/AppState/PropertyWrappers/Dependency/AppDependency.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/AppDependency.swift rename to Sources/AppState/PropertyWrappers/Dependency/AppDependency.swift diff --git a/Sources/AppState/PropertyWrappers/Constant.swift b/Sources/AppState/PropertyWrappers/Slice/Constant.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/Constant.swift rename to Sources/AppState/PropertyWrappers/Slice/Constant.swift diff --git a/Sources/AppState/PropertyWrappers/OptionalConstant.swift b/Sources/AppState/PropertyWrappers/Slice/OptionalConstant.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/OptionalConstant.swift rename to Sources/AppState/PropertyWrappers/Slice/OptionalConstant.swift diff --git a/Sources/AppState/PropertyWrappers/OptionalSlice.swift b/Sources/AppState/PropertyWrappers/Slice/OptionalSlice.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/OptionalSlice.swift rename to Sources/AppState/PropertyWrappers/Slice/OptionalSlice.swift diff --git a/Sources/AppState/PropertyWrappers/Slice.swift b/Sources/AppState/PropertyWrappers/Slice/Slice.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/Slice.swift rename to Sources/AppState/PropertyWrappers/Slice/Slice.swift diff --git a/Sources/AppState/PropertyWrappers/AppState.swift b/Sources/AppState/PropertyWrappers/State/AppState.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/AppState.swift rename to Sources/AppState/PropertyWrappers/State/AppState.swift diff --git a/Sources/AppState/PropertyWrappers/SecureState.swift b/Sources/AppState/PropertyWrappers/State/SecureState.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/SecureState.swift rename to Sources/AppState/PropertyWrappers/State/SecureState.swift diff --git a/Sources/AppState/PropertyWrappers/StoredState.swift b/Sources/AppState/PropertyWrappers/State/StoredState.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/StoredState.swift rename to Sources/AppState/PropertyWrappers/State/StoredState.swift diff --git a/Sources/AppState/PropertyWrappers/SyncState.swift b/Sources/AppState/PropertyWrappers/State/SyncState.swift similarity index 100% rename from Sources/AppState/PropertyWrappers/SyncState.swift rename to Sources/AppState/PropertyWrappers/State/SyncState.swift