-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #259 from vivid-money/wasm-support
add wasm support
- Loading branch information
Showing
13 changed files
with
81 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
elmslie-core/src/commonMain/kotlin/money/vivid/elmslie/core/utils/DispatcherProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package money.vivid.elmslie.core.utils | ||
|
||
import kotlinx.coroutines.CoroutineDispatcher | ||
|
||
internal expect val IoDispatcher: CoroutineDispatcher |
5 changes: 5 additions & 0 deletions
5
elmslie-core/src/commonMain/kotlin/money/vivid/elmslie/core/utils/ResolveStoreKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package money.vivid.elmslie.core.utils | ||
|
||
import money.vivid.elmslie.core.store.StateReducer | ||
|
||
internal expect fun resolveStoreKey(reducer: StateReducer<*, *, *, *>): String |
6 changes: 6 additions & 0 deletions
6
elmslie-core/src/jvmMain/kotlin/money/vivid/elmslie/core/utils/DispatcherProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package money.vivid.elmslie.core.utils | ||
|
||
import kotlinx.coroutines.CoroutineDispatcher | ||
import kotlinx.coroutines.Dispatchers | ||
|
||
internal actual val IoDispatcher: CoroutineDispatcher = Dispatchers.IO |
8 changes: 8 additions & 0 deletions
8
elmslie-core/src/jvmMain/kotlin/money/vivid/elmslie/core/utils/ResolveStoreKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package money.vivid.elmslie.core.utils | ||
|
||
import money.vivid.elmslie.core.store.StateReducer | ||
|
||
internal actual fun resolveStoreKey(reducer: StateReducer<*, *, *, *>): String = | ||
(reducer::class.qualifiedName ?: reducer::class.simpleName) | ||
.orEmpty() | ||
.replace("Reducer", "Store") |
7 changes: 7 additions & 0 deletions
7
elmslie-core/src/nativeMain/kotlin/money/vivid/elmslie/core/utils/DispatcherProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package money.vivid.elmslie.core.utils | ||
|
||
import kotlinx.coroutines.CoroutineDispatcher | ||
import kotlinx.coroutines.Dispatchers | ||
import kotlinx.coroutines.IO | ||
|
||
internal actual val IoDispatcher: CoroutineDispatcher = Dispatchers.IO |
8 changes: 8 additions & 0 deletions
8
elmslie-core/src/nativeMain/kotlin/money/vivid/elmslie/core/utils/ResolveStoreKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package money.vivid.elmslie.core.utils | ||
|
||
import money.vivid.elmslie.core.store.StateReducer | ||
|
||
internal actual fun resolveStoreKey(reducer: StateReducer<*, *, *, *>): String = | ||
(reducer::class.qualifiedName ?: reducer::class.simpleName) | ||
.orEmpty() | ||
.replace("Reducer", "Store") |
6 changes: 6 additions & 0 deletions
6
elmslie-core/src/wasmJsMain/kotlin/money/vivid/elmslie/core/utils/DispatcherProvider.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package money.vivid.elmslie.core.utils | ||
|
||
import kotlinx.coroutines.CoroutineDispatcher | ||
import kotlinx.coroutines.Dispatchers | ||
|
||
internal actual val IoDispatcher: CoroutineDispatcher = Dispatchers.Default |
8 changes: 8 additions & 0 deletions
8
elmslie-core/src/wasmJsMain/kotlin/money/vivid/elmslie/core/utils/ResolveStoreKey.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package money.vivid.elmslie.core.utils | ||
|
||
import money.vivid.elmslie.core.store.StateReducer | ||
|
||
internal actual fun resolveStoreKey(reducer: StateReducer<*, *, *, *>): String = | ||
reducer::class.simpleName | ||
.orEmpty() | ||
.replace("Reducer", "Store") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters