mirror of
https://github.com/Suwayomi/TachideskJUI.git
synced 2025-12-10 06:42:05 +01:00
Fix formatting in a few more files
This commit is contained in:
@@ -11,9 +11,8 @@ import ca.gosyer.jui.domain.migration.service.MigrationPreferences
|
||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||
import me.tatarka.inject.annotations.Inject
|
||||
|
||||
class AppMigrations
|
||||
@Inject
|
||||
constructor(
|
||||
class AppMigrations(
|
||||
private val migrationPreferences: MigrationPreferences,
|
||||
private val contextWrapper: ContextWrapper,
|
||||
) {
|
||||
|
||||
@@ -10,9 +10,8 @@ import android.content.Context
|
||||
import com.russhwolf.settings.SharedPreferencesSettings
|
||||
import me.tatarka.inject.annotations.Inject
|
||||
|
||||
actual class PreferenceStoreFactory
|
||||
@Inject
|
||||
constructor(
|
||||
actual class PreferenceStoreFactory(
|
||||
private val context: Context,
|
||||
) {
|
||||
actual fun create(vararg names: String): PreferenceStore =
|
||||
|
||||
@@ -10,9 +10,8 @@ import com.russhwolf.settings.PreferencesSettings
|
||||
import me.tatarka.inject.annotations.Inject
|
||||
import java.util.prefs.Preferences
|
||||
|
||||
actual class PreferenceStoreFactory
|
||||
@Inject
|
||||
constructor() {
|
||||
actual class PreferenceStoreFactory() {
|
||||
private val rootNode: Preferences = Preferences.userRoot()
|
||||
.node("ca/gosyer/tachideskjui")
|
||||
|
||||
|
||||
@@ -10,9 +10,8 @@ import com.russhwolf.settings.NSUserDefaultsSettings
|
||||
import me.tatarka.inject.annotations.Inject
|
||||
import platform.Foundation.NSUserDefaults
|
||||
|
||||
actual class PreferenceStoreFactory
|
||||
@Inject
|
||||
constructor() {
|
||||
actual class PreferenceStoreFactory() {
|
||||
actual fun create(vararg names: String): PreferenceStore =
|
||||
StandardPreferenceStore(
|
||||
NSUserDefaultsSettings(
|
||||
|
||||
@@ -5,9 +5,8 @@ import ca.gosyer.jui.core.lang.toPlatform
|
||||
import kotlinx.datetime.Instant
|
||||
import me.tatarka.inject.annotations.Inject
|
||||
|
||||
actual class DateHandler
|
||||
@Inject
|
||||
constructor() {
|
||||
actual class DateHandler() {
|
||||
actual val formatOptions by lazy {
|
||||
listOf(
|
||||
"",
|
||||
|
||||
@@ -9,9 +9,8 @@ import java.time.ZoneId
|
||||
import java.time.format.DateTimeFormatter
|
||||
import java.time.format.FormatStyle
|
||||
|
||||
actual class DateHandler
|
||||
@Inject
|
||||
constructor() {
|
||||
actual class DateHandler() {
|
||||
actual val formatOptions by lazy {
|
||||
listOf(
|
||||
"",
|
||||
|
||||
@@ -15,9 +15,8 @@ import okio.FileSystem
|
||||
import okio.Path.Companion.toPath
|
||||
import org.lighthousegames.logging.logging
|
||||
|
||||
class AppMigrations
|
||||
@Inject
|
||||
constructor(
|
||||
class AppMigrations(
|
||||
private val migrationPreferences: MigrationPreferences,
|
||||
private val contextWrapper: ContextWrapper,
|
||||
) {
|
||||
|
||||
@@ -11,9 +11,8 @@ import ca.gosyer.jui.ios.build.BuildKonfig
|
||||
import ca.gosyer.jui.uicore.vm.ContextWrapper
|
||||
import me.tatarka.inject.annotations.Inject
|
||||
|
||||
class AppMigrations
|
||||
@Inject
|
||||
constructor(
|
||||
class AppMigrations(
|
||||
private val migrationPreferences: MigrationPreferences,
|
||||
private val contextWrapper: ContextWrapper,
|
||||
) {
|
||||
|
||||
@@ -14,9 +14,8 @@ import dev.icerock.moko.resources.desc.desc
|
||||
import dev.icerock.moko.resources.format
|
||||
import me.tatarka.inject.annotations.Inject
|
||||
|
||||
actual class ContextWrapper
|
||||
@Inject
|
||||
constructor(
|
||||
actual class ContextWrapper(
|
||||
context: Context,
|
||||
) : ContextWrapper(context) {
|
||||
actual fun toPlatformString(stringResource: StringResource): String = stringResource.desc().toString(this)
|
||||
|
||||
@@ -15,9 +15,8 @@ import kotlinx.coroutines.flow.MutableSharedFlow
|
||||
import kotlinx.coroutines.flow.asSharedFlow
|
||||
import me.tatarka.inject.annotations.Inject
|
||||
|
||||
actual class ContextWrapper
|
||||
@Inject
|
||||
constructor() {
|
||||
actual class ContextWrapper() {
|
||||
private val _toasts = MutableSharedFlow<Pair<String, Length>>()
|
||||
val toasts = _toasts.asSharedFlow()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user