From a500893219b8ced29f08d2a19386ebd3248d8f79 Mon Sep 17 00:00:00 2001 From: tgrapperon Date: Thu, 25 Jul 2024 01:12:41 +0000 Subject: [PATCH] Run swift-format --- .../ApplicationDependency_iOS.swift | 2 +- .../ApplicationDependency_tvOS.swift | 7 +-- Sources/BundleDependency/BundleInfo.swift | 3 +- .../Proxies+Unimplemented.swift | 15 ++++--- .../UIDeviceDependency_iOS.swift | 9 ++-- .../UserNotificationsDependency.swift | 43 ++++++++++++------- 6 files changed, 49 insertions(+), 30 deletions(-) diff --git a/Sources/ApplicationDependency/ApplicationDependency_iOS.swift b/Sources/ApplicationDependency/ApplicationDependency_iOS.swift index 2b46bcd..fe6a546 100644 --- a/Sources/ApplicationDependency/ApplicationDependency_iOS.swift +++ b/Sources/ApplicationDependency/ApplicationDependency_iOS.swift @@ -472,7 +472,7 @@ import XCTestDynamicOverlay requestSceneSessionRefresh: .unimplemented( #"@Dependency(\.application.requestSceneSessionRefresh)"#, placeholder: { _ in }), registerForRemoteNotifications: .unimplemented( - #"@Dependency(\.application.registerForRemoteNotifications)"#, placeholder: { }), + #"@Dependency(\.application.registerForRemoteNotifications)"#, placeholder: {}), unregisterForRemoteNotifications: .unimplemented( #"@Dependency(\.application.unregisterForRemoteNotifications)"#, placeholder: {}), isRegisteredForRemoteNotifications: .unimplemented( diff --git a/Sources/ApplicationDependency/ApplicationDependency_tvOS.swift b/Sources/ApplicationDependency/ApplicationDependency_tvOS.swift index 9eef752..f6246c0 100644 --- a/Sources/ApplicationDependency/ApplicationDependency_tvOS.swift +++ b/Sources/ApplicationDependency/ApplicationDependency_tvOS.swift @@ -377,7 +377,7 @@ import XCTestDynamicOverlay canOpenURL: .unimplemented( #"@Dependency(\.application.canOpenURL)"#, placeholder: { _ in false }), open: .unimplemented( - #"@Dependency(\.application.open)"#, placeholder: { _, _ in false }), + #"@Dependency(\.application.open)"#, placeholder: { _, _ in false }), sendEvent: .unimplemented( #"@Dependency(\.application.sendEvent)"#, placeholder: { _ in }), sendAction: .unimplemented( @@ -415,11 +415,12 @@ import XCTestDynamicOverlay #"@Dependency(\.application.requestSceneSessionActivation)"#, placeholder: { _, _, _, _ in }), requestSceneSessionDestruction: .unimplemented( - #"@Dependency(\.application.requestSceneSessionDestruction)"#, placeholder: { _, _, _ in }), + #"@Dependency(\.application.requestSceneSessionDestruction)"#, placeholder: { _, _, _ in } + ), requestSceneSessionRefresh: .unimplemented( #"@Dependency(\.application.requestSceneSessionRefresh)"#, placeholder: { _ in }), registerForRemoteNotifications: .unimplemented( - #"@Dependency(\.application.registerForRemoteNotifications)"#, placeholder: { }), + #"@Dependency(\.application.registerForRemoteNotifications)"#, placeholder: {}), unregisterForRemoteNotifications: .unimplemented( #"@Dependency(\.application.unregisterForRemoteNotifications)"#, placeholder: {}), isRegisteredForRemoteNotifications: .unimplemented( diff --git a/Sources/BundleDependency/BundleInfo.swift b/Sources/BundleDependency/BundleInfo.swift index bb2ec83..332f0f5 100644 --- a/Sources/BundleDependency/BundleInfo.swift +++ b/Sources/BundleDependency/BundleInfo.swift @@ -113,7 +113,8 @@ extension BundleInfo { static var unimplemented: BundleInfo { BundleInfo( _implementation: .init( - bundleIdentifier: .unimplemented(#"@Dependency(\.bundleInfo.bundleIdentifier)"#, placeholder: ""), + bundleIdentifier: .unimplemented( + #"@Dependency(\.bundleInfo.bundleIdentifier)"#, placeholder: ""), name: .unimplemented(#"@Dependency(\.bundleInfo.name)"#, placeholder: ""), displayName: .unimplemented(#"@Dependency(\.bundleInfo.displayName)"#, placeholder: ""), spokenName: .unimplemented(#"@Dependency(\.bundleInfo.spokenName)"#, placeholder: ""), diff --git a/Sources/DependenciesAdditionsBasics/Proxies+Unimplemented.swift b/Sources/DependenciesAdditionsBasics/Proxies+Unimplemented.swift index ae50053..02d0501 100644 --- a/Sources/DependenciesAdditionsBasics/Proxies+Unimplemented.swift +++ b/Sources/DependenciesAdditionsBasics/Proxies+Unimplemented.swift @@ -204,13 +204,14 @@ extension MainActorReadOnlyProxy { fileID: StaticString = #fileID, line: UInt = #line ) -> Self { - MainActorReadOnlyProxy(value: - XCTestDynamicOverlay.unimplemented( - description, - placeholder: () as! Value, - fileID: fileID, - line: line - ) + MainActorReadOnlyProxy( + value: + XCTestDynamicOverlay.unimplemented( + description, + placeholder: () as! Value, + fileID: fileID, + line: line + ) ) } public static func unimplemented( diff --git a/Sources/DeviceDependency/UIDeviceDependency_iOS.swift b/Sources/DeviceDependency/UIDeviceDependency_iOS.swift index 3dcca48..cd25f1e 100644 --- a/Sources/DeviceDependency/UIDeviceDependency_iOS.swift +++ b/Sources/DeviceDependency/UIDeviceDependency_iOS.swift @@ -235,13 +235,16 @@ import XCTestDynamicOverlay orientation: .unimplemented( #"@Dependency(\.device.orientation)"#, placeholder: .unknown), isGeneratingDeviceOrientationNotifications: .unimplemented( - #"@Dependency(\.device.isGeneratingDeviceOrientationNotifications)"#, placeholder: false), + #"@Dependency(\.device.isGeneratingDeviceOrientationNotifications)"#, placeholder: false + ), beginGeneratingDeviceOrientationNotifications: .unimplemented( - #"@Dependency(\.device.beginGeneratingDeviceOrientationNotifications)"#, placeholder: {}), + #"@Dependency(\.device.beginGeneratingDeviceOrientationNotifications)"#, placeholder: {} + ), endGeneratingDeviceOrientationNotifications: .unimplemented( #"@Dependency(\.device.endGeneratingDeviceOrientationNotifications)"#, placeholder: {}), isBatteryMonitoringEnabled: .init( - .unimplemented(#"@Dependency(\.device.isBatteryMonitoringEnabled.get)"#, placeholder: false)), + .unimplemented( + #"@Dependency(\.device.isBatteryMonitoringEnabled.get)"#, placeholder: false)), batteryState: .unimplemented( #"@Dependency(\.device.batteryState)"#, placeholder: .unknown), batteryLevel: .unimplemented( diff --git a/Sources/UserNotificationsDependency/UserNotificationsDependency.swift b/Sources/UserNotificationsDependency/UserNotificationsDependency.swift index af01acb..dd7cfcf 100644 --- a/Sources/UserNotificationsDependency/UserNotificationsDependency.swift +++ b/Sources/UserNotificationsDependency/UserNotificationsDependency.swift @@ -245,25 +245,34 @@ placeholder: nil ), supportsContentExtensions: .unimplemented( - #"@Dependency(\.userNotificationCenter.supportsContentExtensions)"#, placeholder: false), + #"@Dependency(\.userNotificationCenter.supportsContentExtensions)"#, + placeholder: false), add: .unimplemented( #"@Dependency(\.userNotificationCenter.add)"#), pendingNotificationRequests: .unimplemented( - #"@Dependency(\.userNotificationCenter.pendingNotificationRequests)"#, placeholder: { [] }), + #"@Dependency(\.userNotificationCenter.pendingNotificationRequests)"#, + placeholder: { [] }), removePendingNotificationRequests: .unimplemented( - #"@Dependency(\.userNotificationCenter.removePendingNotificationRequests)"#, placeholder: { _ in }), + #"@Dependency(\.userNotificationCenter.removePendingNotificationRequests)"#, + placeholder: { _ in }), removeAllPendingNotificationRequests: .unimplemented( - #"@Dependency(\.userNotificationCenter.removeAllPendingNotificationRequests)"#, placeholder: {}), + #"@Dependency(\.userNotificationCenter.removeAllPendingNotificationRequests)"#, + placeholder: {}), deliveredNotifications: .unimplemented( - #"@Dependency(\,.userNotificationCenter.deliveredNotifications)"#, placeholder: { [] }), + #"@Dependency(\,.userNotificationCenter.deliveredNotifications)"#, placeholder: { [] } + ), removeDeliveredNotifications: .unimplemented( - #"@Dependency(\.userNotificationCenter.removeDeliveredNotifications)"#, placeholder: { _ in }), + #"@Dependency(\.userNotificationCenter.removeDeliveredNotifications)"#, + placeholder: { _ in }), removeAllDeliveredNotifications: .unimplemented( - #"@Dependency(\.userNotificationCenter.removeAllDeliveredNotifications)"#, placeholder: {}), + #"@Dependency(\.userNotificationCenter.removeAllDeliveredNotifications)"#, + placeholder: {}), setNotificationCategories: .unimplemented( - #"@Dependency(\,.userNotificationCenter.setNotificationCategories)"#, placeholder: { _ in }), + #"@Dependency(\,.userNotificationCenter.setNotificationCategories)"#, + placeholder: { _ in }), notificationCategories: .unimplemented( - #"@Dependency(\,.userNotificationCenter.notificationCategories)"#, placeholder: { [] }) + #"@Dependency(\,.userNotificationCenter.notificationCategories)"#, placeholder: { [] } + ) ) ) #else @@ -290,19 +299,23 @@ #"@Dependency(\.userNotificationCenter.pendingNotificationRequests)"#, placeholder: { [] }), removePendingNotificationRequests: .unimplemented( - #"@Dependency(\.userNotificationCenter.removePendingNotificationRequests)"#, placeholder: { _ in }), + #"@Dependency(\.userNotificationCenter.removePendingNotificationRequests)"#, + placeholder: { _ in }), removeAllPendingNotificationRequests: .unimplemented( #"@Dependency(\.userNotificationCenter.removeAllPendingNotificationRequests)"#, - placeholder: { }), + placeholder: {}), deliveredNotifications: .unimplemented( - #"@Dependency(\,.userNotificationCenter.deliveredNotifications)"#, + #"@Dependency(\,.userNotificationCenter.deliveredNotifications)"#, placeholder: { [] }), removeDeliveredNotifications: .unimplemented( - #"@Dependency(\.userNotificationCenter.removeDeliveredNotifications)"#, placeholder: { _ in }), + #"@Dependency(\.userNotificationCenter.removeDeliveredNotifications)"#, + placeholder: { _ in }), removeAllDeliveredNotifications: .unimplemented( - #"@Dependency(\.userNotificationCenter.removeAllDeliveredNotifications)"#, placeholder: {}), + #"@Dependency(\.userNotificationCenter.removeAllDeliveredNotifications)"#, + placeholder: {}), setNotificationCategories: .unimplemented( - #"@Dependency(\,.userNotificationCenter.setNotificationCategories)"#, placeholder: { _ in }), + #"@Dependency(\,.userNotificationCenter.setNotificationCategories)"#, + placeholder: { _ in }), notificationCategories: .unimplemented( #"@Dependency(\,.userNotificationCenter.notificationCategories)"#, placeholder: { [] })