diff --git a/studio/app/build.gradle b/studio/app/build.gradle index 43e68b7..ebc1d62 100644 --- a/studio/app/build.gradle +++ b/studio/app/build.gradle @@ -1,10 +1,10 @@ apply plugin: 'com.android.application' +apply plugin: 'jacoco' apply plugin: 'kotlin-android' apply plugin: 'kotlin-kapt' -apply plugin: 'com.vanniktech.android.junit.jacoco' -junitJacoco { - jacocoVersion = jacocoVersion +jacoco { + toolVersion = jacocoVersion } android { @@ -61,10 +61,6 @@ android { enabled = true } - kapt { - generateStubs = true - } - lintOptions { disable 'InvalidPackage' abortOnError false diff --git a/studio/app/src/main/java/nl/sogeti/android/gpstracker/ng/common/controllers/ContentController.kt b/studio/app/src/main/java/nl/sogeti/android/gpstracker/ng/common/controllers/ContentController.kt index bff7776..06d00a5 100644 --- a/studio/app/src/main/java/nl/sogeti/android/gpstracker/ng/common/controllers/ContentController.kt +++ b/studio/app/src/main/java/nl/sogeti/android/gpstracker/ng/common/controllers/ContentController.kt @@ -36,7 +36,7 @@ class ContentController(val context: Context, val listener: ContentListener) { fun unregister() { if (registeredUri != null) { context.contentResolver.unregisterContentObserver(contentObserver) - registeredUri = null4ยง + registeredUri = null } } diff --git a/studio/build.gradle b/studio/build.gradle index ef08b43..49e546d 100644 --- a/studio/build.gradle +++ b/studio/build.gradle @@ -4,14 +4,10 @@ buildscript { repositories { jcenter() - maven { - url 'https://dl.bintray.com/kotlin/kotlin-eap' - } } dependencies { classpath "com.android.tools.build:gradle:$rootProject.gradlePluginVersion" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$rootProject.kotlinVersion" - classpath "com.vanniktech:gradle-android-junit-jacoco-plugin:$rootProject.jacocoPluginVersion" classpath "com.google.gms:google-services:$rootProject.googleServicesVersion" } } @@ -19,9 +15,6 @@ buildscript { allprojects { repositories { jcenter() - maven { - url 'https://dl.bintray.com/kotlin/kotlin-eap' - } } } diff --git a/studio/versions.gradle b/studio/versions.gradle index 0853099..242bc12 100644 --- a/studio/versions.gradle +++ b/studio/versions.gradle @@ -15,8 +15,7 @@ ext { googleServicesVersion = '3.0.0' // Testing - jacocoPluginVersion = '0.5.0' - jacocoVersion = '0.7.8' + jacocoVersion = '0.7.9' junitVersion = '4.12' mockitoVersion = '2.2.20' testRunnerVersion = '0.5'