From 8d9d322217b51f132d976dc7502908228d74cf61 Mon Sep 17 00:00:00 2001 From: leogdion Date: Mon, 15 Apr 2024 08:31:54 -0400 Subject: [PATCH] Added Fix for SublimationLifecycleHandler.didBoot (#23) --- .github/workflows/Sublimation.yml | 16 +++++++++++----- Package.swift | 2 +- .../SublimationLifecycleHandler.swift | 2 ++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/Sublimation.yml b/.github/workflows/Sublimation.yml index 0ee6393..0af983e 100644 --- a/.github/workflows/Sublimation.yml +++ b/.github/workflows/Sublimation.yml @@ -77,18 +77,24 @@ jobs: iOSVersion: "17.0.1" watchOSVersion: "10.0" watchName: "Apple Watch Series 9 (41mm)" - iPhoneName: "iPhone 15 Pro" + iPhoneName: "iPhone 15" - xcode: "/Applications/Xcode_15.1.app" os: macos-13 iOSVersion: "17.2" watchOSVersion: "10.2" watchName: "Apple Watch Series 9 (45mm)" - iPhoneName: "iPhone 15 Pro" + iPhoneName: "iPhone 15 Plus" - xcode: "/Applications/Xcode_15.2.app" os: macos-14 iOSVersion: "17.2" watchOSVersion: "10.2" watchName: "Apple Watch Ultra (49mm)" + iPhoneName: "iPhone 15 Pro" + - xcode: "/Applications/Xcode_15.3.app" + os: macos-14 + iOSVersion: "17.4" + watchOSVersion: "10.4" + watchName: "Apple Watch Ultra 2 (49mm)" iPhoneName: "iPhone 15 Pro Max" steps: - uses: actions/checkout@v4 @@ -103,7 +109,7 @@ jobs: restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}-${{ matrix.xcode }}- - name: Cache mint - if: startsWith(matrix.xcode,'/Applications/Xcode_15.2') + if: startsWith(matrix.xcode,'/Applications/Xcode_15.3') id: cache-mint uses: actions/cache@v4 env: @@ -120,7 +126,7 @@ jobs: - name: Setup Xcode run: sudo xcode-select -s ${{ matrix.xcode }}/Contents/Developer - name: Install mint - if: startsWith(matrix.xcode,'/Applications/Xcode_15.2') + if: startsWith(matrix.xcode,'/Applications/Xcode_15.3') run: | brew update brew install mint @@ -142,7 +148,7 @@ jobs: # files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }} - name: Lint run: ./scripts/lint.sh - if: startsWith(matrix.xcode,'/Applications/Xcode_15.2') + if: startsWith(matrix.xcode,'/Applications/Xcode_15.3') # - name: Dump PIF # if: startsWith(matrix.xcode,'/Applications/Xcode_14') # run: | diff --git a/Package.swift b/Package.swift index cd558fa..7465644 100644 --- a/Package.swift +++ b/Package.swift @@ -3,7 +3,7 @@ import PackageDescription let swiftSettings: [SwiftSetting] = [ -// .enableUpcomingFeature("BareSlashRegexLiterals"), + // .enableUpcomingFeature("BareSlashRegexLiterals"), // .enableUpcomingFeature("ConciseMagicFile"), // .enableUpcomingFeature("ExistentialAny"), // .enableUpcomingFeature("ForwardTrailingClosures"), diff --git a/Sources/SublimationVapor/SublimationLifecycleHandler.swift b/Sources/SublimationVapor/SublimationLifecycleHandler.swift index e0ed5ee..46380ed 100644 --- a/Sources/SublimationVapor/SublimationLifecycleHandler.swift +++ b/Sources/SublimationVapor/SublimationLifecycleHandler.swift @@ -205,6 +205,8 @@ public actor SublimationLifecycleHandler< } } + public nonisolated func didBoot(_: Application) throws {} + /// Called when the application is shutting down. /// /// - Parameters: