Skip to content

Commit

Permalink
1.4.1 (#16)
Browse files Browse the repository at this point in the history
* add code to Error action

* fix macos errors

* IsolatedState as detached task

* add new subscribeAsync

* change Isolated store to useStore, add queue sync to effect result

* optimise memory management

* add new store queue

* safety calls

* state copy

* iOS 15 fallback methods (#13)

* add ios15 fallback methods to notify middlewares

* Update NewObservableMiddlewareDDosProtectionTests.swift

* RC 1

* Fix/interactive (#14)

* fix interactive delays

* changes

* Fix/field (#15)

* changes

* add store task priority
  • Loading branch information
Maks-Jago authored Nov 16, 2023
1 parent 33812e9 commit b44ff47
Show file tree
Hide file tree
Showing 26 changed files with 196 additions and 576 deletions.
16 changes: 8 additions & 8 deletions Artifacts/UDFCore.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,34 +6,32 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>macos-arm64_x86_64</string>
<key>LibraryPath</key>
<string>UDFCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<string>macos</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>UDFCore.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>macos-arm64_x86_64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>UDFCore.framework</string>
<key>SupportedArchitectures</key>
Expand All @@ -42,7 +40,9 @@
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>macos</string>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1019,19 +1019,12 @@
"usr": "s:7UDFCore10AppReducerP",
"mangledName": "$s7UDFCore10AppReducerP",
"moduleName": "UDFCore",
"genericSig": "<τ_0_0 : Swift.Equatable, τ_0_0 : Swift.Sendable, τ_0_0 : UDFCore.Scope>",
"sugared_genericSig": "<Self : Swift.Equatable, Self : Swift.Sendable, Self : UDFCore.Scope>",
"genericSig": "<τ_0_0 : Swift.Equatable, τ_0_0 : UDFCore.Scope>",
"sugared_genericSig": "<Self : Swift.Equatable, Self : UDFCore.Scope>",
"declAttributes": [
"AccessControl"
],
"conformances": [
{
"kind": "Conformance",
"name": "Sendable",
"printedName": "Sendable",
"usr": "s:s8SendableP",
"mangledName": "$ss8SendableP"
},
{
"kind": "Conformance",
"name": "Scope",
Expand Down Expand Up @@ -1231,19 +1224,12 @@
"usr": "s:7UDFCore6ActionP",
"mangledName": "$s7UDFCore6ActionP",
"moduleName": "UDFCore",
"genericSig": "<τ_0_0 : Swift.Equatable, τ_0_0 : Swift.Sendable>",
"sugared_genericSig": "<Self : Swift.Equatable, Self : Swift.Sendable>",
"genericSig": "<τ_0_0 : Swift.Equatable>",
"sugared_genericSig": "<Self : Swift.Equatable>",
"declAttributes": [
"AccessControl"
],
"conformances": [
{
"kind": "Conformance",
"name": "Sendable",
"printedName": "Sendable",
"usr": "s:s8SendableP",
"mangledName": "$ss8SendableP"
},
{
"kind": "Conformance",
"name": "Equatable",
Expand Down Expand Up @@ -2151,13 +2137,6 @@
"printedName": "Equatable",
"usr": "s:SQ",
"mangledName": "$sSQ"
},
{
"kind": "Conformance",
"name": "Sendable",
"printedName": "Sendable",
"usr": "s:s8SendableP",
"mangledName": "$ss8SendableP"
}
]
}
Expand Down Expand Up @@ -3169,7 +3148,8 @@
"moduleName": "UDFCore",
"declAttributes": [
"AccessControl",
"ResultBuilder"
"ResultBuilder",
"RawDocComment"
]
},
{
Expand Down Expand Up @@ -4875,13 +4855,6 @@
"usr": "s:SQ",
"mangledName": "$sSQ"
},
{
"kind": "Conformance",
"name": "Sendable",
"printedName": "Sendable",
"usr": "s:s8SendableP",
"mangledName": "$ss8SendableP"
},
{
"kind": "Conformance",
"name": "CustomDebugStringConvertible",
Expand Down Expand Up @@ -5242,6 +5215,7 @@
"declKind": "Import",
"moduleName": "UDFCore",
"declAttributes": [
"Preconcurrency",
"RawDocComment"
]
},
Expand Down Expand Up @@ -5275,6 +5249,7 @@
"declAttributes": [
"Final",
"ProjectedValueProperty",
"SetterAccess",
"AccessControl",
"Custom"
],
Expand All @@ -5301,57 +5276,6 @@
"Final"
],
"accessorKind": "get"
},
{
"kind": "Accessor",
"name": "Set",
"printedName": "Set()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
},
{
"kind": "TypeNominal",
"name": "GenericTypeParam",
"printedName": "τ_0_0"
}
],
"declKind": "Accessor",
"usr": "s:7UDFCore16EnvironmentStoreC5statexvs",
"mangledName": "$s7UDFCore16EnvironmentStoreC5statexvs",
"moduleName": "UDFCore",
"genericSig": "<τ_0_0 where τ_0_0 : UDFCore.AppReducer>",
"sugared_genericSig": "<State where State : UDFCore.AppReducer>",
"implicit": true,
"declAttributes": [
"Final"
],
"accessorKind": "set"
},
{
"kind": "Accessor",
"name": "Modify",
"printedName": "Modify()",
"children": [
{
"kind": "TypeNominal",
"name": "Void",
"printedName": "()"
}
],
"declKind": "Accessor",
"usr": "s:7UDFCore16EnvironmentStoreC5statexvM",
"mangledName": "$s7UDFCore16EnvironmentStoreC5statexvM",
"moduleName": "UDFCore",
"genericSig": "<τ_0_0 where τ_0_0 : UDFCore.AppReducer>",
"sugared_genericSig": "<State where State : UDFCore.AppReducer>",
"implicit": true,
"declAttributes": [
"Final"
],
"accessorKind": "_modify"
}
]
},
Expand Down Expand Up @@ -6512,6 +6436,7 @@
"declKind": "Import",
"moduleName": "UDFCore",
"declAttributes": [
"Preconcurrency",
"RawDocComment"
]
},
Expand Down Expand Up @@ -6708,7 +6633,10 @@
"name": "Combine",
"printedName": "Combine",
"declKind": "Import",
"moduleName": "UDFCore"
"moduleName": "UDFCore",
"declAttributes": [
"Preconcurrency"
]
},
{
"kind": "TypeDecl",
Expand Down Expand Up @@ -9869,14 +9797,14 @@
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/Action\/Action.swift",
"kind": "BooleanLiteral",
"offset": 973,
"offset": 963,
"length": 4,
"value": "true"
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/Action\/Action.swift",
"kind": "BooleanLiteral",
"offset": 1125,
"offset": 1115,
"length": 4,
"value": "true"
},
Expand Down Expand Up @@ -9967,14 +9895,14 @@
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/Action\/ActionGroup\/ActionGroupBuilder.swift",
"kind": "Array",
"offset": 2234,
"offset": 3285,
"length": 2,
"value": "[]"
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/Action\/ActionGroup\/ActionGroupBuilder.swift",
"kind": "Array",
"offset": 2354,
"offset": 3405,
"length": 2,
"value": "[]"
},
Expand Down Expand Up @@ -10037,42 +9965,42 @@
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/EnvironmentStore.swift",
"kind": "StringLiteral",
"offset": 543,
"offset": 572,
"length": 18,
"value": "\"EnvironmentStore\""
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/InternalStore.swift",
"kind": "Array",
"offset": 364,
"offset": 380,
"length": 2,
"value": "[]"
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/InternalStore.swift",
"kind": "BooleanLiteral",
"offset": 2706,
"offset": 3114,
"length": 5,
"value": "false"
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/InternalStore.swift",
"kind": "BooleanLiteral",
"offset": 3241,
"offset": 3655,
"length": 4,
"value": "true"
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/InternalStore.swift",
"kind": "BooleanLiteral",
"offset": 5316,
"offset": 5768,
"length": 5,
"value": "false"
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/InternalStore.swift",
"kind": "BooleanLiteral",
"offset": 5408,
"offset": 5860,
"length": 4,
"value": "true"
},
Expand All @@ -10093,21 +10021,21 @@
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/XCTestStore.swift",
"kind": "StringLiteral",
"offset": 470,
"offset": 486,
"length": 12,
"value": "\"Reduce\t\t\""
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/XCTestStore.swift",
"kind": "StringLiteral",
"offset": 515,
"offset": 531,
"length": 173,
"value": "\"---------------------------------------------------------------------------------------------------------------------------------------------------------------------------\""
},
{
"filePath": "\/Users\/max\/Works\/MK\/Swiftui-UDF-Private\/SwiftUI-UDF\/Store\/XCTestStore.swift",
"kind": "StringLiteral",
"offset": 966,
"offset": 982,
"length": 47,
"value": "\"XCTestStore is only for using in Test targets\""
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ public protocol _Mergeable {
func merging(_ newValue: Self) -> Self
func filled(from value: Self, mutate: (_ filled: inout Self, _ old: Self) -> Swift.Void) -> Self
}
public protocol AppReducer : Swift.Equatable, Swift.Sendable, UDFCore.Scope {
public protocol AppReducer : Swift.Equatable, UDFCore.Scope {
}
public protocol IsEquatable {
func isEqual(_ rhs: any UDFCore.IsEquatable) -> Swift.Bool
}
extension UDFCore.IsEquatable where Self : Swift.Equatable {
public func isEqual(_ rhs: any UDFCore.IsEquatable) -> Swift.Bool
}
public protocol Action : Swift.Equatable, Swift.Sendable {
public protocol Action : Swift.Equatable {
}
extension UDFCore.Action {
public func with(animation: SwiftUI.Animation?) -> some UDFCore.Action
Expand Down Expand Up @@ -271,8 +271,6 @@ extension Swift.Hashable {
final public class EnvironmentStore<State> where State : UDFCore.AppReducer {
@UDFCore.SourceOfTruth @_projectedValueProperty($state) final public var state: State {
get
set
_modify
}
final public var $state: UDFCore.SourceOfTruth<State> {
get
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ public protocol _Mergeable {
func merging(_ newValue: Self) -> Self
func filled(from value: Self, mutate: (_ filled: inout Self, _ old: Self) -> Swift.Void) -> Self
}
public protocol AppReducer : Swift.Equatable, Swift.Sendable, UDFCore.Scope {
public protocol AppReducer : Swift.Equatable, UDFCore.Scope {
}
public protocol IsEquatable {
func isEqual(_ rhs: any UDFCore.IsEquatable) -> Swift.Bool
}
extension UDFCore.IsEquatable where Self : Swift.Equatable {
public func isEqual(_ rhs: any UDFCore.IsEquatable) -> Swift.Bool
}
public protocol Action : Swift.Equatable, Swift.Sendable {
public protocol Action : Swift.Equatable {
}
extension UDFCore.Action {
public func with(animation: SwiftUI.Animation?) -> some UDFCore.Action
Expand Down Expand Up @@ -271,8 +271,6 @@ extension Swift.Hashable {
final public class EnvironmentStore<State> where State : UDFCore.AppReducer {
@UDFCore.SourceOfTruth @_projectedValueProperty($state) final public var state: State {
get
set
_modify
}
final public var $state: UDFCore.SourceOfTruth<State> {
get
Expand Down
Binary file modified Artifacts/UDFCore.xcframework/ios-arm64/UDFCore.framework/UDFCore
Binary file not shown.
Loading

0 comments on commit b44ff47

Please sign in to comment.