mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
refactor(service): harden KMP service layer — database init, connection reliability, handler decomposition (#4992)
This commit is contained in:
parent
e111b61e4e
commit
6af3ad6f0c
62 changed files with 3808 additions and 735 deletions
|
|
@ -73,8 +73,9 @@ class FakeRadioController :
|
|||
favoritedNodes.add(nodeNum)
|
||||
}
|
||||
|
||||
override suspend fun sendSharedContact(nodeNum: Int) {
|
||||
override suspend fun sendSharedContact(nodeNum: Int): Boolean {
|
||||
sentSharedContacts.add(nodeNum)
|
||||
return true
|
||||
}
|
||||
|
||||
override suspend fun setLocalConfig(config: org.meshtastic.proto.Config) {}
|
||||
|
|
|
|||
|
|
@ -46,6 +46,9 @@ class FakeRadioInterfaceService(override val serviceScope: CoroutineScope = Main
|
|||
private val _meshActivity = MutableSharedFlow<MeshActivity>()
|
||||
override val meshActivity: SharedFlow<MeshActivity> = _meshActivity
|
||||
|
||||
private val _connectionError = MutableSharedFlow<String>()
|
||||
override val connectionError: SharedFlow<String> = _connectionError
|
||||
|
||||
val sentToRadio = mutableListOf<ByteArray>()
|
||||
var connectCalled = false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue