This commit is contained in:
马增飞
2025-11-13 18:10:34 +08:00
parent 10059bf4f6
commit 99001fff2f
5 changed files with 266 additions and 3 deletions
@@ -6,6 +6,7 @@ import android.content.Intent
import android.content.IntentFilter
import android.content.SharedPreferences
import com.shuwei.intelligent.shelves.utils.BootReceiver
import com.shuwei.intelligent.shelves.utils.CrashHandler
/**
* @author: star
@@ -17,6 +18,7 @@ class App : Application() {
override fun onCreate() {
super.onCreate()
app = this
CrashHandler.init(this)
val filter = IntentFilter(Intent.ACTION_BOOT_COMPLETED)
registerReceiver(BootReceiver(), filter)
}