Skip to content

Commit 3a2d79a

Browse files
authored
Merge pull request #88 from eclipse-thingweb/rework-library-exports
feat!: rework package structure
2 parents cc69c5b + 05e628f commit 3a2d79a

File tree

115 files changed

+656
-432
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+656
-432
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ Afterward, the actual interactions with the counter are performed by calling the
4949
`invokeAction()` and `readProperty()` methods on the `ConsumedThing`.
5050

5151
```dart
52-
import "package:dart_wot/dart_wot.dart";
52+
import "package:dart_wot/binding_coap.dart";
53+
import "package:dart_wot/core.dart";
5354
5455
Future<void> main(List<String> args) async {
5556
final servient = Servient(

example/coap_discovery.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
// ignore_for_file: avoid_print
88

9-
import "package:dart_wot/dart_wot.dart";
9+
import "package:dart_wot/binding_coap.dart";
10+
import "package:dart_wot/core.dart";
1011

1112
const propertyName = "string";
1213

example/coap_dns_sd_discovery.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
// ignore_for_file: avoid_print
88

9-
import "package:dart_wot/dart_wot.dart";
9+
import "package:dart_wot/binding_coap.dart";
10+
import "package:dart_wot/core.dart";
1011

1112
void handleThingDescription(ThingDescription thingDescription) =>
1213
print('Discovered TD with title "${thingDescription.title}".');

example/coaps_readproperty.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88

99
import "dart:typed_data";
1010

11-
import "package:dart_wot/dart_wot.dart";
11+
import "package:dart_wot/binding_coap.dart";
12+
import "package:dart_wot/core.dart";
1213

1314
/// Matches [PskCredentials] by hostname and URI scheme.
1415
final Map<Uri, PskCredentials> _pskCredentialsStore = {

example/complex_example.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66

77
// ignore_for_file: avoid_print
88

9-
import "package:dart_wot/dart_wot.dart";
9+
import "package:dart_wot/binding_coap.dart";
10+
import "package:dart_wot/binding_http.dart";
11+
import "package:dart_wot/core.dart";
1012

1113
const thingDescriptionJson = {
1214
"@context": [

example/core_link_format_discovery.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
// ignore_for_file: avoid_print
88

9-
import "package:dart_wot/dart_wot.dart";
9+
import "package:dart_wot/binding_coap.dart";
10+
import "package:dart_wot/core.dart";
1011

1112
Future<void> main(List<String> args) async {
1213
final servient = Servient(clientFactories: [CoapClientFactory()]);

example/example.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
// ignore_for_file: avoid_print
88

9-
import "package:dart_wot/dart_wot.dart";
9+
import "package:dart_wot/binding_coap.dart";
10+
import "package:dart_wot/core.dart";
1011

1112
Future<void> main(List<String> args) async {
1213
final servient = Servient(

example/http_basic_authentication.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
// ignore_for_file: avoid_print
88

9-
import "package:dart_wot/dart_wot.dart";
9+
import "package:dart_wot/binding_http.dart";
10+
import "package:dart_wot/core.dart";
1011

1112
const username = "username";
1213
const password = "password";

example/mqtt_example.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66

77
// ignore_for_file: avoid_print
88

9-
import "package:dart_wot/dart_wot.dart";
9+
import "package:dart_wot/binding_mqtt.dart";
10+
import "package:dart_wot/core.dart";
1011

1112
const thingDescriptionJson = {
1213
"@context": "https://www.w3.org/2022/wot/td/v1.1",

lib/core.dart

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,6 @@
99
/// runtime used for consuming, exposing, and discovering Things.
1010
library core;
1111

12-
export "package:dcaf/dcaf.dart";
13-
14-
export "src/core/augmented_form.dart";
15-
export "src/core/codecs/content_codec.dart";
16-
export "src/core/content_serdes.dart";
17-
export "src/core/credentials/ace_credentials.dart";
18-
export "src/core/credentials/apikey_credentials.dart";
19-
export "src/core/credentials/basic_credentials.dart";
20-
export "src/core/credentials/bearer_credentials.dart";
21-
export "src/core/credentials/callbacks.dart";
22-
export "src/core/credentials/credentials.dart";
23-
export "src/core/credentials/digest_credentials.dart";
24-
export "src/core/credentials/oauth2_credentials.dart";
25-
export "src/core/credentials/psk_credentials.dart";
26-
export "src/core/protocol_interfaces/protocol_client.dart";
27-
export "src/core/protocol_interfaces/protocol_client_factory.dart";
28-
export "src/core/protocol_interfaces/protocol_server.dart";
29-
export "src/core/servient.dart";
12+
export "src/core/definitions.dart";
13+
export "src/core/implementation.dart";
14+
export "src/core/scripting_api.dart";

0 commit comments

Comments
 (0)