cloudroam
2025-04-11 cb99bd7dad1b305a434c5c6c99ca65e782eb0f34
app/src/main/java/com/example/firstapp/core/Core.kt
@@ -4,6 +4,7 @@
import androidx.work.Configuration
import com.example.firstapp.App
import com.example.firstapp.database.repository.CodeRepository
import com.example.firstapp.database.repository.KeywordRepository
import com.example.firstapp.database.repository.MsgRepository
import kotlinx.coroutines.launch
@@ -13,6 +14,7 @@
    val msg: MsgRepository by lazy { (app as App).msgRepository }
    val code: CodeRepository by lazy { (app as App).codeRepository }
    val keyword: KeywordRepository by lazy { (app as App).keywordRepository }
    fun init(app: Application) {
        this.app = app