diff --git a/shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/SeedImportUseCase.kt b/shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/ImportSeedUseCase.kt similarity index 98% rename from shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/SeedImportUseCase.kt rename to shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/ImportSeedUseCase.kt index c98ed96ff..851d0b8ca 100644 --- a/shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/SeedImportUseCase.kt +++ b/shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/ImportSeedUseCase.kt @@ -10,7 +10,7 @@ import com.faltenreich.diaguard.tag.TagRepository /** * Import from files bundled with the app */ -class SeedImportUseCase( +class ImportSeedUseCase( private val seedRepository: SeedRepository, private val categoryRepository: MeasurementCategoryRepository, private val propertyRepository: MeasurementPropertyRepository, diff --git a/shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/SeedModule.kt b/shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/SeedModule.kt index 67c6ec119..5102774b5 100644 --- a/shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/SeedModule.kt +++ b/shared/src/commonMain/kotlin/com/faltenreich/diaguard/backup/seed/SeedModule.kt @@ -55,5 +55,5 @@ fun seedModule() = module { singleOf(::SeedRepository) - singleOf(::SeedImportUseCase) + singleOf(::ImportSeedUseCase) } \ No newline at end of file diff --git a/shared/src/commonMain/kotlin/com/faltenreich/diaguard/main/SetupUseCase.kt b/shared/src/commonMain/kotlin/com/faltenreich/diaguard/main/SetupUseCase.kt index 8624ed9e5..3b3110f50 100644 --- a/shared/src/commonMain/kotlin/com/faltenreich/diaguard/main/SetupUseCase.kt +++ b/shared/src/commonMain/kotlin/com/faltenreich/diaguard/main/SetupUseCase.kt @@ -1,14 +1,14 @@ package com.faltenreich.diaguard.main import com.faltenreich.diaguard.backup.legacy.ImportLegacyUseCase -import com.faltenreich.diaguard.backup.seed.SeedImportUseCase +import com.faltenreich.diaguard.backup.seed.ImportSeedUseCase import kotlinx.coroutines.CoroutineDispatcher import kotlinx.coroutines.withContext class SetupUseCase( private val dispatcher: CoroutineDispatcher, private val hasData: HasDataUseCase, - private val importSeed: SeedImportUseCase, + private val importSeed: ImportSeedUseCase, private val importLegacy: ImportLegacyUseCase, ) { diff --git a/shared/src/commonTest/kotlin/com/faltenreich/diaguard/TestSuite.kt b/shared/src/commonTest/kotlin/com/faltenreich/diaguard/TestSuite.kt index f54fb3d7b..2106bde55 100644 --- a/shared/src/commonTest/kotlin/com/faltenreich/diaguard/TestSuite.kt +++ b/shared/src/commonTest/kotlin/com/faltenreich/diaguard/TestSuite.kt @@ -1,7 +1,7 @@ package com.faltenreich.diaguard import androidx.annotation.CallSuper -import com.faltenreich.diaguard.backup.seed.SeedImportUseCase +import com.faltenreich.diaguard.backup.seed.ImportSeedUseCase import com.faltenreich.diaguard.measurement.value.StoreMeasurementValueUseCase import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.test.resetMain @@ -15,7 +15,7 @@ import kotlin.test.BeforeTest interface TestSuite : KoinTest { - val importSeed: SeedImportUseCase + val importSeed: ImportSeedUseCase get() = get() val storeValue: StoreMeasurementValueUseCase