Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex committed Jun 24, 2021
1 parent df3b655 commit de91b0c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
12 changes: 6 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
buildscript {
ext {
min_sdk_version = 17
sdk_version = 29
sdk_version = 30

kotlin_version = '1.4.32'
kotlin_version = '1.5.20'
rxjava_version = '3.0.12'
rxandroid_version = '3.0.0'
archx_version = '2.2.0'
appcompatx_version = '1.2.0'
appcompatx_version = '1.3.0'
material_version = '1.3.0'
}
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.3'
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
// NOTE: Do not place your application dependencies here; they belong
Expand All @@ -28,7 +28,7 @@ buildscript {
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-all.zip
2 changes: 0 additions & 2 deletions reactiveviewmodel/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ dependencies {
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'

implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"

implementation "io.reactivex.rxjava3:rxandroid:$rxandroid_version"
implementation "io.reactivex.rxjava3:rxjava:$rxjava_version"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,9 @@ class State<T> internal constructor(
debounceInterval: Long? = null
) {

private val subject = if (initValue == null) {
BehaviorSubject.create<T>()
} else {
BehaviorSubject.createDefault<T>(initValue)
private val subject = when (initValue) {
null -> BehaviorSubject.create<T>()
else -> BehaviorSubject.createDefault<T>(initValue)
}
private val serializedSubject = subject.toSerialized()

Expand Down

0 comments on commit de91b0c

Please sign in to comment.