From 731667db1ac658a6f6064ef328d04eb1d47c20ff Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期一, 31 三月 2025 13:53:02 +0800
Subject: [PATCH] fix 登录

---
 app/src/main/java/com/example/firstapp/App.kt |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/app/src/main/java/com/example/firstapp/App.kt b/app/src/main/java/com/example/firstapp/App.kt
index 93f6053..7c60e3a 100644
--- a/app/src/main/java/com/example/firstapp/App.kt
+++ b/app/src/main/java/com/example/firstapp/App.kt
@@ -23,7 +23,10 @@
 import com.hjq.language.OnLanguageListener
 import com.example.firstapp.core.Core
 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 com.example.firstapp.database.service.RetrofitClient
 import com.example.firstapp.receiver.CactusReceiver
 import com.example.firstapp.service.BluetoothScanService
 import com.example.firstapp.service.HttpServerService
@@ -36,6 +39,7 @@
 import com.example.firstapp.utils.FRPC_LIB_VERSION
 import com.example.firstapp.utils.HistoryUtils
 import com.example.firstapp.utils.Log
+import com.example.firstapp.utils.PreferencesManager
 import com.example.firstapp.utils.SettingUtils
 import com.example.firstapp.utils.SharedPreference
 
@@ -65,6 +69,8 @@
     val database by lazy { AppDatabase.getInstance(this) }
     val msgRepository by lazy { MsgRepository(database.msgDao()) }
     val codeRepository by lazy { CodeRepository(database.codeDao()) }
+    val reminderRepository by lazy { ReminderRepository(database.reminderDao()) }
+    val keywordRepository by lazy { KeywordRepository(RetrofitClient.apiService,database.keywordDao()) }
 
     companion object {
         const val TAG: String = "SmsForwarder"
@@ -149,7 +155,7 @@
         try {
             context = applicationContext
             initLibs()
-
+            PreferencesManager.init(this)
             //纯客户端模式
             if (SettingUtils.enablePureClientMode) return
 

--
Gitblit v1.9.3