Files
Meshtastic-Android/core
James Rich 2c0012916b refactor: Replace begin/commitEditSettings with editSettings DSL
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>
2026-05-29 09:50:35 -05:00
..