diff --git a/.gitignore b/.gitignore index a5519aff..c70ff160 100644 --- a/.gitignore +++ b/.gitignore @@ -9,7 +9,6 @@ gen/ # Swift Package Manager .build/ -Package.resolved .swiftpm/ # CocoaPods diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 00000000..8d4aa078 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,104 @@ +{ + "pins" : [ + { + "identity" : "reactiveswift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/ReactiveCocoa/ReactiveSwift.git", + "state" : { + "revision" : "40c465af19b993344e84355c00669ba2022ca3cd", + "version" : "7.1.1" + } + }, + { + "identity" : "rxswift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/ReactiveX/RxSwift.git", + "state" : { + "revision" : "b06a8c8596e4c3e8e7788e08e720e3248563ce6a", + "version" : "6.7.1" + } + }, + { + "identity" : "swift-case-paths", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-case-paths", + "state" : { + "revision" : "642e6aab8e03e5f992d9c83e38c5be98cfad5078", + "version" : "1.5.5" + } + }, + { + "identity" : "swift-collections", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-collections", + "state" : { + "revision" : "671108c96644956dddcd89dd59c203dcdb36cec7", + "version" : "1.1.4" + } + }, + { + "identity" : "swift-identified-collections", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-identified-collections", + "state" : { + "revision" : "2f5ab6e091dd032b63dacbda052405756010dc3b", + "version" : "1.1.0" + } + }, + { + "identity" : "swift-macro-testing", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-macro-testing", + "state" : { + "revision" : "20c1a8f3b624fb5d1503eadcaa84743050c350f4", + "version" : "0.5.2" + } + }, + { + "identity" : "swift-perception", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-perception", + "state" : { + "revision" : "bc67aa8e461351c97282c2419153757a446ae1c9", + "version" : "1.3.5" + } + }, + { + "identity" : "swift-snapshot-testing", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-snapshot-testing", + "state" : { + "revision" : "7b0bbbae90c41f848f90ac7b4df6c4f50068256d", + "version" : "1.17.5" + } + }, + { + "identity" : "swift-syntax", + "kind" : "remoteSourceControl", + "location" : "https://github.com/swiftlang/swift-syntax", + "state" : { + "revision" : "0687f71944021d616d34d922343dcef086855920", + "version" : "600.0.1" + } + }, + { + "identity" : "swiftformat", + "kind" : "remoteSourceControl", + "location" : "https://github.com/nicklockwood/SwiftFormat", + "state" : { + "revision" : "dd989a46d0c6f15c016484bab8afe5e7a67a4022", + "version" : "0.54.0" + } + }, + { + "identity" : "xctest-dynamic-overlay", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay", + "state" : { + "revision" : "27d767d643fa2cf083d0a73d74fa84cacb53e85c", + "version" : "1.4.1" + } + } + ], + "version" : 2 +} diff --git a/Package.swift b/Package.swift index 352115c7..e6af4c44 100644 --- a/Package.swift +++ b/Package.swift @@ -60,7 +60,7 @@ let package = Package( .package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", from: "7.1.1"), .package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.6.0"), .package(url: "https://github.com/nicklockwood/SwiftFormat", exact: "0.54.0"), - .package(url: "https://github.com/swiftlang/swift-syntax", from: "509.0.0"), + .package(url: "https://github.com/swiftlang/swift-syntax", "509.0.0"..<"601.0.0-prerelease"), .package(url: "https://github.com/pointfreeco/swift-case-paths", from: "1.1.0"), .package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.0.0"), .package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.4.0"), diff --git a/Samples/Tuist/Package.resolved b/Samples/Tuist/Package.resolved new file mode 100644 index 00000000..3fb8bf8c --- /dev/null +++ b/Samples/Tuist/Package.resolved @@ -0,0 +1,86 @@ +{ + "pins" : [ + { + "identity" : "ios-snapshot-test-case", + "kind" : "remoteSourceControl", + "location" : "https://github.com/uber/ios-snapshot-test-case.git", + "state" : { + "revision" : "7b10770333a961be6e5a41c9ce04b8c6d3990126", + "version" : "8.0.0" + } + }, + { + "identity" : "reactiveswift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/ReactiveCocoa/ReactiveSwift.git", + "state" : { + "revision" : "40c465af19b993344e84355c00669ba2022ca3cd", + "version" : "7.1.1" + } + }, + { + "identity" : "rxswift", + "kind" : "remoteSourceControl", + "location" : "https://github.com/ReactiveX/RxSwift.git", + "state" : { + "revision" : "b06a8c8596e4c3e8e7788e08e720e3248563ce6a", + "version" : "6.7.1" + } + }, + { + "identity" : "swift-case-paths", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-case-paths", + "state" : { + "revision" : "71344dd930fde41e8f3adafe260adcbb2fc2a3dc", + "version" : "1.5.4" + } + }, + { + "identity" : "swift-collections", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-collections", + "state" : { + "revision" : "3d2dc41a01f9e49d84f0a3925fb858bed64f702d", + "version" : "1.1.2" + } + }, + { + "identity" : "swift-identified-collections", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-identified-collections", + "state" : { + "revision" : "2f5ab6e091dd032b63dacbda052405756010dc3b", + "version" : "1.1.0" + } + }, + { + "identity" : "swift-perception", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/swift-perception", + "state" : { + "revision" : "1552c8f722ac256cc0b8daaf1a7073217d4fcdfb", + "version" : "1.3.4" + } + }, + { + "identity" : "swift-syntax", + "kind" : "remoteSourceControl", + "location" : "https://github.com/swiftlang/swift-syntax", + "state" : { + "revision" : "0687f71944021d616d34d922343dcef086855920", + "version" : "600.0.1" + } + }, + { + "identity" : "xctest-dynamic-overlay", + "kind" : "remoteSourceControl", + "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay", + "state" : { + "revision" : "96beb108a57f24c8476ae1f309239270772b2940", + "version" : "1.2.5" + } + } + ], + "version" : 2 +} diff --git a/WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift b/WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift index 979d7afa..9bacc894 100644 --- a/WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift +++ b/WorkflowSwiftUIMacros/Tests/Derived/ObservableStateMacroTests.swift @@ -36,7 +36,7 @@ final class ObservableStateMacroTests: XCTestCase { #""" @available(iOS 18, *) struct State { - var count = 0 { + var count { @storageRestrictions(initializes: _count) init(initialValue) { _count = initialValue @@ -82,7 +82,7 @@ final class ObservableStateMacroTests: XCTestCase { } expansion: { #""" struct State { - var count = 0 { + var count { @storageRestrictions(initializes: _count) init(initialValue) { _count = initialValue @@ -128,7 +128,7 @@ final class ObservableStateMacroTests: XCTestCase { } expansion: { #""" public struct State { - var count = 0 { + var count { @storageRestrictions(initializes: _count) init(initialValue) { _count = initialValue @@ -171,7 +171,7 @@ final class ObservableStateMacroTests: XCTestCase { } expansion: { #""" package struct State { - var count = 0 { + var count { @storageRestrictions(initializes: _count) init(initialValue) { _count = initialValue