Skip to content

Commit

Permalink
v4.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dschuermann committed Mar 24, 2021
1 parent 4cf2820 commit c33b13c
Show file tree
Hide file tree
Showing 358 changed files with 2,637 additions and 1,337 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ This includes the following artifacts of the SDK (cf. [overview of all artifacts
| de.cotech:hwsecurity-piv | 14 | |
| de.cotech:hwsecurity-ui | 14 | 19 |
| de.cotech:hwsecurity-ssh | 14 | |
| de.cotech:hwsecurity-sshj | 14 | |

## Notice

Expand Down
14 changes: 6 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,33 +1,31 @@
import org.jetbrains.dokka.gradle.DokkaTask

buildscript {
repositories {
google()
jcenter()
}

dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.0'
classpath 'com.android.tools.build:gradle:4.1.2'
classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.4.20'
}
}

allprojects {
repositories {
google()
jcenter()
maven { url 'https://jitpack.io' }
jcenter()
}

// custom dokka format
tasks.register("dokkaHugo", DokkaTask) {
tasks.register("dokkaHugo", org.jetbrains.dokka.gradle.DokkaTask) {
dependencies {
dokkaHugoPlugin 'com.github.cotechde:dokka-hugo-plugin:d053c16110'
dokkaHugoPlugin 'com.github.cotechde:dokka-hugo-plugin:2.0'
}
}
}

ext {
compileSdkVersion = 29
hwSdkVersionName = '4.2.1'
hwSdkVersionName = '4.4.0'
}
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Jun 24 11:02:11 CEST 2020
#Tue Mar 16 16:29:03 CET 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-bin.zip
32 changes: 15 additions & 17 deletions hwsecurity/core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ apply plugin: 'maven-publish'
apply plugin: 'org.jetbrains.dokka'

dependencies {
implementation 'androidx.lifecycle:lifecycle-runtime:2.2.0'
implementation 'androidx.lifecycle:lifecycle-runtime:2.3.0'

compileOnly 'androidx.annotation:annotation:1.1.0'
compileOnly 'io.sentry:sentry-android:2.3.1'

api 'com.google.auto.value:auto-value-annotations:1.6.2'
api 'com.google.auto.value:auto-value-annotations:1.6.5'
annotationProcessor 'com.google.auto.value:auto-value:1.6.2'
annotationProcessor 'com.ryanharter.auto.value:auto-value-parcel:0.2.6'

testImplementation 'junit:junit:4.12'
testImplementation 'junit:junit:4.13'
testImplementation 'org.robolectric:robolectric:3.8'
testImplementation 'org.mockito:mockito-core:2.18.0'
}
Expand Down Expand Up @@ -90,24 +90,22 @@ afterEvaluate {
}

dokkaHugo {
configure {
outputDirectory.set(file("$projectDir/../../hwsecurity.dev/content/reference"))
outputDirectory.set(file("$projectDir/../../hwsecurity.dev/content/reference"))

dokkaSourceSets {
register("java") {
moduleDisplayName.set("hwsecurity")
moduleName.set("hwsecurity")

sourceRoots.setFrom(file("src/main/java"))
dokkaSourceSets {
register("java") {
sourceRoots.setFrom(file("src/main/java"))

jdkVersion.set(8) // Used for linking to JDK documentation
noStdlibLink.set(false) // Disable linking to online kotlin-stdlib documentation
noJdkLink.set(true) // Disable linking to online JDK documentation
noAndroidSdkLink.set(false) // Disable linking to online Android documentation
jdkVersion.set(8) // Used for linking to JDK documentation
noStdlibLink.set(false) // Disable linking to online kotlin-stdlib documentation
noJdkLink.set(true) // Disable linking to online JDK documentation
noAndroidSdkLink.set(false) // Disable linking to online Android documentation

perPackageOption {
prefix.set("de.cotech.hw.internal")
suppress.set(true)
}
perPackageOption {
matchingRegex.set(".*\\.internal.*") // will match all .internal packages and sub-packages
suppress.set(true)
}
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down Expand Up @@ -511,7 +511,6 @@ public void rediscoverConnectedSecurityKeys() {
* This method is not part of the public API.
*/
@AnyThread
@RestrictTo(Scope.LIBRARY_GROUP)
public void clearConnectedSecurityKeys() {
nfcTagManager.clearManagedNfcTags();
usbDeviceManager.clearManagedUsbDevices();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down Expand Up @@ -159,26 +159,25 @@ public Builder setSentryCaptureExceptionOnInternalError(boolean isSentryCaptureE
* (by default Android’s Log class is used), a custom logging tree can be used.
* Setting your own logging tree overrides setEnableDebugLogging(true).
* <pre>
* .setLoggingTree(new HwTimber.DebugTree() {
* protected String createStackElementTag(@NonNull StackTraceElement element) {
* if (element.getClassName().startsWith("de.cotech.hw")) {
* return super.createStackElementTag(element);
* } else {
* return null;
* private static class CrashReportingTree extends HwTimber.Tree {
* @Override protected void log(int priority, String tag, @NonNull String message, Throwable t) {
* if (priority == Log.VERBOSE || priority == Log.DEBUG) {
* return;
* }
* }
*
* protected boolean isLoggable(String tag, int priority) {
* if (tag == null) {
* return false;
* }
* // TODO: filter based on priority
* }
* FakeCrashLibrary.log(priority, tag, message);
*
* protected void log(int priority, String tag, @NonNull String message, Throwable t) {
* // TODO: delegate log output to your own logging framework
* if (t != null) {
* if (priority == Log.ERROR) {
* FakeCrashLibrary.logError(t);
* } else if (priority == Log.WARN) {
* FakeCrashLibrary.logWarning(t);
* }
* }
* }
* });
* }
* new SecurityKeyManagerConfig.Builder()
* .setLoggingTree(CrashReportingTree.class)
* </pre>
* <p>
* This tree overrides {@link SecurityKeyManagerConfig.Builder#setEnableDebugLogging(boolean)}.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down Expand Up @@ -41,7 +41,6 @@
import javax.net.ssl.X509ExtendedKeyManager;


@RestrictTo(Scope.LIBRARY_GROUP)
public class SecurityKeyTlsClientCertificateAuthenticator {
private final X509Certificate clientCertificate;
private final PrivateKey privateKey;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2020 Confidential Technologies GmbH
* Copyright (C) 2018-2021 Confidential Technologies GmbH
*
* You can purchase a commercial license at https://hwsecurity.dev.
* Buying such a license is mandatory as soon as you develop commercial
Expand Down
Loading

0 comments on commit c33b13c

Please sign in to comment.