Skip to content

flowExt #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/jarRepositories.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions .idea/runConfigurations.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ allprojects {
google()
mavenCentral()
maven(url = "https://jitpack.io")
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}

Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/kotlin/deps.kt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ object deps {

const val coil = "io.coil-kt:coil:1.2.1"
const val viewBindingDelegate = "com.github.hoc081098:ViewBindingDelegate:1.0.0"
const val flowExt = "io.github.hoc081098:FlowExt:0.0.7-SNAPSHOT"

object test {
const val junit = "junit:junit:4.13"
Expand Down
115 changes: 0 additions & 115 deletions core/src/main/java/com/hoc/flowmvi/core/FlowExt.kt

This file was deleted.

2 changes: 2 additions & 0 deletions feature-add/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,7 @@ dependencies {

implementation(deps.coroutines.core)
implementation(deps.koin.android)

implementation(deps.viewBindingDelegate)
implementation(deps.flowExt)
}
4 changes: 2 additions & 2 deletions feature-add/src/main/java/com/hoc/flowmvi/ui/add/AddVM.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import androidx.lifecycle.SavedStateHandle
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.hoc.flowmvi.core.Either
import com.hoc.flowmvi.core.flatMapFirst
import com.hoc.flowmvi.core.withLatestFrom
import com.hoc.flowmvi.domain.entity.User
import com.hoc.flowmvi.domain.usecase.AddUserUseCase
import com.hoc081098.flowext.flatMapFirst
import com.hoc081098.flowext.withLatestFrom
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
Expand Down
1 change: 1 addition & 0 deletions feature-main/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,5 @@ dependencies {
implementation(deps.koin.android)
implementation(deps.coil)
implementation(deps.viewBindingDelegate)
implementation(deps.flowExt)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package com.hoc.flowmvi.ui.main
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.hoc.flowmvi.core.flatMapFirst
import com.hoc.flowmvi.domain.usecase.GetUsersUseCase
import com.hoc.flowmvi.domain.usecase.RefreshGetUsersUseCase
import com.hoc.flowmvi.domain.usecase.RemoveUserUseCase
import com.hoc081098.flowext.flatMapFirst
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.channels.Channel
Expand Down
1 change: 1 addition & 0 deletions feature-search/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,5 @@ dependencies {
implementation(deps.koin.android)
implementation(deps.coil)
implementation(deps.viewBindingDelegate)
implementation(deps.flowExt)
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package com.hoc.flowmvi.ui.search
import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.hoc.flowmvi.core.flatMapFirst
import com.hoc.flowmvi.core.takeUntil
import com.hoc.flowmvi.domain.usecase.SearchUsersUseCase
import com.hoc081098.flowext.flatMapFirst
import com.hoc081098.flowext.takeUntil
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.FlowPreview
import kotlinx.coroutines.channels.Channel
Expand Down