From 8fcc5604396b7c127e0f90aeb83e6651a2444383 Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Sat, 21 Dec 2024 19:16:25 -0700 Subject: [PATCH] refactor: upgrade refelction from incubation to package status --- packages/macroable/pubspec.yaml | 2 +- packages/mirrors/.gitignore | 7 ----- packages/mirrors/CHANGELOG.md | 3 -- packages/mirrors/LICENSE.md | 10 ------- packages/mirrors/README.md | 1 - packages/mirrors/analysis_options.yaml | 30 ------------------- packages/mirrors/doc/.gitkeep | 0 packages/mirrors/example/.gitkeep | 0 packages/mirrors/lib/src/.gitkeep | 0 packages/mirrors/pubspec.yaml | 20 ------------- packages/mirrors/test/.gitkeep | 0 .../reflection/.gitignore | 0 .../reflection/CHANGELOG.md | 0 .../reflection/LICENSE.md | 0 {incubation => packages}/reflection/README.md | 0 .../reflection/analysis_options.yaml | 0 .../reflection/doc/capabilities.md | 0 .../reflection/doc/index.md | 0 .../reflection/doc/mirrors_comparison.md | 0 .../reflection/doc/quick_start.md | 0 .../reflection/doc/roadmap.md | 0 .../reflection/doc/technical_specification.md | 0 .../example/reflection_example.dart | 0 .../reflection/lib/mirrors.dart | 0 .../reflection/lib/src/annotations.dart | 0 .../lib/src/core/library_scanner.dart | 0 .../reflection/lib/src/core/reflector.dart | 0 .../lib/src/core/runtime_reflector.dart | 0 .../reflection/lib/src/core/scanner.dart | 0 .../reflection/lib/src/exceptions.dart | 0 .../reflection/lib/src/metadata.dart | 0 .../lib/src/mirrors/base_mirror.dart | 0 .../lib/src/mirrors/class_mirror.dart | 0 .../lib/src/mirrors/combinator_mirror.dart | 0 .../lib/src/mirrors/instance_mirror.dart | 0 .../lib/src/mirrors/isolate_mirror.dart | 0 .../mirrors/library_dependency_mirror.dart | 0 .../lib/src/mirrors/library_mirror.dart | 0 .../lib/src/mirrors/method_mirror.dart | 0 .../lib/src/mirrors/mirror_system.dart | 0 .../lib/src/mirrors/parameter_mirror.dart | 0 .../lib/src/mirrors/special_types.dart | 0 .../lib/src/mirrors/type_mirror.dart | 0 .../lib/src/mirrors/type_variable_mirror.dart | 0 .../lib/src/mirrors/variable_mirror.dart | 0 .../reflection/pubspec.yaml | 0 .../test/isolate_reflection_test.dart | 0 .../test/library_reflection_test.dart | 0 .../reflection/test/mirror_system_test.dart | 0 .../reflection/test/reflection_test.dart | 0 .../reflection/test/scanner_test.dart | 0 packages/support/pubspec.yaml | 6 ++-- 52 files changed, 5 insertions(+), 74 deletions(-) delete mode 100644 packages/mirrors/.gitignore delete mode 100644 packages/mirrors/CHANGELOG.md delete mode 100644 packages/mirrors/LICENSE.md delete mode 100644 packages/mirrors/README.md delete mode 100644 packages/mirrors/analysis_options.yaml delete mode 100644 packages/mirrors/doc/.gitkeep delete mode 100644 packages/mirrors/example/.gitkeep delete mode 100644 packages/mirrors/lib/src/.gitkeep delete mode 100644 packages/mirrors/pubspec.yaml delete mode 100644 packages/mirrors/test/.gitkeep rename {incubation => packages}/reflection/.gitignore (100%) rename {incubation => packages}/reflection/CHANGELOG.md (100%) rename {incubation => packages}/reflection/LICENSE.md (100%) rename {incubation => packages}/reflection/README.md (100%) rename {incubation => packages}/reflection/analysis_options.yaml (100%) rename {incubation => packages}/reflection/doc/capabilities.md (100%) rename {incubation => packages}/reflection/doc/index.md (100%) rename {incubation => packages}/reflection/doc/mirrors_comparison.md (100%) rename {incubation => packages}/reflection/doc/quick_start.md (100%) rename {incubation => packages}/reflection/doc/roadmap.md (100%) rename {incubation => packages}/reflection/doc/technical_specification.md (100%) rename {incubation => packages}/reflection/example/reflection_example.dart (100%) rename {incubation => packages}/reflection/lib/mirrors.dart (100%) rename {incubation => packages}/reflection/lib/src/annotations.dart (100%) rename {incubation => packages}/reflection/lib/src/core/library_scanner.dart (100%) rename {incubation => packages}/reflection/lib/src/core/reflector.dart (100%) rename {incubation => packages}/reflection/lib/src/core/runtime_reflector.dart (100%) rename {incubation => packages}/reflection/lib/src/core/scanner.dart (100%) rename {incubation => packages}/reflection/lib/src/exceptions.dart (100%) rename {incubation => packages}/reflection/lib/src/metadata.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/base_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/class_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/combinator_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/instance_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/isolate_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/library_dependency_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/library_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/method_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/mirror_system.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/parameter_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/special_types.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/type_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/type_variable_mirror.dart (100%) rename {incubation => packages}/reflection/lib/src/mirrors/variable_mirror.dart (100%) rename {incubation => packages}/reflection/pubspec.yaml (100%) rename {incubation => packages}/reflection/test/isolate_reflection_test.dart (100%) rename {incubation => packages}/reflection/test/library_reflection_test.dart (100%) rename {incubation => packages}/reflection/test/mirror_system_test.dart (100%) rename {incubation => packages}/reflection/test/reflection_test.dart (100%) rename {incubation => packages}/reflection/test/scanner_test.dart (100%) diff --git a/packages/macroable/pubspec.yaml b/packages/macroable/pubspec.yaml index 9b3183c..06e0d6c 100644 --- a/packages/macroable/pubspec.yaml +++ b/packages/macroable/pubspec.yaml @@ -6,8 +6,8 @@ environment: sdk: ">=3.0.0 <4.0.0" dependencies: - platform_reflection: ^0.1.0 platform_contracts: ^0.1.0 + platform_reflection: ^0.1.0 meta: ^1.9.0 dev_dependencies: diff --git a/packages/mirrors/.gitignore b/packages/mirrors/.gitignore deleted file mode 100644 index 3cceda5..0000000 --- a/packages/mirrors/.gitignore +++ /dev/null @@ -1,7 +0,0 @@ -# https://dart.dev/guides/libraries/private-files -# Created by `dart pub` -.dart_tool/ - -# Avoid committing pubspec.lock for library packages; see -# https://dart.dev/guides/libraries/private-files#pubspeclock. -pubspec.lock diff --git a/packages/mirrors/CHANGELOG.md b/packages/mirrors/CHANGELOG.md deleted file mode 100644 index effe43c..0000000 --- a/packages/mirrors/CHANGELOG.md +++ /dev/null @@ -1,3 +0,0 @@ -## 1.0.0 - -- Initial version. diff --git a/packages/mirrors/LICENSE.md b/packages/mirrors/LICENSE.md deleted file mode 100644 index 0fd0d03..0000000 --- a/packages/mirrors/LICENSE.md +++ /dev/null @@ -1,10 +0,0 @@ -The MIT License (MIT) - -The Laravel Framework is Copyright (c) Taylor Otwell -The Fabric Framework is Copyright (c) Vieo, Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file diff --git a/packages/mirrors/README.md b/packages/mirrors/README.md deleted file mode 100644 index 757f4c9..0000000 --- a/packages/mirrors/README.md +++ /dev/null @@ -1 +0,0 @@ -

