mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2025-12-17 07:14:28 +01:00
chore: dart 3+
This commit is contained in:
@@ -133,9 +133,7 @@ class AppUpdatePlatformSpecific<T> {
|
|||||||
return linux;
|
return linux;
|
||||||
|
|
||||||
/// Not implemented yet.
|
/// Not implemented yet.
|
||||||
case OS.web:
|
case OS.web || OS.fuchsia || OS.unknown:
|
||||||
case OS.fuchsia:
|
|
||||||
case OS.unknown:
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -325,7 +325,7 @@ class ServerProvider extends ChangeNotifier {
|
|||||||
Loggers.app.warning('Write script to ${spi.name} failed', e);
|
Loggers.app.warning('Write script to ${spi.name} failed', e);
|
||||||
return;
|
return;
|
||||||
} finally {
|
} finally {
|
||||||
await file.delete();
|
if (await file.exists()) await file.delete();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ void _runInZone(void Function() body) {
|
|||||||
body,
|
body,
|
||||||
(obj, trace) {
|
(obj, trace) {
|
||||||
Analysis.recordException(trace);
|
Analysis.recordException(trace);
|
||||||
Loggers.root.warning(obj, trace);
|
Loggers.root.warning(obj);
|
||||||
},
|
},
|
||||||
zoneSpecification: zoneSpec,
|
zoneSpecification: zoneSpec,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ publish_to: 'none'
|
|||||||
version: 1.0.0+1
|
version: 1.0.0+1
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.17.0 <3.0.0"
|
sdk: ">=3.0.0"
|
||||||
|
|
||||||
dependencies:
|
dependencies:
|
||||||
archive: ^3.3.8
|
archive: ^3.3.8
|
||||||
|
|||||||
Reference in New Issue
Block a user