File tree Expand file tree Collapse file tree 4 files changed +10
-13
lines changed
src/main/java/com/alexdeww/reactiveviewmodel/core/property Expand file tree Collapse file tree 4 files changed +10
-13
lines changed Original file line number Diff line number Diff line change 33buildscript {
44 ext {
55 min_sdk_version = 17
6- sdk_version = 29
6+ sdk_version = 30
77
8- kotlin_version = ' 1.4.32 '
8+ kotlin_version = ' 1.5.20 '
99 rxjava_version = ' 3.0.12'
1010 rxandroid_version = ' 3.0.0'
1111 archx_version = ' 2.2.0'
12- appcompatx_version = ' 1.2 .0'
12+ appcompatx_version = ' 1.3 .0'
1313 material_version = ' 1.3.0'
1414 }
1515 repositories {
1616 google()
17- jcenter ()
17+ mavenCentral ()
1818 }
1919 dependencies {
20- classpath ' com.android.tools.build:gradle:4.1.3 '
20+ classpath ' com.android.tools.build:gradle:4.2.1 '
2121 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
2222 classpath ' com.github.dcendents:android-maven-gradle-plugin:2.1'
2323 // NOTE: Do not place your application dependencies here; they belong
@@ -28,7 +28,7 @@ buildscript {
2828allprojects {
2929 repositories {
3030 google()
31- jcenter ()
31+ mavenCentral ()
3232 }
3333}
3434
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33distributionPath =wrapper/dists
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
6- distributionUrl =https\://services.gradle.org/distributions/gradle-6.5 -all.zip
6+ distributionUrl =https\://services.gradle.org/distributions/gradle-6.7.1 -all.zip
Original file line number Diff line number Diff line change @@ -29,8 +29,6 @@ dependencies {
2929 androidTestImplementation ' androidx.test:runner:1.2.0'
3030 androidTestImplementation ' androidx.test.espresso:espresso-core:3.2.0'
3131
32- implementation " org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version "
33-
3432 implementation " io.reactivex.rxjava3:rxandroid:$rxandroid_version "
3533 implementation " io.reactivex.rxjava3:rxjava:$rxjava_version "
3634
Original file line number Diff line number Diff line change @@ -13,10 +13,9 @@ class State<T> internal constructor(
1313 debounceInterval : Long? = null
1414) {
1515
16- private val subject = if (initValue == null ) {
17- BehaviorSubject .create<T >()
18- } else {
19- BehaviorSubject .createDefault<T >(initValue)
16+ private val subject = when (initValue) {
17+ null -> BehaviorSubject .create<T >()
18+ else -> BehaviorSubject .createDefault<T >(initValue)
2019 }
2120 private val serializedSubject = subject.toSerialized()
2221
You can’t perform that action at this time.
0 commit comments