From 1bf0bc32ae4779a96acbdbf7db3f21aeede8e4a2 Mon Sep 17 00:00:00 2001 From: Ahmed Zamil Date: Wed, 7 Aug 2019 17:12:20 +0300 Subject: [PATCH] package --- .gitignore | 71 ++++++++- .metadata | 10 ++ CHANGELOG.md | 3 + README.md | 14 ++ bin/esiur.dart | 2 - lib/esiur.dart | 96 ++++++++++++ {bin => lib/src}/Core/AsyncBag.dart | 0 {bin => lib/src}/Core/AsyncException.dart | 0 {bin => lib/src}/Core/AsyncQueue.dart | 0 {bin => lib/src}/Core/AsyncReply.dart | 0 {bin => lib/src}/Core/ErrorType.dart | 0 {bin => lib/src}/Core/ExceptionCode.dart | 0 {bin => lib/src}/Core/IDestructible.dart | 2 +- {bin => lib/src}/Core/IEventHandler.dart | 0 {bin => lib/src}/Core/ProgressType.dart | 0 {bin => lib/src}/Data/AutoList.dart | 0 {bin => lib/src}/Data/BinaryList.dart | 0 {bin => lib/src}/Data/Codec.dart | 0 {bin => lib/src}/Data/DC.dart | 0 {bin => lib/src}/Data/DataType.dart | 0 {bin => lib/src}/Data/Guid.dart | 0 {bin => lib/src}/Data/KeyList.dart | 0 {bin => lib/src}/Data/NotModified.dart | 0 {bin => lib/src}/Data/PropertyValue.dart | 0 .../src}/Data/ResourceComparisonResult.dart | 0 {bin => lib/src}/Data/SizeObject.dart | 0 {bin => lib/src}/Data/Structure.dart | 0 .../src}/Data/StructureComparisonResult.dart | 0 {bin => lib/src}/Data/StructureMetadata.dart | 0 {bin => lib/src}/Data/ValueObject.dart | 0 .../src}/Net/IIP/DistributedConnection.dart | 0 .../Net/IIP/DistributedPropertyContext.dart | 0 .../src}/Net/IIP/DistributedResource.dart | 0 .../Net/IIP/DistributedResourceQueueItem.dart | 0 .../IIP/DistributedResourceQueueItemType.dart | 0 {bin => lib/src}/Net/NetworkBuffer.dart | 0 {bin => lib/src}/Net/NetworkConnection.dart | 0 .../src}/Net/Packets/IIPAuthPacket.dart | 0 .../src}/Net/Packets/IIPAuthPacketAction.dart | 0 .../Net/Packets/IIPAuthPacketCommand.dart | 0 .../src}/Net/Packets/IIPAuthPacketMethod.dart | 0 {bin => lib/src}/Net/Packets/IIPPacket.dart | 0 .../src}/Net/Packets/IIPPacketAction.dart | 0 .../src}/Net/Packets/IIPPacketCommand.dart | 0 .../src}/Net/Packets/IIPPacketEvent.dart | 0 .../src}/Net/Packets/IIPPacketReport.dart | 0 {bin => lib/src}/Net/SendList.dart | 0 {bin => lib/src}/Net/Sockets/IPEndPoint.dart | 0 {bin => lib/src}/Net/Sockets/ISocket.dart | 0 {bin => lib/src}/Net/Sockets/SocketState.dart | 0 {bin => lib/src}/Net/Sockets/TCPSocket.dart | 0 {bin => lib/src}/Resource/IResource.dart | 0 {bin => lib/src}/Resource/IStore.dart | 5 +- {bin => lib/src}/Resource/Instance.dart | 0 .../src}/Resource/ResourceTrigger.dart | 0 {bin => lib/src}/Resource/StorageMode.dart | 0 .../src}/Resource/Template/EventTemplate.dart | 0 .../Resource/Template/FunctionTemplate.dart | 0 .../Resource/Template/MemberTemplate.dart | 0 .../src}/Resource/Template/MemberType.dart | 0 .../Resource/Template/PropertyPermission.dart | 0 .../Resource/Template/PropertyTemplate.dart | 0 .../Resource/Template/ResourceTemplate.dart | 0 {bin => lib/src}/Resource/Warehouse.dart | 0 .../Security/Authority/Authentication.dart | 0 .../Authority/AuthenticationState.dart | 0 .../Authority/AuthenticationType.dart | 0 .../Authority/ClientAuthentication.dart | 0 .../Authority/CoHostAuthentication.dart | 0 .../Authority/HostAuthentication.dart | 0 .../src}/Security/Authority/Session.dart | 0 .../src}/Security/Authority/Source.dart | 0 .../Authority/SourceAttributeType.dart | 0 .../src}/Security/Integrity/SHA256.dart | 0 .../src}/Security/Permissions/ActionType.dart | 0 .../Permissions/IPermissionsManager.dart | 0 .../src}/Security/Permissions/Ruling.dart | 0 pubspec.lock | 139 ++++++++++++++++++ pubspec.yaml | 53 +++++++ bin/main.dart => test/esiur_test.dart | 12 +- 80 files changed, 394 insertions(+), 13 deletions(-) create mode 100644 .metadata create mode 100644 CHANGELOG.md create mode 100644 README.md delete mode 100644 bin/esiur.dart create mode 100644 lib/esiur.dart rename {bin => lib/src}/Core/AsyncBag.dart (100%) rename {bin => lib/src}/Core/AsyncException.dart (100%) rename {bin => lib/src}/Core/AsyncQueue.dart (100%) rename {bin => lib/src}/Core/AsyncReply.dart (100%) rename {bin => lib/src}/Core/ErrorType.dart (100%) rename {bin => lib/src}/Core/ExceptionCode.dart (100%) rename {bin => lib/src}/Core/IDestructible.dart (87%) rename {bin => lib/src}/Core/IEventHandler.dart (100%) rename {bin => lib/src}/Core/ProgressType.dart (100%) rename {bin => lib/src}/Data/AutoList.dart (100%) rename {bin => lib/src}/Data/BinaryList.dart (100%) rename {bin => lib/src}/Data/Codec.dart (100%) rename {bin => lib/src}/Data/DC.dart (100%) rename {bin => lib/src}/Data/DataType.dart (100%) rename {bin => lib/src}/Data/Guid.dart (100%) rename {bin => lib/src}/Data/KeyList.dart (100%) rename {bin => lib/src}/Data/NotModified.dart (100%) rename {bin => lib/src}/Data/PropertyValue.dart (100%) rename {bin => lib/src}/Data/ResourceComparisonResult.dart (100%) rename {bin => lib/src}/Data/SizeObject.dart (100%) rename {bin => lib/src}/Data/Structure.dart (100%) rename {bin => lib/src}/Data/StructureComparisonResult.dart (100%) rename {bin => lib/src}/Data/StructureMetadata.dart (100%) rename {bin => lib/src}/Data/ValueObject.dart (100%) rename {bin => lib/src}/Net/IIP/DistributedConnection.dart (100%) rename {bin => lib/src}/Net/IIP/DistributedPropertyContext.dart (100%) rename {bin => lib/src}/Net/IIP/DistributedResource.dart (100%) rename {bin => lib/src}/Net/IIP/DistributedResourceQueueItem.dart (100%) rename {bin => lib/src}/Net/IIP/DistributedResourceQueueItemType.dart (100%) rename {bin => lib/src}/Net/NetworkBuffer.dart (100%) rename {bin => lib/src}/Net/NetworkConnection.dart (100%) rename {bin => lib/src}/Net/Packets/IIPAuthPacket.dart (100%) rename {bin => lib/src}/Net/Packets/IIPAuthPacketAction.dart (100%) rename {bin => lib/src}/Net/Packets/IIPAuthPacketCommand.dart (100%) rename {bin => lib/src}/Net/Packets/IIPAuthPacketMethod.dart (100%) rename {bin => lib/src}/Net/Packets/IIPPacket.dart (100%) rename {bin => lib/src}/Net/Packets/IIPPacketAction.dart (100%) rename {bin => lib/src}/Net/Packets/IIPPacketCommand.dart (100%) rename {bin => lib/src}/Net/Packets/IIPPacketEvent.dart (100%) rename {bin => lib/src}/Net/Packets/IIPPacketReport.dart (100%) rename {bin => lib/src}/Net/SendList.dart (100%) rename {bin => lib/src}/Net/Sockets/IPEndPoint.dart (100%) rename {bin => lib/src}/Net/Sockets/ISocket.dart (100%) rename {bin => lib/src}/Net/Sockets/SocketState.dart (100%) rename {bin => lib/src}/Net/Sockets/TCPSocket.dart (100%) rename {bin => lib/src}/Resource/IResource.dart (100%) rename {bin => lib/src}/Resource/IStore.dart (94%) rename {bin => lib/src}/Resource/Instance.dart (100%) rename {bin => lib/src}/Resource/ResourceTrigger.dart (100%) rename {bin => lib/src}/Resource/StorageMode.dart (100%) rename {bin => lib/src}/Resource/Template/EventTemplate.dart (100%) rename {bin => lib/src}/Resource/Template/FunctionTemplate.dart (100%) rename {bin => lib/src}/Resource/Template/MemberTemplate.dart (100%) rename {bin => lib/src}/Resource/Template/MemberType.dart (100%) rename {bin => lib/src}/Resource/Template/PropertyPermission.dart (100%) rename {bin => lib/src}/Resource/Template/PropertyTemplate.dart (100%) rename {bin => lib/src}/Resource/Template/ResourceTemplate.dart (100%) rename {bin => lib/src}/Resource/Warehouse.dart (100%) rename {bin => lib/src}/Security/Authority/Authentication.dart (100%) rename {bin => lib/src}/Security/Authority/AuthenticationState.dart (100%) rename {bin => lib/src}/Security/Authority/AuthenticationType.dart (100%) rename {bin => lib/src}/Security/Authority/ClientAuthentication.dart (100%) rename {bin => lib/src}/Security/Authority/CoHostAuthentication.dart (100%) rename {bin => lib/src}/Security/Authority/HostAuthentication.dart (100%) rename {bin => lib/src}/Security/Authority/Session.dart (100%) rename {bin => lib/src}/Security/Authority/Source.dart (100%) rename {bin => lib/src}/Security/Authority/SourceAttributeType.dart (100%) rename {bin => lib/src}/Security/Integrity/SHA256.dart (100%) rename {bin => lib/src}/Security/Permissions/ActionType.dart (100%) rename {bin => lib/src}/Security/Permissions/IPermissionsManager.dart (100%) rename {bin => lib/src}/Security/Permissions/Ruling.dart (100%) create mode 100644 pubspec.lock create mode 100644 pubspec.yaml rename bin/main.dart => test/esiur_test.dart (74%) diff --git a/.gitignore b/.gitignore index 7bf00e8..9d7edcf 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,70 @@ -# See https://www.dartlang.org/guides/libraries/private-files +# Miscellaneous +*.class +*.log +*.pyc +*.swp +.DS_Store +.atom/ +.buildlog/ +.history +.svn/ -# Files and directories created by pub +# IntelliJ related +*.iml +*.ipr +*.iws +.idea/ + +# Visual Studio Code related +.vscode/ + +# Flutter/Dart/Pub related +**/doc/api/ .dart_tool/ +.flutter-plugins .packages +.pub-cache/ .pub/ build/ -# If you're building an application, you may want to check-in your pubspec.lock -pubspec.lock -# Directory created by dartdoc -# If you don't generate documentation locally you can remove this line. -doc/api/ +# Android related +**/android/**/gradle-wrapper.jar +**/android/.gradle +**/android/captures/ +**/android/gradlew +**/android/gradlew.bat +**/android/local.properties +**/android/**/GeneratedPluginRegistrant.java + +# iOS/XCode related +**/ios/**/*.mode1v3 +**/ios/**/*.mode2v3 +**/ios/**/*.moved-aside +**/ios/**/*.pbxuser +**/ios/**/*.perspectivev3 +**/ios/**/*sync/ +**/ios/**/.sconsign.dblite +**/ios/**/.tags* +**/ios/**/.vagrant/ +**/ios/**/DerivedData/ +**/ios/**/Icon? +**/ios/**/Pods/ +**/ios/**/.symlinks/ +**/ios/**/profile +**/ios/**/xcuserdata +**/ios/.generated/ +**/ios/Flutter/App.framework +**/ios/Flutter/Flutter.framework +**/ios/Flutter/Generated.xcconfig +**/ios/Flutter/app.flx +**/ios/Flutter/app.zip +**/ios/Flutter/flutter_assets/ +**/ios/ServiceDefinitions.json +**/ios/Runner/GeneratedPluginRegistrant.* + +# Exceptions to above rules. +!**/ios/**/default.mode1v3 +!**/ios/**/default.mode2v3 +!**/ios/**/default.pbxuser +!**/ios/**/default.perspectivev3 +!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages diff --git a/.metadata b/.metadata new file mode 100644 index 0000000..5ab1e9a --- /dev/null +++ b/.metadata @@ -0,0 +1,10 @@ +# This file tracks properties of this Flutter project. +# Used by Flutter tool to assess capabilities and perform upgrades etc. +# +# This file should be version controlled and should not be manually edited. + +version: + revision: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b + channel: stable + +project_type: package diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..ac07159 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +## [0.0.1] - TODO: Add release date. + +* TODO: Describe initial release. diff --git a/README.md b/README.md new file mode 100644 index 0000000..64d2f10 --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# esiur + +A new Flutter package project. + +## Getting Started + +This project is a starting point for a Dart +[package](https://flutter.dev/developing-packages/), +a library module containing code that can be shared easily across +multiple Flutter or Dart projects. + +For help getting started with Flutter, view our +[online documentation](https://flutter.dev/docs), which offers tutorials, +samples, guidance on mobile development, and a full API reference. diff --git a/bin/esiur.dart b/bin/esiur.dart deleted file mode 100644 index f4c70d3..0000000 --- a/bin/esiur.dart +++ /dev/null @@ -1,2 +0,0 @@ -export 'Resource/Warehouse.dart'; - diff --git a/lib/esiur.dart b/lib/esiur.dart new file mode 100644 index 0000000..41ac774 --- /dev/null +++ b/lib/esiur.dart @@ -0,0 +1,96 @@ +// Resource +export 'src/Resource/Warehouse.dart'; +export 'src/Resource/Instance.dart'; +export 'src/Resource/IResource.dart'; +export 'src/Resource/IStore.dart'; +export 'src/Resource/ResourceTrigger.dart'; +export 'src/Resource/StorageMode.dart'; + +// Resource-Template +export 'src/Resource/Template/EventTemplate.dart'; +export 'src/Resource/Template/FunctionTemplate.dart'; +export 'src/Resource/Template/MemberTemplate.dart'; +export 'src/Resource/Template/MemberType.dart'; +export 'src/Resource/Template/PropertyPermission.dart'; +export 'src/Resource/Template/PropertyTemplate.dart'; +export 'src/Resource/Template/ResourceTemplate.dart'; + +// ----------------------------------------------------------------- +// Core +export 'src/Core/ProgressType.dart'; +export 'src/Core/AsyncBag.dart'; +export 'src/Core/AsyncException.dart'; +export 'src/Core/AsyncQueue.dart'; +export 'src/Core/AsyncReply.dart'; +export 'src/Core/ErrorType.dart'; +export 'src/Core/ExceptionCode.dart'; +export 'src/Core/IDestructible.dart'; +export 'src/Core/IEventHandler.dart'; + +// ----------------------------------------------------------------- +// Data +export 'src/Data/AutoList.dart'; +export 'src/Data/BinaryList.dart'; +export 'src/Data/Codec.dart'; +export 'src/Data/DataType.dart'; +export 'src/Data/DC.dart'; +export 'src/Data/Guid.dart'; +export 'src/Data/KeyList.dart'; +export 'src/Data/NotModified.dart'; +export 'src/Data/PropertyValue.dart'; +export 'src/Data/ResourceComparisonResult.dart'; +export 'src/Data/SizeObject.dart'; +export 'src/Data/Structure.dart'; +export 'src/Data/StructureComparisonResult.dart'; +export 'src/Data/StructureMetadata.dart'; +export 'src/Data/ValueObject.dart'; + +// ----------------------------------------------------------------- +// Net +export 'src/Net/NetworkBuffer.dart'; +export 'src/Net/NetworkConnection.dart'; +export 'src/Net/SendList.dart'; + +// Net-IIP +export 'src/Net/IIP/DistributedConnection.dart'; +export 'src/Net/IIP/DistributedPropertyContext.dart'; +export 'src/Net/IIP/DistributedResource.dart'; +export 'src/Net/IIP/DistributedResourceQueueItem.dart'; +export 'src/Net/IIP/DistributedResourceQueueItemType.dart'; + +// Net-Packets +export 'src/Net/Packets/IIPAuthPacket.dart'; +export 'src/Net/Packets/IIPAuthPacketAction.dart'; +export 'src/Net/Packets/IIPAuthPacketCommand.dart'; +export 'src/Net/Packets/IIPAuthPacketMethod.dart'; +export 'src/Net/Packets/IIPPacket.dart'; +export 'src/Net/Packets/IIPPacketAction.dart'; +export 'src/Net/Packets/IIPPacketCommand.dart'; +export 'src/Net/Packets/IIPPacketEvent.dart'; +export 'src/Net/Packets/IIPPacketReport.dart'; + +// Net-Sockets +export 'src/Net/Sockets/IPEndPoint.dart'; +export 'src/Net/Sockets/ISocket.dart'; +export 'src/Net/Sockets/SocketState.dart'; +export 'src/Net/Sockets/TCPSocket.dart'; + +// ----------------------------------------------------------------- +// Security-Authority +export 'src/Security/Authority/Authentication.dart'; +export 'src/Security/Authority/AuthenticationState.dart'; +export 'src/Security/Authority/AuthenticationType.dart'; +export 'src/Security/Authority/ClientAuthentication.dart'; +export 'src/Security/Authority/CoHostAuthentication.dart'; +export 'src/Security/Authority/HostAuthentication.dart'; +export 'src/Security/Authority/Session.dart'; +export 'src/Security/Authority/Source.dart'; +export 'src/Security/Authority/SourceAttributeType.dart'; + +// Security-Integrity +export 'src/Security/Integrity/SHA256.dart'; + +// Security-Permissions +export 'src/Security/Permissions/ActionType.dart'; +export 'src/Security/Permissions/IPermissionsManager.dart'; +export 'src/Security/Permissions/Ruling.dart'; \ No newline at end of file diff --git a/bin/Core/AsyncBag.dart b/lib/src/Core/AsyncBag.dart similarity index 100% rename from bin/Core/AsyncBag.dart rename to lib/src/Core/AsyncBag.dart diff --git a/bin/Core/AsyncException.dart b/lib/src/Core/AsyncException.dart similarity index 100% rename from bin/Core/AsyncException.dart rename to lib/src/Core/AsyncException.dart diff --git a/bin/Core/AsyncQueue.dart b/lib/src/Core/AsyncQueue.dart similarity index 100% rename from bin/Core/AsyncQueue.dart rename to lib/src/Core/AsyncQueue.dart diff --git a/bin/Core/AsyncReply.dart b/lib/src/Core/AsyncReply.dart similarity index 100% rename from bin/Core/AsyncReply.dart rename to lib/src/Core/AsyncReply.dart diff --git a/bin/Core/ErrorType.dart b/lib/src/Core/ErrorType.dart similarity index 100% rename from bin/Core/ErrorType.dart rename to lib/src/Core/ErrorType.dart diff --git a/bin/Core/ExceptionCode.dart b/lib/src/Core/ExceptionCode.dart similarity index 100% rename from bin/Core/ExceptionCode.dart rename to lib/src/Core/ExceptionCode.dart diff --git a/bin/Core/IDestructible.dart b/lib/src/Core/IDestructible.dart similarity index 87% rename from bin/Core/IDestructible.dart rename to lib/src/Core/IDestructible.dart index 0f47012..748d135 100644 --- a/bin/Core/IDestructible.dart +++ b/lib/src/Core/IDestructible.dart @@ -1,4 +1,4 @@ -library esiur; +// library esiur; import 'IEventHandler.dart'; diff --git a/bin/Core/IEventHandler.dart b/lib/src/Core/IEventHandler.dart similarity index 100% rename from bin/Core/IEventHandler.dart rename to lib/src/Core/IEventHandler.dart diff --git a/bin/Core/ProgressType.dart b/lib/src/Core/ProgressType.dart similarity index 100% rename from bin/Core/ProgressType.dart rename to lib/src/Core/ProgressType.dart diff --git a/bin/Data/AutoList.dart b/lib/src/Data/AutoList.dart similarity index 100% rename from bin/Data/AutoList.dart rename to lib/src/Data/AutoList.dart diff --git a/bin/Data/BinaryList.dart b/lib/src/Data/BinaryList.dart similarity index 100% rename from bin/Data/BinaryList.dart rename to lib/src/Data/BinaryList.dart diff --git a/bin/Data/Codec.dart b/lib/src/Data/Codec.dart similarity index 100% rename from bin/Data/Codec.dart rename to lib/src/Data/Codec.dart diff --git a/bin/Data/DC.dart b/lib/src/Data/DC.dart similarity index 100% rename from bin/Data/DC.dart rename to lib/src/Data/DC.dart diff --git a/bin/Data/DataType.dart b/lib/src/Data/DataType.dart similarity index 100% rename from bin/Data/DataType.dart rename to lib/src/Data/DataType.dart diff --git a/bin/Data/Guid.dart b/lib/src/Data/Guid.dart similarity index 100% rename from bin/Data/Guid.dart rename to lib/src/Data/Guid.dart diff --git a/bin/Data/KeyList.dart b/lib/src/Data/KeyList.dart similarity index 100% rename from bin/Data/KeyList.dart rename to lib/src/Data/KeyList.dart diff --git a/bin/Data/NotModified.dart b/lib/src/Data/NotModified.dart similarity index 100% rename from bin/Data/NotModified.dart rename to lib/src/Data/NotModified.dart diff --git a/bin/Data/PropertyValue.dart b/lib/src/Data/PropertyValue.dart similarity index 100% rename from bin/Data/PropertyValue.dart rename to lib/src/Data/PropertyValue.dart diff --git a/bin/Data/ResourceComparisonResult.dart b/lib/src/Data/ResourceComparisonResult.dart similarity index 100% rename from bin/Data/ResourceComparisonResult.dart rename to lib/src/Data/ResourceComparisonResult.dart diff --git a/bin/Data/SizeObject.dart b/lib/src/Data/SizeObject.dart similarity index 100% rename from bin/Data/SizeObject.dart rename to lib/src/Data/SizeObject.dart diff --git a/bin/Data/Structure.dart b/lib/src/Data/Structure.dart similarity index 100% rename from bin/Data/Structure.dart rename to lib/src/Data/Structure.dart diff --git a/bin/Data/StructureComparisonResult.dart b/lib/src/Data/StructureComparisonResult.dart similarity index 100% rename from bin/Data/StructureComparisonResult.dart rename to lib/src/Data/StructureComparisonResult.dart diff --git a/bin/Data/StructureMetadata.dart b/lib/src/Data/StructureMetadata.dart similarity index 100% rename from bin/Data/StructureMetadata.dart rename to lib/src/Data/StructureMetadata.dart diff --git a/bin/Data/ValueObject.dart b/lib/src/Data/ValueObject.dart similarity index 100% rename from bin/Data/ValueObject.dart rename to lib/src/Data/ValueObject.dart diff --git a/bin/Net/IIP/DistributedConnection.dart b/lib/src/Net/IIP/DistributedConnection.dart similarity index 100% rename from bin/Net/IIP/DistributedConnection.dart rename to lib/src/Net/IIP/DistributedConnection.dart diff --git a/bin/Net/IIP/DistributedPropertyContext.dart b/lib/src/Net/IIP/DistributedPropertyContext.dart similarity index 100% rename from bin/Net/IIP/DistributedPropertyContext.dart rename to lib/src/Net/IIP/DistributedPropertyContext.dart diff --git a/bin/Net/IIP/DistributedResource.dart b/lib/src/Net/IIP/DistributedResource.dart similarity index 100% rename from bin/Net/IIP/DistributedResource.dart rename to lib/src/Net/IIP/DistributedResource.dart diff --git a/bin/Net/IIP/DistributedResourceQueueItem.dart b/lib/src/Net/IIP/DistributedResourceQueueItem.dart similarity index 100% rename from bin/Net/IIP/DistributedResourceQueueItem.dart rename to lib/src/Net/IIP/DistributedResourceQueueItem.dart diff --git a/bin/Net/IIP/DistributedResourceQueueItemType.dart b/lib/src/Net/IIP/DistributedResourceQueueItemType.dart similarity index 100% rename from bin/Net/IIP/DistributedResourceQueueItemType.dart rename to lib/src/Net/IIP/DistributedResourceQueueItemType.dart diff --git a/bin/Net/NetworkBuffer.dart b/lib/src/Net/NetworkBuffer.dart similarity index 100% rename from bin/Net/NetworkBuffer.dart rename to lib/src/Net/NetworkBuffer.dart diff --git a/bin/Net/NetworkConnection.dart b/lib/src/Net/NetworkConnection.dart similarity index 100% rename from bin/Net/NetworkConnection.dart rename to lib/src/Net/NetworkConnection.dart diff --git a/bin/Net/Packets/IIPAuthPacket.dart b/lib/src/Net/Packets/IIPAuthPacket.dart similarity index 100% rename from bin/Net/Packets/IIPAuthPacket.dart rename to lib/src/Net/Packets/IIPAuthPacket.dart diff --git a/bin/Net/Packets/IIPAuthPacketAction.dart b/lib/src/Net/Packets/IIPAuthPacketAction.dart similarity index 100% rename from bin/Net/Packets/IIPAuthPacketAction.dart rename to lib/src/Net/Packets/IIPAuthPacketAction.dart diff --git a/bin/Net/Packets/IIPAuthPacketCommand.dart b/lib/src/Net/Packets/IIPAuthPacketCommand.dart similarity index 100% rename from bin/Net/Packets/IIPAuthPacketCommand.dart rename to lib/src/Net/Packets/IIPAuthPacketCommand.dart diff --git a/bin/Net/Packets/IIPAuthPacketMethod.dart b/lib/src/Net/Packets/IIPAuthPacketMethod.dart similarity index 100% rename from bin/Net/Packets/IIPAuthPacketMethod.dart rename to lib/src/Net/Packets/IIPAuthPacketMethod.dart diff --git a/bin/Net/Packets/IIPPacket.dart b/lib/src/Net/Packets/IIPPacket.dart similarity index 100% rename from bin/Net/Packets/IIPPacket.dart rename to lib/src/Net/Packets/IIPPacket.dart diff --git a/bin/Net/Packets/IIPPacketAction.dart b/lib/src/Net/Packets/IIPPacketAction.dart similarity index 100% rename from bin/Net/Packets/IIPPacketAction.dart rename to lib/src/Net/Packets/IIPPacketAction.dart diff --git a/bin/Net/Packets/IIPPacketCommand.dart b/lib/src/Net/Packets/IIPPacketCommand.dart similarity index 100% rename from bin/Net/Packets/IIPPacketCommand.dart rename to lib/src/Net/Packets/IIPPacketCommand.dart diff --git a/bin/Net/Packets/IIPPacketEvent.dart b/lib/src/Net/Packets/IIPPacketEvent.dart similarity index 100% rename from bin/Net/Packets/IIPPacketEvent.dart rename to lib/src/Net/Packets/IIPPacketEvent.dart diff --git a/bin/Net/Packets/IIPPacketReport.dart b/lib/src/Net/Packets/IIPPacketReport.dart similarity index 100% rename from bin/Net/Packets/IIPPacketReport.dart rename to lib/src/Net/Packets/IIPPacketReport.dart diff --git a/bin/Net/SendList.dart b/lib/src/Net/SendList.dart similarity index 100% rename from bin/Net/SendList.dart rename to lib/src/Net/SendList.dart diff --git a/bin/Net/Sockets/IPEndPoint.dart b/lib/src/Net/Sockets/IPEndPoint.dart similarity index 100% rename from bin/Net/Sockets/IPEndPoint.dart rename to lib/src/Net/Sockets/IPEndPoint.dart diff --git a/bin/Net/Sockets/ISocket.dart b/lib/src/Net/Sockets/ISocket.dart similarity index 100% rename from bin/Net/Sockets/ISocket.dart rename to lib/src/Net/Sockets/ISocket.dart diff --git a/bin/Net/Sockets/SocketState.dart b/lib/src/Net/Sockets/SocketState.dart similarity index 100% rename from bin/Net/Sockets/SocketState.dart rename to lib/src/Net/Sockets/SocketState.dart diff --git a/bin/Net/Sockets/TCPSocket.dart b/lib/src/Net/Sockets/TCPSocket.dart similarity index 100% rename from bin/Net/Sockets/TCPSocket.dart rename to lib/src/Net/Sockets/TCPSocket.dart diff --git a/bin/Resource/IResource.dart b/lib/src/Resource/IResource.dart similarity index 100% rename from bin/Resource/IResource.dart rename to lib/src/Resource/IResource.dart diff --git a/bin/Resource/IStore.dart b/lib/src/Resource/IStore.dart similarity index 94% rename from bin/Resource/IStore.dart rename to lib/src/Resource/IStore.dart index 37d0f34..06c2dd1 100644 --- a/bin/Resource/IStore.dart +++ b/lib/src/Resource/IStore.dart @@ -28,7 +28,10 @@ import '../Data/KeyList.dart'; import './Template/PropertyTemplate.dart'; import '../Data/PropertyValue.dart'; -abstract class IStore extends IResource +// old +// abstract class IStore extends IResource +// new +abstract class IStore implements IResource { AsyncReply get(String path); AsyncReply retrieve(int iid); diff --git a/bin/Resource/Instance.dart b/lib/src/Resource/Instance.dart similarity index 100% rename from bin/Resource/Instance.dart rename to lib/src/Resource/Instance.dart diff --git a/bin/Resource/ResourceTrigger.dart b/lib/src/Resource/ResourceTrigger.dart similarity index 100% rename from bin/Resource/ResourceTrigger.dart rename to lib/src/Resource/ResourceTrigger.dart diff --git a/bin/Resource/StorageMode.dart b/lib/src/Resource/StorageMode.dart similarity index 100% rename from bin/Resource/StorageMode.dart rename to lib/src/Resource/StorageMode.dart diff --git a/bin/Resource/Template/EventTemplate.dart b/lib/src/Resource/Template/EventTemplate.dart similarity index 100% rename from bin/Resource/Template/EventTemplate.dart rename to lib/src/Resource/Template/EventTemplate.dart diff --git a/bin/Resource/Template/FunctionTemplate.dart b/lib/src/Resource/Template/FunctionTemplate.dart similarity index 100% rename from bin/Resource/Template/FunctionTemplate.dart rename to lib/src/Resource/Template/FunctionTemplate.dart diff --git a/bin/Resource/Template/MemberTemplate.dart b/lib/src/Resource/Template/MemberTemplate.dart similarity index 100% rename from bin/Resource/Template/MemberTemplate.dart rename to lib/src/Resource/Template/MemberTemplate.dart diff --git a/bin/Resource/Template/MemberType.dart b/lib/src/Resource/Template/MemberType.dart similarity index 100% rename from bin/Resource/Template/MemberType.dart rename to lib/src/Resource/Template/MemberType.dart diff --git a/bin/Resource/Template/PropertyPermission.dart b/lib/src/Resource/Template/PropertyPermission.dart similarity index 100% rename from bin/Resource/Template/PropertyPermission.dart rename to lib/src/Resource/Template/PropertyPermission.dart diff --git a/bin/Resource/Template/PropertyTemplate.dart b/lib/src/Resource/Template/PropertyTemplate.dart similarity index 100% rename from bin/Resource/Template/PropertyTemplate.dart rename to lib/src/Resource/Template/PropertyTemplate.dart diff --git a/bin/Resource/Template/ResourceTemplate.dart b/lib/src/Resource/Template/ResourceTemplate.dart similarity index 100% rename from bin/Resource/Template/ResourceTemplate.dart rename to lib/src/Resource/Template/ResourceTemplate.dart diff --git a/bin/Resource/Warehouse.dart b/lib/src/Resource/Warehouse.dart similarity index 100% rename from bin/Resource/Warehouse.dart rename to lib/src/Resource/Warehouse.dart diff --git a/bin/Security/Authority/Authentication.dart b/lib/src/Security/Authority/Authentication.dart similarity index 100% rename from bin/Security/Authority/Authentication.dart rename to lib/src/Security/Authority/Authentication.dart diff --git a/bin/Security/Authority/AuthenticationState.dart b/lib/src/Security/Authority/AuthenticationState.dart similarity index 100% rename from bin/Security/Authority/AuthenticationState.dart rename to lib/src/Security/Authority/AuthenticationState.dart diff --git a/bin/Security/Authority/AuthenticationType.dart b/lib/src/Security/Authority/AuthenticationType.dart similarity index 100% rename from bin/Security/Authority/AuthenticationType.dart rename to lib/src/Security/Authority/AuthenticationType.dart diff --git a/bin/Security/Authority/ClientAuthentication.dart b/lib/src/Security/Authority/ClientAuthentication.dart similarity index 100% rename from bin/Security/Authority/ClientAuthentication.dart rename to lib/src/Security/Authority/ClientAuthentication.dart diff --git a/bin/Security/Authority/CoHostAuthentication.dart b/lib/src/Security/Authority/CoHostAuthentication.dart similarity index 100% rename from bin/Security/Authority/CoHostAuthentication.dart rename to lib/src/Security/Authority/CoHostAuthentication.dart diff --git a/bin/Security/Authority/HostAuthentication.dart b/lib/src/Security/Authority/HostAuthentication.dart similarity index 100% rename from bin/Security/Authority/HostAuthentication.dart rename to lib/src/Security/Authority/HostAuthentication.dart diff --git a/bin/Security/Authority/Session.dart b/lib/src/Security/Authority/Session.dart similarity index 100% rename from bin/Security/Authority/Session.dart rename to lib/src/Security/Authority/Session.dart diff --git a/bin/Security/Authority/Source.dart b/lib/src/Security/Authority/Source.dart similarity index 100% rename from bin/Security/Authority/Source.dart rename to lib/src/Security/Authority/Source.dart diff --git a/bin/Security/Authority/SourceAttributeType.dart b/lib/src/Security/Authority/SourceAttributeType.dart similarity index 100% rename from bin/Security/Authority/SourceAttributeType.dart rename to lib/src/Security/Authority/SourceAttributeType.dart diff --git a/bin/Security/Integrity/SHA256.dart b/lib/src/Security/Integrity/SHA256.dart similarity index 100% rename from bin/Security/Integrity/SHA256.dart rename to lib/src/Security/Integrity/SHA256.dart diff --git a/bin/Security/Permissions/ActionType.dart b/lib/src/Security/Permissions/ActionType.dart similarity index 100% rename from bin/Security/Permissions/ActionType.dart rename to lib/src/Security/Permissions/ActionType.dart diff --git a/bin/Security/Permissions/IPermissionsManager.dart b/lib/src/Security/Permissions/IPermissionsManager.dart similarity index 100% rename from bin/Security/Permissions/IPermissionsManager.dart rename to lib/src/Security/Permissions/IPermissionsManager.dart diff --git a/bin/Security/Permissions/Ruling.dart b/lib/src/Security/Permissions/Ruling.dart similarity index 100% rename from bin/Security/Permissions/Ruling.dart rename to lib/src/Security/Permissions/Ruling.dart diff --git a/pubspec.lock b/pubspec.lock new file mode 100644 index 0000000..a1e8431 --- /dev/null +++ b/pubspec.lock @@ -0,0 +1,139 @@ +# Generated by pub +# See https://www.dartlang.org/tools/pub/glossary#lockfile +packages: + async: + dependency: transitive + description: + name: async + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" + boolean_selector: + dependency: transitive + description: + name: boolean_selector + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + charcode: + dependency: transitive + description: + name: charcode + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.2" + collection: + dependency: transitive + description: + name: collection + url: "https://pub.dartlang.org" + source: hosted + version: "1.14.11" + flutter: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" + flutter_test: + dependency: "direct dev" + description: flutter + source: sdk + version: "0.0.0" + matcher: + dependency: transitive + description: + name: matcher + url: "https://pub.dartlang.org" + source: hosted + version: "0.12.5" + meta: + dependency: transitive + description: + name: meta + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + path: + dependency: transitive + description: + name: path + url: "https://pub.dartlang.org" + source: hosted + version: "1.6.2" + pedantic: + dependency: transitive + description: + name: pedantic + url: "https://pub.dartlang.org" + source: hosted + version: "1.5.0" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.2" + sky_engine: + dependency: transitive + description: flutter + source: sdk + version: "0.0.99" + source_span: + dependency: transitive + description: + name: source_span + url: "https://pub.dartlang.org" + source: hosted + version: "1.5.5" + stack_trace: + dependency: transitive + description: + name: stack_trace + url: "https://pub.dartlang.org" + source: hosted + version: "1.9.3" + stream_channel: + dependency: transitive + description: + name: stream_channel + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.0" + string_scanner: + dependency: transitive + description: + name: string_scanner + url: "https://pub.dartlang.org" + source: hosted + version: "1.0.4" + term_glyph: + dependency: transitive + description: + name: term_glyph + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.0" + test_api: + dependency: transitive + description: + name: test_api + url: "https://pub.dartlang.org" + source: hosted + version: "0.2.4" + typed_data: + dependency: transitive + description: + name: typed_data + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.6" + vector_math: + dependency: transitive + description: + name: vector_math + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.8" +sdks: + dart: ">=2.2.0 <3.0.0" diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..ed050ef --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,53 @@ +name: esiur +description: A new Flutter package project. +version: 0.0.1 +author: Ahmed Zamil +homepage: https://github.com/esiur/esiur-dart + +environment: + sdk: ">=2.1.0 <3.0.0" + +dependencies: + flutter: + sdk: flutter + +dev_dependencies: + flutter_test: + sdk: flutter + +# For information on the generic Dart part of this file, see the +# following page: https://www.dartlang.org/tools/pub/pubspec + +# The following section is specific to Flutter. +flutter: + + # To add assets to your package, add an assets section, like this: + # assets: + # - images/a_dot_burr.jpeg + # - images/a_dot_ham.jpeg + # + # For details regarding assets in packages, see + # https://flutter.dev/assets-and-images/#from-packages + # + # An image asset can refer to one or more resolution-specific "variants", see + # https://flutter.dev/assets-and-images/#resolution-aware. + + # To add custom fonts to your package, add a fonts section here, + # in this "flutter" section. Each entry in this list should have a + # "family" key with the font family name, and a "fonts" key with a + # list giving the asset and other descriptors for the font. For + # example: + # fonts: + # - family: Schyler + # fonts: + # - asset: fonts/Schyler-Regular.ttf + # - asset: fonts/Schyler-Italic.ttf + # style: italic + # - family: Trajan Pro + # fonts: + # - asset: fonts/TrajanPro.ttf + # - asset: fonts/TrajanPro_Bold.ttf + # weight: 700 + # + # For details regarding fonts in packages, see + # https://flutter.dev/custom-fonts/#from-packages diff --git a/bin/main.dart b/test/esiur_test.dart similarity index 74% rename from bin/main.dart rename to test/esiur_test.dart index a47e2af..75d3995 100644 --- a/bin/main.dart +++ b/test/esiur_test.dart @@ -1,6 +1,14 @@ -import 'esiur.dart'; +import 'package:flutter_test/flutter_test.dart'; +import 'package:esiur/esiur.dart'; -main() async +void main() { + test('adds one to input values', () { + connect(); + }); +} + + +connect() async { // connect to the server var x = await Warehouse.get("iip://localhost:5000/db/my", {"username": "demo", "password": "1234"});