From 9efa13c1c9b7edc2591b88e4c5d00d7e76746610 Mon Sep 17 00:00:00 2001 From: Think Wu Date: Sat, 18 Apr 2020 21:48:51 +0800 Subject: [PATCH] update pubspec.yaml & publish workflow --- .github/workflows/check.yaml | 1 - .github/workflows/publish.yaml | 3 +++ example/pubspec.lock | 2 +- pubspec.yaml | 48 ++-------------------------------- 4 files changed, 6 insertions(+), 48 deletions(-) diff --git a/.github/workflows/check.yaml b/.github/workflows/check.yaml index 0739431..689a036 100644 --- a/.github/workflows/check.yaml +++ b/.github/workflows/check.yaml @@ -12,7 +12,6 @@ jobs: run: | cd example && flutter analyze && cd .. flutter test - ls $FLUTTER_HOME/bin/cache/dart-sdk - name: notification if: cancelled() == false uses: xinthink/action-telegram@v1.1 diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index c9c8c90..d8156d6 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -10,6 +10,9 @@ jobs: steps: - uses: actions/checkout@v1 - uses: subosito/flutter-action@v1 + - name: Format + run: | + $FLUTTER_HOME/bin/cache/dart-sdk/bin/dartfmt -l 80 -w . - name: Publish run: | flutter pub get diff --git a/example/pubspec.lock b/example/pubspec.lock index 5963ceb..dc0bc54 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -70,7 +70,7 @@ packages: path: ".." relative: true source: path - version: "0.1.0-dev" + version: "0.1.0" flutter: dependency: "direct main" description: flutter diff --git a/pubspec.yaml b/pubspec.yaml index 0639ea6..3e528e2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flt_worker -description: The flt_worker plugin allows you to schedule and execute Dart background tasks in a dedicated isolate, by utilizing the WorkManager API on Android, and the BackgroundTasks API on iOS 13, respectively. -version: 0.1.0-dev +description: The flt_worker plugin allows you to schedule and execute Dart background tasks, based on the WorkManager and the BackgroundTasks APIs, for Android and iOS 13+ respectively. +version: 0.1.0 homepage: https://github.com/xinthink/flt_worker/ repository: https://github.com/xinthink/flt_worker/ @@ -17,20 +17,7 @@ dev_dependencies: sdk: flutter pedantic: ^1.8.0 -# For information on the generic Dart part of this file, see the -# following page: https://dart.dev/tools/pub/pubspec - -# The following section is specific to Flutter. flutter: - # This section identifies this Flutter project as a plugin project. - # The 'pluginClass' and Android 'package' identifiers should not ordinarily - # be modified. They are used by the tooling to maintain consistency when - # adding or updating assets for this project. - # - # NOTE: This new plugin description format is not supported on Flutter's - # stable channel as of 1.9.1. A plugin published using this format will not - # work for most clients until the next major stable release. - # However, it is required in order to declare macOS support. plugin: platforms: android: @@ -38,34 +25,3 @@ flutter: pluginClass: FltWorkerPlugin ios: pluginClass: FltWorkerPlugin - - # To add assets to your plugin package, add an assets section, like this: - # assets: - # - images/a_dot_burr.jpeg - # - images/a_dot_ham.jpeg - # - # For details regarding assets in packages, see - # https://flutter.dev/assets-and-images/#from-packages - # - # An image asset can refer to one or more resolution-specific "variants", see - # https://flutter.dev/assets-and-images/#resolution-aware. - - # To add custom fonts to your plugin package, add a fonts section here, - # in this "flutter" section. Each entry in this list should have a - # "family" key with the font family name, and a "fonts" key with a - # list giving the asset and other descriptors for the font. For - # example: - # fonts: - # - family: Schyler - # fonts: - # - asset: fonts/Schyler-Regular.ttf - # - asset: fonts/Schyler-Italic.ttf - # style: italic - # - family: Trajan Pro - # fonts: - # - asset: fonts/TrajanPro.ttf - # - asset: fonts/TrajanPro_Bold.ttf - # weight: 700 - # - # For details regarding fonts in packages, see - # https://flutter.dev/custom-fonts/#from-packages