Skip to content

Commit

Permalink
Release 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mobile-tangem committed May 21, 2020
1 parent ed690b5 commit 579098e
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 38 deletions.
2 changes: 1 addition & 1 deletion TangemSdk.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'TangemSdk'
s.version = '2.0.6'
s.version = '2.1.0'
s.summary = 'Use TangemSdk for Tangem cards integration'

# This description is used to generate tags and improve search results.
Expand Down
5 changes: 5 additions & 0 deletions TangemSdk/TangemSdk/Commands/ReadIssuerDataCommand.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,11 @@ public final class ReadIssuerDataCommand: Command {
transieve(in: session) { result in
switch result {
case .success(let response):
guard response.issuerData.count > 0 else {
completion(.success(response))
return
}

if let result = response.verify(with: self.issuerPublicKey!),
result == true {
completion(.success(response))
Expand Down
2 changes: 1 addition & 1 deletion fastlane/report.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@



<testcase classname="fastlane.lanes" name="0: run_tests" time="29.651033">
<testcase classname="fastlane.lanes" name="0: run_tests" time="29.999924">

</testcase>

Expand Down
36 changes: 18 additions & 18 deletions fastlane/test_output/report.html
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ <h3 class="title">TangemSdkTests.ApduTests</h3>
<tr class="test passing " onclick="toggleDetails('testInitialization');">
<td>

<h3 class="time">0.002s</h3>
<h3 class="time">0.027s</h3>

</td>
<td><h3 class="title">testInitialization</h3></td>
Expand All @@ -143,7 +143,7 @@ <h3 class="time">0.002s</h3>
<tr class="test passing odd" onclick="toggleDetails('testResponse');">
<td>

<h3 class="time">0.003s</h3>
<h3 class="time">0.004s</h3>

</td>
<td><h3 class="title">testResponse</h3></td>
Expand Down Expand Up @@ -177,7 +177,7 @@ <h3 class="time">0.001s</h3>
<tr class="test passing odd" onclick="toggleDetails('testInputStream');">
<td>

<h3 class="time">0.000s</h3>
<h3 class="time">0.001s</h3>

</td>
<td><h3 class="title">testInputStream</h3></td>
Expand All @@ -200,7 +200,7 @@ <h3 class="title">TangemSdkTests.CryptoUtilsTests</h3>
<tr class="test passing " onclick="toggleDetails('testEd25519Verify');">
<td>

<h3 class="time">0.002s</h3>
<h3 class="time">0.003s</h3>

</td>
<td><h3 class="title">testEd25519Verify</h3></td>
Expand All @@ -211,7 +211,7 @@ <h3 class="time">0.002s</h3>
<tr class="test passing odd" onclick="toggleDetails('testGeneratePrivateKey');">
<td>

<h3 class="time">0.000s</h3>
<h3 class="time">0.001s</h3>

</td>
<td><h3 class="title">testGeneratePrivateKey</h3></td>
Expand All @@ -222,7 +222,7 @@ <h3 class="time">0.000s</h3>
<tr class="test passing " onclick="toggleDetails('testSecp256k1Sign');">
<td>

<h3 class="time">0.029s</h3>
<h3 class="time">0.194s</h3>

</td>
<td><h3 class="title">testSecp256k1Sign</h3></td>
Expand All @@ -245,7 +245,7 @@ <h3 class="title">TangemSdkTests.DataExtensionTests</h3>
<tr class="test passing " onclick="toggleDetails('testBytesConversion');">
<td>

<h3 class="time">0.000s</h3>
<h3 class="time">0.005s</h3>

</td>
<td><h3 class="title">testBytesConversion</h3></td>
Expand Down Expand Up @@ -278,7 +278,7 @@ <h3 class="time">0.001s</h3>
<tr class="test passing odd" onclick="toggleDetails('testSha256CryptoKitPerfomance');">
<td>

<h3 class="time">0.318s</h3>
<h3 class="time">0.329s</h3>

</td>
<td><h3 class="title">testSha256CryptoKitPerfomance</h3></td>
Expand All @@ -289,7 +289,7 @@ <h3 class="time">0.318s</h3>
<tr class="test passing " onclick="toggleDetails('testSha256OldPerfomance');">
<td>

<h3 class="time">0.257s</h3>
<h3 class="time">0.252s</h3>

</td>
<td><h3 class="title">testSha256OldPerfomance</h3></td>
Expand Down Expand Up @@ -322,7 +322,7 @@ <h3 class="time">0.001s</h3>
<tr class="test passing odd" onclick="toggleDetails('testToHexConversion');">
<td>

<h3 class="time">0.001s</h3>
<h3 class="time">0.000s</h3>

</td>
<td><h3 class="title">testToHexConversion</h3></td>
Expand All @@ -333,7 +333,7 @@ <h3 class="time">0.001s</h3>
<tr class="test passing " onclick="toggleDetails('testToIntConversion');">
<td>

<h3 class="time">0.001s</h3>
<h3 class="time">0.000s</h3>

</td>
<td><h3 class="title">testToIntConversion</h3></td>
Expand All @@ -344,7 +344,7 @@ <h3 class="time">0.001s</h3>
<tr class="test passing odd" onclick="toggleDetails('testToUtf8Conversion');">
<td>

<h3 class="time">0.001s</h3>
<h3 class="time">0.000s</h3>

</td>
<td><h3 class="title">testToUtf8Conversion</h3></td>
Expand All @@ -367,7 +367,7 @@ <h3 class="title">TangemSdkTests.IntUtilsTests</h3>
<tr class="test passing " onclick="toggleDetails('testFromHexConversion');">
<td>

<h3 class="time">0.001s</h3>
<h3 class="time">0.000s</h3>

</td>
<td><h3 class="title">testFromHexConversion</h3></td>
Expand All @@ -378,7 +378,7 @@ <h3 class="time">0.001s</h3>
<tr class="test passing odd" onclick="toggleDetails('testToByteConversion');">
<td>

<h3 class="time">0.001s</h3>
<h3 class="time">0.000s</h3>

</td>
<td><h3 class="title">testToByteConversion</h3></td>
Expand All @@ -401,7 +401,7 @@ <h3 class="title">TangemSdkTests.StringUtilsTest</h3>
<tr class="test passing " onclick="toggleDetails('testRemove');">
<td>

<h3 class="time">0.001s</h3>
<h3 class="time">0.000s</h3>

</td>
<td><h3 class="title">testRemove</h3></td>
Expand All @@ -423,7 +423,7 @@ <h3 class="time">0.000s</h3>
<tr class="test passing " onclick="toggleDetails('testSha512');">
<td>

<h3 class="time">0.001s</h3>
<h3 class="time">0.000s</h3>

</td>
<td><h3 class="title">testSha512</h3></td>
Expand All @@ -446,7 +446,7 @@ <h3 class="title">TangemSdkTests.TlvTests</h3>
<tr class="test passing " onclick="toggleDetails('testDecoding');">
<td>

<h3 class="time">0.003s</h3>
<h3 class="time">0.002s</h3>

</td>
<td><h3 class="title">testDecoding</h3></td>
Expand All @@ -457,7 +457,7 @@ <h3 class="time">0.003s</h3>
<tr class="test passing odd" onclick="toggleDetails('testEncode');">
<td>

<h3 class="time">0.002s</h3>
<h3 class="time">0.001s</h3>

</td>
<td><h3 class="title">testEncode</h3></td>
Expand Down
36 changes: 18 additions & 18 deletions fastlane/test_output/report.junit
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
<?xml version='1.0' encoding='UTF-8'?>
<testsuites name='TangemSdkTests.xctest' tests='26' failures='0'>
<testsuite name='TangemSdkTests.ApduTests' tests='2' failures='0'>
<testcase classname='TangemSdkTests.ApduTests' name='testInitialization' time='0.002'/>
<testcase classname='TangemSdkTests.ApduTests' name='testResponse' time='0.003'/>
<testcase classname='TangemSdkTests.ApduTests' name='testInitialization' time='0.027'/>
<testcase classname='TangemSdkTests.ApduTests' name='testResponse' time='0.004'/>
</testsuite>
<testsuite name='TangemSdkTests.ByteUtilsTests' tests='2' failures='0'>
<testcase classname='TangemSdkTests.ByteUtilsTests' name='testHexConversion' time='0.001'/>
<testcase classname='TangemSdkTests.ByteUtilsTests' name='testInputStream' time='0.000'/>
<testcase classname='TangemSdkTests.ByteUtilsTests' name='testInputStream' time='0.001'/>
</testsuite>
<testsuite name='TangemSdkTests.CryptoUtilsTests' tests='3' failures='0'>
<testcase classname='TangemSdkTests.CryptoUtilsTests' name='testEd25519Verify' time='0.002'/>
<testcase classname='TangemSdkTests.CryptoUtilsTests' name='testGeneratePrivateKey' time='0.000'/>
<testcase classname='TangemSdkTests.CryptoUtilsTests' name='testSecp256k1Sign' time='0.029'/>
<testcase classname='TangemSdkTests.CryptoUtilsTests' name='testEd25519Verify' time='0.003'/>
<testcase classname='TangemSdkTests.CryptoUtilsTests' name='testGeneratePrivateKey' time='0.001'/>
<testcase classname='TangemSdkTests.CryptoUtilsTests' name='testSecp256k1Sign' time='0.194'/>
</testsuite>
<testsuite name='TangemSdkTests.DataExtensionTests' tests='10' failures='0'>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testBytesConversion' time='0.000'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testBytesConversion' time='0.005'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testFromHexConversion' time='0.000'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testSha256' time='0.001'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testSha256CryptoKitPerfomance' time='0.318'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testSha256OldPerfomance' time='0.257'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testSha256CryptoKitPerfomance' time='0.329'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testSha256OldPerfomance' time='0.252'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testSha512' time='0.001'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testToDateString' time='0.001'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testToHexConversion' time='0.001'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testToIntConversion' time='0.001'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testToUtf8Conversion' time='0.001'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testToHexConversion' time='0.000'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testToIntConversion' time='0.000'/>
<testcase classname='TangemSdkTests.DataExtensionTests' name='testToUtf8Conversion' time='0.000'/>
</testsuite>
<testsuite name='TangemSdkTests.IntUtilsTests' tests='2' failures='0'>
<testcase classname='TangemSdkTests.IntUtilsTests' name='testFromHexConversion' time='0.001'/>
<testcase classname='TangemSdkTests.IntUtilsTests' name='testToByteConversion' time='0.001'/>
<testcase classname='TangemSdkTests.IntUtilsTests' name='testFromHexConversion' time='0.000'/>
<testcase classname='TangemSdkTests.IntUtilsTests' name='testToByteConversion' time='0.000'/>
</testsuite>
<testsuite name='TangemSdkTests.StringUtilsTest' tests='3' failures='0'>
<testcase classname='TangemSdkTests.StringUtilsTest' name='testRemove' time='0.001'/>
<testcase classname='TangemSdkTests.StringUtilsTest' name='testRemove' time='0.000'/>
<testcase classname='TangemSdkTests.StringUtilsTest' name='testSha256' time='0.000'/>
<testcase classname='TangemSdkTests.StringUtilsTest' name='testSha512' time='0.001'/>
<testcase classname='TangemSdkTests.StringUtilsTest' name='testSha512' time='0.000'/>
</testsuite>
<testsuite name='TangemSdkTests.TlvTests' tests='4' failures='0'>
<testcase classname='TangemSdkTests.TlvTests' name='testDecoding' time='0.003'/>
<testcase classname='TangemSdkTests.TlvTests' name='testEncode' time='0.002'/>
<testcase classname='TangemSdkTests.TlvTests' name='testDecoding' time='0.002'/>
<testcase classname='TangemSdkTests.TlvTests' name='testEncode' time='0.001'/>
<testcase classname='TangemSdkTests.TlvTests' name='testTlvDeserialization' time='0.001'/>
<testcase classname='TangemSdkTests.TlvTests' name='testTlvSerialization' time='0.000'/>
</testsuite>
Expand Down

0 comments on commit 579098e

Please sign in to comment.