package com.example.kbbidictionary.domain import com.example.kbbidictionary.data.module.ModuleInstaller import com.example.kbbidictionary.data.module.ModuleManifest import java.io.File class UpdateModuleUseCase( private val installer: ModuleInstaller, ) { suspend operator fun invoke(downloadedTempFile: File, manifest: ModuleManifest): ModuleInstaller.InstallResult { // In production: check minAppVersion/dbSchemaVersion, download via HTTPS, // verify checksum/signature, then atomic install and registry update. return installer.install(downloadedTempFile, manifest) } }