Skip to content

Commit 4eee2cd

Browse files
committed
formatting
1 parent e622e9d commit 4eee2cd

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

Examples/counter/macos/Flutter/GeneratedPluginRegistrant.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@
55
import FlutterMacOS
66
import Foundation
77

8-
9-
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
10-
}
8+
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {}

Examples/counter/macos/Runner/AppDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ class AppDelegate: FlutterAppDelegate {
88
}
99

1010
override func applicationSupportsSecureRestorableState(_ app: NSApplication) -> Bool {
11-
return true
11+
true
1212
}
1313
}

Sources/FlutterSwift/Channel/FlutterBasicMessageChannel.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public typealias FlutterMessageHandler<Message: Decodable, Reply: Encodable> = (
3535
* message passing.
3636
*/
3737
public final class FlutterBasicMessageChannel: _FlutterBinaryMessengerConnectionRepresentable,
38-
Sendable
38+
_FlutterChannelDefaultBufferControl, Sendable
3939
{
4040
public let name: String
4141
public let binaryMessenger: FlutterBinaryMessenger

Sources/FlutterSwift/Client/FlutterPlugin.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ struct AnyFlutterPlugin<Arguments: Codable & Sendable, Result: Codable & Sendabl
6464
let _detachFromEngine: @Sendable (FlutterPluginRegistrar)
6565
-> ()
6666

67-
public init() {
67+
init() {
6868
_handleMethod = { _ in fatalError() }
6969
_detachFromEngine = { _ in }
7070
}
@@ -74,11 +74,11 @@ struct AnyFlutterPlugin<Arguments: Codable & Sendable, Result: Codable & Sendabl
7474
_detachFromEngine = { plugin.detachFromEngine(for: $0) }
7575
}
7676

77-
public func handleMethod(call: FlutterMethodCall<Arguments>) throws -> Result {
77+
func handleMethod(call: FlutterMethodCall<Arguments>) throws -> Result {
7878
try _handleMethod(call)
7979
}
8080

81-
public func detachFromEngine(for registrar: FlutterPluginRegistrar) {
81+
func detachFromEngine(for registrar: FlutterPluginRegistrar) {
8282
_detachFromEngine(registrar)
8383
}
8484
}

Sources/FlutterSwift/Codecs/Standard/Encoder/FlutterStandardEncoder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import Foundation
2727
#endif
2828

2929
struct FlutterStandardEncoder {
30-
public func encode<Value>(_ value: Value) throws -> Data where Value: Encodable {
30+
func encode<Value>(_ value: Value) throws -> Data where Value: Encodable {
3131
let state = FlutterStandardEncodingState()
3232
try state.encode(value, codingPath: [])
3333
return state.data

0 commit comments

Comments
 (0)