Skip to content

Commit

Permalink
Merge pull request #280 from cryptape/rc/v0.8.0
Browse files Browse the repository at this point in the history
Rc/v0.8.0
  • Loading branch information
XiaoLu authored Jun 18, 2019
2 parents af7f0ef + 105c402 commit ba0d8f5
Show file tree
Hide file tree
Showing 53 changed files with 54,358 additions and 54,564 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,4 @@ fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
.DS_Store
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
language: objective-c
osx_image: xcode10.1
osx_image: xcode10.2
xcode_workspace: Cyton.xcworkspace
xcode_scheme: Cyton
xcode_destination: platform=iOS Simulator,OS=11.3,name=iPhone X
xcode_destination: platform=iOS Simulator,OS=12.2,name=iPhone X
before_install:
- gem install cocoapods -N
- pod --version
- travis_wait pod repo update --silent
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
All notable changes to this project will be documented in this file.

# [v0.8.0](https://github.com/cryptape/cyton-ios/compare/v0.7.1...v0.8.0)(2019-06-19)

### CHANGES

* [Optimization] Support new protocol version 2.
* [Fix] Fix bugs.

# [v0.7.1](https://github.com/cryptape/cyton-ios/compare/v0.7.0...v0.7.1) (2019-01-22)

### BREAKING CHANGES
Expand Down
71 changes: 12 additions & 59 deletions Cyton.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objectVersion = 51;
objects = {

/* Begin PBXBuildFile section */
Expand Down Expand Up @@ -131,7 +131,6 @@
8955580520DCA7F700FC92D8 /* PasswordValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8955580420DCA7F700FC92D8 /* PasswordValidator.swift */; };
895F713421C630E800F41107 /* VerifyMnemonicViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 895F713321C630E800F41107 /* VerifyMnemonicViewController.swift */; };
8964A17D20BE7F750086848F /* MessageSignController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8964A17B20BE7F750086848F /* MessageSignController.swift */; };
8964A18020BE94F70086848F /* NEPickerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8964A17F20BE94F70086848F /* NEPickerView.swift */; };
8964A18720BFE6860086848F /* ImportWalletController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8964A18520BFE6850086848F /* ImportWalletController.swift */; };
8964A18D20C0E4BE0086848F /* GenerateMnemonicController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8964A18B20C0E4BE0086848F /* GenerateMnemonicController.swift */; };
8964A19620C12FB70086848F /* ButtonTagView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8964A19520C12FB70086848F /* ButtonTagView.swift */; };
Expand Down Expand Up @@ -363,7 +362,6 @@
8955580420DCA7F700FC92D8 /* PasswordValidator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PasswordValidator.swift; sourceTree = "<group>"; };
895F713321C630E800F41107 /* VerifyMnemonicViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = VerifyMnemonicViewController.swift; sourceTree = "<group>"; };
8964A17B20BE7F750086848F /* MessageSignController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MessageSignController.swift; sourceTree = "<group>"; };
8964A17F20BE94F70086848F /* NEPickerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NEPickerView.swift; sourceTree = "<group>"; };
8964A18520BFE6850086848F /* ImportWalletController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ImportWalletController.swift; sourceTree = "<group>"; };
8964A18B20C0E4BE0086848F /* GenerateMnemonicController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GenerateMnemonicController.swift; sourceTree = "<group>"; };
8964A19520C12FB70086848F /* ButtonTagView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ButtonTagView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -892,7 +890,6 @@
1A60079A21A28B5600C7B712 /* PageItems */,
8928C24420AE90C000C3103E /* BaseNavigationController.swift */,
89812129218D3161000813C8 /* QRCodeViewController.swift */,
8964A17F20BE94F70086848F /* NEPickerView.swift */,
1A207DD42137D8CF008DC306 /* TabbedButtonsView.swift */,
1A207DD62137D8F5008DC306 /* TabbedButtonsView.xib */,
6E9B947A21A4080300D67357 /* DesignableButton.swift */,
Expand Down Expand Up @@ -1329,59 +1326,16 @@
buildActionMask = 2147483647;
files = (
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-Cyton/Pods-Cyton-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/Alamofire/Alamofire.framework",
"${BUILT_PRODUCTS_DIR}/BigInt/BigInt.framework",
"${BUILT_PRODUCTS_DIR}/BulletinBoard/BLTNBoard.framework",
"${BUILT_PRODUCTS_DIR}/CITA/CITA.framework",
"${BUILT_PRODUCTS_DIR}/CryptoSwift/CryptoSwift.framework",
"${BUILT_PRODUCTS_DIR}/EFQRCode/EFQRCode.framework",
"${BUILT_PRODUCTS_DIR}/EthereumABI/EthereumABI.framework",
"${BUILT_PRODUCTS_DIR}/EthereumAddress/EthereumAddress.framework",
"${BUILT_PRODUCTS_DIR}/IQKeyboardManagerSwift/IQKeyboardManagerSwift.framework",
"${BUILT_PRODUCTS_DIR}/PromiseKit/PromiseKit.framework",
"${BUILT_PRODUCTS_DIR}/QRCodeReader.swift/QRCodeReader.framework",
"${BUILT_PRODUCTS_DIR}/RSKPlaceholderTextView/RSKPlaceholderTextView.framework",
"${BUILT_PRODUCTS_DIR}/Realm/Realm.framework",
"${BUILT_PRODUCTS_DIR}/RealmSwift/RealmSwift.framework",
"${BUILT_PRODUCTS_DIR}/SDWebImage/SDWebImage.framework",
"${BUILT_PRODUCTS_DIR}/SipHash/SipHash.framework",
"${BUILT_PRODUCTS_DIR}/SwiftProtobuf/SwiftProtobuf.framework",
"${BUILT_PRODUCTS_DIR}/SwiftRLP/SwiftRLP.framework",
"${BUILT_PRODUCTS_DIR}/Toast-Swift/Toast_Swift.framework",
"${BUILT_PRODUCTS_DIR}/scrypt/scrypt.framework",
"${BUILT_PRODUCTS_DIR}/secp256k1_swift/secp256k1_swift.framework",
"${BUILT_PRODUCTS_DIR}/web3swift/Web3swift.framework",
inputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Cyton/Pods-Cyton-frameworks-${CONFIGURATION}-input-files.xcfilelist",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Alamofire.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BigInt.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BLTNBoard.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CITA.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CryptoSwift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/EFQRCode.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/EthereumABI.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/EthereumAddress.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/IQKeyboardManagerSwift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/PromiseKit.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/QRCodeReader.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RSKPlaceholderTextView.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Realm.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/RealmSwift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SDWebImage.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SipHash.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftRLP.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Toast_Swift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/scrypt.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/secp256k1_swift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Web3swift.framework",
outputFileListPaths = (
"${PODS_ROOT}/Target Support Files/Pods-Cyton/Pods-Cyton-frameworks-${CONFIGURATION}-output-files.xcfilelist",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Cyton/Pods-Cyton-frameworks.sh\"\n";
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Cyton/Pods-Cyton-frameworks.sh\"\n";
showEnvVarsInLog = 0;
};
6ED304CBD81C419EE9F1043A /* [CP] Check Pods Manifest.lock */ = {
Expand Down Expand Up @@ -1488,7 +1442,6 @@
6E83CB91216F573100029324 /* GuideViewController.swift in Sources */,
8928C24520AE90C000C3103E /* BaseNavigationController.swift in Sources */,
6E83CB8E216F573100029324 /* GuideService.swift in Sources */,
8964A18020BE94F70086848F /* NEPickerView.swift in Sources */,
1AB3D1CF21709F6700557E9D /* UIStoryboard+Extension.swift in Sources */,
899AD19B211011F300A8AC09 /* CITANetwork.swift in Sources */,
1A207DD52137D8CF008DC306 /* TabbedButtonsView.swift in Sources */,
Expand Down Expand Up @@ -1874,7 +1827,7 @@
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Cyton/Cyton-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**";
};
Expand Down Expand Up @@ -1904,7 +1857,7 @@
PROVISIONING_PROFILE = "";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_OBJC_BRIDGING_HEADER = "Cyton/Cyton-Bridging-Header.h";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = 1;
USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**";
};
Expand All @@ -1928,7 +1881,7 @@
PRODUCT_BUNDLE_IDENTIFIER = org.nervos.CytonTests;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Cyton.app/Cyton";
USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**";
Expand All @@ -1953,7 +1906,7 @@
PRODUCT_BUNDLE_IDENTIFIER = org.nervos.CytonTests;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Cyton.app/Cyton";
USER_HEADER_SEARCH_PATHS = "$(PODS_ROOT)/**";
Expand All @@ -1977,7 +1930,7 @@
PRODUCT_BUNDLE_IDENTIFIER = org.nervos.CytonUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = Cyton;
};
Expand All @@ -2000,7 +1953,7 @@
PRODUCT_BUNDLE_IDENTIFIER = org.nervos.CytonUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = Cyton;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ extension NSDecimalNumber {
let formatter = NumberFormatter()
formatter.numberStyle = .currency
formatter.locale = Locale(identifier: LocalCurrencyService.shared.getLocalCurrencySelect().identifier)
print(formatter.locale)
let text = formatter.string(from: self) ?? "0"
return text.replacingOccurrences(of: formatter.locale.currencySymbol!, with: "\(formatter.locale.currencySymbol!) ")
}
Expand Down
2 changes: 1 addition & 1 deletion Cyton/Extensions/Foundation/String+Error.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

import UIKit

extension String : Error {
extension String: Error {
}
6 changes: 3 additions & 3 deletions Cyton/Extensions/Foundation/Web3Error+Description.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
//

import UIKit
import Web3swift
import web3swift

extension Web3Error : CustomStringConvertible {
public var description : String {
extension Web3Error: CustomStringConvertible {
public var description: String {
switch self {
case .transactionSerializationError:
return "Transaction Serialization Error"
Expand Down
2 changes: 1 addition & 1 deletion Cyton/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.7.1</string>
<string>0.8.0</string>
<key>CFBundleVersion</key>
<string>35</string>
<key>ITSAppUsesNonExemptEncryption</key>
Expand Down
Loading

0 comments on commit ba0d8f5

Please sign in to comment.