Skip to content

Commit

Permalink
Prepare version 0.3.0 (#13)
Browse files Browse the repository at this point in the history
* Prepare version 0.3.0

* Fix proper sdk version in module
  • Loading branch information
jraska authored Aug 26, 2018
1 parent a625e6c commit f636647
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ task clean(type: Delete) {
}

ext {
version = '0.2.0'
versionCode = 5
version = '0.3.0'
versionCode = 6
}
6 changes: 3 additions & 3 deletions testing-ktx/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit f636647

Please sign in to comment.