Skip to content

Commit 5426966

Browse files
authored
chore: reformat codebase with swift-format version 602.0.0 (#488)
1 parent 9774479 commit 5426966

File tree

5 files changed

+73
-63
lines changed

5 files changed

+73
-63
lines changed

.github/workflows/analyze.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
with:
7171
path: /home/linuxbrew/.linuxbrew
7272
key: ${{ runner.os }}-linuxbrew
73-
- name: Install swift-format 601.0.0
73+
- name: Install swift-format 602.0.0
7474
if: steps.cache.outputs.cache-hit != 'true'
7575
run: |
7676
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsAutoViewMessageHandler.swift

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi {
3939
switch result {
4040
case .success:
4141
completion(.success(()))
42-
case let .failure(error):
42+
case .failure(let error):
4343
completion(.failure(error))
4444
}
4545
}
@@ -207,12 +207,13 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi {
207207
func animateCameraToLatLngBounds(
208208
bounds: LatLngBoundsDto,
209209
padding: Double, duration: Int64?,
210-
completion: @escaping (
211-
Result<
212-
Bool,
213-
Error
214-
>
215-
)
210+
completion:
211+
@escaping (
212+
Result<
213+
Bool,
214+
Error
215+
>
216+
)
216217
-> Void
217218
) {
218219
do {
@@ -264,12 +265,13 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi {
264265
func animateCameraByZoom(
265266
zoomBy: Double, focusDx: Double?,
266267
focusDy: Double?, duration: Int64?,
267-
completion: @escaping (
268-
Result<
269-
Bool,
270-
Error
271-
>
272-
) -> Void
268+
completion:
269+
@escaping (
270+
Result<
271+
Bool,
272+
Error
273+
>
274+
) -> Void
273275
) {
274276
do {
275277
let focus = Convert.convertDeltaToPoint(dx: focusDx, dy: focusDy)

ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionManager.swift

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -349,12 +349,13 @@ class GoogleMapsNavigationSessionManager: NSObject {
349349

350350
func simulateLocationsAlongNewRoute(
351351
waypoints: [NavigationWaypointDto],
352-
completion: @escaping (
353-
Result<
354-
RouteStatusDto,
355-
Error
356-
>
357-
)
352+
completion:
353+
@escaping (
354+
Result<
355+
RouteStatusDto,
356+
Error
357+
>
358+
)
358359
-> Void
359360
) throws {
360361
/// Speedmultiplier is set to default value here because the functions using
@@ -394,12 +395,13 @@ class GoogleMapsNavigationSessionManager: NSObject {
394395
func simulateLocationsAlongNewRouteWithRoutingOptions(
395396
waypoints: [NavigationWaypointDto],
396397
routingOptions: RoutingOptionsDto,
397-
completion: @escaping (
398-
Result<
399-
RouteStatusDto,
400-
Error
401-
>
402-
) -> Void
398+
completion:
399+
@escaping (
400+
Result<
401+
RouteStatusDto,
402+
Error
403+
>
404+
) -> Void
403405
) throws {
404406
/// Speedmultiplier is set to default value here because the functions using
405407
/// SimulationOptionsDto will set it globally to a custom value. This
@@ -421,12 +423,13 @@ class GoogleMapsNavigationSessionManager: NSObject {
421423
waypoints: [NavigationWaypointDto],
422424
routingOptions: RoutingOptionsDto,
423425
simulationOptions: SimulationOptionsDto,
424-
completion: @escaping (
425-
Result<
426-
RouteStatusDto,
427-
Error
428-
>
429-
) -> Void
426+
completion:
427+
@escaping (
428+
Result<
429+
RouteStatusDto,
430+
Error
431+
>
432+
) -> Void
430433
) throws {
431434
try getSimulator().speedMultiplier = Float(simulationOptions.speedMultiplier)
432435
try setRoutingOptionsGlobals(routingOptions, for: .simulator)

ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationSessionMessageHandler.swift

Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,13 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi {
143143

144144
func simulateLocationsAlongNewRoute(
145145
waypoints: [NavigationWaypointDto],
146-
completion: @escaping (
147-
Result<
148-
RouteStatusDto,
149-
Error
150-
>
151-
)
146+
completion:
147+
@escaping (
148+
Result<
149+
RouteStatusDto,
150+
Error
151+
>
152+
)
152153
-> Void
153154
) {
154155
do {
@@ -164,12 +165,13 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi {
164165
func simulateLocationsAlongNewRouteWithRoutingOptions(
165166
waypoints: [NavigationWaypointDto],
166167
routingOptions: RoutingOptionsDto,
167-
completion: @escaping (
168-
Result<
169-
RouteStatusDto,
170-
Error
171-
>
172-
) -> Void
168+
completion:
169+
@escaping (
170+
Result<
171+
RouteStatusDto,
172+
Error
173+
>
174+
) -> Void
173175
) {
174176
do {
175177
try GoogleMapsNavigationSessionManager.shared
@@ -187,12 +189,13 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi {
187189
waypoints: [NavigationWaypointDto],
188190
routingOptions: RoutingOptionsDto,
189191
simulationOptions: SimulationOptionsDto,
190-
completion: @escaping (
191-
Result<
192-
RouteStatusDto,
193-
Error
194-
>
195-
) -> Void
192+
completion:
193+
@escaping (
194+
Result<
195+
RouteStatusDto,
196+
Error
197+
>
198+
) -> Void
196199
) {
197200
do {
198201
try GoogleMapsNavigationSessionManager.shared

ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationViewMessageHandler.swift

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class GoogleMapsNavigationViewMessageHandler: MapViewApi {
4040
switch result {
4141
case .success:
4242
completion(.success(()))
43-
case let .failure(error):
43+
case .failure(let error):
4444
completion(.failure(error))
4545
}
4646
}
@@ -208,12 +208,13 @@ class GoogleMapsNavigationViewMessageHandler: MapViewApi {
208208
func animateCameraToLatLngBounds(
209209
viewId: Int64, bounds: LatLngBoundsDto,
210210
padding: Double, duration: Int64?,
211-
completion: @escaping (
212-
Result<
213-
Bool,
214-
Error
215-
>
216-
) -> Void
211+
completion:
212+
@escaping (
213+
Result<
214+
Bool,
215+
Error
216+
>
217+
) -> Void
217218
) {
218219
do {
219220
try getView(viewId).animateCameraToLatLngBounds(
@@ -264,12 +265,13 @@ class GoogleMapsNavigationViewMessageHandler: MapViewApi {
264265
func animateCameraByZoom(
265266
viewId: Int64, zoomBy: Double, focusDx: Double?,
266267
focusDy: Double?, duration: Int64?,
267-
completion: @escaping (
268-
Result<
269-
Bool,
270-
Error
271-
>
272-
) -> Void
268+
completion:
269+
@escaping (
270+
Result<
271+
Bool,
272+
Error
273+
>
274+
) -> Void
273275
) {
274276
do {
275277
let focus = Convert.convertDeltaToPoint(dx: focusDx, dy: focusDy)

0 commit comments

Comments
 (0)