Skip to content

Commit

Permalink
fix android build
Browse files Browse the repository at this point in the history
  • Loading branch information
sproctor committed Dec 20, 2024
1 parent 80e37a1 commit 996cf66
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ package warlockfe.warlock3.android.di

import android.content.Context
import androidx.room.RoomDatabase
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import okio.Path.Companion.toOkioPath
import warlockfe.warlock3.compose.AppContainer
import warlockfe.warlock3.core.client.WarlockClient
Expand All @@ -27,11 +29,15 @@ class AndroidAppContainer(
ioDispatcher = Dispatchers.IO,
warlockDirs = warlockDirs,
) {

private val scope = CoroutineScope(SupervisorJob() + Dispatchers.IO)

override val scriptManager =
WarlockScriptEngineRegistry(
highlightRepository = highlightRepository,
variableRepository = variableRepository,
scriptDirRepository = scriptDirRepository,
externalScope = scope,
)

override val sgeClientFactory = object : SgeClientFactory {
Expand Down

0 comments on commit 996cf66

Please sign in to comment.