-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
disable persisting states on wasm for now
- Loading branch information
Showing
8 changed files
with
30 additions
and
12 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
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
2 changes: 1 addition & 1 deletion
2
sample/src/commonMain/kotlin/pro/respawn/flowmvi/sample/platform/FileManager.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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package pro.respawn.flowmvi.sample.platform | ||
|
||
interface FileManager { | ||
fun cacheDir(relative: String): String | ||
fun cacheDir(relative: String): String? | ||
} |
5 changes: 1 addition & 4 deletions
5
sample/src/wasmJsMain/kotlin/pro/respawn/flowmvi/sample/platform/BrowserFileManager.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 |
---|---|---|
@@ -1,9 +1,6 @@ | ||
package pro.respawn.flowmvi.sample.platform | ||
|
||
import kotlinx.io.files.Path | ||
import kotlinx.io.files.SystemFileSystem | ||
|
||
internal class BrowserFileManager : FileManager { | ||
|
||
override fun cacheDir(relative: String): String = SystemFileSystem.resolve(Path(relative)).name | ||
override fun cacheDir(relative: String): String? = null | ||
} |