getDylibPath function

String getDylibPath()

Implementation

String getDylibPath() {
  String path = '';
  if (Platform.isWindows) {
    path = Windows().getCurrentPath();
  } else if (Platform.isLinux) {
    path = Linux().getCurrentPath();
  } else if (Platform.isMacOS) {
    path = Macos().getCurrentPath();
  } else {
    throw 'The version lib doesn\'t support the platform';
  }
  for (String element in Tools.getDyLibNameByPlatform(isOrigin: true)) {
    path = join(path, element);
  }
  return path;
}