Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

Commit

Permalink
Add sign message/data (#53)
Browse files Browse the repository at this point in the history
* add sign message client code
* add response
* expected coin is string
* fix project warnings
* remove Gemfile
  • Loading branch information
hewigovens authored Jun 24, 2020
1 parent 3c33707 commit eca43e1
Show file tree
Hide file tree
Showing 13 changed files with 138 additions and 262 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,16 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install gems
run: sudo gem install bundler --no-document
- name: Bundle update
run: bundle update --bundler
working-directory: ./Example
- name: Cache
id: pod_cache
uses: actions/[email protected]
with:
path: Example/Pods
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }}
- name : Pod install
run: bundle exec pod install --repo-update
run: pod install --repo-update
if: steps.pod_cache.outputs.cache-hit != 'true'
working-directory: ./Example
- name: Run Tests
run: bundle exec fastlane ios tests
run: fastlane ios tests
working-directory: ./Example
7 changes: 0 additions & 7 deletions Example/Gemfile

This file was deleted.

226 changes: 0 additions & 226 deletions Example/Gemfile.lock

This file was deleted.

2 changes: 1 addition & 1 deletion Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ target 'TrustSDK_Example' do
project 'TrustSDK'
pod 'TrustSDK/Wallet', :path => '../'
pod 'SwiftLint'

pod 'CryptoSwift'
target 'TrustSDK_Tests' do
inherit! :search_paths
end
Expand Down
6 changes: 5 additions & 1 deletion Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
PODS:
- BigInt (5.0.0)
- CryptoSwift (1.3.1)
- SwiftLint (0.39.2)
- SwiftProtobuf (1.9.0)
- TrustSDK/Client (1.2.5):
Expand All @@ -11,12 +12,14 @@ PODS:
- SwiftProtobuf

DEPENDENCIES:
- CryptoSwift
- SwiftLint
- TrustSDK/Wallet (from `../`)

SPEC REPOS:
trunk:
- BigInt
- CryptoSwift
- SwiftLint
- SwiftProtobuf
- TrustWalletCore
Expand All @@ -27,11 +30,12 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
BigInt: 74b4d88367b0e819d9f77393549226d36faeb0d8
CryptoSwift: f12f037f6d0fcd6d48c96db0071b653de64e6c4d
SwiftLint: 22ccbbe3b8008684be5955693bab135e0ed6a447
SwiftProtobuf: ecbec1be9036d15655f6b3443a1c4ea693c97932
TrustSDK: 94db9da0d77fa9b8cd09e149639cefcb7b218cea
TrustWalletCore: cd0373c69fd9bf92700783287544ce6a9aab041b

PODFILE CHECKSUM: 8aa041a02c290ebee7b7e42493802af7035a6dc2
PODFILE CHECKSUM: 598c9b55b1a069a4a551d4116542d400689f4304

COCOAPODS: 1.9.3
14 changes: 10 additions & 4 deletions Example/TrustSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0830;
LastUpgradeCheck = 0830;
LastUpgradeCheck = 1150;
ORGANIZATIONNAME = CocoaPods;
TargetAttributes = {
607FACCF1AFB9204008FA782 = {
Expand All @@ -237,7 +237,7 @@
};
607FACE41AFB9204008FA782 = {
CreatedOnToolsVersion = 6.3.1;
LastSwiftMigration = 0900;
LastSwiftMigration = 1150;
TestTargetID = 607FACCF1AFB9204008FA782;
};
};
Expand Down Expand Up @@ -290,13 +290,15 @@
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-TrustSDK_Example/Pods-TrustSDK_Example-frameworks.sh",
"${BUILT_PRODUCTS_DIR}/BigInt/BigInt.framework",
"${BUILT_PRODUCTS_DIR}/CryptoSwift/CryptoSwift.framework",
"${BUILT_PRODUCTS_DIR}/SwiftProtobuf/SwiftProtobuf.framework",
"${BUILT_PRODUCTS_DIR}/TrustSDK/TrustSDK.framework",
"${BUILT_PRODUCTS_DIR}/TrustWalletCore/TrustWalletCore.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BigInt.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/CryptoSwift.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/TrustSDK.framework",
"${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/TrustWalletCore.framework",
Expand Down Expand Up @@ -433,12 +435,14 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand Down Expand Up @@ -486,12 +490,14 @@
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
Expand Down Expand Up @@ -569,7 +575,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TrustSDK_Example.app/TrustSDK_Example";
};
name = Debug;
Expand All @@ -587,7 +593,7 @@
PRODUCT_BUNDLE_IDENTIFIER = "org.cocoapods.$(PRODUCT_NAME:rfc1034identifier)";
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = Default;
SWIFT_VERSION = 4.0;
SWIFT_VERSION = 5.0;
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/TrustSDK_Example.app/TrustSDK_Example";
};
name = Release;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "0900"
LastUpgradeVersion = "1150"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
Expand Down
Loading

0 comments on commit eca43e1

Please sign in to comment.