Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/analyze.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
with:
path: /home/linuxbrew/.linuxbrew
key: ${{ runner.os }}-linuxbrew
- name: Install swift-format 601.0.0
- name: Install swift-format 602.0.0
if: steps.cache.outputs.cache-hit != 'true'
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi {
switch result {
case .success:
completion(.success(()))
case let .failure(error):
case .failure(let error):
completion(.failure(error))
}
}
Expand Down Expand Up @@ -207,12 +207,13 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi {
func animateCameraToLatLngBounds(
bounds: LatLngBoundsDto,
padding: Double, duration: Int64?,
completion: @escaping (
Result<
Bool,
Error
>
)
completion:
@escaping (
Result<
Bool,
Error
>
)
-> Void
) {
do {
Expand Down Expand Up @@ -264,12 +265,13 @@ class GoogleMapsAutoViewMessageHandler: AutoMapViewApi {
func animateCameraByZoom(
zoomBy: Double, focusDx: Double?,
focusDy: Double?, duration: Int64?,
completion: @escaping (
Result<
Bool,
Error
>
) -> Void
completion:
@escaping (
Result<
Bool,
Error
>
) -> Void
) {
do {
let focus = Convert.convertDeltaToPoint(dx: focusDx, dy: focusDy)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -349,12 +349,13 @@ class GoogleMapsNavigationSessionManager: NSObject {

func simulateLocationsAlongNewRoute(
waypoints: [NavigationWaypointDto],
completion: @escaping (
Result<
RouteStatusDto,
Error
>
)
completion:
@escaping (
Result<
RouteStatusDto,
Error
>
)
-> Void
) throws {
/// Speedmultiplier is set to default value here because the functions using
Expand Down Expand Up @@ -394,12 +395,13 @@ class GoogleMapsNavigationSessionManager: NSObject {
func simulateLocationsAlongNewRouteWithRoutingOptions(
waypoints: [NavigationWaypointDto],
routingOptions: RoutingOptionsDto,
completion: @escaping (
Result<
RouteStatusDto,
Error
>
) -> Void
completion:
@escaping (
Result<
RouteStatusDto,
Error
>
) -> Void
) throws {
/// Speedmultiplier is set to default value here because the functions using
/// SimulationOptionsDto will set it globally to a custom value. This
Expand All @@ -421,12 +423,13 @@ class GoogleMapsNavigationSessionManager: NSObject {
waypoints: [NavigationWaypointDto],
routingOptions: RoutingOptionsDto,
simulationOptions: SimulationOptionsDto,
completion: @escaping (
Result<
RouteStatusDto,
Error
>
) -> Void
completion:
@escaping (
Result<
RouteStatusDto,
Error
>
) -> Void
) throws {
try getSimulator().speedMultiplier = Float(simulationOptions.speedMultiplier)
try setRoutingOptionsGlobals(routingOptions, for: .simulator)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,13 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi {

func simulateLocationsAlongNewRoute(
waypoints: [NavigationWaypointDto],
completion: @escaping (
Result<
RouteStatusDto,
Error
>
)
completion:
@escaping (
Result<
RouteStatusDto,
Error
>
)
-> Void
) {
do {
Expand All @@ -164,12 +165,13 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi {
func simulateLocationsAlongNewRouteWithRoutingOptions(
waypoints: [NavigationWaypointDto],
routingOptions: RoutingOptionsDto,
completion: @escaping (
Result<
RouteStatusDto,
Error
>
) -> Void
completion:
@escaping (
Result<
RouteStatusDto,
Error
>
) -> Void
) {
do {
try GoogleMapsNavigationSessionManager.shared
Expand All @@ -187,12 +189,13 @@ class GoogleMapsNavigationSessionMessageHandler: NavigationSessionApi {
waypoints: [NavigationWaypointDto],
routingOptions: RoutingOptionsDto,
simulationOptions: SimulationOptionsDto,
completion: @escaping (
Result<
RouteStatusDto,
Error
>
) -> Void
completion:
@escaping (
Result<
RouteStatusDto,
Error
>
) -> Void
) {
do {
try GoogleMapsNavigationSessionManager.shared
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class GoogleMapsNavigationViewMessageHandler: MapViewApi {
switch result {
case .success:
completion(.success(()))
case let .failure(error):
case .failure(let error):
completion(.failure(error))
}
}
Expand Down Expand Up @@ -208,12 +208,13 @@ class GoogleMapsNavigationViewMessageHandler: MapViewApi {
func animateCameraToLatLngBounds(
viewId: Int64, bounds: LatLngBoundsDto,
padding: Double, duration: Int64?,
completion: @escaping (
Result<
Bool,
Error
>
) -> Void
completion:
@escaping (
Result<
Bool,
Error
>
) -> Void
) {
do {
try getView(viewId).animateCameraToLatLngBounds(
Expand Down Expand Up @@ -264,12 +265,13 @@ class GoogleMapsNavigationViewMessageHandler: MapViewApi {
func animateCameraByZoom(
viewId: Int64, zoomBy: Double, focusDx: Double?,
focusDy: Double?, duration: Int64?,
completion: @escaping (
Result<
Bool,
Error
>
) -> Void
completion:
@escaping (
Result<
Bool,
Error
>
) -> Void
) {
do {
let focus = Convert.convertDeltaToPoint(dx: focusDx, dy: focusDy)
Expand Down
Loading