init projects
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package ru.shadowsparky.data
|
||||
|
||||
import org.koin.core.annotation.Single
|
||||
import ru.shadowsparky.domain.Log
|
||||
|
||||
@Single
|
||||
class WasmLog : Log {
|
||||
override fun d(tag: String, msg: String?, e: Throwable?) {
|
||||
println("$tag $msg")
|
||||
e?.printStackTrace()
|
||||
}
|
||||
|
||||
override fun e(tag: String, e: Throwable?, msg: String?) {
|
||||
println("$tag $msg")
|
||||
e?.printStackTrace()
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package ru.shadowsparky.data
|
||||
|
||||
import com.russhwolf.settings.Settings
|
||||
import com.russhwolf.settings.StorageSettings
|
||||
import org.koin.core.annotation.Single
|
||||
|
||||
@Single
|
||||
class WasmSettingsFactory : SettingsFactory {
|
||||
override fun create(name: String): Settings {
|
||||
return StorageSettings()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user