getDyLibNameByPlatform static method
List<String>
getDyLibNameByPlatform(
{ - dynamic isOrigin = false,
})
Implementation
static List<String> getDyLibNameByPlatform({isOrigin = false}) {
if (Platform.isWindows) {
// return ["libtestWindowsLib.dll"];
return [isOrigin ? "ImSDK.dll" : "libim_flutter_desktop_lib.dll"];
} else if (Platform.isMacOS) {
if (SysInfo.kernelArchitecture == "arm64") {
return [
isOrigin ? "libImSDKForMac_C.dylib" : "libim_flutter_desktop_lib_arm64.dylib",
];
} else {
return [
isOrigin ? "libImSDKForMac_C.dylib" : "libim_flutter_desktop_lib.dylib",
];
}
}
return [];
}