flutter work

This commit is contained in:
John Smith
2022-12-03 18:08:53 -05:00
parent fa3ad29d21
commit 3e24154e3d
7 changed files with 42 additions and 8 deletions

View File

@@ -1556,6 +1556,10 @@ abstract class VeilidAPIException implements Exception {
return VeilidAPIExceptionMissingArgument(
json["context"], json["argument"]);
}
case "Generic":
{
return VeilidAPIExceptionGeneric(json["message"]);
}
default:
{
throw VeilidAPIExceptionInternal(
@@ -1681,6 +1685,18 @@ class VeilidAPIExceptionMissingArgument implements VeilidAPIException {
VeilidAPIExceptionMissingArgument(this.context, this.argument);
}
class VeilidAPIExceptionGeneric implements VeilidAPIException {
final String message;
@override
String toString() {
return "VeilidAPIException: Generic (message: $message)";
}
//
VeilidAPIExceptionGeneric(this.message);
}
//////////////////////////////////////
/// VeilidVersion

View File

@@ -16,7 +16,7 @@ const _base = 'veilid_flutter';
final _path = Platform.isWindows
? '$_base.dll'
: Platform.isMacOS
? 'lib$_base.dylib'
? 'veilid.framework/Resources/lib$_base.dylib'
: 'lib$_base.so';
final _dylib =
Platform.isIOS ? DynamicLibrary.process() : DynamicLibrary.open(_path);