From 06762a9fd935d8877247214857cd15d8e1b81120 Mon Sep 17 00:00:00 2001 From: Joseph Pender Date: Tue, 7 Nov 2023 10:31:37 -0600 Subject: [PATCH] fmt --- app/Package.swift | 5 ++--- app/ios/Sources/AppPlugin/AppPlugin.swift | 8 ++++---- haptics/Package.swift | 10 +++++----- haptics/ios/Sources/HapticsPlugin/HapticsPlugin.swift | 9 ++++----- keyboard/Package.swift | 5 ++--- status-bar/Package.swift | 6 +++--- .../ios/Sources/StatusBarPlugin/StatusBarPlugin.swift | 9 ++++----- 7 files changed, 24 insertions(+), 28 deletions(-) diff --git a/app/Package.swift b/app/Package.swift index cd14bf339..c56662bf3 100644 --- a/app/Package.swift +++ b/app/Package.swift @@ -7,7 +7,7 @@ let package = Package( products: [ .library( name: "AppPlugin", - targets: ["AppPlugin"]), + targets: ["AppPlugin"]) ], dependencies: [ .package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main") @@ -22,7 +22,6 @@ let package = Package( path: "ios/Sources/AppPlugin"), .testTarget( name: "AppPluginTests", - dependencies: ["AppPlugin"]), + dependencies: ["AppPlugin"]) ] ) - diff --git a/app/ios/Sources/AppPlugin/AppPlugin.swift b/app/ios/Sources/AppPlugin/AppPlugin.swift index c28c90329..0f6086507 100644 --- a/app/ios/Sources/AppPlugin/AppPlugin.swift +++ b/app/ios/Sources/AppPlugin/AppPlugin.swift @@ -3,15 +3,15 @@ import Capacitor @objc(AppPlugin) public class AppPlugin: CAPPlugin, CAPBridgedPlugin { - public let identifier = "AppPlugin" - public let jsName = "App" + public let identifier = "AppPlugin" + public let jsName = "App" public let pluginMethods: [CAPPluginMethod] = [ CAPPluginMethod(name: "exitApp", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "getInfo", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "getLaunchUrl", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "getState", returnType: CAPPluginReturnPromise), - CAPPluginMethod(name: "minimizeApp", returnType: CAPPluginReturnPromise), - ] + CAPPluginMethod(name: "minimizeApp", returnType: CAPPluginReturnPromise) + ] private var observers: [NSObjectProtocol] = [] override public func load() { diff --git a/haptics/Package.swift b/haptics/Package.swift index 7c3e1e3f3..e4a5e7df9 100644 --- a/haptics/Package.swift +++ b/haptics/Package.swift @@ -7,15 +7,15 @@ let package = Package( products: [ .library( name: "HapticsPlugin", - targets: ["HapticsPlugin"]), + targets: ["HapticsPlugin"]) ], - dependencies: [ + dependencies: [ .package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main") ], targets: [ .target( - name: "HapticsPlugin", - dependencies: [ + name: "HapticsPlugin", + dependencies: [ .product(name: "Capacitor", package: "capacitor6-spm-test"), .product(name: "Cordova", package: "capacitor6-spm-test") ], @@ -23,6 +23,6 @@ let package = Package( .testTarget( name: "HapticsPluginTests", dependencies: ["HapticsPlugin"], - path: "ios/Tests/HapticsPluginTests"), + path: "ios/Tests/HapticsPluginTests") ] ) diff --git a/haptics/ios/Sources/HapticsPlugin/HapticsPlugin.swift b/haptics/ios/Sources/HapticsPlugin/HapticsPlugin.swift index 5be09314a..49f2229a6 100644 --- a/haptics/ios/Sources/HapticsPlugin/HapticsPlugin.swift +++ b/haptics/ios/Sources/HapticsPlugin/HapticsPlugin.swift @@ -2,16 +2,16 @@ import Capacitor @objc(HapticsPlugin) public class HapticsPlugin: CAPPlugin, CAPBridgedPlugin { - public let identifier = "HapticsPlugin" - public let jsName = "Haptics" + public let identifier = "HapticsPlugin" + public let jsName = "Haptics" public let pluginMethods: [CAPPluginMethod] = [ CAPPluginMethod(name: "impact", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "notification", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "selectionStart", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "selectionChanged", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "selectionEnd", returnType: CAPPluginReturnPromise), - CAPPluginMethod(name: "vibrate", returnType: CAPPluginReturnPromise), - ] + CAPPluginMethod(name: "vibrate", returnType: CAPPluginReturnPromise) + ] private let implementation = Haptics() @objc public func impact(_ call: CAPPluginCall) { @@ -73,4 +73,3 @@ public class HapticsPlugin: CAPPlugin, CAPBridgedPlugin { call.resolve() } } - diff --git a/keyboard/Package.swift b/keyboard/Package.swift index b9e6c723d..5e30b2f2b 100644 --- a/keyboard/Package.swift +++ b/keyboard/Package.swift @@ -8,7 +8,7 @@ let package = Package( products: [ .library( name: "KeyboardPlugin", - targets: ["KeyboardPlugin"]), + targets: ["KeyboardPlugin"]) ], dependencies: [ .package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main") @@ -24,7 +24,6 @@ let package = Package( .testTarget( name: "KeyboardPluginTests", dependencies: ["KeyboardPlugin"], - path: "ios/Tests/KeyboardPluginTests"), + path: "ios/Tests/KeyboardPluginTests") ] ) - diff --git a/status-bar/Package.swift b/status-bar/Package.swift index 3b81bfef8..72f70093c 100644 --- a/status-bar/Package.swift +++ b/status-bar/Package.swift @@ -8,7 +8,7 @@ let package = Package( products: [ .library( name: "StatusBarPlugin", - targets: ["StatusBarPlugin"]), + targets: ["StatusBarPlugin"]) ], dependencies: [ .package(url: "https://github.com/ionic-team/capacitor6-spm-test.git", branch: "main") @@ -19,11 +19,11 @@ let package = Package( dependencies: [ .product(name: "Capacitor", package: "capacitor6-spm-test"), .product(name: "Cordova", package: "capacitor6-spm-test")], - path: "ios/Sources/StatusBarPlugin" + path: "ios/Sources/StatusBarPlugin" ), .testTarget( name: "StatusBarPluginTests", dependencies: ["StatusBarPlugin"], - path: "ios/Tests/StatusBarPluginTests"), + path: "ios/Tests/StatusBarPluginTests") ] ) diff --git a/status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift b/status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift index 19c99ff91..6634d064c 100644 --- a/status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift +++ b/status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift @@ -7,16 +7,16 @@ import Capacitor */ @objc(StatusBarPlugin) public class StatusBarPlugin: CAPPlugin, CAPBridgedPlugin { - public let identifier = "StatusBarPlugin" - public let jsName = "StatusBar" + public let identifier = "StatusBarPlugin" + public let jsName = "StatusBar" public let pluginMethods: [CAPPluginMethod] = [ CAPPluginMethod(name: "setStyle", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "setBackgroundColor", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "show", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "hide", returnType: CAPPluginReturnPromise), CAPPluginMethod(name: "getInfo", returnType: CAPPluginReturnPromise), - CAPPluginMethod(name: "setOverlaysWebView", returnType: CAPPluginReturnPromise), - ] + CAPPluginMethod(name: "setOverlaysWebView", returnType: CAPPluginReturnPromise) + ] private var observer: NSObjectProtocol? override public func load() { @@ -104,4 +104,3 @@ public class StatusBarPlugin: CAPPlugin, CAPBridgedPlugin { call.unimplemented() } } -