Skip to content

Commit

Permalink
Merge pull request #207 from Esri/main
Browse files Browse the repository at this point in the history
Updated to 1.0.8
  • Loading branch information
JonasVautherin authored Jan 25, 2022
2 parents 606a20f + 2092516 commit 54e4eb5
Show file tree
Hide file tree
Showing 22 changed files with 124 additions and 124 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"repositoryURL": "https://github.com/ReactiveX/RxSwift.git",
"state": {
"branch": null,
"revision": "254617dd7fae0c45319ba5fbea435bf4d0e15b5d",
"version": "5.1.2"
"revision": "b4307ba0b6425c0ba4178e138799946c3da594f8",
"version": "6.5.0"
}
},
{
Expand Down
6 changes: 3 additions & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/grpc/grpc-swift", from: "1.0.0"),
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "5.1.1")
.package(url: "https://github.com/ReactiveX/RxSwift.git", from: "6.5.0")
],
targets: [
.target(name: "Mavsdk",
Expand All @@ -47,8 +47,8 @@ let package = Package(
]
),
.binaryTarget(name: "mavsdk_server",
url: "https://github.com/mavlink/MAVSDK/releases/download/v1.0.2/mavsdk_server.xcframework.zip",
checksum: "6d652ab90390ae8dca6e2d8f136e305ea2ecccd23399f040c71da6f49c95d241"),
url: "https://github.com/mavlink/MAVSDK/releases/download/v1.0.8/mavsdk_server.xcframework.zip",
checksum: "ac1cad61e9101f15725cbecb995a7be18ff87ee80d5aa67c91a70e9d0b43816f"),
.testTarget(name: "MavsdkTests",
dependencies: [
"Mavsdk",
Expand Down
12 changes: 6 additions & 6 deletions Sources/Mavsdk/Generated/Action.swift
Original file line number Diff line number Diff line change
Expand Up @@ -831,7 +831,7 @@ public class Action {

let result = try response.response.wait().actionResult
if (result.result != Mavsdk_Rpc_Action_ActionResult.Result.success) {
single(.error(ActionError(code: ActionResult.Result.translateFromRpc(result.result), description: result.resultStr)))
single(.failure(ActionError(code: ActionResult.Result.translateFromRpc(result.result), description: result.resultStr)))

return Disposables.create()
}
Expand All @@ -841,7 +841,7 @@ public class Action {

single(.success(altitude))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down Expand Up @@ -900,7 +900,7 @@ public class Action {

let result = try response.response.wait().actionResult
if (result.result != Mavsdk_Rpc_Action_ActionResult.Result.success) {
single(.error(ActionError(code: ActionResult.Result.translateFromRpc(result.result), description: result.resultStr)))
single(.failure(ActionError(code: ActionResult.Result.translateFromRpc(result.result), description: result.resultStr)))

return Disposables.create()
}
Expand All @@ -910,7 +910,7 @@ public class Action {

single(.success(speed))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down Expand Up @@ -969,7 +969,7 @@ public class Action {

let result = try response.response.wait().actionResult
if (result.result != Mavsdk_Rpc_Action_ActionResult.Result.success) {
single(.error(ActionError(code: ActionResult.Result.translateFromRpc(result.result), description: result.resultStr)))
single(.failure(ActionError(code: ActionResult.Result.translateFromRpc(result.result), description: result.resultStr)))

return Disposables.create()
}
Expand All @@ -979,7 +979,7 @@ public class Action {

single(.success(relativeAltitudeM))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down
16 changes: 8 additions & 8 deletions Sources/Mavsdk/Generated/ActionServer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ public class ActionServer {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeActionServerError else { throw $0 }
}
Expand Down Expand Up @@ -512,7 +512,7 @@ public class ActionServer {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeActionServerError else { throw $0 }
}
Expand Down Expand Up @@ -558,7 +558,7 @@ public class ActionServer {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeActionServerError else { throw $0 }
}
Expand Down Expand Up @@ -604,7 +604,7 @@ public class ActionServer {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeActionServerError else { throw $0 }
}
Expand Down Expand Up @@ -650,7 +650,7 @@ public class ActionServer {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeActionServerError else { throw $0 }
}
Expand Down Expand Up @@ -696,7 +696,7 @@ public class ActionServer {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeActionServerError else { throw $0 }
}
Expand Down Expand Up @@ -742,7 +742,7 @@ public class ActionServer {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeActionServerError else { throw $0 }
}
Expand Down Expand Up @@ -923,7 +923,7 @@ public class ActionServer {

single(.success(flightModes))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down
10 changes: 5 additions & 5 deletions Sources/Mavsdk/Generated/Calibration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ public class Calibration {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCalibrationError else { throw $0 }
}
Expand Down Expand Up @@ -349,7 +349,7 @@ public class Calibration {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCalibrationError else { throw $0 }
}
Expand Down Expand Up @@ -393,7 +393,7 @@ public class Calibration {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCalibrationError else { throw $0 }
}
Expand Down Expand Up @@ -437,7 +437,7 @@ public class Calibration {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCalibrationError else { throw $0 }
}
Expand Down Expand Up @@ -481,7 +481,7 @@ public class Calibration {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCalibrationError else { throw $0 }
}
Expand Down
22 changes: 11 additions & 11 deletions Sources/Mavsdk/Generated/Camera.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1659,7 +1659,7 @@ public class Camera {

let result = try response.response.wait().cameraResult
if (result.result != Mavsdk_Rpc_Camera_CameraResult.Result.success) {
single(.error(CameraError(code: CameraResult.Result.translateFromRpc(result.result), description: result.resultStr)))
single(.failure(CameraError(code: CameraResult.Result.translateFromRpc(result.result), description: result.resultStr)))

return Disposables.create()
}
Expand All @@ -1670,7 +1670,7 @@ public class Camera {

single(.success(captureInfos))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down Expand Up @@ -1705,7 +1705,7 @@ public class Camera {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCameraError else { throw $0 }
}
Expand Down Expand Up @@ -1741,7 +1741,7 @@ public class Camera {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCameraError else { throw $0 }
}
Expand Down Expand Up @@ -1777,7 +1777,7 @@ public class Camera {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCameraError else { throw $0 }
}
Expand Down Expand Up @@ -1813,7 +1813,7 @@ public class Camera {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCameraError else { throw $0 }
}
Expand Down Expand Up @@ -1849,7 +1849,7 @@ public class Camera {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCameraError else { throw $0 }
}
Expand Down Expand Up @@ -1884,7 +1884,7 @@ public class Camera {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCameraError else { throw $0 }
}
Expand Down Expand Up @@ -1919,7 +1919,7 @@ public class Camera {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCameraError else { throw $0 }
}
Expand Down Expand Up @@ -1988,7 +1988,7 @@ public class Camera {

let result = try response.response.wait().cameraResult
if (result.result != Mavsdk_Rpc_Camera_CameraResult.Result.success) {
single(.error(CameraError(code: CameraResult.Result.translateFromRpc(result.result), description: result.resultStr)))
single(.failure(CameraError(code: CameraResult.Result.translateFromRpc(result.result), description: result.resultStr)))

return Disposables.create()
}
Expand All @@ -1999,7 +1999,7 @@ public class Camera {

single(.success(setting))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down
2 changes: 1 addition & 1 deletion Sources/Mavsdk/Generated/Core.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public class Core {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeCoreError else { throw $0 }
}
Expand Down
6 changes: 3 additions & 3 deletions Sources/Mavsdk/Generated/FollowMe.swift
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public class FollowMe {

single(.success(config))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down Expand Up @@ -484,7 +484,7 @@ public class FollowMe {

single(.success(isActive))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down Expand Up @@ -547,7 +547,7 @@ public class FollowMe {

single(.success(location))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down
14 changes: 7 additions & 7 deletions Sources/Mavsdk/Generated/Ftp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ public class Ftp {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeFtpError else { throw $0 }
}
Expand Down Expand Up @@ -385,7 +385,7 @@ public class Ftp {

return Disposables.create()
}
.retryWhen { error in
.retry { error in
error.map {
guard $0 is RuntimeFtpError else { throw $0 }
}
Expand Down Expand Up @@ -415,7 +415,7 @@ public class Ftp {

let result = try response.response.wait().ftpResult
if (result.result != Mavsdk_Rpc_Ftp_FtpResult.Result.success) {
single(.error(FtpError(code: FtpResult.Result.translateFromRpc(result.result), description: result.resultStr)))
single(.failure(FtpError(code: FtpResult.Result.translateFromRpc(result.result), description: result.resultStr)))

return Disposables.create()
}
Expand All @@ -425,7 +425,7 @@ public class Ftp {

single(.success(paths))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down Expand Up @@ -606,7 +606,7 @@ public class Ftp {

let result = try response.response.wait().ftpResult
if (result.result != Mavsdk_Rpc_Ftp_FtpResult.Result.success) {
single(.error(FtpError(code: FtpResult.Result.translateFromRpc(result.result), description: result.resultStr)))
single(.failure(FtpError(code: FtpResult.Result.translateFromRpc(result.result), description: result.resultStr)))

return Disposables.create()
}
Expand All @@ -616,7 +616,7 @@ public class Ftp {

single(.success(areIdentical))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down Expand Up @@ -713,7 +713,7 @@ public class Ftp {

single(.success(compid))
} catch {
single(.error(error))
single(.failure(error))
}

return Disposables.create()
Expand Down
Loading

0 comments on commit 54e4eb5

Please sign in to comment.