Initial Android notification forwarder

This commit is contained in:
2026-07-06 18:57:40 +08:00
commit 93c4ed9b5b
47 changed files with 3252 additions and 0 deletions
@@ -0,0 +1,33 @@
package com.a2i.forwarder
import android.app.Application
import com.a2i.forwarder.core.LogStore
import com.a2i.forwarder.store.AppRulesStore
import com.a2i.forwarder.store.SettingsStore
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
class A2iApp : Application() {
val appScope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.Default)
lateinit var settings: SettingsStore
private set
lateinit var appRules: AppRulesStore
private set
lateinit var logStore: LogStore
private set
override fun onCreate() {
super.onCreate()
instance = this
settings = SettingsStore(this, appScope)
appRules = AppRulesStore(this, appScope)
logStore = LogStore(this, appScope)
}
companion object {
lateinit var instance: A2iApp
private set
}
}