Skip to content

Commit b6b7c5d

Browse files
authored
flowExt (#25)
* flowExt * flowExt * flowExt
1 parent a85a3aa commit b6b7c5d

File tree

14 files changed

+34
-123
lines changed

14 files changed

+34
-123
lines changed

.idea/compiler.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ allprojects {
7575
google()
7676
mavenCentral()
7777
maven(url = "https://jitpack.io")
78+
maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/")
7879
}
7980
}
8081

buildSrc/src/main/kotlin/deps.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ object deps {
6262

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

6667
object test {
6768
const val junit = "junit:junit:4.13"

core/src/main/java/com/hoc/flowmvi/core/FlowExt.kt

Lines changed: 0 additions & 115 deletions
This file was deleted.

feature-add/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,7 @@ dependencies {
5050

5151
implementation(deps.coroutines.core)
5252
implementation(deps.koin.android)
53+
5354
implementation(deps.viewBindingDelegate)
55+
implementation(deps.flowExt)
5456
}

feature-add/src/main/java/com/hoc/flowmvi/ui/add/AddVM.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import androidx.lifecycle.SavedStateHandle
66
import androidx.lifecycle.ViewModel
77
import androidx.lifecycle.viewModelScope
88
import com.hoc.flowmvi.core.Either
9-
import com.hoc.flowmvi.core.flatMapFirst
10-
import com.hoc.flowmvi.core.withLatestFrom
119
import com.hoc.flowmvi.domain.entity.User
1210
import com.hoc.flowmvi.domain.usecase.AddUserUseCase
11+
import com.hoc081098.flowext.flatMapFirst
12+
import com.hoc081098.flowext.withLatestFrom
1313
import kotlinx.coroutines.ExperimentalCoroutinesApi
1414
import kotlinx.coroutines.channels.Channel
1515
import kotlinx.coroutines.flow.Flow

feature-main/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,5 @@ dependencies {
5454
implementation(deps.koin.android)
5555
implementation(deps.coil)
5656
implementation(deps.viewBindingDelegate)
57+
implementation(deps.flowExt)
5758
}

feature-main/src/main/java/com/hoc/flowmvi/ui/main/MainVM.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ package com.hoc.flowmvi.ui.main
33
import android.util.Log
44
import androidx.lifecycle.ViewModel
55
import androidx.lifecycle.viewModelScope
6-
import com.hoc.flowmvi.core.flatMapFirst
76
import com.hoc.flowmvi.domain.usecase.GetUsersUseCase
87
import com.hoc.flowmvi.domain.usecase.RefreshGetUsersUseCase
98
import com.hoc.flowmvi.domain.usecase.RemoveUserUseCase
9+
import com.hoc081098.flowext.flatMapFirst
1010
import kotlinx.coroutines.ExperimentalCoroutinesApi
1111
import kotlinx.coroutines.FlowPreview
1212
import kotlinx.coroutines.channels.Channel

feature-search/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,5 @@ dependencies {
5555
implementation(deps.koin.android)
5656
implementation(deps.coil)
5757
implementation(deps.viewBindingDelegate)
58+
implementation(deps.flowExt)
5859
}

feature-search/src/main/java/com/hoc/flowmvi/ui/search/SearchVM.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ package com.hoc.flowmvi.ui.search
33
import android.util.Log
44
import androidx.lifecycle.ViewModel
55
import androidx.lifecycle.viewModelScope
6-
import com.hoc.flowmvi.core.flatMapFirst
7-
import com.hoc.flowmvi.core.takeUntil
86
import com.hoc.flowmvi.domain.usecase.SearchUsersUseCase
7+
import com.hoc081098.flowext.flatMapFirst
8+
import com.hoc081098.flowext.takeUntil
99
import kotlinx.coroutines.ExperimentalCoroutinesApi
1010
import kotlinx.coroutines.FlowPreview
1111
import kotlinx.coroutines.channels.Channel

0 commit comments

Comments
 (0)