Loading build.gradle +2 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath 'com.android.tools.build:gradle:3.5.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}" classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${versions.dokka}" } Loading @@ -29,7 +29,7 @@ apply plugin: 'org.jetbrains.dokka-android' android { compileSdkVersion 29 buildToolsVersion '29.0.1' buildToolsVersion '29.0.2' defaultConfig { minSdkVersion 14 Loading src/main/java/at/bitfire/cert4android/CustomCertManager.kt +3 −2 Original line number Diff line number Diff line Loading @@ -91,9 +91,10 @@ class CustomCertManager @JvmOverloads constructor( } } if (Looper.myLooper() == Looper.getMainLooper()) check(Looper.myLooper() != Looper.getMainLooper()) { // service is actually created after bindService() by code running in looper, so this would block throw IllegalStateException("must not be run on main thread") "must not be run on main thread" } Constants.log.fine("Binding to service") if (context.bindService(Intent(context, CustomCertService::class.java), newServiceConn, Context.BIND_AUTO_CREATE)) { Loading Loading
build.gradle +2 −2 Original line number Diff line number Diff line Loading @@ -12,7 +12,7 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.5.0' classpath 'com.android.tools.build:gradle:3.5.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}" classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${versions.dokka}" } Loading @@ -29,7 +29,7 @@ apply plugin: 'org.jetbrains.dokka-android' android { compileSdkVersion 29 buildToolsVersion '29.0.1' buildToolsVersion '29.0.2' defaultConfig { minSdkVersion 14 Loading
src/main/java/at/bitfire/cert4android/CustomCertManager.kt +3 −2 Original line number Diff line number Diff line Loading @@ -91,9 +91,10 @@ class CustomCertManager @JvmOverloads constructor( } } if (Looper.myLooper() == Looper.getMainLooper()) check(Looper.myLooper() != Looper.getMainLooper()) { // service is actually created after bindService() by code running in looper, so this would block throw IllegalStateException("must not be run on main thread") "must not be run on main thread" } Constants.log.fine("Binding to service") if (context.bindService(Intent(context, CustomCertService::class.java), newServiceConn, Context.BIND_AUTO_CREATE)) { Loading