Skip to content

Commit 19512b7

Browse files
committed
remove PIV includes
1 parent 0ba35ec commit 19512b7

File tree

3 files changed

+22
-73
lines changed

3 files changed

+22
-73
lines changed

hwsecurity-ui/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ apply plugin: 'org.jetbrains.dokka-android'
55
dependencies {
66
if (rootProject.ext.has("hwSdkIncludeAsSubmodule") && rootProject.hwSdkIncludeAsSubmodule) {
77
compileOnly project(':hwsecurity:hwsecurity-openpgp')
8-
compileOnly project(':hwsecurity:hwsecurity-piv')
8+
//compileOnly project(':hwsecurity:hwsecurity-piv')
99
} else {
1010
compileOnly project(':hwsecurity-openpgp')
11-
compileOnly project(':hwsecurity-piv')
11+
//compileOnly project(':hwsecurity-piv')
1212
}
1313

1414
implementation 'de.cotech:nfc-sweetspot:1.1'

hwsecurity-ui/src/main/java/de/cotech/hw/ui/SecurityKeyDialogFactory.java

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
import androidx.annotation.NonNull;
2929
import de.cotech.hw.openpgp.OpenPgpSecurityKey;
3030
import de.cotech.hw.openpgp.OpenPgpSecurityKeyConnectionModeConfig;
31-
import de.cotech.hw.piv.PivSecurityKey;
31+
//import de.cotech.hw.piv.PivSecurityKey;
3232
import de.cotech.hw.ui.internal.OpenPgpSecurityKeyDialogFragment;
33-
import de.cotech.hw.ui.internal.PivSecurityKeyDialogFragment;
33+
//import de.cotech.hw.ui.internal.PivSecurityKeyDialogFragment;
3434

3535
public class SecurityKeyDialogFactory {
3636

@@ -58,23 +58,23 @@ public static SecurityKeyDialogFragment<OpenPgpSecurityKey> newOpenPgpInstance(@
5858
return fragment;
5959
}
6060

61-
public static SecurityKeyDialogFragment<PivSecurityKey> newPivInstance() {
62-
return newPivInstance(SecurityKeyDialogOptions.builder().build());
63-
}
64-
65-
public static SecurityKeyDialogFragment<PivSecurityKey> newPivInstance(@NonNull SecurityKeyDialogOptions options) {
66-
try {
67-
Class.forName("de.cotech.hw.piv.PivSecurityKey");
68-
} catch (ClassNotFoundException e) {
69-
throw new IllegalArgumentException("You must include the hwsecurity-piv Maven artifact!");
70-
}
71-
72-
Bundle args = new Bundle();
73-
args.putParcelable(PivSecurityKeyDialogFragment.ARG_DIALOG_OPTIONS, options);
74-
75-
PivSecurityKeyDialogFragment fragment = new PivSecurityKeyDialogFragment();
76-
fragment.setArguments(args);
77-
return fragment;
78-
}
61+
// public static SecurityKeyDialogFragment<PivSecurityKey> newPivInstance() {
62+
// return newPivInstance(SecurityKeyDialogOptions.builder().build());
63+
// }
64+
//
65+
// public static SecurityKeyDialogFragment<PivSecurityKey> newPivInstance(@NonNull SecurityKeyDialogOptions options) {
66+
// try {
67+
// Class.forName("de.cotech.hw.piv.PivSecurityKey");
68+
// } catch (ClassNotFoundException e) {
69+
// throw new IllegalArgumentException("You must include the hwsecurity-piv Maven artifact!");
70+
// }
71+
//
72+
// Bundle args = new Bundle();
73+
// args.putParcelable(PivSecurityKeyDialogFragment.ARG_DIALOG_OPTIONS, options);
74+
//
75+
// PivSecurityKeyDialogFragment fragment = new PivSecurityKeyDialogFragment();
76+
// fragment.setArguments(args);
77+
// return fragment;
78+
// }
7979

8080
}

hwsecurity-ui/src/main/java/de/cotech/hw/ui/internal/PivSecurityKeyDialogFragment.java

Lines changed: 0 additions & 51 deletions
This file was deleted.

0 commit comments

Comments
 (0)