This commit is contained in:
Christien Rioux 2023-07-05 17:48:06 -05:00
parent e3d66b60e4
commit d6999c36a9
22 changed files with 9697 additions and 1183 deletions

View file

@ -112,13 +112,16 @@ class _MyAppState extends State<MyApp> with UiLoggy {
if (startup && !_startedUp) {
var config = await getDefaultVeilidConfig("Veilid Plugin Example");
if (const String.fromEnvironment("DELETE_TABLE_STORE") == "1") {
config.tableStore.delete = true;
config = config.copyWith(
tableStore: config.tableStore.copyWith(delete: true));
}
if (const String.fromEnvironment("DELETE_PROTECTED_STORE") == "1") {
config.protectedStore.delete = true;
config = config.copyWith(
protectedStore: config.protectedStore.copyWith(delete: true));
}
if (const String.fromEnvironment("DELETE_BLOCK_STORE") == "1") {
config.blockStore.delete = true;
config = config.copyWith(
blockStore: config.blockStore.copyWith(delete: true));
}
var updateStream = await Veilid.instance.startupVeilidCore(config);