Skip to content

Commit

Permalink
use kmp-viewmodel (#41)
Browse files Browse the repository at this point in the history
* Update build.gradle.kts

* use kmp-viewmodel
  • Loading branch information
hoc081098 authored Feb 19, 2023
1 parent 21938ac commit 5e9fca5
Show file tree
Hide file tree
Showing 15 changed files with 4 additions and 244 deletions.
Binary file modified buildSrc/buildSrc/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
1 change: 1 addition & 0 deletions buildSrc/buildSrc/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Binary file modified buildSrc/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
1 change: 1 addition & 0 deletions buildSrc/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
178 changes: 0 additions & 178 deletions multiplatform-viewmodel/build.gradle.kts

This file was deleted.

2 changes: 0 additions & 2 deletions multiplatform-viewmodel/src/androidMain/AndroidManifest.xml

This file was deleted.

This file was deleted.

Empty file.

This file was deleted.

Empty file.

This file was deleted.

Empty file.
1 change: 0 additions & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ rootProject.name = "GithubSearchKMM"
include(":androidApp")
include(":shared")
include(":flowredux")
include(":multiplatform-viewmodel")

fun includeProject(name: String, filePath: String) {
include(name)
Expand Down
2 changes: 1 addition & 1 deletion shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ kotlin {
val commonMain by getting {
dependencies {
implementation(project(":flowredux"))
api(project(":multiplatform-viewmodel"))
api("io.github.hoc081098:kmp-viewmodel:0.1.0")

// Flow, Coroutines
api(deps.coroutines.core)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package com.hoc081098.github_search_kmm.presentation

import com.hoc081098.flowredux.createFlowReduxStore
import com.hoc081098.github_search_kmm.domain.usecase.SearchRepoItemsUseCase
import com.hoc081098.multiplatform_viewmodel.ViewModel
import com.hoc081098.kmp.viewmodel.ViewModel
import io.github.aakira.napier.Napier
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.Flow
Expand Down

0 comments on commit 5e9fca5

Please sign in to comment.