flutter work
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user