-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from cryptape/rc/v0.23
Rc/v0.23
- Loading branch information
Showing
23 changed files
with
389 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
language: objective-c | ||
osx_image: xcode10.1 | ||
osx_image: xcode10.2 | ||
xcode_workspace: CITA.xcworkspace | ||
xcode_scheme: CITA | ||
xcode_destination: platform=iOS Simulator,OS=11.3,name=iPhone X | ||
xcode_destination: platform=iOS Simulator,OS=12.2,name=iPhone X | ||
before_install: | ||
- echo "{\"rpcServer\":\"$TEST_RPC_SERVER\"}" > Tests/Config.json | ||
- travis_wait pod repo update --silent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// | ||
// PeersInfo.swift | ||
// CITA | ||
// | ||
// Created by XiaoLu on 2019/4/22. | ||
// Copyright © 2019 Cryptape. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
import BigInt | ||
|
||
public struct PeerInfo: Decodable { | ||
public var amount: BigUInt | ||
public var peers: [String: String] | ||
public var errorMessage: String? | ||
|
||
enum CodingKeys: String, CodingKey { | ||
case amount | ||
case peers | ||
case errorMessage | ||
} | ||
|
||
public init(from decoder: Decoder) throws { | ||
let container = try decoder.container(keyedBy: CodingKeys.self) | ||
guard let amount = try DecodeUtils.decodeIntToBigUInt(container, key: .amount) else { throw CITAError.dataError } | ||
self.amount = amount | ||
|
||
let peers = try container.decode([String: String].self, forKey: .peers) | ||
self.peers = peers | ||
|
||
let errorMessage = try? container.decode(String.self, forKey: .errorMessage) | ||
self.errorMessage = errorMessage | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// | ||
// Version.swift | ||
// CITA | ||
// | ||
// Created by XiaoLu on 2019/4/22. | ||
// Copyright © 2019 Cryptape. All rights reserved. | ||
// | ||
|
||
import Foundation | ||
|
||
public struct Version: Decodable { | ||
public var softwareVersion: String | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.