Skip to content
Snippets Groups Projects
Commit 720ec237 authored by Kamal Bramwell's avatar Kamal Bramwell
Browse files

Renamed defaultDispatcher -> dispatcher

parent f01046b4
No related branches found
No related tags found
No related merge requests found
...@@ -19,13 +19,12 @@ class DappSdk private constructor( ...@@ -19,13 +19,12 @@ class DappSdk private constructor(
LoggerConfig by config.loggerConfig LoggerConfig by config.loggerConfig
{ {
companion object { companion object {
internal val logger: Logger by lazy { internal val logger: Logger by lazy {
Logger.newInstance(instance!!) Logger.newInstance(instance!!)
} }
internal val defaultDispatcher: CoroutineDispatcher by lazy { internal val defaultDispatcher: CoroutineDispatcher by lazy {
instance!!.defaultDispatcher instance!!.dispatcher
} }
internal val context: () -> Context get() = instance!!.context internal val context: () -> Context get() = instance!!.context
......
...@@ -7,5 +7,5 @@ import kotlinx.coroutines.Dispatchers ...@@ -7,5 +7,5 @@ import kotlinx.coroutines.Dispatchers
data class DefaultAndroidConfig( data class DefaultAndroidConfig(
override val context: () -> Context, override val context: () -> Context,
override val defaultDispatcher: CoroutineDispatcher = Dispatchers.IO, override val dispatcher: CoroutineDispatcher = Dispatchers.IO,
) : AndroidConfig ) : AndroidConfig
\ No newline at end of file
...@@ -8,5 +8,5 @@ import kotlinx.coroutines.CoroutineDispatcher ...@@ -8,5 +8,5 @@ import kotlinx.coroutines.CoroutineDispatcher
*/ */
interface AndroidConfig { interface AndroidConfig {
val context: () -> Context val context: () -> Context
val defaultDispatcher: CoroutineDispatcher val dispatcher: CoroutineDispatcher
} }
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment