mirror of
https://github.com/kunkundi/crossdesk.git
synced 2026-10-17 09:23:10 +08:00
[feat] add native Android controller
This commit is contained in:
@@ -56,6 +56,7 @@ const char* HostPlatformName(HostPlatform platform) {
|
||||
case HostPlatform::MacOS: return "macos";
|
||||
case HostPlatform::Linux: return "linux";
|
||||
case HostPlatform::IOS: return "ios";
|
||||
case HostPlatform::Android: return "android";
|
||||
default: return "unknown";
|
||||
}
|
||||
}
|
||||
@@ -65,6 +66,7 @@ HostPlatform ParseHostPlatform(const std::string& platform) {
|
||||
if (platform == "macos") return HostPlatform::MacOS;
|
||||
if (platform == "linux") return HostPlatform::Linux;
|
||||
if (platform == "ios") return HostPlatform::IOS;
|
||||
if (platform == "android") return HostPlatform::Android;
|
||||
return HostPlatform::Unknown;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user