getNativeToolkit function
Implementation
BreezSdkCore getNativeToolkit() {
if (_breezSDK == null) {
if (Platform.isAndroid || Platform.isLinux) {
// On Linux the lib needs to be in LD_LIBRARY_PATH or working directory
_breezSDK = BreezSdkCoreImpl(DynamicLibrary.open(_libName));
} else if (Platform.isIOS || Platform.isMacOS) {
try {
_breezSDK = BreezSdkCoreImpl(DynamicLibrary.open("$_iosLibName.framework/$_iosLibName"));
} catch (e) {
_breezSDK = BreezSdkCoreImpl(DynamicLibrary.process());
}
} else {
throw UnsupportedPlatform('${Platform.operatingSystem} is not yet supported!');
}
}
return _breezSDK!;
}