Skip to content

Commit af0a2c7

Browse files
authored
Perception 2.0 (#3736)
* Perception 2.0 * wip * wip * wip * wip * wip * Revert "wip" This reverts commit c5d0a06. * wip
1 parent d83d00c commit af0a2c7

File tree

11 files changed

+89
-153
lines changed

11 files changed

+89
-153
lines changed

.github/package.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/ci.yml

Lines changed: 0 additions & 76 deletions
Original file line numberDiff line numberDiff line change
@@ -46,70 +46,6 @@ jobs:
4646
- name: Debug
4747
run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" WORKSPACE=.github/package.xcworkspace xcodebuild
4848

49-
xcodebuild:
50-
name: xcodebuild (15)
51-
runs-on: macos-14
52-
strategy:
53-
matrix:
54-
command: [test, '']
55-
platform:
56-
- IOS
57-
- MAC_CATALYST
58-
- MACOS
59-
- TVOS
60-
# - VISIONOS # Unfortunately, visionOS on CI is too flakey
61-
- WATCHOS
62-
xcode: [15.2, 15.4]
63-
exclude:
64-
- {xcode: 15.2, command: test}
65-
- {xcode: 15.4, command: ''}
66-
- {xcode: 15.2, platform: MAC_CATALYST}
67-
- {xcode: 15.2, platform: TVOS}
68-
# - {xcode: 15.2, platform: VISIONOS}
69-
- {xcode: 15.2, platform: WATCHOS}
70-
steps:
71-
- uses: actions/checkout@v4
72-
- name: Select Xcode ${{ matrix.xcode }}
73-
run: sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
74-
- name: Update xcbeautify
75-
run: brew update && brew upgrade xcbeautify
76-
- name: Install visionOS runtime
77-
if: matrix.platform == 'visionOS'
78-
run: |
79-
sudo xcodebuild -runFirstLaunch
80-
sudo xcrun simctl list
81-
sudo xcodebuild -downloadPlatform visionOS
82-
sudo xcodebuild -runFirstLaunch
83-
- name: List available devices
84-
run: xcrun simctl list devices available
85-
- name: Cache derived data
86-
uses: actions/cache@v3
87-
with:
88-
path: |
89-
~/.derivedData
90-
key: |
91-
deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-${{ hashFiles('**/Sources/**/*.swift', '**/Tests/**/*.swift') }}
92-
restore-keys: |
93-
deriveddata-xcodebuild-${{ matrix.platform }}-${{ matrix.xcode }}-${{ matrix.command }}-
94-
- name: Set IgnoreFileSystemDeviceInodeChanges flag
95-
run: defaults write com.apple.dt.XCBuild IgnoreFileSystemDeviceInodeChanges -bool YES
96-
- name: Update mtime for incremental builds
97-
uses: chetan/git-restore-mtime-action@v2
98-
- name: Debug
99-
run: make XCODEBUILD_ARGUMENT="${{ matrix.command }}" CONFIG=Debug PLATFORM="${{ matrix.platform }}" WORKSPACE=.github/package.xcworkspace xcodebuild
100-
101-
library-evolution:
102-
name: Library (evolution)
103-
runs-on: macos-14
104-
steps:
105-
- uses: actions/checkout@v4
106-
- name: Select Xcode 15.4
107-
run: sudo xcode-select -s /Applications/Xcode_15.4.app
108-
- name: Update xcbeautify
109-
run: brew update && brew upgrade xcbeautify
110-
- name: Build for library evolution
111-
run: make build-for-library-evolution
112-
11349
examples:
11450
name: Examples
11551
runs-on: macos-15
@@ -147,15 +83,3 @@ jobs:
14783
run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="Todos" xcodebuild-raw
14884
- name: VoiceMemos
14985
run: make DERIVED_DATA_PATH=~/.derivedData SCHEME="VoiceMemos" xcodebuild-raw
150-
151-
check-macro-compatibility:
152-
name: Check Macro Compatibility
153-
runs-on: macos-latest
154-
steps:
155-
- name: Checkout repository
156-
uses: actions/checkout@v4
157-
- name: Run Swift Macro Compatibility Check
158-
uses: Matejkob/swift-macro-compatibility-check@v1
159-
with:
160-
run-tests: false
161-
major-versions-only: true

ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.resolved

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let package = Package(
2727
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.1.0"),
2828
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.2.0"),
2929
.package(url: "https://github.com/pointfreeco/swift-navigation", from: "2.3.0"),
30-
.package(url: "https://github.com/pointfreeco/swift-perception", from: "1.3.4"),
30+
.package(url: "https://github.com/pointfreeco/swift-perception", "1.3.4"..<"3.0.0"),
3131
.package(url: "https://github.com/pointfreeco/swift-sharing", "0.1.2"..<"3.0.0"),
3232
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.3.0"),
3333
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"),

Package@swift-6.0.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ let package = Package(
2727
.package(url: "https://github.com/pointfreeco/swift-identified-collections", from: "1.1.0"),
2828
.package(url: "https://github.com/pointfreeco/swift-macro-testing", from: "0.2.0"),
2929
.package(url: "https://github.com/pointfreeco/swift-navigation", from: "2.3.0"),
30-
.package(url: "https://github.com/pointfreeco/swift-perception", from: "1.3.4"),
30+
.package(url: "https://github.com/pointfreeco/swift-perception", "1.3.4"..<"3.0.0"),
3131
.package(url: "https://github.com/pointfreeco/swift-sharing", "0.1.2"..<"3.0.0"),
3232
.package(url: "https://github.com/pointfreeco/xctest-dynamic-overlay", from: "1.3.0"),
3333
.package(url: "https://github.com/swiftlang/swift-docc-plugin", from: "1.0.0"),

Sources/ComposableArchitecture/Core.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,13 @@ final class RootCore<Root: Reducer>: Core {
6161
self.reducer = reducer
6262
}
6363
func send(_ action: Root.Action) -> Task<Void, Never>? {
64-
_withoutPerceptionChecking {
64+
#if DEBUG
65+
_PerceptionLocals.$skipPerceptionChecking.withValue(true) {
66+
_send(action)
67+
}
68+
#else
6569
_send(action)
66-
}
70+
#endif
6771
}
6872
private func _send(_ action: Root.Action) -> Task<Void, Never>? {
6973
self.bufferedActions.append(action)

0 commit comments

Comments
 (0)