Skip to content
Snippets Groups Projects
Commit 03d6e467 authored by Dariusz Rybicki's avatar Dariusz Rybicki
Browse files

Refactor

parent 38a67bba
No related branches found
No related tags found
2 merge requests!102Release 1.0.0,!18Update Bindings
...@@ -2,7 +2,7 @@ import Bindings ...@@ -2,7 +2,7 @@ import Bindings
public struct Cmix { public struct Cmix {
public var getId: CmixGetId public var getId: CmixGetId
public var makeReceptionIdentity: MakeReceptionIdentity public var makeReceptionIdentity: CmixMakeReceptionIdentity
public var isHealthy: CmixIsHealthy public var isHealthy: CmixIsHealthy
public var hasRunningProcesses: CmixHasRunningProcesses public var hasRunningProcesses: CmixHasRunningProcesses
public var networkFollowerStatus: CmixNetworkFollowerStatus public var networkFollowerStatus: CmixNetworkFollowerStatus
......
import Bindings import Bindings
import XCTestDynamicOverlay import XCTestDynamicOverlay
public struct MakeReceptionIdentity { public struct CmixMakeReceptionIdentity {
public var run: () throws -> Data public var run: () throws -> Data
public func callAsFunction() throws -> Data { public func callAsFunction() throws -> Data {
...@@ -9,14 +9,14 @@ public struct MakeReceptionIdentity { ...@@ -9,14 +9,14 @@ public struct MakeReceptionIdentity {
} }
} }
extension MakeReceptionIdentity { extension CmixMakeReceptionIdentity {
public static func live(_ bindingsCmix: BindingsCmix) -> MakeReceptionIdentity { public static func live(_ bindingsCmix: BindingsCmix) -> CmixMakeReceptionIdentity {
MakeReceptionIdentity(run: bindingsCmix.makeReceptionIdentity) CmixMakeReceptionIdentity(run: bindingsCmix.makeReceptionIdentity)
} }
} }
extension MakeReceptionIdentity { extension CmixMakeReceptionIdentity {
public static let unimplemented = MakeReceptionIdentity( public static let unimplemented = CmixMakeReceptionIdentity(
run: XCTUnimplemented("\(Self.self)") run: XCTUnimplemented("\(Self.self)")
) )
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment