Commit 41c9f189 authored by Ricki Hirner's avatar Ricki Hirner

Provide okhttp version constant; update Kotlin

parent c1181e23
Pipeline #20871807 passed with stages
in 2 minutes 46 seconds
buildscript {
ext.kotlin_version = '1.2.31'
ext.kotlin_version = '1.2.40'
ext.dokka_version = '0.9.16'
repositories {
......@@ -24,6 +24,10 @@ apply plugin: 'com.android.library'
apply plugin: 'kotlin-android'
apply plugin: 'org.jetbrains.dokka-android'
ext {
okhttp_version = "3.10.0"
}
android {
compileSdkVersion 27
buildToolsVersion '27.0.3'
......@@ -31,6 +35,8 @@ android {
defaultConfig {
minSdkVersion 14
targetSdkVersion 27
buildConfigField "String", "version_okhttp", "\"$okhttp_version\""
}
buildTypes {
release {
......@@ -48,16 +54,15 @@ android {
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
compile 'com.squareup.okhttp3:okhttp:3.10.0'
compile "com.squareup.okhttp3:okhttp:$okhttp_version"
androidTestCompile 'com.squareup.okhttp3:mockwebserver:3.10.0'
androidTestCompile "com.squareup.okhttp3:mockwebserver:$okhttp_version"
androidTestCompile 'com.android.support.test:runner:1.0.1'
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
testCompile 'junit:junit:4.12'
testCompile 'com.squareup.okhttp3:mockwebserver:3.10.0'
testCompile "com.squareup.okhttp3:mockwebserver:$okhttp_version"
}
......@@ -14,4 +14,6 @@ object Constants {
var log = Logger.getLogger("dav4android")!!
const val okHttpVersion = BuildConfig.version_okhttp
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment