opt.: OS type

This commit is contained in:
lollipopkit
2023-09-17 15:21:12 +08:00
parent 603e226995
commit f47aacaf6f
8 changed files with 95 additions and 91 deletions

View File

@@ -112,12 +112,12 @@ class AppUpdatePlatformSpecific<T> {
};
T? get current {
switch (platform) {
case PlatformType.macos:
switch (OS.type) {
case OS.macos:
return mac;
case PlatformType.ios:
case OS.ios:
return ios;
case PlatformType.android:
case OS.android:
return android;
default:
return null;