Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
theproducer committed Nov 7, 2023
1 parent 32a29fc commit 06762a9
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 28 deletions.
5 changes: 2 additions & 3 deletions app/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -22,7 +22,6 @@ let package = Package(
path: "ios/Sources/AppPlugin"),
.testTarget(
name: "AppPluginTests",
dependencies: ["AppPlugin"]),
dependencies: ["AppPlugin"])
]
)

8 changes: 4 additions & 4 deletions app/ios/Sources/AppPlugin/AppPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
10 changes: 5 additions & 5 deletions haptics/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ 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")
],
path: "ios/Sources/HapticsPlugin"),
.testTarget(
name: "HapticsPluginTests",
dependencies: ["HapticsPlugin"],
path: "ios/Tests/HapticsPluginTests"),
path: "ios/Tests/HapticsPluginTests")
]
)
9 changes: 4 additions & 5 deletions haptics/ios/Sources/HapticsPlugin/HapticsPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -73,4 +73,3 @@ public class HapticsPlugin: CAPPlugin, CAPBridgedPlugin {
call.resolve()
}
}

5 changes: 2 additions & 3 deletions keyboard/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -24,7 +24,6 @@ let package = Package(
.testTarget(
name: "KeyboardPluginTests",
dependencies: ["KeyboardPlugin"],
path: "ios/Tests/KeyboardPluginTests"),
path: "ios/Tests/KeyboardPluginTests")
]
)

6 changes: 3 additions & 3 deletions status-bar/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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")
]
)
9 changes: 4 additions & 5 deletions status-bar/ios/Sources/StatusBarPlugin/StatusBarPlugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down Expand Up @@ -104,4 +104,3 @@ public class StatusBarPlugin: CAPPlugin, CAPBridgedPlugin {
call.unimplemented()
}
}

0 comments on commit 06762a9

Please sign in to comment.