update sdk

This commit is contained in:
Michele Balistreri 2023-06-06 17:02:26 +02:00
parent 44adec536e
commit 86faab3f26
No known key found for this signature in database
GPG Key ID: E9567DA33A4F791A
3 changed files with 6 additions and 5 deletions

View File

@ -59,7 +59,7 @@ dependencies {
testCompile(files("../jcardsim/jcardsim-3.0.5-SNAPSHOT.jar"))
testCompile('org.web3j:core:2.3.1')
testCompile('org.bitcoinj:bitcoinj-core:0.14.5')
testCompile('com.github.status-im.status-keycard-java:desktop:15a61e1')
testCompile('com.github.status-im.status-keycard-java:desktop:3.1.2')
testCompile('org.bouncycastle:bcprov-jdk15on:1.65')
testCompile("org.junit.jupiter:junit-jupiter-api:5.1.1")
testRuntime("org.junit.jupiter:junit-jupiter-engine:5.1.1")

View File

@ -4,5 +4,5 @@ repositories {
}
dependencies {
compile 'com.github.status-im.status-keycard-java:desktop:15a61e1'
compile 'com.github.status-im.status-keycard-java:desktop:3.1.2'
}

View File

@ -128,9 +128,9 @@ public class KeycardTest {
capabilities.add("ndef");
}
//if (info.hasFactoryResetCapability()) {
if (info.hasFactoryResetCapability()) {
capabilities.add("factoryReset");
//}
}
CapabilityCondition.availableCapabilities = capabilities;
}
@ -951,7 +951,8 @@ public class KeycardTest {
APDUResponse response = sdkChannel.send(new APDUCommand(0x80, KeycardApplet.INS_FACTORY_RESET, 0, 0, new byte[0]));
assertEquals(0x6a86, response.getSw());
response = sdkChannel.send(new APDUCommand(0x80, KeycardApplet.INS_FACTORY_RESET, 0xAA, 0x55, new byte[0]));
// Good case
response = cmdSet.factoryReset();
assertEquals(0x9000, response.getSw());
response = cmdSet.getStatus(KeycardCommandSet.GET_STATUS_P1_KEY_PATH);