feat: ability to disable monitoring cmds (#840)

This commit is contained in:
lollipopkit🏳️‍⚧️
2025-08-09 12:37:30 +08:00
committed by GitHub
parent 9c9648656d
commit 95f8e571c1
16 changed files with 451 additions and 609 deletions

View File

@@ -112,13 +112,14 @@ class SpiAdapter extends TypeAdapter<Spi> {
envs: (fields[12] as Map?)?.cast<String, String>(),
id: fields[13] == null ? '' : fields[13] as String,
customSystemType: fields[14] as SystemType?,
disabledCmdTypes: (fields[15] as List?)?.cast<String>(),
);
}
@override
void write(BinaryWriter writer, Spi obj) {
writer
..writeByte(15)
..writeByte(16)
..writeByte(0)
..write(obj.name)
..writeByte(1)
@@ -148,7 +149,9 @@ class SpiAdapter extends TypeAdapter<Spi> {
..writeByte(13)
..write(obj.id)
..writeByte(14)
..write(obj.customSystemType);
..write(obj.customSystemType)
..writeByte(15)
..write(obj.disabledCmdTypes);
}
@override