From 7ee69ab18718a32ac7acfe7560ee5a59b8fd5cec Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Sun, 9 Jan 2022 02:05:41 +0100 Subject: [PATCH] refactor: use relative instead of package imports --- lib/src/binding_coap/coap_server.dart | 8 ++++---- lib/src/core/protocol_interfaces/protocol_client.dart | 7 +++---- lib/src/scripting_api/subscription.dart | 3 +-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/lib/src/binding_coap/coap_server.dart b/lib/src/binding_coap/coap_server.dart index 6d351067..bb36b313 100644 --- a/lib/src/binding_coap/coap_server.dart +++ b/lib/src/binding_coap/coap_server.dart @@ -8,10 +8,10 @@ // // SPDX-License-Identifier: MIT OR Apache-2.0 -import 'package:dart_wot/binding_coap.dart'; -import 'package:dart_wot/src/core/credentials.dart'; -import 'package:dart_wot/src/core/protocol_interfaces/protocol_server.dart'; -import 'package:dart_wot/src/scripting_api/exposed_thing.dart'; +import '../core/credentials.dart'; +import '../core/protocol_interfaces/protocol_server.dart'; +import '../scripting_api/exposed_thing.dart'; +import 'coap_config.dart'; /// A [ProtocolServer] for the Constrained Application Protocol (CoAP). class CoapServer extends ProtocolServer { diff --git a/lib/src/core/protocol_interfaces/protocol_client.dart b/lib/src/core/protocol_interfaces/protocol_client.dart index 1c2d2f21..62314b65 100644 --- a/lib/src/core/protocol_interfaces/protocol_client.dart +++ b/lib/src/core/protocol_interfaces/protocol_client.dart @@ -8,10 +8,9 @@ // // SPDX-License-Identifier: MIT OR Apache-2.0 -import 'package:dart_wot/src/core/content.dart'; -import 'package:dart_wot/src/definitions/form.dart'; -import 'package:dart_wot/src/definitions/security_scheme.dart'; - +import '../../definitions/form.dart'; +import '../../definitions/security_scheme.dart'; +import '../content.dart'; import '../credentials.dart'; import '../subscription.dart'; diff --git a/lib/src/scripting_api/subscription.dart b/lib/src/scripting_api/subscription.dart index 374fb820..1ee29abb 100644 --- a/lib/src/scripting_api/subscription.dart +++ b/lib/src/scripting_api/subscription.dart @@ -8,10 +8,9 @@ // // SPDX-License-Identifier: MIT OR Apache-2.0 -import 'package:dart_wot/dart_wot.dart'; - import '../definitions/form.dart'; import '../definitions/interaction_affordances/interaction_affordance.dart'; +import 'consumed_thing.dart'; /// Indicates the type of the subscription. enum SubscriptionType {