diff --git a/library/build.gradle b/library/build.gradle index 84c5722..b4cc12d 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -57,6 +57,12 @@ android { withJavadocJar() } } + + lintOptions { + // to handle warning coming from a transitive dependency + // - obsolete 'androidx.fragment' through 'powerauth-sdk' + disable 'ObsoleteLintCustomCheck' + } } dependencies { @@ -66,7 +72,7 @@ dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion" implementation "com.google.code.gson:gson:${gsonVersion}" - implementation "androidx.annotation:annotation:1.6.0" + implementation "androidx.annotation:annotation:1.7.0" testImplementation "com.wultra.android.powerauth:powerauth-sdk:${powerAuthSdkVersion}" testImplementation 'junit:junit:4.13.2' diff --git a/library/src/main/java/com/wultra/android/sslpinning/SslValidationStrategy.kt b/library/src/main/java/com/wultra/android/sslpinning/SslValidationStrategy.kt index ecccf72..899adc1 100644 --- a/library/src/main/java/com/wultra/android/sslpinning/SslValidationStrategy.kt +++ b/library/src/main/java/com/wultra/android/sslpinning/SslValidationStrategy.kt @@ -82,6 +82,7 @@ abstract class SslValidationStrategy { * Implements SSL validation strategy that trust any server certificate. * See [SslValidationStrategy.noValidation] for more details. */ +@Suppress("CustomX509TrustManager") internal class NoSslValidationStrategy: SslValidationStrategy() { override fun sslSocketFactory(): SSLSocketFactory? { val trustAllCerts = Array(1) { object : X509TrustManager { diff --git a/library/src/main/java/com/wultra/android/sslpinning/integration/SSLPinningX509TrustManager.kt b/library/src/main/java/com/wultra/android/sslpinning/integration/SSLPinningX509TrustManager.kt index c59686c..4055b95 100644 --- a/library/src/main/java/com/wultra/android/sslpinning/integration/SSLPinningX509TrustManager.kt +++ b/library/src/main/java/com/wultra/android/sslpinning/integration/SSLPinningX509TrustManager.kt @@ -28,6 +28,7 @@ import javax.net.ssl.X509TrustManager * * @author Tomas Kypta, tomas.kypta@wultra.com */ +@Suppress("CustomX509TrustManager") class SSLPinningX509TrustManager(private val certStore: CertStore) : X509TrustManager { @SuppressLint("TrustAllX509TrustManager")