flutter fix
This commit is contained in:
		
							
								
								
									
										2
									
								
								external/cursive
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								external/cursive
									
									
									
									
										vendored
									
									
								
							 Submodule external/cursive updated: 7df15342b1...250d35f37f
									
								
							| @@ -110,8 +110,18 @@ class _MyAppState extends State<MyApp> with UiLoggy { | |||||||
|  |  | ||||||
|   Future<void> toggleStartup(bool startup) async { |   Future<void> toggleStartup(bool startup) async { | ||||||
|     if (startup && !_startedUp) { |     if (startup && !_startedUp) { | ||||||
|       var updateStream = await Veilid.instance.startupVeilidCore( |       var config = await getDefaultVeilidConfig("Veilid Plugin Example"); | ||||||
|           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(() { |       setState(() { | ||||||
|         _updateStream = updateStream; |         _updateStream = updateStream; | ||||||
|         _updateProcessor = processUpdates(); |         _updateProcessor = processUpdates(); | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								veilid-flutter/example/run_with_reset.bat
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								veilid-flutter/example/run_with_reset.bat
									
									
									
									
									
										Normal file
									
								
							| @@ -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 | ||||||
							
								
								
									
										2
									
								
								veilid-flutter/example/run_with_reset.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										2
									
								
								veilid-flutter/example/run_with_reset.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -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 | ||||||
		Reference in New Issue
	
	Block a user