Skip to content

Commit

Permalink
chore: disable lint
Browse files Browse the repository at this point in the history
  • Loading branch information
adrielcafe committed May 13, 2020
1 parent c68f1fd commit 63ac124
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ viewModel.observeState(lifecycleOwner) { state ->
}
```

### TEA/Redux like approach
Do you like the idea of have a single source of truth, like the Model in [The Elm Architecture](https://guide.elm-lang.org/architecture/) or Store in [Redux](https://redux.js.org/introduction/three-principles)? I have good news: you can do the same with HAL!
### Single source of truth
Do you like the idea of have a single source of truth, like the Model in [The Elm Architecture](https://guide.elm-lang.org/architecture/) or the Store in [Redux](https://redux.js.org/introduction/three-principles)? I have good news: you can do the same with HAL!

Instead of use a sealed class with multiple states just create a single data class to represent your entire state:

Expand Down
4 changes: 4 additions & 0 deletions hal-livedata/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ android {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
abortOnError false
}
buildTypes {
debug {
testCoverageEnabled true
Expand All @@ -28,6 +31,7 @@ dependencies {
implementation project(':hal-core')

implementation ModuleLib.KOTLIN
implementation ModuleLib.COROUTINES_ANDROID
implementation ModuleLib.LIVEDATA

TestLib.all.forEach { testImplementation it }
Expand Down
3 changes: 3 additions & 0 deletions sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ android {
packagingOptions {
exclude 'META-INF/*'
}
lintOptions {
abortOnError false
}
}

dependencies {
Expand Down

0 comments on commit 63ac124

Please sign in to comment.