diff --git a/.github/workflows/swift-format-check.yml b/.github/workflows/swift-format-check.yml index 86d00fc..4a76333 100644 --- a/.github/workflows/swift-format-check.yml +++ b/.github/workflows/swift-format-check.yml @@ -29,35 +29,12 @@ jobs: - name: 🛠️ Setup Swift uses: swift-actions/setup-swift@v2 - - name: 📦 Cache Swift Format - id: swift-format-cache - uses: actions/cache@v4 - with: - path: .build - key: swift-format-${{ runner.os }}-v${{ env.SWIFT_FORMAT_VERSION }}-${{ hashFiles('**/Package.resolved') }} - restore-keys: | - swift-format-${{ runner.os }}-v - - - name: 📦 Restore Cached Swift Format - if: steps.swift-format-cache.outputs.cache-hit == 'true' - run: | - if [ -d ".build" ]; then - if ! [ -x "$(command -v swift-format)" ]; then - sudo cp -f .build/release/swift-format /usr/local/bin/swift-format - fi - else - echo "The cached swift-format was not found in the .build directory." >&2 - exit 1 - fi - - - name: 📦 Install Swift Format if not cached - if: steps.swift-format-cache.outputs.cache-hit != 'true' + - name: 📦 Install Swift Format run: | git clone --branch $SWIFT_FORMAT_VERSION --depth 1 https://github.com/swiftlang/swift-format.git cd swift-format swift build -c release - mv .build .. && cd .. - sudo cp -f .build/release/swift-format /usr/local/bin/swift-format + sudo mv .build/release/swift-format /usr/local/bin/ - name: 🔍 Verify Swift Format installation run: swift-format --version diff --git a/quill_native_bridge_ios/ios/quill_native_bridge_ios/Sources/quill_native_bridge_ios/QuillNativeBridgePlugin.swift b/quill_native_bridge_ios/ios/quill_native_bridge_ios/Sources/quill_native_bridge_ios/QuillNativeBridgePlugin.swift index e7fe144..a3a2eb3 100644 --- a/quill_native_bridge_ios/ios/quill_native_bridge_ios/Sources/quill_native_bridge_ios/QuillNativeBridgePlugin.swift +++ b/quill_native_bridge_ios/ios/quill_native_bridge_ios/Sources/quill_native_bridge_ios/QuillNativeBridgePlugin.swift @@ -4,7 +4,7 @@ import UIKit public class QuillNativeBridgePlugin: NSObject, FlutterPlugin { public static func register(with registrar: FlutterPluginRegistrar) { let messenger = registrar.messenger() - let api = QuillNativeBridgeImpl() + let api = QuillNativeBridgeImpl() QuillNativeBridgeApiSetup.setUp(binaryMessenger: messenger, api: api) } }