Skip to content

Commit

Permalink
I think everything is working?
Browse files Browse the repository at this point in the history
  • Loading branch information
sdetilly committed Nov 24, 2023
1 parent 06742b7 commit a83f0c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 7 deletions.
2 changes: 2 additions & 0 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ kotlinxSerialization = "1.6.0"
kword-plugin = "4.0.0"
ktlint = "11.6.1"
okio = "3.6.0"
owasp = "8.4.2"
trikot = "5.2.0"

[libraries]
Expand Down Expand Up @@ -58,6 +59,7 @@ kotlin-native-cocoapods = { id = "org.jetbrains.kotlin.native.cocoapods", versio
kspPlugin = { id = "com.google.devtools.ksp", version.ref = "ksp" }
ktlint = { id = "org.jlleitschuh.gradle.ktlint", version.ref = "ktlint" }
mirego-kwordPlugin = { id = "mirego.kword", version.ref = "kword-plugin" }
owasp-dependencycheck = { id = "org.owasp.dependencycheck", version.ref = "owasp" }
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }

[bundles]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
package com.mirego.kmp.boilerplate

Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ fun generalModule(bootstrap: Bootstrap): Module {
}
}

private fun createApolloClientBuilder(appEnvironment: AppEnvironment): ApolloClient.Builder =
ApolloClient.Builder()
.serverUrl(appEnvironment.graphQlApiUrl)
.autoPersistedQueries()

private fun createApolloClientBuilder(appEnvironment: AppEnvironment): ApolloClient.Builder = ApolloClient.Builder()
.serverUrl(appEnvironment.graphQlApiUrl)
.autoPersistedQueries()

object ModuleQualifier {
const val DISK_CACHE_PATH = "diskCachePath"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package com.mirego.kmp.boilerplate.viewmodel.factory

import com.mirego.kmp.boilerplate.usecase.preview.PreviewState
import com.mirego.kmp.boilerplate.usecase.preview.UseCaseFactoryPreview
import com.mirego.kmp.boilerplate.viewmodel.application.ApplicationViewModelImpl
import com.mirego.kmp.boilerplate.viewmodel.projects.ProjectsViewModelImpl
import com.mirego.kmp.boilerplate.viewmodel.root.RootViewModelImpl
import com.mirego.trikot.kword.I18N
import com.mirego.trikot.viewmodels.declarative.util.CoroutineScopeProvider
Expand Down Expand Up @@ -32,7 +35,10 @@ class ViewModelFactoryPreview(
coroutineScope = createCoroutineScope()
)

override fun createProjects(coroutineScope: CoroutineScope) = createProjects(PreviewState.Data.Content, coroutineScope)
override fun createProjects(coroutineScope: CoroutineScope) = createProjects(
PreviewState.Data.Content,
coroutineScope
)
fun createProjects(previewState: PreviewState, coroutineScope: CoroutineScope) = ProjectsViewModelImpl(
projectsUseCase = useCaseFactoryPreview.projectsUseCase(previewState),
i18N = i18N,
Expand Down

0 comments on commit a83f0c9

Please sign in to comment.