Skip to content

An open-source cross-platform alternative to AirDrop

deps: bump dependencies

Tien Do Namdb859b9464c9
diff --git a/lib/main.dart b/lib/main.dart
index 14c97dc6..067bc237 100644
--- a/lib/main.dart
+++ b/lib/main.dart
@@ -27,7 +27,7 @@ Future<void> main(List<String> args) async {
WidgetsFlutterBinding.ensureInitialized();
final (persistenceService, startHidden) = await preInit(args);
final scope = RiverpieScope(
- observer: kDebugMode ? CustomRiverpieDebugObserver() : null,
+ observer: kDebugMode ? CustomRiverpieObserver() : null,
overrides: [
persistenceProvider.overrideWithValue(persistenceService),
deviceRawInfoProvider.overrideWithValue(await getDeviceInfo()),
diff --git a/lib/pages/debug/debug_page.dart b/lib/pages/debug/debug_page.dart
index f8a2560f..3aa4ef69 100644
--- a/lib/pages/debug/debug_page.dart
+++ b/lib/pages/debug/debug_page.dart
@@ -42,18 +42,23 @@ class DebugPage extends StatelessWidget {
spacing: 10,
runSpacing: 10,
children: [
- ElevatedButton(
+ FilledButton(
onPressed: () async => context.push(() => const SecurityDebugPage()),
child: const Text('Security'),
),
- ElevatedButton(
+ FilledButton(
onPressed: () async => context.push(() => const DiscoveryDebugPage()),
child: const Text('Discovery'),
),
- ElevatedButton(
+ FilledButton(
onPressed: () async => context.push(() => const HttpLogsPage()),
child: const Text('HTTP Logs'),
),
+ if (kDebugMode)
+ FilledButton(
+ onPressed: () async => context.push(() => const RiverpieTracingPage()),
+ child: const Text('Riverpie Tracing'),
+ ),
],
),
],
diff --git a/lib/riverpie.dart b/lib/riverpie.dart
index e3cfa439..27e93225 100644
--- a/lib/riverpie.dart
+++ b/lib/riverpie.dart
@@ -6,15 +6,26 @@ import 'package:riverpie_flutter/riverpie_flutter.dart';
final _logger = Logger('Riverpie');
-class CustomRiverpieDebugObserver extends RiverpieDebugObserver {
- CustomRiverpieDebugObserver()
- : super(
- onLine: (line) => _logger.info(line),
- exclude: (event) {
- return event is ChangeEvent &&
- (event.notifier.runtimeType == DiscoveryLogsNotifier ||
- event.notifier.runtimeType == NetworkStateNotifier ||
- event.notifier.runtimeType == ProgressNotifier);
- },
- );
+class CustomRiverpieObserver extends RiverpieMultiObserver {
+ CustomRiverpieObserver()
+ : super(observers: [
+ RiverpieDebugObserver(
+ onLine: (line) => _logger.info(line),
+ exclude: (event) {
+ return event is ChangeEvent &&
+ (event.notifier.runtimeType == DiscoveryLogsNotifier ||
+ event.notifier.runtimeType == NetworkStateNotifier ||
+ event.notifier.runtimeType == ProgressNotifier);
+ },
+ ),
+ RiverpieTracingObserver(
+ limit: 100,
+ exclude: (event) {
+ return event is ChangeEvent &&
+ (event.notifier.runtimeType == DiscoveryLogsNotifier ||
+ event.notifier.runtimeType == NetworkStateNotifier ||
+ event.notifier.runtimeType == ProgressNotifier);
+ },
+ ),
+ ]);
}
diff --git a/pubspec.lock b/pubspec.lock
index 1d323d0d..e349eeb9 100644
--- a/pubspec.lock
+++ b/pubspec.lock
@@ -785,9 +785,9 @@ packages:
dependency: "direct main"
description:
path: "packages/network_info_plus/network_info_plus"
- ref: "646655dd27facd2ac61e9b9557c6f4b0c6b966a9"
- resolved-ref: "646655dd27facd2ac61e9b9557c6f4b0c6b966a9"
- url: "https://github.com/Tienisto/plus_plugins.git"
+ ref: ab6e6b52ff456fa4b6f8c5a8e2cf7df5a1dd1f4e
+ resolved-ref: ab6e6b52ff456fa4b6f8c5a8e2cf7df5a1dd1f4e
+ url: "https://github.com/fluttercommunity/plus_plugins.git"
source: git
version: "4.0.2"
network_info_plus_platform_interface:
@@ -1035,18 +1035,18 @@ packages:
dependency: transitive
description:
name: riverpie
- sha256: db9f2d137d0f56fa5f913ac82280548061179c40d2686f4f4c61778daedb0a19
+ sha256: "401152270cbc3ac4c0ee9a47542291b1eb6b18156433738058527ba791bc3fed"
url: "https://pub.dev"
source: hosted
- version: "0.16.0"
+ version: "0.18.0"
riverpie_flutter:
dependency: "direct main"
description:
name: riverpie_flutter
- sha256: e2d905baceec574fd111f5e52c881a4d860239e7693bd756341c7ec5bfba95d2
+ sha256: c857ca7714a89f04c070da6826dd73c41a6bfda62769a1f6aab899dcccec696b
url: "https://pub.dev"
source: hosted
- version: "0.16.0"
+ version: "0.18.0"
routerino:
dependency: "direct main"
description:
@@ -1059,10 +1059,10 @@ packages:
dependency: "direct main"
description:
name: screen_retriever
- sha256: "4931f226ca158123ccd765325e9fbf360bfed0af9b460a10f960f9bb13d58323"
+ sha256: "6ee02c8a1158e6dae7ca430da79436e3b1c9563c8cf02f524af997c201ac2b90"
url: "https://pub.dev"
source: hosted
- version: "0.1.6"
+ version: "0.1.9"
share_handler:
dependency: "direct main"
description:
@@ -1592,12 +1592,11 @@ packages:
window_manager:
dependency: "direct main"
description:
- path: "."
- ref: "159a3ee305bbaf9e03a54b8e5315f76616a64a4a"
- resolved-ref: "159a3ee305bbaf9e03a54b8e5315f76616a64a4a"
- url: "https://github.com/Tienisto/window_manager.git"
- source: git
- version: "0.3.5"
+ name: window_manager
+ sha256: "6ee795be9124f90660ea9d05e581a466de19e1c89ee74fc4bf528f60c8600edd"
+ url: "https://pub.dev"
+ source: hosted
+ version: "0.3.6"
xdg_directories:
dependency: transitive
description:
diff --git a/pubspec.yaml b/pubspec.yaml
index 7601235c..97807fa8 100644
--- a/pubspec.yaml
+++ b/pubspec.yaml
@@ -11,7 +11,7 @@ environment:
dependencies:
basic_utils: 5.6.1
- collection: 1.17.1
+ collection: ^1.17.1 # allow newer versions, so it can compile with newer Flutter versions
connectivity_plus: 4.0.2
desktop_drop: 0.4.1
device_apps: 2.2.0
@@ -27,7 +27,7 @@ dependencies:
freezed_annotation: 2.4.1
gal: 1.8.6
image_picker: 1.0.2
- intl: ^0.18.0 # allow newer versions so it can compile with newer Flutter versions
+ intl: ^0.18.0 # allow newer versions, so it can compile with newer Flutter versions
json_annotation: 4.8.1
launch_at_startup: 0.2.2
logging: 1.2.0
@@ -39,9 +39,9 @@ dependencies:
path_provider: 2.1.0
permission_handler: 10.4.3
pretty_qr_code: 2.0.3
- riverpie_flutter: 0.16.0
+ riverpie_flutter: 0.18.0
routerino: 0.8.0
- screen_retriever: 0.1.6
+ screen_retriever: 0.1.9
share_handler: 0.0.17
shared_preferences: 2.2.0
shared_storage: 0.8.0
@@ -61,7 +61,7 @@ dependencies:
uuid: 3.0.7
wakelock_plus: 1.1.1
wechat_assets_picker: 8.6.3
- window_manager: 0.3.5
+ window_manager: 0.3.6
dev_dependencies:
build_runner: 2.4.6
@@ -78,20 +78,15 @@ dependency_overrides:
network_info_plus:
# https://github.com/fluttercommunity/plus_plugins/pull/2101
git:
- url: https://github.com/Tienisto/plus_plugins.git
+ url: https://github.com/fluttercommunity/plus_plugins.git
path: packages/network_info_plus/network_info_plus
- ref: 646655dd27facd2ac61e9b9557c6f4b0c6b966a9
+ ref: ab6e6b52ff456fa4b6f8c5a8e2cf7df5a1dd1f4e
permission_handler_windows:
# Remove windows support as it causes trouble with Windows 7
# https://github.com/Baseflow/flutter-permission-handler/issues/1034
git:
url: https://github.com/localsend/permission_handler_windows_noop.git
ref: fc09b707ab4535a9214c87b16f09feda7e765d90
- window_manager:
- # https://github.com/leanflutter/window_manager/pull/388
- git:
- url: https://github.com/Tienisto/window_manager.git
- ref: 159a3ee305bbaf9e03a54b8e5315f76616a64a4a
flutter:
uses-material-design: true