Skip to content

Commit

Permalink
update sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
bitgamma committed Jun 6, 2023
1 parent 44adec5 commit 86faab3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion buildSrc/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
7 changes: 4 additions & 3 deletions src/test/java/im/status/keycard/KeycardTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ private static void initCapabilities(ApplicationInfo info) {
capabilities.add("ndef");
}

//if (info.hasFactoryResetCapability()) {
if (info.hasFactoryResetCapability()) {
capabilities.add("factoryReset");
//}
}

CapabilityCondition.availableCapabilities = capabilities;
}
Expand Down Expand Up @@ -951,7 +951,8 @@ void factoryResetTest() throws Exception {
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);
Expand Down

0 comments on commit 86faab3

Please sign in to comment.