mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-06-02 03:01:28 -04:00
The transactional config-write API exposed raw beginEditSettings /
commitEditSettings pairs, so callers had to remember to commit and could
leak a half-open session. Replace with a scoped builder mirroring the
SDK's AdminApi.editSettings { }:
radioController.editSettings(destNum) {
setOwner(user); setConfig(config); setModuleConfig(...)
}
The new AdminEditScope binds operations to the session's destination, so
InstallProfileUseCase no longer threads destNum + getPacketId() through
every call — its install* helpers become AdminEditScope extensions,
dropping a large amount of boilerplate.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>