cloudroam
2025-02-28 1097c45d8d6aa4b74a50e8d9a99dedab73f2bbad
app/src/main/java/com/example/firstapp/core/Core.kt
@@ -4,7 +4,9 @@
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 com.example.firstapp.database.repository.ReminderRepository
import kotlinx.coroutines.launch
@@ -13,6 +15,8 @@
    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 }
    val reminder: ReminderRepository by lazy { (app as App).reminderRepository }
    fun init(app: Application) {
        this.app = app