From 408a090fe2f5a6fe614b0455bb9e3586c4b0c4e6 Mon Sep 17 00:00:00 2001 From: laiiihz Date: Thu, 28 Jan 2021 09:02:37 +0800 Subject: [PATCH] add grinder support --- pubspec.lock | 162 ++++++++++++++++++++++++++++-------------------- pubspec.yaml | 3 +- tool/grind.dart | 15 +++++ 3 files changed, 112 insertions(+), 68 deletions(-) create mode 100644 tool/grind.dart diff --git a/pubspec.lock b/pubspec.lock index 20a23c59..2b54dc19 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -56,7 +56,7 @@ packages: name: ansicolor url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.5" + version: "1.1.1" archive: dependency: transitive description: @@ -105,7 +105,7 @@ packages: name: cached_network_image url: "https://pub.flutter-io.cn" source: hosted - version: "2.3.1" + version: "2.5.0" characters: dependency: transitive description: @@ -126,14 +126,14 @@ packages: name: chewie url: "https://pub.flutter-io.cn" source: hosted - version: "0.9.10" + version: "0.12.2" chewie_audio: dependency: transitive description: name: chewie_audio url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.0+1" + version: "1.1.1" cli_util: dependency: transitive description: @@ -196,7 +196,7 @@ packages: name: crypto url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.4" + version: "2.1.5" css_colors: dependency: transitive description: @@ -308,7 +308,7 @@ packages: name: fluro url: "https://pub.flutter-io.cn" source: hosted - version: "1.6.3" + version: "1.7.8" flustars: dependency: "direct main" description: @@ -348,14 +348,14 @@ packages: name: flutter_cache_manager url: "https://pub.flutter-io.cn" source: hosted - version: "1.4.1" + version: "2.1.1" flutter_datetime_picker: dependency: "direct main" description: name: flutter_datetime_picker url: "https://pub.flutter-io.cn" source: hosted - version: "1.4.0" + version: "1.5.0" flutter_easyrefresh: dependency: "direct main" description: @@ -376,7 +376,7 @@ packages: name: flutter_html url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.2" + version: "1.2.0" flutter_icons: dependency: "direct main" description: @@ -384,6 +384,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.1.0" + flutter_layout_grid: + dependency: transitive + description: + name: flutter_layout_grid + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.10.3" flutter_localizations: dependency: "direct main" description: flutter @@ -444,7 +451,7 @@ packages: name: flutter_svg url: "https://pub.flutter-io.cn" source: hosted - version: "0.18.1" + version: "0.19.1" flutter_swiper: dependency: "direct main" description: @@ -475,7 +482,7 @@ packages: name: font_awesome_flutter url: "https://pub.flutter-io.cn" source: hosted - version: "8.8.1" + version: "8.11.0" foundation_fluttify: dependency: transitive description: @@ -497,6 +504,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.2.0" + grinder: + dependency: "direct dev" + description: + name: grinder + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.8.6" highlight: dependency: transitive description: @@ -524,7 +538,7 @@ packages: name: html url: "https://pub.flutter-io.cn" source: hosted - version: "0.14.0+3" + version: "0.14.0+4" http: dependency: transitive description: @@ -552,7 +566,7 @@ packages: name: image url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.14" + version: "2.1.19" image_picker: dependency: "direct main" description: @@ -574,6 +588,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "1.1.0" + import_js_library: + dependency: transitive + description: + name: import_js_library + url: "https://pub.flutter-io.cn" + source: hosted + version: "1.0.2" import_sorter: dependency: "direct dev" description: @@ -608,7 +629,7 @@ packages: name: json_annotation url: "https://pub.flutter-io.cn" source: hosted - version: "3.0.1" + version: "3.1.1" latlong: dependency: "direct main" description: @@ -664,27 +685,20 @@ packages: name: node_interop url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.1" + version: "1.2.1" node_io: dependency: transitive description: name: node_io url: "https://pub.flutter-io.cn" source: hosted - version: "1.1.1" + version: "1.2.0" octo_image: dependency: transitive description: name: octo_image url: "https://pub.flutter-io.cn" source: hosted - version: "0.2.1" - open_iconic_flutter: - dependency: transitive - description: - name: open_iconic_flutter - url: "https://pub.flutter-io.cn" - source: hosted version: "0.3.0" package_config: dependency: transitive @@ -727,7 +741,7 @@ packages: name: path_provider url: "https://pub.flutter-io.cn" source: hosted - version: "1.6.18" + version: "1.6.27" path_provider_linux: dependency: transitive description: @@ -741,28 +755,28 @@ packages: name: path_provider_macos url: "https://pub.flutter-io.cn" source: hosted - version: "0.0.4+3" + version: "0.0.4+8" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.3" + version: "1.0.4" path_provider_windows: dependency: transitive description: name: path_provider_windows url: "https://pub.flutter-io.cn" source: hosted - version: "0.0.4+1" + version: "0.0.4+3" pedantic: dependency: transitive description: name: pedantic url: "https://pub.flutter-io.cn" source: hosted - version: "1.9.0" + version: "1.9.2" permission_handler: dependency: "direct main" description: @@ -783,14 +797,14 @@ packages: name: petitparser url: "https://pub.flutter-io.cn" source: hosted - version: "3.0.4" + version: "3.1.0" photo_view: dependency: "direct main" description: name: photo_view url: "https://pub.flutter-io.cn" source: hosted - version: "0.10.2" + version: "0.10.3" platform: dependency: transitive description: @@ -798,26 +812,19 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "2.2.1" - platform_detect: - dependency: transitive - description: - name: platform_detect - url: "https://pub.flutter-io.cn" - source: hosted - version: "1.4.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.2" + version: "1.0.3" power_logger: dependency: "direct main" description: path: "." ref: HEAD - resolved-ref: "38c7b0431c56f2357b6ef1298009b9b4ff0586c0" + resolved-ref: "1469b68b32bb5a7d02e6c89c5a9933ef77f738ad" url: "http://192.168.2.201:8099/aku_fe/power_logger.git" source: git version: "0.0.1" @@ -841,7 +848,7 @@ packages: name: provider url: "https://pub.flutter-io.cn" source: hosted - version: "4.3.2+1" + version: "4.3.3" pub_semver: dependency: transitive description: @@ -870,6 +877,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "3.2.0" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.flutter-io.cn" + source: hosted + version: "2.1.5" random_character: dependency: "direct main" description: @@ -899,35 +913,28 @@ packages: name: rxdart url: "https://pub.flutter-io.cn" source: hosted - version: "0.24.1" - screen: - dependency: transitive - description: - name: screen - url: "https://pub.flutter-io.cn" - source: hosted - version: "0.0.5" + version: "0.25.0" shared_preferences: dependency: transitive description: name: shared_preferences url: "https://pub.flutter-io.cn" source: hosted - version: "0.5.10" + version: "0.5.12+4" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux url: "https://pub.flutter-io.cn" source: hosted - version: "0.0.2+2" + version: "0.0.2+4" shared_preferences_macos: dependency: transitive description: name: shared_preferences_macos url: "https://pub.flutter-io.cn" source: hosted - version: "0.0.1+10" + version: "0.0.1+11" shared_preferences_platform_interface: dependency: transitive description: @@ -942,6 +949,13 @@ packages: url: "https://pub.flutter-io.cn" source: hosted version: "0.1.2+7" + shared_preferences_windows: + dependency: transitive + description: + name: shared_preferences_windows + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.0.2+2" shimmer: dependency: "direct main" description: @@ -981,14 +995,14 @@ packages: name: sqflite url: "https://pub.flutter-io.cn" source: hosted - version: "1.3.1+1" + version: "1.3.2+2" sqflite_common: dependency: transitive description: name: sqflite_common url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.2+1" + version: "1.0.3" stack_trace: dependency: transitive description: @@ -1072,28 +1086,28 @@ packages: name: url_launcher_linux url: "https://pub.flutter-io.cn" source: hosted - version: "0.0.1+1" + version: "0.0.1+4" url_launcher_macos: dependency: transitive description: name: url_launcher_macos url: "https://pub.flutter-io.cn" source: hosted - version: "0.0.1+7" + version: "0.0.1+9" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "1.0.8" + version: "1.0.9" url_launcher_web: dependency: transitive description: name: url_launcher_web url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.3+1" + version: "0.1.5+1" uuid: dependency: transitive description: @@ -1128,28 +1142,42 @@ packages: name: video_player url: "https://pub.flutter-io.cn" source: hosted - version: "0.10.12+2" + version: "1.0.1" video_player_platform_interface: dependency: transitive description: name: video_player_platform_interface url: "https://pub.flutter-io.cn" source: hosted - version: "2.1.1" + version: "2.2.0" video_player_web: dependency: transitive description: name: video_player_web url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.3+2" + version: "0.1.4+1" wakelock: dependency: transitive description: name: wakelock url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.4+2" + version: "0.2.1+1" + wakelock_platform_interface: + dependency: transitive + description: + name: wakelock_platform_interface + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.1.0+1" + wakelock_web: + dependency: transitive + description: + name: wakelock_web + url: "https://pub.flutter-io.cn" + source: hosted + version: "0.1.0+3" watcher: dependency: transitive description: @@ -1170,28 +1198,28 @@ packages: name: webview_flutter url: "https://pub.flutter-io.cn" source: hosted - version: "0.3.22+1" + version: "1.0.7" win32: dependency: transitive description: name: win32 url: "https://pub.flutter-io.cn" source: hosted - version: "1.7.3" + version: "1.7.4" xdg_directories: dependency: transitive description: name: xdg_directories url: "https://pub.flutter-io.cn" source: hosted - version: "0.1.0" + version: "0.1.2" xml: dependency: transitive description: name: xml url: "https://pub.flutter-io.cn" source: hosted - version: "4.2.0" + version: "4.5.1" yaml: dependency: transitive description: @@ -1200,5 +1228,5 @@ packages: source: hosted version: "2.2.1" sdks: - dart: ">=2.10.0 <2.11.0" - flutter: ">=1.20.0 <2.0.0" + dart: ">=2.10.2 <2.11.0" + flutter: ">=1.22.2 <2.0.0" diff --git a/pubspec.yaml b/pubspec.yaml index 34d6a3b9..f64e528e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: akuCommunity description: A new Flutter project. publish_to: "none" # Remove this line if you wish to publish to pub.dev -version: 1.0.8+9 +version: 1.0.9-dev+10 environment: sdk: ">=2.7.0 <3.0.0" @@ -103,6 +103,7 @@ dev_dependencies: sdk: flutter import_sorter: ^4.4.1 flutter_asset_generator: ^0.6.1 + grinder: flutter: uses-material-design: true diff --git a/tool/grind.dart b/tool/grind.dart new file mode 100644 index 00000000..707ddd6a --- /dev/null +++ b/tool/grind.dart @@ -0,0 +1,15 @@ +import 'package:grinder/grinder.dart'; + +main(args) => grind(args); + +@Task() +test() => new TestRunner().testAsync(); + +@DefaultTask() +@Depends(test) +build() { + Pub.build(); +} + +@Task() +clean() => defaultClean();