Skip to content

Commit

Permalink
Merge pull request #79 from /issues/76-lint-warnings
Browse files Browse the repository at this point in the history
Resolve lint warnings
  • Loading branch information
TomasKypta authored Nov 16, 2023
2 parents fcb36b7 + 5858d42 commit e4823af
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
8 changes: 7 additions & 1 deletion library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ android {
withJavadocJar()
}
}

lintOptions {
// to handle warning coming from a transitive dependency
// - obsolete 'androidx.fragment' through 'powerauth-sdk'
disable 'ObsoleteLintCustomCheck'
}
}

dependencies {
Expand All @@ -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'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit e4823af

Please sign in to comment.