\ No newline at end of file diff --git a/packages/mirrors/analysis_options.yaml b/packages/mirrors/analysis_options.yaml deleted file mode 100644 index dee8927..0000000 --- a/packages/mirrors/analysis_options.yaml +++ /dev/null @@ -1,30 +0,0 @@ -# This file configures the static analysis results for your project (errors, -# warnings, and lints). -# -# This enables the 'recommended' set of lints from `package:lints`. -# This set helps identify many issues that may lead to problems when running -# or consuming Dart code, and enforces writing Dart using a single, idiomatic -# style and format. -# -# If you want a smaller set of lints you can change this to specify -# 'package:lints/core.yaml'. These are just the most critical lints -# (the recommended set includes the core lints). -# The core lints are also what is used by pub.dev for scoring packages. - -include: package:lints/recommended.yaml - -# Uncomment the following section to specify additional rules. - -# linter: -# rules: -# - camel_case_types - -# analyzer: -# exclude: -# - path/to/excluded/files/** - -# For more information about the core and recommended set of lints, see -# https://dart.dev/go/core-lints - -# For additional information about configuring this file, see -# https://dart.dev/guides/language/analysis-options diff --git a/packages/mirrors/doc/.gitkeep b/packages/mirrors/doc/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/packages/mirrors/example/.gitkeep b/packages/mirrors/example/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/packages/mirrors/lib/src/.gitkeep b/packages/mirrors/lib/src/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/packages/mirrors/pubspec.yaml b/packages/mirrors/pubspec.yaml deleted file mode 100644 index a39bd81..0000000 --- a/packages/mirrors/pubspec.yaml +++ /dev/null @@ -1,20 +0,0 @@ -name: platform_mirrors -description: A lightweight, cross-platform reflection system for Dart -version: 0.0.1 -homepage: https://protevus.com -documentation: https://docs.protevus.com -repository: https://github.com/protevus/platformo - -environment: - sdk: '>=3.0.0 <4.0.0' - -dependencies: - platform_contracts: ^0.1.0 - meta: ^1.9.0 - collection: ^1.17.0 - -dev_dependencies: - test: ^1.24.0 - mockito: ^5.4.0 - build_runner: ^2.4.0 - lints: ^2.1.0 diff --git a/packages/mirrors/test/.gitkeep b/packages/mirrors/test/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/incubation/reflection/.gitignore b/packages/reflection/.gitignore similarity index 100% rename from incubation/reflection/.gitignore rename to packages/reflection/.gitignore diff --git a/incubation/reflection/CHANGELOG.md b/packages/reflection/CHANGELOG.md similarity index 100% rename from incubation/reflection/CHANGELOG.md rename to packages/reflection/CHANGELOG.md diff --git a/incubation/reflection/LICENSE.md b/packages/reflection/LICENSE.md similarity index 100% rename from incubation/reflection/LICENSE.md rename to packages/reflection/LICENSE.md diff --git a/incubation/reflection/README.md b/packages/reflection/README.md similarity index 100% rename from incubation/reflection/README.md rename to packages/reflection/README.md diff --git a/incubation/reflection/analysis_options.yaml b/packages/reflection/analysis_options.yaml similarity index 100% rename from incubation/reflection/analysis_options.yaml rename to packages/reflection/analysis_options.yaml diff --git a/incubation/reflection/doc/capabilities.md b/packages/reflection/doc/capabilities.md similarity index 100% rename from incubation/reflection/doc/capabilities.md rename to packages/reflection/doc/capabilities.md diff --git a/incubation/reflection/doc/index.md b/packages/reflection/doc/index.md similarity index 100% rename from incubation/reflection/doc/index.md rename to packages/reflection/doc/index.md diff --git a/incubation/reflection/doc/mirrors_comparison.md b/packages/reflection/doc/mirrors_comparison.md similarity index 100% rename from incubation/reflection/doc/mirrors_comparison.md rename to packages/reflection/doc/mirrors_comparison.md diff --git a/incubation/reflection/doc/quick_start.md b/packages/reflection/doc/quick_start.md similarity index 100% rename from incubation/reflection/doc/quick_start.md rename to packages/reflection/doc/quick_start.md diff --git a/incubation/reflection/doc/roadmap.md b/packages/reflection/doc/roadmap.md similarity index 100% rename from incubation/reflection/doc/roadmap.md rename to packages/reflection/doc/roadmap.md diff --git a/incubation/reflection/doc/technical_specification.md b/packages/reflection/doc/technical_specification.md similarity index 100% rename from incubation/reflection/doc/technical_specification.md rename to packages/reflection/doc/technical_specification.md diff --git a/incubation/reflection/example/reflection_example.dart b/packages/reflection/example/reflection_example.dart similarity index 100% rename from incubation/reflection/example/reflection_example.dart rename to packages/reflection/example/reflection_example.dart diff --git a/incubation/reflection/lib/mirrors.dart b/packages/reflection/lib/mirrors.dart similarity index 100% rename from incubation/reflection/lib/mirrors.dart rename to packages/reflection/lib/mirrors.dart diff --git a/incubation/reflection/lib/src/annotations.dart b/packages/reflection/lib/src/annotations.dart similarity index 100% rename from incubation/reflection/lib/src/annotations.dart rename to packages/reflection/lib/src/annotations.dart diff --git a/incubation/reflection/lib/src/core/library_scanner.dart b/packages/reflection/lib/src/core/library_scanner.dart similarity index 100% rename from incubation/reflection/lib/src/core/library_scanner.dart rename to packages/reflection/lib/src/core/library_scanner.dart diff --git a/incubation/reflection/lib/src/core/reflector.dart b/packages/reflection/lib/src/core/reflector.dart similarity index 100% rename from incubation/reflection/lib/src/core/reflector.dart rename to packages/reflection/lib/src/core/reflector.dart diff --git a/incubation/reflection/lib/src/core/runtime_reflector.dart b/packages/reflection/lib/src/core/runtime_reflector.dart similarity index 100% rename from incubation/reflection/lib/src/core/runtime_reflector.dart rename to packages/reflection/lib/src/core/runtime_reflector.dart diff --git a/incubation/reflection/lib/src/core/scanner.dart b/packages/reflection/lib/src/core/scanner.dart similarity index 100% rename from incubation/reflection/lib/src/core/scanner.dart rename to packages/reflection/lib/src/core/scanner.dart diff --git a/incubation/reflection/lib/src/exceptions.dart b/packages/reflection/lib/src/exceptions.dart similarity index 100% rename from incubation/reflection/lib/src/exceptions.dart rename to packages/reflection/lib/src/exceptions.dart diff --git a/incubation/reflection/lib/src/metadata.dart b/packages/reflection/lib/src/metadata.dart similarity index 100% rename from incubation/reflection/lib/src/metadata.dart rename to packages/reflection/lib/src/metadata.dart diff --git a/incubation/reflection/lib/src/mirrors/base_mirror.dart b/packages/reflection/lib/src/mirrors/base_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/base_mirror.dart rename to packages/reflection/lib/src/mirrors/base_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/class_mirror.dart b/packages/reflection/lib/src/mirrors/class_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/class_mirror.dart rename to packages/reflection/lib/src/mirrors/class_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/combinator_mirror.dart b/packages/reflection/lib/src/mirrors/combinator_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/combinator_mirror.dart rename to packages/reflection/lib/src/mirrors/combinator_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/instance_mirror.dart b/packages/reflection/lib/src/mirrors/instance_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/instance_mirror.dart rename to packages/reflection/lib/src/mirrors/instance_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/isolate_mirror.dart b/packages/reflection/lib/src/mirrors/isolate_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/isolate_mirror.dart rename to packages/reflection/lib/src/mirrors/isolate_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/library_dependency_mirror.dart b/packages/reflection/lib/src/mirrors/library_dependency_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/library_dependency_mirror.dart rename to packages/reflection/lib/src/mirrors/library_dependency_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/library_mirror.dart b/packages/reflection/lib/src/mirrors/library_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/library_mirror.dart rename to packages/reflection/lib/src/mirrors/library_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/method_mirror.dart b/packages/reflection/lib/src/mirrors/method_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/method_mirror.dart rename to packages/reflection/lib/src/mirrors/method_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/mirror_system.dart b/packages/reflection/lib/src/mirrors/mirror_system.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/mirror_system.dart rename to packages/reflection/lib/src/mirrors/mirror_system.dart diff --git a/incubation/reflection/lib/src/mirrors/parameter_mirror.dart b/packages/reflection/lib/src/mirrors/parameter_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/parameter_mirror.dart rename to packages/reflection/lib/src/mirrors/parameter_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/special_types.dart b/packages/reflection/lib/src/mirrors/special_types.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/special_types.dart rename to packages/reflection/lib/src/mirrors/special_types.dart diff --git a/incubation/reflection/lib/src/mirrors/type_mirror.dart b/packages/reflection/lib/src/mirrors/type_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/type_mirror.dart rename to packages/reflection/lib/src/mirrors/type_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/type_variable_mirror.dart b/packages/reflection/lib/src/mirrors/type_variable_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/type_variable_mirror.dart rename to packages/reflection/lib/src/mirrors/type_variable_mirror.dart diff --git a/incubation/reflection/lib/src/mirrors/variable_mirror.dart b/packages/reflection/lib/src/mirrors/variable_mirror.dart similarity index 100% rename from incubation/reflection/lib/src/mirrors/variable_mirror.dart rename to packages/reflection/lib/src/mirrors/variable_mirror.dart diff --git a/incubation/reflection/pubspec.yaml b/packages/reflection/pubspec.yaml similarity index 100% rename from incubation/reflection/pubspec.yaml rename to packages/reflection/pubspec.yaml diff --git a/incubation/reflection/test/isolate_reflection_test.dart b/packages/reflection/test/isolate_reflection_test.dart similarity index 100% rename from incubation/reflection/test/isolate_reflection_test.dart rename to packages/reflection/test/isolate_reflection_test.dart diff --git a/incubation/reflection/test/library_reflection_test.dart b/packages/reflection/test/library_reflection_test.dart similarity index 100% rename from incubation/reflection/test/library_reflection_test.dart rename to packages/reflection/test/library_reflection_test.dart diff --git a/incubation/reflection/test/mirror_system_test.dart b/packages/reflection/test/mirror_system_test.dart similarity index 100% rename from incubation/reflection/test/mirror_system_test.dart rename to packages/reflection/test/mirror_system_test.dart diff --git a/incubation/reflection/test/reflection_test.dart b/packages/reflection/test/reflection_test.dart similarity index 100% rename from incubation/reflection/test/reflection_test.dart rename to packages/reflection/test/reflection_test.dart diff --git a/incubation/reflection/test/scanner_test.dart b/packages/reflection/test/scanner_test.dart similarity index 100% rename from incubation/reflection/test/scanner_test.dart rename to packages/reflection/test/scanner_test.dart diff --git a/packages/support/pubspec.yaml b/packages/support/pubspec.yaml index 82c99d5..ebb61ae 100644 --- a/packages/support/pubspec.yaml +++ b/packages/support/pubspec.yaml @@ -16,11 +16,13 @@ dependencies: glob: ^2.1.0 yaml: ^3.1.2 pub_semver: ^2.1.4 + platform_collections: ^1.0.0 + platform_conditionable: ^1.0.0 platform_contracts: ^1.0.0 platform_macroable: ^1.0.0 platform_reflection: ^1.0.0 - platform_conditionable: ^1.0.0 - platform_collections: ^1.0.0 + + dev_dependencies: lints: ^2.1.0