diff --git a/external/cursive b/external/cursive index 7df15342..250d35f3 160000 --- a/external/cursive +++ b/external/cursive @@ -1 +1 @@ -Subproject commit 7df15342b1f08b6b7a5cdc7aa8f97342d2e4ad7b +Subproject commit 250d35f37f526221539c8d59d7a2056803bf0010 diff --git a/veilid-flutter/example/lib/app.dart b/veilid-flutter/example/lib/app.dart index 06576424..4907f682 100644 --- a/veilid-flutter/example/lib/app.dart +++ b/veilid-flutter/example/lib/app.dart @@ -110,8 +110,18 @@ class _MyAppState extends State with UiLoggy { Future toggleStartup(bool startup) async { if (startup && !_startedUp) { - var updateStream = await Veilid.instance.startupVeilidCore( - await getDefaultVeilidConfig("Veilid Plugin Example")); + var config = await getDefaultVeilidConfig("Veilid Plugin Example"); + if (const String.fromEnvironment("DELETE_TABLE_STORE") == "1") { + config.tableStore.delete = true; + } + if (const String.fromEnvironment("DELETE_PROTECTED_STORE") == "1") { + config.protectedStore.delete = true; + } + if (const String.fromEnvironment("DELETE_BLOCK_STORE") == "1") { + config.blockStore.delete = true; + } + + var updateStream = await Veilid.instance.startupVeilidCore(config); setState(() { _updateStream = updateStream; _updateProcessor = processUpdates(); diff --git a/veilid-flutter/example/run_with_reset.bat b/veilid-flutter/example/run_with_reset.bat new file mode 100644 index 00000000..3d53a241 --- /dev/null +++ b/veilid-flutter/example/run_with_reset.bat @@ -0,0 +1,2 @@ +@echo off +flutter run --dart-define=DELETE_TABLE_STORE=1 --dart-define=DELETE_PROTECTED_STORE=1 --dart-define=DELETE_BLOCK_STORE=1 diff --git a/veilid-flutter/example/run_with_reset.sh b/veilid-flutter/example/run_with_reset.sh new file mode 100755 index 00000000..eb6fda85 --- /dev/null +++ b/veilid-flutter/example/run_with_reset.sh @@ -0,0 +1,2 @@ +#!/bin/bash +flutter run --dart-define=DELETE_TABLE_STORE=1 --dart-define=DELETE_PROTECTED_STORE=1 --dart-define=DELETE_BLOCK_STORE=1