From 0b9ce2a3c9542c93d938331eca3cddad08f41d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=81=A5=E8=8E=B9?= Date: Sun, 27 Oct 2024 17:06:46 +0800 Subject: [PATCH] wip: First major release. --- .github/workflows/build.yml | 8 ++++---- .github/workflows/lint.yml | 4 ++-- .github/workflows/test.yml | 2 +- packages/auto_updater/CHANGELOG.md | 5 +++++ packages/auto_updater/analysis_options.yaml | 2 +- .../auto_updater/example/analysis_options.yaml | 2 +- .../auto_updater/example/lib/pages/home.dart | 17 ++++++++--------- .../Flutter/GeneratedPluginRegistrant.swift | 4 ++-- .../auto_updater/example/macos/Podfile.lock | 10 +++++----- packages/auto_updater/example/pubspec.yaml | 5 ++--- packages/auto_updater/pubspec.yaml | 10 +++++----- packages/auto_updater_macos/CHANGELOG.md | 4 ++++ .../auto_updater_macos/analysis_options.yaml | 2 +- packages/auto_updater_macos/pubspec.yaml | 6 +++--- .../CHANGELOG.md | 4 ++++ .../analysis_options.yaml | 2 +- .../pubspec.yaml | 4 ++-- packages/auto_updater_windows/CHANGELOG.md | 4 ++++ .../auto_updater_windows/analysis_options.yaml | 2 +- packages/auto_updater_windows/pubspec.yaml | 6 +++--- pubspec.yaml | 2 +- 21 files changed, 60 insertions(+), 45 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d98bec8..37df15b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -13,7 +13,7 @@ jobs: # - uses: actions/checkout@v3 # - uses: subosito/flutter-action@v2 # with: - # flutter-version: "3.19.2" + # flutter-version: "3.24.3" # channel: "stable" # - run: | # sudo apt-get update @@ -30,7 +30,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.19.2" + flutter-version: "3.24.3" channel: "stable" - uses: bluefireteam/melos-action@v3 - working-directory: ./packages/auto_updater/example @@ -43,7 +43,7 @@ jobs: # - uses: actions/checkout@v3 # - uses: subosito/flutter-action@v2 # with: - # flutter-version: "3.19.2" + # flutter-version: "3.24.3" # channel: "stable" # - uses: bluefireteam/melos-action@v3 # - working-directory: ./packages/auto_updater/example @@ -56,7 +56,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.19.2" + flutter-version: "3.24.3" channel: "stable" - uses: bluefireteam/melos-action@v3 - working-directory: ./packages/auto_updater/example diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 85d682d..560be9c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.19.2" + flutter-version: "3.24.3" channel: "stable" - uses: bluefireteam/melos-action@v3 - run: melos run analyze @@ -24,7 +24,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.19.2" + flutter-version: "3.24.3" channel: "stable" cache: true - uses: bluefireteam/melos-action@v3 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7aa4a36..394765d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,7 +13,7 @@ jobs: - uses: actions/checkout@v3 - uses: subosito/flutter-action@v2 with: - flutter-version: "3.19.2" + flutter-version: "3.24.3" channel: "stable" cache: true - uses: bluefireteam/melos-action@v3 diff --git a/packages/auto_updater/CHANGELOG.md b/packages/auto_updater/CHANGELOG.md index d1d696f..9e4d60f 100644 --- a/packages/auto_updater/CHANGELOG.md +++ b/packages/auto_updater/CHANGELOG.md @@ -1,3 +1,8 @@ +## 1.0.0 + +* First major release. +* [macos] Solve deprecate 'setFeedURL' (#66) + ## 0.2.1 * chore(windows): Support before-quit-for-update event diff --git a/packages/auto_updater/analysis_options.yaml b/packages/auto_updater/analysis_options.yaml index 095b1d6..9033bb2 100644 --- a/packages/auto_updater/analysis_options.yaml +++ b/packages/auto_updater/analysis_options.yaml @@ -1 +1 @@ -include: package:mostly_reasonable_lints/flutter.yaml +include: package:mostly_reasonable_lints/analysis_options.yaml diff --git a/packages/auto_updater/example/analysis_options.yaml b/packages/auto_updater/example/analysis_options.yaml index 095b1d6..9033bb2 100644 --- a/packages/auto_updater/example/analysis_options.yaml +++ b/packages/auto_updater/example/analysis_options.yaml @@ -1 +1 @@ -include: package:mostly_reasonable_lints/flutter.yaml +include: package:mostly_reasonable_lints/analysis_options.yaml diff --git a/packages/auto_updater/example/lib/pages/home.dart b/packages/auto_updater/example/lib/pages/home.dart index 820b940..6100015 100644 --- a/packages/auto_updater/example/lib/pages/home.dart +++ b/packages/auto_updater/example/lib/pages/home.dart @@ -2,7 +2,6 @@ import 'package:auto_updater/auto_updater.dart'; import 'package:bot_toast/bot_toast.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; -import 'package:preference_list/preference_list.dart'; import 'package:window_manager/window_manager.dart'; class HomePage extends StatefulWidget { @@ -51,31 +50,31 @@ class _HomePageState extends State with UpdaterListener { } Widget _buildBody(BuildContext context) { - return PreferenceList( + return ListView( children: [ - PreferenceListSection( - title: const Text('METHODS'), + Column( + // title: const Text('METHODS'), children: [ - PreferenceListItem( + ListTile( title: const Text('setFeedURL'), - detailText: Text(_feedURL), + trailing: Text(_feedURL), onTap: () { _handleClickSetFeedURL(); }, ), - PreferenceListItem( + ListTile( title: const Text('checkForUpdates'), onTap: () { _handleClickCheckForUpdates(); }, ), - PreferenceListItem( + ListTile( title: const Text('checkForUpdatesWithoutUI'), onTap: () { _handleClickCheckForUpdatesWithoutUI(); }, ), - PreferenceListItem( + ListTile( title: const Text('setScheduledCheckInterval'), onTap: () { _handleClickSetScheduledCheckInterval(); diff --git a/packages/auto_updater/example/macos/Flutter/GeneratedPluginRegistrant.swift b/packages/auto_updater/example/macos/Flutter/GeneratedPluginRegistrant.swift index 2a7ec7c..cd7f04f 100644 --- a/packages/auto_updater/example/macos/Flutter/GeneratedPluginRegistrant.swift +++ b/packages/auto_updater/example/macos/Flutter/GeneratedPluginRegistrant.swift @@ -6,11 +6,11 @@ import FlutterMacOS import Foundation import auto_updater_macos -import screen_retriever +import screen_retriever_macos import window_manager func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { AutoUpdaterMacosPlugin.register(with: registry.registrar(forPlugin: "AutoUpdaterMacosPlugin")) - ScreenRetrieverPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverPlugin")) + ScreenRetrieverMacosPlugin.register(with: registry.registrar(forPlugin: "ScreenRetrieverMacosPlugin")) WindowManagerPlugin.register(with: registry.registrar(forPlugin: "WindowManagerPlugin")) } diff --git a/packages/auto_updater/example/macos/Podfile.lock b/packages/auto_updater/example/macos/Podfile.lock index a2c50b5..7e135f3 100644 --- a/packages/auto_updater/example/macos/Podfile.lock +++ b/packages/auto_updater/example/macos/Podfile.lock @@ -3,7 +3,7 @@ PODS: - FlutterMacOS - Sparkle - FlutterMacOS (1.0.0) - - screen_retriever (0.0.1): + - screen_retriever_macos (0.0.1): - FlutterMacOS - Sparkle (2.5.2) - window_manager (0.2.0): @@ -12,7 +12,7 @@ PODS: DEPENDENCIES: - auto_updater_macos (from `Flutter/ephemeral/.symlinks/plugins/auto_updater_macos/macos`) - FlutterMacOS (from `Flutter/ephemeral`) - - screen_retriever (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos`) + - screen_retriever_macos (from `Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macos`) - window_manager (from `Flutter/ephemeral/.symlinks/plugins/window_manager/macos`) SPEC REPOS: @@ -24,15 +24,15 @@ EXTERNAL SOURCES: :path: Flutter/ephemeral/.symlinks/plugins/auto_updater_macos/macos FlutterMacOS: :path: Flutter/ephemeral - screen_retriever: - :path: Flutter/ephemeral/.symlinks/plugins/screen_retriever/macos + screen_retriever_macos: + :path: Flutter/ephemeral/.symlinks/plugins/screen_retriever_macos/macos window_manager: :path: Flutter/ephemeral/.symlinks/plugins/window_manager/macos SPEC CHECKSUMS: auto_updater_macos: 3e3462c418fe4e731917eacd8d28eef7af84086d FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - screen_retriever: 59634572a57080243dd1bf715e55b6c54f241a38 + screen_retriever_macos: 776e0fa5d42c6163d2bf772d22478df4b302b161 Sparkle: 0e335e5c704ac28dbea18cc0383e15a3927c28dc window_manager: 3a1844359a6295ab1e47659b1a777e36773cd6e8 diff --git a/packages/auto_updater/example/pubspec.yaml b/packages/auto_updater/example/pubspec.yaml index 29a0811..a8d2512 100644 --- a/packages/auto_updater/example/pubspec.yaml +++ b/packages/auto_updater/example/pubspec.yaml @@ -12,13 +12,12 @@ dependencies: bot_toast: ^4.1.3 flutter: sdk: flutter - preference_list: ^0.0.1 - window_manager: ^0.3.8 + window_manager: ^0.4.3 dev_dependencies: flutter_test: sdk: flutter - mostly_reasonable_lints: ^0.1.1 + mostly_reasonable_lints: ^0.1.2 flutter: uses-material-design: true diff --git a/packages/auto_updater/pubspec.yaml b/packages/auto_updater/pubspec.yaml index dc7d9a9..8d4c2a8 100644 --- a/packages/auto_updater/pubspec.yaml +++ b/packages/auto_updater/pubspec.yaml @@ -1,6 +1,6 @@ name: auto_updater description: This plugin allows Flutter desktop apps to automatically update themselves (based on sparkle and winsparkle). -version: 0.2.1 +version: 1.0.0 homepage: https://github.com/leanflutter/auto_updater platforms: @@ -15,9 +15,9 @@ environment: flutter: ">=3.3.0" dependencies: - auto_updater_macos: ^0.2.0 - auto_updater_platform_interface: ^0.2.0 - auto_updater_windows: ^0.2.1 + auto_updater_macos: ^1.0.0 + auto_updater_platform_interface: ^1.0.0 + auto_updater_windows: ^1.0.0 flutter: sdk: flutter json_annotation: ^4.8.0 @@ -29,7 +29,7 @@ dev_dependencies: flutter_test: sdk: flutter json_serializable: ^6.6.0 - mostly_reasonable_lints: ^0.1.1 + mostly_reasonable_lints: ^0.1.2 flutter: plugin: diff --git a/packages/auto_updater_macos/CHANGELOG.md b/packages/auto_updater_macos/CHANGELOG.md index 2f145ce..ada13fa 100644 --- a/packages/auto_updater_macos/CHANGELOG.md +++ b/packages/auto_updater_macos/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0 + +* First major release. + ## 0.2.0 * First release. diff --git a/packages/auto_updater_macos/analysis_options.yaml b/packages/auto_updater_macos/analysis_options.yaml index 095b1d6..9033bb2 100644 --- a/packages/auto_updater_macos/analysis_options.yaml +++ b/packages/auto_updater_macos/analysis_options.yaml @@ -1 +1 @@ -include: package:mostly_reasonable_lints/flutter.yaml +include: package:mostly_reasonable_lints/analysis_options.yaml diff --git a/packages/auto_updater_macos/pubspec.yaml b/packages/auto_updater_macos/pubspec.yaml index 99d67ca..f26e44f 100644 --- a/packages/auto_updater_macos/pubspec.yaml +++ b/packages/auto_updater_macos/pubspec.yaml @@ -1,6 +1,6 @@ name: auto_updater_macos description: macOS implementation of the auto_updater plugin. -version: 0.2.0 +version: 1.0.0 repository: https://github.com/leanflutter/auto_updater/tree/main/packages/auto_updater_macos environment: @@ -8,14 +8,14 @@ environment: flutter: '>=3.3.0' dependencies: - auto_updater_platform_interface: ^0.2.0 flutter: sdk: flutter + plugin_platform_interface: ^2.0.0 dev_dependencies: flutter_test: sdk: flutter - mostly_reasonable_lints: ^0.1.1 + mostly_reasonable_lints: ^0.1.2 flutter: plugin: diff --git a/packages/auto_updater_platform_interface/CHANGELOG.md b/packages/auto_updater_platform_interface/CHANGELOG.md index 2f145ce..ada13fa 100644 --- a/packages/auto_updater_platform_interface/CHANGELOG.md +++ b/packages/auto_updater_platform_interface/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0 + +* First major release. + ## 0.2.0 * First release. diff --git a/packages/auto_updater_platform_interface/analysis_options.yaml b/packages/auto_updater_platform_interface/analysis_options.yaml index 095b1d6..9033bb2 100644 --- a/packages/auto_updater_platform_interface/analysis_options.yaml +++ b/packages/auto_updater_platform_interface/analysis_options.yaml @@ -1 +1 @@ -include: package:mostly_reasonable_lints/flutter.yaml +include: package:mostly_reasonable_lints/analysis_options.yaml diff --git a/packages/auto_updater_platform_interface/pubspec.yaml b/packages/auto_updater_platform_interface/pubspec.yaml index 8de5c7e..1f82854 100644 --- a/packages/auto_updater_platform_interface/pubspec.yaml +++ b/packages/auto_updater_platform_interface/pubspec.yaml @@ -1,6 +1,6 @@ name: auto_updater_platform_interface description: A common platform interface for the auto_updater plugin. -version: 0.2.0 +version: 1.0.0 homepage: https://github.com/leanflutter/auto_updater/blob/main/packages/auto_updater_platform_interface environment: @@ -15,4 +15,4 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - mostly_reasonable_lints: ^0.1.1 + mostly_reasonable_lints: ^0.1.2 diff --git a/packages/auto_updater_windows/CHANGELOG.md b/packages/auto_updater_windows/CHANGELOG.md index ef66df9..cce5457 100644 --- a/packages/auto_updater_windows/CHANGELOG.md +++ b/packages/auto_updater_windows/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.0.0 + +* First major release. + ## 0.2.1 * chore(windows): Support before-quit-for-update event diff --git a/packages/auto_updater_windows/analysis_options.yaml b/packages/auto_updater_windows/analysis_options.yaml index 095b1d6..9033bb2 100644 --- a/packages/auto_updater_windows/analysis_options.yaml +++ b/packages/auto_updater_windows/analysis_options.yaml @@ -1 +1 @@ -include: package:mostly_reasonable_lints/flutter.yaml +include: package:mostly_reasonable_lints/analysis_options.yaml diff --git a/packages/auto_updater_windows/pubspec.yaml b/packages/auto_updater_windows/pubspec.yaml index cf57a92..f3b739c 100644 --- a/packages/auto_updater_windows/pubspec.yaml +++ b/packages/auto_updater_windows/pubspec.yaml @@ -1,6 +1,6 @@ name: auto_updater_windows description: Windows implementation of the auto_updater plugin. -version: 0.2.1 +version: 1.0.0 repository: https://github.com/leanflutter/auto_updater/tree/main/packages/auto_updater_windows environment: @@ -8,14 +8,14 @@ environment: flutter: '>=3.3.0' dependencies: - auto_updater_platform_interface: ^0.2.0 flutter: sdk: flutter + plugin_platform_interface: ^2.0.0 dev_dependencies: flutter_test: sdk: flutter - mostly_reasonable_lints: ^0.1.1 + mostly_reasonable_lints: ^0.1.2 flutter: plugin: diff --git a/pubspec.yaml b/pubspec.yaml index 81eedaf..f131cb2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -6,4 +6,4 @@ environment: sdk: ">=3.0.0 <4.0.0" dev_dependencies: - melos: ^3.1.0 + melos: ^6.2.0