refactor(service): harden KMP service layer — database init, connection reliability, handler decomposition (#4992)

This commit is contained in:
James Rich 2026-04-04 13:07:44 -05:00 committed by GitHub
parent e111b61e4e
commit 6af3ad6f0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
62 changed files with 3808 additions and 735 deletions

View file

@ -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) {}

View file

@ -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