Loading .gitlab-ci.yml +11 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ image: registry.gitlab.com/bitfireat/davdroid:latest before_script: - export GRADLE_USER_HOME=`pwd`/.gradle; chmod +x gradlew - (cd /sdk/emulator; ./emulator @test -no-audio -no-window & wait-for-emulator.sh) cache: paths: Loading @@ -10,8 +9,19 @@ cache: test: script: - (cd /sdk/emulator; ./emulator @test -no-audio -no-window & wait-for-emulator.sh) - ./gradlew check connectedCheck artifacts: paths: - build/outputs/lint-results-debug.html - build/reports/ pages: script: - ./gradlew dokka - mkdir public && mv build/dokka public artifacts: paths: - public only: - master README.md +2 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ cert4android is an Android library for managing custom certificates which has been developed for [DAVdroid](https://davdroid.bitfire.at). Feel free to use it in your own open-source app. Generated KDoc: https://bitfireat.gitlab.io/cert4android/dokka/cert4android/ Discussion: https://forums.bitfire.at/category/7/transport-level-security Loading build.gradle +3 −0 Original line number Diff line number Diff line buildscript { ext.kotlin_version = '1.1.51' ext.dokka_version = '0.9.15' repositories { jcenter() Loading @@ -12,6 +13,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${dokka_version}" } } Loading @@ -24,6 +26,7 @@ repositories { apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'org.jetbrains.dokka-android' android { compileSdkVersion 27 Loading src/main/java/at/bitfire/cert4android/CustomCertManager.kt +4 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,10 @@ import javax.net.ssl.X509TrustManager * trustworthiness. The IPC with a service is required when multiple processes, * each of them with an own [CustomCertManager], want to access a synchronized central * certificate trust store + UI (for accepting certificates etc.). * * @param interactive true: users will be notified in case of unknown certificates; * false: unknown certificates will be rejected (only uses custom certificate key store) * @param trustSystemCerts whether system certificates will be trusted */ class CustomCertManager @JvmOverloads constructor( val context: Context, Loading Loading
.gitlab-ci.yml +11 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,6 @@ image: registry.gitlab.com/bitfireat/davdroid:latest before_script: - export GRADLE_USER_HOME=`pwd`/.gradle; chmod +x gradlew - (cd /sdk/emulator; ./emulator @test -no-audio -no-window & wait-for-emulator.sh) cache: paths: Loading @@ -10,8 +9,19 @@ cache: test: script: - (cd /sdk/emulator; ./emulator @test -no-audio -no-window & wait-for-emulator.sh) - ./gradlew check connectedCheck artifacts: paths: - build/outputs/lint-results-debug.html - build/reports/ pages: script: - ./gradlew dokka - mkdir public && mv build/dokka public artifacts: paths: - public only: - master
README.md +2 −0 Original line number Diff line number Diff line Loading @@ -8,6 +8,8 @@ cert4android is an Android library for managing custom certificates which has been developed for [DAVdroid](https://davdroid.bitfire.at). Feel free to use it in your own open-source app. Generated KDoc: https://bitfireat.gitlab.io/cert4android/dokka/cert4android/ Discussion: https://forums.bitfire.at/category/7/transport-level-security Loading
build.gradle +3 −0 Original line number Diff line number Diff line buildscript { ext.kotlin_version = '1.1.51' ext.dokka_version = '0.9.15' repositories { jcenter() Loading @@ -12,6 +13,7 @@ buildscript { dependencies { classpath 'com.android.tools.build:gradle:3.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath "org.jetbrains.dokka:dokka-android-gradle-plugin:${dokka_version}" } } Loading @@ -24,6 +26,7 @@ repositories { apply plugin: 'com.android.library' apply plugin: 'kotlin-android' apply plugin: 'org.jetbrains.dokka-android' android { compileSdkVersion 27 Loading
src/main/java/at/bitfire/cert4android/CustomCertManager.kt +4 −0 Original line number Diff line number Diff line Loading @@ -29,6 +29,10 @@ import javax.net.ssl.X509TrustManager * trustworthiness. The IPC with a service is required when multiple processes, * each of them with an own [CustomCertManager], want to access a synchronized central * certificate trust store + UI (for accepting certificates etc.). * * @param interactive true: users will be notified in case of unknown certificates; * false: unknown certificates will be rejected (only uses custom certificate key store) * @param trustSystemCerts whether system certificates will be trusted */ class CustomCertManager @JvmOverloads constructor( val context: Context, Loading