Skip to content

Commit

Permalink
wip: First major release.
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Oct 27, 2024
1 parent dd556f8 commit 0b9ce2a
Show file tree
Hide file tree
Showing 21 changed files with 60 additions and 45 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions packages/auto_updater/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/auto_updater/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:mostly_reasonable_lints/flutter.yaml
include: package:mostly_reasonable_lints/analysis_options.yaml
2 changes: 1 addition & 1 deletion packages/auto_updater/example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:mostly_reasonable_lints/flutter.yaml
include: package:mostly_reasonable_lints/analysis_options.yaml
17 changes: 8 additions & 9 deletions packages/auto_updater/example/lib/pages/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -51,31 +50,31 @@ class _HomePageState extends State<HomePage> with UpdaterListener {
}

Widget _buildBody(BuildContext context) {
return PreferenceList(
return ListView(
children: <Widget>[
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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
10 changes: 5 additions & 5 deletions packages/auto_updater/example/macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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:
Expand All @@ -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

Expand Down
5 changes: 2 additions & 3 deletions packages/auto_updater/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 5 additions & 5 deletions packages/auto_updater/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand All @@ -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:
Expand Down
4 changes: 4 additions & 0 deletions packages/auto_updater_macos/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0

* First major release.

## 0.2.0

* First release.
2 changes: 1 addition & 1 deletion packages/auto_updater_macos/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:mostly_reasonable_lints/flutter.yaml
include: package:mostly_reasonable_lints/analysis_options.yaml
6 changes: 3 additions & 3 deletions packages/auto_updater_macos/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
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:
sdk: '>=3.0.0 <4.0.0'
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:
Expand Down
4 changes: 4 additions & 0 deletions packages/auto_updater_platform_interface/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0

* First major release.

## 0.2.0

* First release.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:mostly_reasonable_lints/flutter.yaml
include: package:mostly_reasonable_lints/analysis_options.yaml
4 changes: 2 additions & 2 deletions packages/auto_updater_platform_interface/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -15,4 +15,4 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
mostly_reasonable_lints: ^0.1.1
mostly_reasonable_lints: ^0.1.2
4 changes: 4 additions & 0 deletions packages/auto_updater_windows/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.0.0

* First major release.

## 0.2.1

* chore(windows): Support before-quit-for-update event
Expand Down
2 changes: 1 addition & 1 deletion packages/auto_updater_windows/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include: package:mostly_reasonable_lints/flutter.yaml
include: package:mostly_reasonable_lints/analysis_options.yaml
6 changes: 3 additions & 3 deletions packages/auto_updater_windows/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
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:
sdk: '>=3.0.0 <4.0.0'
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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ environment:
sdk: ">=3.0.0 <4.0.0"

dev_dependencies:
melos: ^3.1.0
melos: ^6.2.0

0 comments on commit 0b9ce2a

Please sign in to comment.