add desktop

This commit is contained in:
csf
2022-05-23 16:02:37 +08:00
parent 222245a60c
commit a23fa7fc66
7 changed files with 28 additions and 13 deletions

View File

@@ -59,6 +59,11 @@ class PlatformFFI {
static Future<Null> init() async {
isIOS = Platform.isIOS;
isAndroid = Platform.isAndroid;
isDesktop = Platform.isWindows || Platform.isMacOS || Platform.isLinux;
if (isDesktop) {
// TODO
return;
}
final dylib = Platform.isAndroid
? DynamicLibrary.open('librustdesk.so')
: DynamicLibrary.process();