From 4bdddcdfedd9fd93e4b9dc53ecfd4b9baa56749f Mon Sep 17 00:00:00 2001 From: thomashii Date: Tue, 26 Apr 2022 08:20:54 +0800 Subject: [PATCH] Updated to dart SDK 2.16.0 --- bin/dev.dart | 4 ++-- bin/prod.dart | 5 ++--- pubspec.yaml | 22 +++++++++++----------- 3 files changed, 15 insertions(+), 16 deletions(-) diff --git a/bin/dev.dart b/bin/dev.dart index 9f91e35..b007272 100644 --- a/bin/dev.dart +++ b/bin/dev.dart @@ -11,7 +11,7 @@ void main() async { hierarchicalLoggingEnabled = true; var hot = HotReloader(() async { - var logger = Logger.detached('{{angel}}') + var logger = Logger.detached('Angel3') ..level = Level.ALL ..onRecord.listen(prettyLog); var app = Angel(logger: logger, reflector: MirrorsReflector()); @@ -24,5 +24,5 @@ void main() async { var server = await hot.startServer('127.0.0.1', 3000); print( - '{{angel}} server listening at http://${server.address.address}:${server.port}'); + '[Angel3] server listening at http://${server.address.address}:${server.port}'); } diff --git a/bin/prod.dart b/bin/prod.dart index 1ae562b..3f03771 100644 --- a/bin/prod.dart +++ b/bin/prod.dart @@ -17,7 +17,7 @@ import 'package:angel/angel.dart'; // so use it if possible. // // However, the following alternatives exist: -// * Generation via `package:angel_container_generator` +// * Generation via `package:angel3_container_generator` // * Creating an instance of `StaticReflector` // * Manually implementing the `Reflector` interface (cumbersome; not recommended) // @@ -26,5 +26,4 @@ import 'package:angel/angel.dart'; // // https://gitter.im/angel_dart/discussion void main(List args) => - Runner('{{angel}}', configureServer, reflector: MirrorsReflector()) - .run(args); + Runner('Angel3', configureServer, reflector: MirrorsReflector()).run(args); diff --git a/pubspec.yaml b/pubspec.yaml index 0b3566a..ad59382 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -3,21 +3,21 @@ version: 1.0.0 description: A basic starter application template for Angel3 framework publish_to: none environment: - sdk: '>=2.12.0 <3.0.0' + sdk: '>=2.16.0 <3.0.0' dependencies: - angel3_auth: ^4.0.0 - angel3_configuration: ^4.1.0 - angel3_framework: ^4.2.0 - angel3_jael: ^4.2.0 - angel3_production: ^3.1.0 - angel3_static: ^4.1.0 - angel3_validate: ^4.0.0 + angel3_auth: ^6.0.0 + angel3_configuration: ^6.0.0 + angel3_framework: ^6.0.0 + angel3_jael: ^6.0.0 + angel3_production: ^6.0.0 + angel3_static: ^6.0.0 + angel3_validate: ^6.0.0 belatuk_pretty_logging: ^4.0.0 dev_dependencies: - angel3_hot: ^4.2.0 - angel3_test: ^4.0.0 + angel3_hot: ^6.0.0 + angel3_test: ^6.0.0 io: ^1.0.0 - test: ^1.17.5 + test: ^1.21.0 lints: ^1.0.0