checkpoint before android work

This commit is contained in:
John Smith 2022-03-11 07:35:41 -05:00
parent 2a9522cc24
commit 82f680b35f
14 changed files with 61 additions and 88 deletions

View file

@ -7,7 +7,7 @@ Future<VeilidConfig> getDefaultVeilidConfig() async {
return VeilidConfig(
programName: "Veilid Plugin Test",
namespace: "",
apiLogLevel: VeilidConfigLogLevel.trace,
apiLogLevel: VeilidConfigLogLevel.info,
capabilities: VeilidConfigCapabilities(
protocolUDP: !kIsWeb,
protocolConnectTCP: !kIsWeb,

View file

@ -42,9 +42,9 @@ void setRootLogLevel(LogLevel? level) {
void initLoggy() {
Loggy.initLoggy(
logPrinter: ConsolePrinter(
logPrinter: StreamPrinter(ConsolePrinter(
const PrettyDeveloperPrinter(),
),
)),
logOptions: getLogOptions(null),
);
}
@ -90,14 +90,16 @@ class _MyAppState extends State<MyApp> with UiLoggy {
// We also handle the message potentially returning null.
try {
veilidVersion = Veilid.instance.veilidVersionString();
} on PlatformException {
} on Exception {
veilidVersion = 'Failed to get veilid version.';
}
loggy.error("Error test");
loggy.warning("Warning test");
loggy.info("Info test");
loggy.debug("Debug test");
loggy.trace("Trace test");
// In case of hot restart shut down first
try {
await Veilid.instance.shutdownVeilidCore();
} on Exception {
//
}
// If the widget was removed from the tree while the asynchronous platform
// message was in flight, we want to discard the reply rather than calling