From 05bab46c31045ed87326b2827c658a9ce5dcd789 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Mon, 1 Apr 2024 00:26:36 +0530 Subject: [PATCH 1/8] Publish dry run on PR checks --- .github/workflows/dart.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index a903524..57ff255 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -62,4 +62,7 @@ jobs: uses: codecov/codecov-action@v3 with: token: ${{secrets.CODECOV_TOKEN}} - file: coverage/coverage.lcov \ No newline at end of file + file: coverage/coverage.lcov + + - name: Check Publish Warnings + run: dart pub publish --dry-run \ No newline at end of file From 4ec877880a5c980cb4cbfa6b88d4a500ff287f65 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Mon, 1 Apr 2024 20:34:58 +0530 Subject: [PATCH 2/8] Remove async* to fix coverage reports --- test/network_tools_test.dart | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/network_tools_test.dart b/test/network_tools_test.dart index 7e5ddeb..1349104 100644 --- a/test/network_tools_test.dart +++ b/test/network_tools_test.dart @@ -170,7 +170,7 @@ void main() { }, ); - test('Running scanDevicesForSinglePort tests', () async* { + test('Running scanDevicesForSinglePort tests', () { expectLater( HostScannerService.instance.scanDevicesForSinglePort( interfaceIp, @@ -288,11 +288,11 @@ void main() { group("Testing mdns scanner group", () { test('Running searchMdnsDevices tests', () async { - final mdnsDevices = await MdnsScannerService.instance.searchMdnsDevices(); - expectLater( - mdnsDevices, - isA>(), - ); + // final mdnsDevices = await MdnsScannerService.instance.searchMdnsDevices(); + // expectLater( + // mdnsDevices, + // isA>(), + // ); //todo: mdnsDevices are empty in GHA, open one to be discoverable // expectLater( // mdnsDevices, From e8dd9f1dc6f97dd8b17750afa7158f61264d22d7 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Mon, 1 Apr 2024 20:36:44 +0530 Subject: [PATCH 3/8] uncomment --- test/network_tools_test.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/test/network_tools_test.dart b/test/network_tools_test.dart index 1349104..2d46c86 100644 --- a/test/network_tools_test.dart +++ b/test/network_tools_test.dart @@ -288,11 +288,11 @@ void main() { group("Testing mdns scanner group", () { test('Running searchMdnsDevices tests', () async { - // final mdnsDevices = await MdnsScannerService.instance.searchMdnsDevices(); - // expectLater( - // mdnsDevices, - // isA>(), - // ); + final mdnsDevices = await MdnsScannerService.instance.searchMdnsDevices(); + expectLater( + mdnsDevices, + isA>(), + ); //todo: mdnsDevices are empty in GHA, open one to be discoverable // expectLater( // mdnsDevices, From a965ae6a53d99c7c0b430283fb898bd6d7147f10 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Mon, 1 Apr 2024 20:51:44 +0530 Subject: [PATCH 4/8] Remove build runner --- .github/workflows/dart.yml | 3 --- .github/workflows/publish.yml | 3 --- pubspec.yaml | 4 ---- 3 files changed, 10 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 57ff255..c824dc6 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -34,9 +34,6 @@ jobs: - name: Install dependencies run: dart pub get - - - name: Run build_runner - run: dart run build_runner build --delete-conflicting-outputs # Uncomment this step to verify the use of 'dart format' on each commit. # - name: Verify formatting diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c05eee2..aaa001f 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,9 +21,6 @@ jobs: - name: Install dependencies run: dart pub get - - name: Run build_runner - run: dart run build_runner build --delete-conflicting-outputs - - name: Analyze project source run: dart analyze --fatal-infos diff --git a/pubspec.yaml b/pubspec.yaml index 0ee5cbb..1003069 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -42,10 +42,6 @@ dependencies: dev_dependencies: - # Standalone generator and watcher for Dart - build_runner: ^2.4.7 - # A generator for injectable library. - injectable_generator: ^2.4.1 # Provides Dart Build System builders for handling JSON. json_serializable: ^6.7.1 # Set of lint rules for Dart. From bb48b537785e36c88f1f0553ca25483c242b5ac3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 1 Jul 2024 22:00:52 +0000 Subject: [PATCH 5/8] Bump process_run from 0.14.2 to 1.0.0+1 Bumps [process_run](https://github.com/tekartik/process_run.dart/tree/master/packages) from 0.14.2 to 1.0.0+1. - [Commits](https://github.com/tekartik/process_run.dart/commits/v1.0.0/packages) --- updated-dependencies: - dependency-name: process_run dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 0ee5cbb..272a769 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -34,7 +34,7 @@ dependencies: # A comprehensive, cross-platform path manipulation library for Dart. path: ^1.8.3 # Process run helpers - process_run: ">=0.13.3+1 <0.15.0" + process_run: ">=0.13.3+1 <2.0.0" # Yet another NoSQL persistent store database solution for single process io apps. sembast: ^3.5.0+1 # Cross-platform 'dart:io' that works in all platforms. From 79ff8d09d7db03ea7e015197e28765f45dba1c52 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Sun, 17 Nov 2024 07:45:23 +0530 Subject: [PATCH 6/8] Updated dependencies --- CHANGELOG.md | 3 +++ pubspec.yaml | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 46efac9..b918e11 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Change Log +## 5.0.3 +Updated dependencies + ## 5.0.2 1. Bug for other languages on Windows fixed by codepage. 2. Added mac address option to ActiveHost constractor. diff --git a/pubspec.yaml b/pubspec.yaml index 1003069..1ab309d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: network_tools description: Networking Tools library which can help you discover open ports, devices on subnet and many other things. -version: 5.0.2 +version: 5.0.3 issue_tracker: https://github.com/osociety/network_tools/issues repository: https://github.com/osociety/network_tools @@ -24,27 +24,27 @@ dependencies: # Multi-platform network ping utility. dart_ping: ^9.0.1 # A composable, Future-based library for making HTTP requests. - http: ^1.1.2 + http: ^1.2.2 # Defines the annotations used by json_serializable. - json_annotation: ^4.8.1 + json_annotation: ^4.9.0 # Debugging and error logging. - logging: ^1.2.0 + logging: ^1.3.0 # Performing mDNS queries (e.g. Bonjour, Avahi). - multicast_dns: ^0.3.2+6 + multicast_dns: ^0.3.2+7 # A comprehensive, cross-platform path manipulation library for Dart. - path: ^1.8.3 + path: ^1.9.1 # Process run helpers - process_run: ">=0.13.3+1 <0.15.0" + process_run: ^1.2.2 # Yet another NoSQL persistent store database solution for single process io apps. - sembast: ^3.5.0+1 + sembast: ^3.7.5+2 # Cross-platform 'dart:io' that works in all platforms. universal_io: ^2.2.2 dev_dependencies: # Provides Dart Build System builders for handling JSON. - json_serializable: ^6.7.1 + json_serializable: ^6.8.0 # Set of lint rules for Dart. - lint: ^2.1.2 + lint: ^2.3.0 # Writing and running Dart tests. - test: ^1.24.6 \ No newline at end of file + test: ^1.25.8 \ No newline at end of file From b0fbb767896408002d97671bf2244072ba4d661b Mon Sep 17 00:00:00 2001 From: git-elliot Date: Sun, 17 Nov 2024 07:47:55 +0530 Subject: [PATCH 7/8] removed import --- lib/src/services/impls/arp_service_sembast_impl.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/src/services/impls/arp_service_sembast_impl.dart b/lib/src/services/impls/arp_service_sembast_impl.dart index 59656b6..85eec27 100644 --- a/lib/src/services/impls/arp_service_sembast_impl.dart +++ b/lib/src/services/impls/arp_service_sembast_impl.dart @@ -4,7 +4,6 @@ import 'package:network_tools/network_tools.dart'; import 'package:network_tools/src/device_info/arp_table_helper.dart'; import 'package:network_tools/src/services/arp_service.dart'; import 'package:path/path.dart' as p; -import 'package:sembast/sembast.dart'; import 'package:sembast/sembast_io.dart'; class ARPServiceSembastImpl extends ARPService { From 6773fef57f1eefc8b9b8716f1f88d1a72956e8a2 Mon Sep 17 00:00:00 2001 From: git-elliot Date: Sun, 17 Nov 2024 07:55:52 +0530 Subject: [PATCH 8/8] updated gha --- .github/workflows/dart.yml | 7 +++++-- .github/workflows/publish.yml | 3 +++ pubspec.yaml | 2 ++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index c824dc6..1ff1e00 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -36,8 +36,11 @@ jobs: run: dart pub get # Uncomment this step to verify the use of 'dart format' on each commit. - # - name: Verify formatting - # run: dart format --output=none --set-exit-if-changed . + - name: Verify formatting + run: dart format --output=none --set-exit-if-changed . + + - name: Run build_runner + run: dart run build_runner build # Consider passing '--fatal-infos' for slightly stricter analysis. - name: Analyze project source diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index aaa001f..618f46a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -21,6 +21,9 @@ jobs: - name: Install dependencies run: dart pub get + - name: Run build_runner + run: dart run build_runner build + - name: Analyze project source run: dart analyze --fatal-infos diff --git a/pubspec.yaml b/pubspec.yaml index 1ab309d..57afff7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -42,6 +42,8 @@ dependencies: dev_dependencies: + # provides a concrete way of generating files using Dart code + build_runner: ^2.4.13 # Provides Dart Build System builders for handling JSON. json_serializable: ^6.8.0 # Set of lint rules for Dart.