diff --git a/README.md b/README.md index bcad8c3..18a2c4a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ TestObserver to easily test LiveData and make assertions on them. Read [Medium Article](https://medium.com/@josef.raska/effective-livedata-and-viewmodel-testing-17f25069fcd4) for more info. -[![License](img/livedata-testing.png)](https://medium.com/@josef.raska/effective-livedata-and-viewmodel-testing-17f25069fcd4) +[![Explanatory Diagram](img/livedata-testing.png)](https://medium.com/@josef.raska/effective-livedata-and-viewmodel-testing-17f25069fcd4) ## Usage @@ -34,16 +34,19 @@ TestObserver.test(liveData) .assertNever(value -> value > 4); ``` -Don't forget to use `InstantTaskExecutorRule` from `android.arch.core:core-testing` to make your LiveData test run properly. +Don't forget to use `InstantTaskExecutorRule` from `androidx.arch.core:core-testing` to make your LiveData test run properly. ## Download Grab via Gradle: ```groovy -testImplementation 'com.jraska.livedata:testing:0.2.0' -testImplementation 'com.jraska.livedata:testing-ktx:0.2.0' // If you are Kotlin positive +testImplementation 'com.jraska.livedata:testing:0.3.0' +testImplementation 'com.jraska.livedata:testing-ktx:0.3.0' // If you are Kotlin positive ``` +If you are not using `androidx` namespace yet, please use version 0.2.0. Explanation [here](https://android-developers.googleblog.com/2018/05/hello-world-androidx.html). + + ## Philosophy This library is created in a belief that to effective and valuable test should be fast to write and model real code usage. diff --git a/build.gradle b/build.gradle index fd4418f..fde5761 100644 --- a/build.gradle +++ b/build.gradle @@ -27,6 +27,6 @@ task clean(type: Delete) { } ext { - version = '0.2.0' - versionCode = 5 + version = '0.3.0' + versionCode = 6 } diff --git a/testing-ktx/build.gradle b/testing-ktx/build.gradle index 39edb12..2ca3118 100644 --- a/testing-ktx/build.gradle +++ b/testing-ktx/build.gradle @@ -4,11 +4,11 @@ apply plugin: 'kotlin-android' version = rootProject.ext.version android { - compileSdkVersion 27 - buildToolsVersion '27.0.3' + compileSdkVersion 28 + buildToolsVersion '28.0.2' defaultConfig { minSdkVersion 19 - targetSdkVersion 27 + targetSdkVersion 28 versionName version versionCode rootProject.ext.versionCode }