Skip to content

Commit

Permalink
pubspec | upgraded hmi_core
Browse files Browse the repository at this point in the history
  • Loading branch information
Minyewoo committed Nov 7, 2024
1 parent ee043b4 commit 0effe9e
Show file tree
Hide file tree
Showing 30 changed files with 85 additions and 55 deletions.
6 changes: 4 additions & 2 deletions lib/src/auth/user/app_user_single.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_json.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_core/hmi_core_value_object.dart';
import 'package:hmi_networking/src/auth/user/user_info.dart';
import 'package:hmi_networking/src/auth/user_group/app_user_group.dart';
import 'package:hmi_networking/src/core/entities/data_object.dart';
Expand Down
6 changes: 4 additions & 2 deletions lib/src/core/ds_client/cache/file/ds_cache_file.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'dart:convert';

Check notice on line 1 in lib/src/core/ds_client/cache/file/ds_cache_file.dart

View workflow job for this annotation

GitHub Actions / coverage

Good coverage level

100.00%
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_json.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_core/hmi_core_text_file.dart';
import 'package:hmi_networking/src/core/entities/jds_data_point.dart';

///
Expand Down
4 changes: 2 additions & 2 deletions lib/src/core/ds_client/ds_client.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:async';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_result.dart';

///
abstract class DsClient {
Expand Down
7 changes: 5 additions & 2 deletions lib/src/core/ds_client/ds_client_fake.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
import 'dart:async';
import 'dart:math';

import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_core/hmi_core_stream.dart';
import 'package:hmi_networking/src/core/ds_client/ds_client.dart';

///
Expand Down
6 changes: 4 additions & 2 deletions lib/src/core/ds_client/ds_client_real.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'dart:async';

Check notice on line 1 in lib/src/core/ds_client/ds_client_real.dart

View workflow job for this annotation

GitHub Actions / coverage

Good coverage level

37.50%
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_core/hmi_core_stream.dart';
import 'package:hmi_networking/src/core/ds_client/cache/ds_client_cache.dart';
import 'package:hmi_networking/src/core/ds_client/ds_client.dart';
import 'package:hmi_networking/src/core/ds_client/ds_client_connection_listener.dart';
Expand Down
6 changes: 4 additions & 2 deletions lib/src/core/ds_send.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'dart:async';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_core/hmi_core_stream.dart';
import 'package:hmi_networking/src/core/ds_client/ds_client.dart';

///
Expand Down
5 changes: 3 additions & 2 deletions lib/src/core/entities/jds_data_point.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_result.dart';
///
/// [DsDataPoint] with json transformation capabilities.
final class JdsDataPoint<T> implements DsDataPoint<T> {
Expand Down
6 changes: 4 additions & 2 deletions lib/src/core/jds_service/jds_service.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';

Check notice on line 1 in lib/src/core/jds_service/jds_service.dart

View workflow job for this annotation

GitHub Actions / coverage

Good coverage level

79.06%
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_json.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/ds_client/ds_client.dart';
import 'package:hmi_networking/src/core/ds_send.dart';
import 'package:hmi_networking/src/core/entities/point_route.dart';
Expand Down
4 changes: 2 additions & 2 deletions lib/src/core/jds_service/jds_service_startup.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_log.dart';

Check notice on line 1 in lib/src/core/jds_service/jds_service_startup.dart

View workflow job for this annotation

GitHub Actions / coverage

Good coverage level

60.00%
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/jds_service/jds_service.dart';

///
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'dart:async';

Check notice on line 1 in lib/src/core/jds_service/jds_service_startup_on_reconnect.dart

View workflow job for this annotation

GitHub Actions / coverage

Good coverage level

66.66%
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/jds_service/jds_service.dart';
import 'package:hmi_networking/src/core/jds_service/jds_service_startup.dart';
///
Expand Down
4 changes: 2 additions & 2 deletions lib/src/core/jds_service/update_cache_from_jds_service.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';

Check notice on line 1 in lib/src/core/jds_service/update_cache_from_jds_service.dart

View workflow job for this annotation

GitHub Actions / coverage

Good coverage level

87.50%
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/hmi_networking.dart';
///
/// [JdsService] cache update sequence.
Expand Down
6 changes: 4 additions & 2 deletions lib/src/core/line_socket/ds_line_socket.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/line_socket/line_socket.dart';

///
Expand Down
2 changes: 1 addition & 1 deletion lib/src/core/line_socket/line_socket.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

import 'dart:typed_data';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_result.dart';

///
/// Listen socket, send to socket,
Expand Down
4 changes: 2 additions & 2 deletions lib/src/protocols/custom_protocol_line.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_result.dart';
///
/// Interface to communicate with remote device(s) in both ways by sending commands
/// and receiving events (in the form of [DsDataPoint]s).
Expand Down
6 changes: 4 additions & 2 deletions lib/src/protocols/jsd_line.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'dart:async';
import 'dart:convert';
import 'dart:typed_data';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/line_socket/line_socket.dart';
import 'package:hmi_networking/src/protocols/custom_protocol_line.dart';
///
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hmi_networking
description: A Flutter package used in hmi_widgets which is helps to visualize states, values, changes and other artefacts from technological processes.
version: 1.1.0
version: 1.1.1
homepage: https://github.com/a-givertzman/hmi_networking
publish_to: none

Expand All @@ -14,7 +14,7 @@ dependencies:
hmi_core:
git:
url: https://github.com/a-givertzman/hmi_core.git
ref: 2.0.0
ref: 2.1.0
shared_preferences: ^2.0.20
async: ^2.11.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_core/hmi_core_text_file.dart';

///
class FakeTextFile implements TextFile {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'dart:io';
import 'package:flutter/foundation.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/hmi_networking.dart';

void main() {
Expand Down
6 changes: 4 additions & 2 deletions test/unit/core/ds_send/common/ds_send_exec_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/ds_send.dart';
import 'fake_ds_client.dart';
import 'test_point_paths.dart';
Expand Down
4 changes: 2 additions & 2 deletions test/unit/core/ds_send/common/fake_ds_client.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/ds_client/ds_client.dart';
///
class FakeDsClient implements DsClient {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/core/jds_service/fake_jds_service.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:hmi_core/src/core/result_new/result.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/jds_service/jds_point_config/jds_point_configs.dart';
import 'package:hmi_networking/src/core/jds_service/jds_service.dart';
///
Expand Down
5 changes: 3 additions & 2 deletions test/unit/core/jds_service/jds_service_auth_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/jds_service/jds_service.dart';
import '../ds_send/common/fake_ds_client.dart';

Expand Down
6 changes: 4 additions & 2 deletions test/unit/core/jds_service/jds_service_points_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/jds_service/jds_point_config/jds_point_configs.dart';
import 'package:hmi_networking/src/core/jds_service/jds_service.dart';
import '../ds_send/common/fake_ds_client.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/jds_service/jds_point_config/jds_point_configs.dart';
import 'package:hmi_networking/src/core/jds_service/jds_service_startup.dart';
import '../fake_jds_service.dart';
Expand Down
5 changes: 3 additions & 2 deletions test/unit/core/jds_service/jds_service_subscribe_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/jds_service/jds_service.dart';
import '../ds_send/common/fake_ds_client.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/src/core/jds_service/jds_point_config/ds_point_address.dart';
import 'package:hmi_networking/src/core/jds_service/jds_point_config/jds_point_config.dart';
import 'package:hmi_networking/src/core/jds_service/jds_point_config/jds_point_configs.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/src/core/result_new/result.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/hmi_networking.dart';
///
final class _FakeJdsStartup implements JdsServiceStartup {
Expand Down
2 changes: 1 addition & 1 deletion test/unit/protocols/jds_line/common/fake_line_socket.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:typed_data';
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/hmi_networking.dart';
///
class FakeLineSocket extends Fake implements LineSocket {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/hmi_networking.dart';
import 'fake_line_socket.dart';

Expand Down
6 changes: 4 additions & 2 deletions test/unit/protocols/jds_line/common/jds_line_send_test.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import 'package:flutter_test/flutter_test.dart';
import 'package:hmi_core/hmi_core.dart';
import 'package:hmi_core/hmi_core_result_new.dart';
import 'package:hmi_core/hmi_core_entities.dart';
import 'package:hmi_core/hmi_core_failure.dart';
import 'package:hmi_core/hmi_core_log.dart';
import 'package:hmi_core/hmi_core_result.dart';
import 'package:hmi_networking/hmi_networking.dart';
import '../test_commands_data.dart';
import 'empty_stream.dart';
Expand Down

0 comments on commit 0effe9e

Please sign in to comment.