Skip to content

Commit

Permalink
Assure non-null type is used for live data and update lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
wax911 committed Apr 4, 2021
1 parent 8b9b1db commit d8f26d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ android {
testOptions {
unitTests.returnDefaultValues = true
}
lintOptions {
abortOnError = false
ignoreWarnings = false
ignoreTestSources = true
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import kotlin.coroutines.CoroutineContext

class ViewModelBase<T>: ViewModel(), RetroCallback<T> {

val model = MutableLiveData<T>()
val model = MutableLiveData<T?>()

var state: ResponseCallback? = null

Expand Down

0 comments on commit d8f26d4

Please sign in to comment.