From 3196f9a123987ccbfca492346c99d5766bd21a97 Mon Sep 17 00:00:00 2001 From: Burhan Khanzada Date: Thu, 25 Jan 2024 09:01:58 +0500 Subject: [PATCH 1/4] Ingorne and remove .g.dart files --- .gitignore | 1 + .../test/ex47_json_inheritance_test.g.dart | 33 ------ example/test/ex48_json_generics_test.g.dart | 23 ---- .../test/ex48_json_with_subtype_test.g.dart | 29 ----- .../ex50_json_inheritance_generic_test.g.dart | 41 ------- ..._json_inheritance_generic_from_test.g.dart | 41 ------- .../ex52_json_inheritance_generic_test.g.dart | 69 ------------ example/test/ex53_abstract_json_test.g.dart | 37 ------ .../ex54_default_constructor_json_test.g.dart | 37 ------ example/test/ex8_enums_test.g.dart | 23 ---- example/test/readme_test.g.dart | 106 ------------------ 11 files changed, 1 insertion(+), 439 deletions(-) delete mode 100644 example/test/ex47_json_inheritance_test.g.dart delete mode 100644 example/test/ex48_json_generics_test.g.dart delete mode 100644 example/test/ex48_json_with_subtype_test.g.dart delete mode 100644 example/test/ex50_json_inheritance_generic_test.g.dart delete mode 100644 example/test/ex51_json_inheritance_generic_from_test.g.dart delete mode 100644 example/test/ex52_json_inheritance_generic_test.g.dart delete mode 100644 example/test/ex53_abstract_json_test.g.dart delete mode 100644 example/test/ex54_default_constructor_json_test.g.dart delete mode 100644 example/test/ex8_enums_test.g.dart delete mode 100644 example/test/readme_test.g.dart diff --git a/.gitignore b/.gitignore index 46b7540..ca6ccb7 100644 --- a/.gitignore +++ b/.gitignore @@ -20,6 +20,7 @@ # so this line is commented out by default. #.vscode/ +*.g.dart *.morphy.dart *.morphy2.dart diff --git a/example/test/ex47_json_inheritance_test.g.dart b/example/test/ex47_json_inheritance_test.g.dart deleted file mode 100644 index 6be48c8..0000000 --- a/example/test/ex47_json_inheritance_test.g.dart +++ /dev/null @@ -1,33 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex47_json_inheritance_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -A _$AFromJson(Map json) => A( - id: json['id'] as String, - ); - -Map _$AToJson(A instance) => { - 'id': instance.id, - }; - -B _$BFromJson(Map json) => B( - id: json['id'] as String, - ); - -Map _$BToJson(B instance) => { - 'id': instance.id, - }; - -C _$CFromJson(Map json) => C( - id: json['id'] as String, - items: (json['items'] as List).map((e) => e as int).toList(), - ); - -Map _$CToJson(C instance) => { - 'id': instance.id, - 'items': instance.items, - }; diff --git a/example/test/ex48_json_generics_test.g.dart b/example/test/ex48_json_generics_test.g.dart deleted file mode 100644 index 633a270..0000000 --- a/example/test/ex48_json_generics_test.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex48_json_generics_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -A _$AFromJson( - Map json, - T Function(Object? json) fromJsonT, -) => - A( - fromJsonT(json['data']), - ); - -Map _$AToJson( - A instance, - Object? Function(T value) toJsonT, -) => - { - 'data': toJsonT(instance.data), - }; diff --git a/example/test/ex48_json_with_subtype_test.g.dart b/example/test/ex48_json_with_subtype_test.g.dart deleted file mode 100644 index ce885eb..0000000 --- a/example/test/ex48_json_with_subtype_test.g.dart +++ /dev/null @@ -1,29 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex48_json_with_subtype_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -A _$AFromJson(Map json) => A( - id: json['id'] as String, - x: X.fromJson(json['x'] as Map), - xs: (json['xs'] as List) - .map((e) => X.fromJson(e as Map)) - .toList(), - ); - -Map _$AToJson(A instance) => { - 'id': instance.id, - 'x': instance.x.toJson(), - 'xs': instance.xs.map((e) => e.toJson()).toList(), - }; - -X _$XFromJson(Map json) => X( - items: (json['items'] as List).map((e) => e as int).toList(), - ); - -Map _$XToJson(X instance) => { - 'items': instance.items, - }; diff --git a/example/test/ex50_json_inheritance_generic_test.g.dart b/example/test/ex50_json_inheritance_generic_test.g.dart deleted file mode 100644 index 5307bb8..0000000 --- a/example/test/ex50_json_inheritance_generic_test.g.dart +++ /dev/null @@ -1,41 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex50_json_inheritance_generic_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -A _$AFromJson(Map json) => A( - id: json['id'] as String, - ); - -Map _$AToJson(A instance) => { - 'id': instance.id, - }; - -B _$BFromJson( - Map json, - T Function(Object? json) fromJsonT, -) => - B( - id: json['id'] as String, - blah: fromJsonT(json['blah']), - ); - -Map _$BToJson( - B instance, - Object? Function(T value) toJsonT, -) => - { - 'id': instance.id, - 'blah': toJsonT(instance.blah), - }; - -X _$XFromJson(Map json) => X( - xyz: json['xyz'] as String, - ); - -Map _$XToJson(X instance) => { - 'xyz': instance.xyz, - }; diff --git a/example/test/ex51_json_inheritance_generic_from_test.g.dart b/example/test/ex51_json_inheritance_generic_from_test.g.dart deleted file mode 100644 index 6beaec5..0000000 --- a/example/test/ex51_json_inheritance_generic_from_test.g.dart +++ /dev/null @@ -1,41 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex51_json_inheritance_generic_from_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -A _$AFromJson(Map json) => A( - id: json['id'] as String, - ); - -Map _$AToJson(A instance) => { - 'id': instance.id, - }; - -B _$BFromJson( - Map json, - T Function(Object? json) fromJsonT, -) => - B( - id: json['id'] as String, - blah: fromJsonT(json['blah']), - ); - -Map _$BToJson( - B instance, - Object? Function(T value) toJsonT, -) => - { - 'id': instance.id, - 'blah': toJsonT(instance.blah), - }; - -X _$XFromJson(Map json) => X( - xyz: json['xyz'] as String, - ); - -Map _$XToJson(X instance) => { - 'xyz': instance.xyz, - }; diff --git a/example/test/ex52_json_inheritance_generic_test.g.dart b/example/test/ex52_json_inheritance_generic_test.g.dart deleted file mode 100644 index 6440501..0000000 --- a/example/test/ex52_json_inheritance_generic_test.g.dart +++ /dev/null @@ -1,69 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex52_json_inheritance_generic_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -A _$AFromJson( - Map json, - T1 Function(Object? json) fromJsonT1, -) => - A( - id: fromJsonT1(json['id']), - ); - -Map _$AToJson( - A instance, - Object? Function(T1 value) toJsonT1, -) => - { - 'id': toJsonT1(instance.id), - }; - -B _$BFromJson( - Map json, - T1 Function(Object? json) fromJsonT1, - T2 Function(Object? json) fromJsonT2, -) => - B( - id: fromJsonT1(json['id']), - valT1: fromJsonT1(json['valT1']), - valT2: fromJsonT2(json['valT2']), - ); - -Map _$BToJson( - B instance, - Object? Function(T1 value) toJsonT1, - Object? Function(T2 value) toJsonT2, -) => - { - 'id': toJsonT1(instance.id), - 'valT1': toJsonT1(instance.valT1), - 'valT2': toJsonT2(instance.valT2), - }; - -C _$CFromJson( - Map json, - T1 Function(Object? json) fromJsonT1, - T2 Function(Object? json) fromJsonT2, -) => - C( - id: fromJsonT1(json['id']), - valT1: fromJsonT1(json['valT1']), - valT2: fromJsonT2(json['valT2']), - xyz: json['xyz'] as String, - ); - -Map _$CToJson( - C instance, - Object? Function(T1 value) toJsonT1, - Object? Function(T2 value) toJsonT2, -) => - { - 'id': toJsonT1(instance.id), - 'valT1': toJsonT1(instance.valT1), - 'valT2': toJsonT2(instance.valT2), - 'xyz': instance.xyz, - }; diff --git a/example/test/ex53_abstract_json_test.g.dart b/example/test/ex53_abstract_json_test.g.dart deleted file mode 100644 index b1564ca..0000000 --- a/example/test/ex53_abstract_json_test.g.dart +++ /dev/null @@ -1,37 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex53_abstract_json_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Todo2_incomplete _$Todo2_incompleteFromJson(Map json) => - Todo2_incomplete( - title: json['title'] as String, - id: json['id'] as String?, - description: json['description'] as String, - ); - -Map _$Todo2_incompleteToJson(Todo2_incomplete instance) => - { - 'title': instance.title, - 'id': instance.id, - 'description': instance.description, - }; - -Todo2_complete _$Todo2_completeFromJson(Map json) => - Todo2_complete( - title: json['title'] as String, - id: json['id'] as String?, - description: json['description'] as String, - completedDate: DateTime.parse(json['completedDate'] as String), - ); - -Map _$Todo2_completeToJson(Todo2_complete instance) => - { - 'title': instance.title, - 'id': instance.id, - 'description': instance.description, - 'completedDate': instance.completedDate.toIso8601String(), - }; diff --git a/example/test/ex54_default_constructor_json_test.g.dart b/example/test/ex54_default_constructor_json_test.g.dart deleted file mode 100644 index 0c4350b..0000000 --- a/example/test/ex54_default_constructor_json_test.g.dart +++ /dev/null @@ -1,37 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex54_default_constructor_json_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Todo2_incomplete _$Todo2_incompleteFromJson(Map json) => - Todo2_incomplete.forJsonDoNotUse( - title: json['title'] as String, - id: json['id'] as String, - description: json['description'] as String, - ); - -Map _$Todo2_incompleteToJson(Todo2_incomplete instance) => - { - 'title': instance.title, - 'id': instance.id, - 'description': instance.description, - }; - -Todo2_complete _$Todo2_completeFromJson(Map json) => - Todo2_complete( - title: json['title'] as String, - id: json['id'] as String, - description: json['description'] as String, - completedDate: DateTime.parse(json['completedDate'] as String), - ); - -Map _$Todo2_completeToJson(Todo2_complete instance) => - { - 'title': instance.title, - 'id': instance.id, - 'description': instance.description, - 'completedDate': instance.completedDate.toIso8601String(), - }; diff --git a/example/test/ex8_enums_test.g.dart b/example/test/ex8_enums_test.g.dart deleted file mode 100644 index 8e9146a..0000000 --- a/example/test/ex8_enums_test.g.dart +++ /dev/null @@ -1,23 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'ex8_enums_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Pet _$PetFromJson(Map json) => Pet( - type: json['type'] as String, - blim: $enumDecode(_$eBlimEnumMap, json['blim']), - ); - -Map _$PetToJson(Pet instance) => { - 'type': instance.type, - 'blim': _$eBlimEnumMap[instance.blim]!, - }; - -const _$eBlimEnumMap = { - eBlim.one: 'one', - eBlim.another: 'another', - eBlim.andthis: 'andthis', -}; diff --git a/example/test/readme_test.g.dart b/example/test/readme_test.g.dart deleted file mode 100644 index 6065593..0000000 --- a/example/test/readme_test.g.dart +++ /dev/null @@ -1,106 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'readme_test.dart'; - -// ************************************************************************** -// JsonSerializableGenerator -// ************************************************************************** - -Pet _$PetFromJson(Map json) => Pet( - name: json['name'] as String, - age: json['age'] as int, - ); - -Map _$PetToJson(Pet instance) => { - 'name': instance.name, - 'age': instance.age, - }; - -FrankensteinsDogCat _$FrankensteinsDogCatFromJson(Map json) => - FrankensteinsDogCat( - whiskerLength: (json['whiskerLength'] as num).toDouble(), - woofSound: json['woofSound'] as String, - name: json['name'] as String, - age: json['age'] as int, - ); - -Map _$FrankensteinsDogCatToJson( - FrankensteinsDogCat instance) => - { - 'whiskerLength': instance.whiskerLength, - 'woofSound': instance.woofSound, - 'name': instance.name, - 'age': instance.age, - }; - -Cat _$CatFromJson(Map json) => Cat( - whiskerLength: (json['whiskerLength'] as num).toDouble(), - name: json['name'] as String, - age: json['age'] as int, - ); - -Map _$CatToJson(Cat instance) => { - 'whiskerLength': instance.whiskerLength, - 'name': instance.name, - 'age': instance.age, - }; - -Dog _$DogFromJson(Map json) => Dog( - woofSound: json['woofSound'] as String, - name: json['name'] as String, - age: json['age'] as int, - ); - -Map _$DogToJson(Dog instance) => { - 'woofSound': instance.woofSound, - 'name': instance.name, - 'age': instance.age, - }; - -Fish _$FishFromJson(Map json) => Fish( - fishColour: $enumDecode(_$eFishColourEnumMap, json['fishColour']), - name: json['name'] as String, - age: json['age'] as int, - ); - -Map _$FishToJson(Fish instance) => { - 'fishColour': _$eFishColourEnumMap[instance.fishColour]!, - 'name': instance.name, - 'age': instance.age, - }; - -const _$eFishColourEnumMap = { - eFishColour.gold: 'gold', - eFishColour.silver: 'silver', - eFishColour.nemo: 'nemo', -}; - -X _$XFromJson(Map json) => X( - val: json['val'] as String, - ); - -Map _$XToJson(X instance) => { - 'val': instance.val, - }; - -Y _$YFromJson(Map json) => Y( - val: json['val'] as String, - valY: json['valY'] as int, - ); - -Map _$YToJson(Y instance) => { - 'val': instance.val, - 'valY': instance.valY, - }; - -Z _$ZFromJson(Map json) => Z( - val: json['val'] as String, - valY: json['valY'] as int, - valZ: (json['valZ'] as num).toDouble(), - ); - -Map _$ZToJson(Z instance) => { - 'val': instance.val, - 'valY': instance.valY, - 'valZ': instance.valZ, - }; From f8424791658daea252db247a120b53770b4d08a7 Mon Sep 17 00:00:00 2001 From: Burhan Khanzada Date: Thu, 25 Jan 2024 09:15:54 +0500 Subject: [PATCH 2/4] Ignore and removed all pubspec.lcok files according to https://dart.dev/guides/libraries/private-files#pubspeclock --- .gitignore | 1 + example/pubspec.lock | 563 --------------------------------- morphy/pubspec.lock | 556 -------------------------------- morphy_annotation/pubspec.lock | 101 ------ release/pubspec.lock | 5 - 5 files changed, 1 insertion(+), 1225 deletions(-) delete mode 100644 example/pubspec.lock delete mode 100644 morphy/pubspec.lock delete mode 100644 morphy_annotation/pubspec.lock delete mode 100644 release/pubspec.lock diff --git a/.gitignore b/.gitignore index ca6ccb7..240b617 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ *.g.dart *.morphy.dart *.morphy2.dart +**/pubspec.lock # Flutter/Dart/Pub related **/doc/api/ diff --git a/example/pubspec.lock b/example/pubspec.lock deleted file mode 100644 index 8891e9e..0000000 --- a/example/pubspec.lock +++ /dev/null @@ -1,563 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" - url: "https://pub.dev" - source: hosted - version: "65.0.0" - analyzer: - dependency: transitive - description: - name: analyzer - sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 - url: "https://pub.dev" - source: hosted - version: "6.3.0" - args: - dependency: transitive - description: - name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 - url: "https://pub.dev" - source: hosted - version: "2.4.2" - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - build: - dependency: transitive - description: - name: build - sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - build_config: - dependency: transitive - description: - name: build_config - sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 - url: "https://pub.dev" - source: hosted - version: "1.1.1" - build_daemon: - dependency: transitive - description: - name: build_daemon - sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" - url: "https://pub.dev" - source: hosted - version: "4.0.1" - build_resolvers: - dependency: transitive - description: - name: build_resolvers - sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - build_runner: - dependency: "direct dev" - description: - name: build_runner - sha256: "10c6bcdbf9d049a0b666702cf1cee4ddfdc38f02a19d35ae392863b47519848b" - url: "https://pub.dev" - source: hosted - version: "2.4.6" - build_runner_core: - dependency: transitive - description: - name: build_runner_core - sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185 - url: "https://pub.dev" - source: hosted - version: "7.2.11" - built_collection: - dependency: transitive - description: - name: built_collection - sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" - url: "https://pub.dev" - source: hosted - version: "5.1.1" - built_value: - dependency: transitive - description: - name: built_value - sha256: "69acb7007eb2a31dc901512bfe0f7b767168be34cb734835d54c070bfa74c1b2" - url: "https://pub.dev" - source: hosted - version: "8.8.0" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff - url: "https://pub.dev" - source: hosted - version: "2.0.3" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - code_builder: - dependency: transitive - description: - name: code_builder - sha256: b2151ce26a06171005b379ecff6e08d34c470180ffe16b8e14b6d52be292b55f - url: "https://pub.dev" - source: hosted - version: "4.8.0" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - convert: - dependency: transitive - description: - name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" - url: "https://pub.dev" - source: hosted - version: "3.1.1" - coverage: - dependency: transitive - description: - name: coverage - sha256: ac86d3abab0f165e4b8f561280ff4e066bceaac83c424dd19f1ae2c2fcd12ca9 - url: "https://pub.dev" - source: hosted - version: "1.7.1" - crypto: - dependency: transitive - description: - name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab - url: "https://pub.dev" - source: hosted - version: "3.0.3" - dart_style: - dependency: transitive - description: - name: dart_style - sha256: "40ae61a5d43feea6d24bd22c0537a6629db858963b99b4bc1c3db80676f32368" - url: "https://pub.dev" - source: hosted - version: "2.3.4" - dartx: - dependency: transitive - description: - name: dartx - sha256: "8b25435617027257d43e6508b5fe061012880ddfdaa75a71d607c3de2a13d244" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - file: - dependency: transitive - description: - name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" - url: "https://pub.dev" - source: hosted - version: "7.0.0" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" - url: "https://pub.dev" - source: hosted - version: "3.2.0" - glob: - dependency: transitive - description: - name: glob - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - graphs: - dependency: transitive - description: - name: graphs - sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 - url: "https://pub.dev" - source: hosted - version: "2.3.1" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" - url: "https://pub.dev" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - io: - dependency: transitive - description: - name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" - json_annotation: - dependency: transitive - description: - name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 - url: "https://pub.dev" - source: hosted - version: "4.8.1" - logging: - dependency: transitive - description: - name: logging - sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" - url: "https://pub.dev" - source: hosted - version: "0.12.16" - meta: - dependency: "direct main" - description: - name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 - url: "https://pub.dev" - source: hosted - version: "1.11.0" - mime: - dependency: transitive - description: - name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e - url: "https://pub.dev" - source: hosted - version: "1.0.4" - morphy: - dependency: "direct main" - description: - path: "../morphy" - relative: true - source: path - version: "1.0.0" - morphy_annotation: - dependency: "direct overridden" - description: - path: "../morphy_annotation" - relative: true - source: path - version: "1.0.0" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - package_config: - dependency: transitive - description: - name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - path: - dependency: transitive - description: - name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" - url: "https://pub.dev" - source: hosted - version: "1.8.3" - pool: - dependency: transitive - description: - name: pool - sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" - url: "https://pub.dev" - source: hosted - version: "1.5.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 - url: "https://pub.dev" - source: hosted - version: "1.2.3" - quiver: - dependency: transitive - description: - name: quiver - sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47 - url: "https://pub.dev" - source: hosted - version: "3.2.1" - shelf: - dependency: transitive - description: - name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 - url: "https://pub.dev" - source: hosted - version: "1.4.1" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e - url: "https://pub.dev" - source: hosted - version: "1.1.2" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - source_gen: - dependency: transitive - description: - name: source_gen - sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" - url: "https://pub.dev" - source: hosted - version: "0.10.12" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - stream_transform: - dependency: transitive - description: - name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test: - dependency: "direct dev" - description: - name: test - sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f - url: "https://pub.dev" - source: hosted - version: "1.24.9" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" - url: "https://pub.dev" - source: hosted - version: "0.6.1" - test_core: - dependency: transitive - description: - name: test_core - sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a - url: "https://pub.dev" - source: hosted - version: "0.5.9" - time: - dependency: transitive - description: - name: time - sha256: "83427e11d9072e038364a5e4da559e85869b227cf699a541be0da74f14140124" - url: "https://pub.dev" - source: hosted - version: "2.1.3" - timing: - dependency: transitive - description: - name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" - url: "https://pub.dev" - source: hosted - version: "1.0.1" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c - url: "https://pub.dev" - source: hosted - version: "1.3.2" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 - url: "https://pub.dev" - source: hosted - version: "13.0.0" - watcher: - dependency: transitive - description: - name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b - url: "https://pub.dev" - source: hosted - version: "2.4.0" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - yaml: - dependency: transitive - description: - name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" - url: "https://pub.dev" - source: hosted - version: "3.1.2" -sdks: - dart: ">=3.1.3 <4.0.0" diff --git a/morphy/pubspec.lock b/morphy/pubspec.lock deleted file mode 100644 index 58ea64d..0000000 --- a/morphy/pubspec.lock +++ /dev/null @@ -1,556 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - _fe_analyzer_shared: - dependency: transitive - description: - name: _fe_analyzer_shared - sha256: "36a321c3d2cbe01cbcb3540a87b8843846e0206df3e691fa7b23e19e78de6d49" - url: "https://pub.dev" - source: hosted - version: "65.0.0" - analyzer: - dependency: "direct main" - description: - name: analyzer - sha256: dfe03b90ec022450e22513b5e5ca1f01c0c01de9c3fba2f7fd233cb57a6b9a07 - url: "https://pub.dev" - source: hosted - version: "6.3.0" - args: - dependency: transitive - description: - name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 - url: "https://pub.dev" - source: hosted - version: "2.4.2" - async: - dependency: transitive - description: - name: async - sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" - url: "https://pub.dev" - source: hosted - version: "2.11.0" - boolean_selector: - dependency: transitive - description: - name: boolean_selector - sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - build: - dependency: "direct main" - description: - name: build - sha256: "80184af8b6cb3e5c1c4ec6d8544d27711700bc3e6d2efad04238c7b5290889f0" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - build_config: - dependency: transitive - description: - name: build_config - sha256: bf80fcfb46a29945b423bd9aad884590fb1dc69b330a4d4700cac476af1708d1 - url: "https://pub.dev" - source: hosted - version: "1.1.1" - build_daemon: - dependency: transitive - description: - name: build_daemon - sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" - url: "https://pub.dev" - source: hosted - version: "4.0.1" - build_resolvers: - dependency: transitive - description: - name: build_resolvers - sha256: "64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8" - url: "https://pub.dev" - source: hosted - version: "2.4.1" - build_runner: - dependency: "direct dev" - description: - name: build_runner - sha256: "10c6bcdbf9d049a0b666702cf1cee4ddfdc38f02a19d35ae392863b47519848b" - url: "https://pub.dev" - source: hosted - version: "2.4.6" - build_runner_core: - dependency: transitive - description: - name: build_runner_core - sha256: c9e32d21dd6626b5c163d48b037ce906bbe428bc23ab77bcd77bb21e593b6185 - url: "https://pub.dev" - source: hosted - version: "7.2.11" - built_collection: - dependency: transitive - description: - name: built_collection - sha256: "376e3dd27b51ea877c28d525560790aee2e6fbb5f20e2f85d5081027d94e2100" - url: "https://pub.dev" - source: hosted - version: "5.1.1" - built_value: - dependency: transitive - description: - name: built_value - sha256: "723b4021e903217dfc445ec4cf5b42e27975aece1fc4ebbc1ca6329c2d9fb54e" - url: "https://pub.dev" - source: hosted - version: "8.7.0" - characters: - dependency: transitive - description: - name: characters - sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" - url: "https://pub.dev" - source: hosted - version: "1.3.0" - checked_yaml: - dependency: transitive - description: - name: checked_yaml - sha256: feb6bed21949061731a7a75fc5d2aa727cf160b91af9a3e464c5e3a32e28b5ff - url: "https://pub.dev" - source: hosted - version: "2.0.3" - clock: - dependency: transitive - description: - name: clock - sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf - url: "https://pub.dev" - source: hosted - version: "1.1.1" - code_builder: - dependency: transitive - description: - name: code_builder - sha256: "1be9be30396d7e4c0db42c35ea6ccd7cc6a1e19916b5dc64d6ac216b5544d677" - url: "https://pub.dev" - source: hosted - version: "4.7.0" - collection: - dependency: transitive - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - convert: - dependency: transitive - description: - name: convert - sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" - url: "https://pub.dev" - source: hosted - version: "3.1.1" - coverage: - dependency: transitive - description: - name: coverage - sha256: ac86d3abab0f165e4b8f561280ff4e066bceaac83c424dd19f1ae2c2fcd12ca9 - url: "https://pub.dev" - source: hosted - version: "1.7.1" - crypto: - dependency: transitive - description: - name: crypto - sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab - url: "https://pub.dev" - source: hosted - version: "3.0.3" - dart_style: - dependency: transitive - description: - name: dart_style - sha256: "1efa911ca7086affd35f463ca2fc1799584fb6aa89883cf0af8e3664d6a02d55" - url: "https://pub.dev" - source: hosted - version: "2.3.2" - dartx: - dependency: "direct main" - description: - name: dartx - sha256: "8b25435617027257d43e6508b5fe061012880ddfdaa75a71d607c3de2a13d244" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - file: - dependency: transitive - description: - name: file - sha256: "5fc22d7c25582e38ad9a8515372cd9a93834027aacf1801cf01164dac0ffa08c" - url: "https://pub.dev" - source: hosted - version: "7.0.0" - fixnum: - dependency: transitive - description: - name: fixnum - sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - frontend_server_client: - dependency: transitive - description: - name: frontend_server_client - sha256: "408e3ca148b31c20282ad6f37ebfa6f4bdc8fede5b74bc2f08d9d92b55db3612" - url: "https://pub.dev" - source: hosted - version: "3.2.0" - glob: - dependency: transitive - description: - name: glob - sha256: "0e7014b3b7d4dac1ca4d6114f82bf1782ee86745b9b42a92c9289c23d8a0ab63" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - graphs: - dependency: transitive - description: - name: graphs - sha256: aedc5a15e78fc65a6e23bcd927f24c64dd995062bcd1ca6eda65a3cff92a4d19 - url: "https://pub.dev" - source: hosted - version: "2.3.1" - http_multi_server: - dependency: transitive - description: - name: http_multi_server - sha256: "97486f20f9c2f7be8f514851703d0119c3596d14ea63227af6f7a481ef2b2f8b" - url: "https://pub.dev" - source: hosted - version: "3.2.1" - http_parser: - dependency: transitive - description: - name: http_parser - sha256: "2aa08ce0341cc9b354a498388e30986515406668dbcc4f7c950c3e715496693b" - url: "https://pub.dev" - source: hosted - version: "4.0.2" - io: - dependency: transitive - description: - name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - js: - dependency: transitive - description: - name: js - sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 - url: "https://pub.dev" - source: hosted - version: "0.6.7" - json_annotation: - dependency: transitive - description: - name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 - url: "https://pub.dev" - source: hosted - version: "4.8.1" - logging: - dependency: transitive - description: - name: logging - sha256: "623a88c9594aa774443aa3eb2d41807a48486b5613e67599fb4c41c0ad47c340" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" - url: "https://pub.dev" - source: hosted - version: "0.12.16" - meta: - dependency: transitive - description: - name: meta - sha256: d584fa6707a52763a52446f02cc621b077888fb63b93bbcb1143a7be5a0c0c04 - url: "https://pub.dev" - source: hosted - version: "1.11.0" - mime: - dependency: transitive - description: - name: mime - sha256: e4ff8e8564c03f255408decd16e7899da1733852a9110a58fe6d1b817684a63e - url: "https://pub.dev" - source: hosted - version: "1.0.4" - morphy_annotation: - dependency: "direct main" - description: - path: "../morphy_annotation" - relative: true - source: path - version: "1.0.0" - node_preamble: - dependency: transitive - description: - name: node_preamble - sha256: "6e7eac89047ab8a8d26cf16127b5ed26de65209847630400f9aefd7cd5c730db" - url: "https://pub.dev" - source: hosted - version: "2.0.2" - package_config: - dependency: transitive - description: - name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - path: - dependency: transitive - description: - name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" - url: "https://pub.dev" - source: hosted - version: "1.8.3" - pool: - dependency: transitive - description: - name: pool - sha256: "20fe868b6314b322ea036ba325e6fc0711a22948856475e2c2b6306e8ab39c2a" - url: "https://pub.dev" - source: hosted - version: "1.5.1" - pub_semver: - dependency: transitive - description: - name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" - url: "https://pub.dev" - source: hosted - version: "2.1.4" - pubspec_parse: - dependency: transitive - description: - name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 - url: "https://pub.dev" - source: hosted - version: "1.2.3" - quiver: - dependency: "direct main" - description: - name: quiver - sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47 - url: "https://pub.dev" - source: hosted - version: "3.2.1" - shelf: - dependency: transitive - description: - name: shelf - sha256: ad29c505aee705f41a4d8963641f91ac4cee3c8fad5947e033390a7bd8180fa4 - url: "https://pub.dev" - source: hosted - version: "1.4.1" - shelf_packages_handler: - dependency: transitive - description: - name: shelf_packages_handler - sha256: "89f967eca29607c933ba9571d838be31d67f53f6e4ee15147d5dc2934fee1b1e" - url: "https://pub.dev" - source: hosted - version: "3.0.2" - shelf_static: - dependency: transitive - description: - name: shelf_static - sha256: a41d3f53c4adf0f57480578c1d61d90342cd617de7fc8077b1304643c2d85c1e - url: "https://pub.dev" - source: hosted - version: "1.1.2" - shelf_web_socket: - dependency: transitive - description: - name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" - url: "https://pub.dev" - source: hosted - version: "1.0.4" - source_gen: - dependency: "direct main" - description: - name: source_gen - sha256: fc0da689e5302edb6177fdd964efcb7f58912f43c28c2047a808f5bfff643d16 - url: "https://pub.dev" - source: hosted - version: "1.4.0" - source_map_stack_trace: - dependency: transitive - description: - name: source_map_stack_trace - sha256: "84cf769ad83aa6bb61e0aa5a18e53aea683395f196a6f39c4c881fb90ed4f7ae" - url: "https://pub.dev" - source: hosted - version: "2.1.1" - source_maps: - dependency: transitive - description: - name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" - url: "https://pub.dev" - source: hosted - version: "0.10.12" - source_span: - dependency: transitive - description: - name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" - url: "https://pub.dev" - source: hosted - version: "1.10.0" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - stream_channel: - dependency: transitive - description: - name: stream_channel - sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 - url: "https://pub.dev" - source: hosted - version: "2.1.2" - stream_transform: - dependency: transitive - description: - name: stream_transform - sha256: "14a00e794c7c11aa145a170587321aedce29769c08d7f58b1d141da75e3b1c6f" - url: "https://pub.dev" - source: hosted - version: "2.1.0" - string_scanner: - dependency: transitive - description: - name: string_scanner - sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - term_glyph: - dependency: transitive - description: - name: term_glyph - sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 - url: "https://pub.dev" - source: hosted - version: "1.2.1" - test: - dependency: "direct dev" - description: - name: test - sha256: a1f7595805820fcc05e5c52e3a231aedd0b72972cb333e8c738a8b1239448b6f - url: "https://pub.dev" - source: hosted - version: "1.24.9" - test_api: - dependency: transitive - description: - name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" - url: "https://pub.dev" - source: hosted - version: "0.6.1" - test_core: - dependency: transitive - description: - name: test_core - sha256: a757b14fc47507060a162cc2530d9a4a2f92f5100a952c7443b5cad5ef5b106a - url: "https://pub.dev" - source: hosted - version: "0.5.9" - time: - dependency: transitive - description: - name: time - sha256: "83427e11d9072e038364a5e4da559e85869b227cf699a541be0da74f14140124" - url: "https://pub.dev" - source: hosted - version: "2.1.3" - timing: - dependency: transitive - description: - name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" - url: "https://pub.dev" - source: hosted - version: "1.0.1" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c - url: "https://pub.dev" - source: hosted - version: "1.3.2" - vm_service: - dependency: transitive - description: - name: vm_service - sha256: b3d56ff4341b8f182b96aceb2fa20e3dcb336b9f867bc0eafc0de10f1048e957 - url: "https://pub.dev" - source: hosted - version: "13.0.0" - watcher: - dependency: transitive - description: - name: watcher - sha256: "3d2ad6751b3c16cf07c7fca317a1413b3f26530319181b37e3b9039b84fc01d8" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - web_socket_channel: - dependency: transitive - description: - name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b - url: "https://pub.dev" - source: hosted - version: "2.4.0" - webkit_inspection_protocol: - dependency: transitive - description: - name: webkit_inspection_protocol - sha256: "87d3f2333bb240704cd3f1c6b5b7acd8a10e7f0bc28c28dcf14e782014f4a572" - url: "https://pub.dev" - source: hosted - version: "1.2.1" - yaml: - dependency: transitive - description: - name: yaml - sha256: "75769501ea3489fca56601ff33454fe45507ea3bfb014161abc3b43ae25989d5" - url: "https://pub.dev" - source: hosted - version: "3.1.2" -sdks: - dart: ">=3.1.3 <4.0.0" diff --git a/morphy_annotation/pubspec.lock b/morphy_annotation/pubspec.lock deleted file mode 100644 index d8bdb50..0000000 --- a/morphy_annotation/pubspec.lock +++ /dev/null @@ -1,101 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: - characters: - dependency: transitive - description: - name: characters - sha256: "9a462645329872f11cf4709edf4ae7b092bf60d3d6b6a072a39ab18311e04bb7" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - clock: - dependency: transitive - description: - name: clock - sha256: "6021e0172ab6e6eaa1d391afed0a99353921f00c54385c574dc53e55d67c092c" - url: "https://pub.dev" - source: hosted - version: "1.1.0" - collection: - dependency: "direct main" - description: - name: collection - sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a - url: "https://pub.dev" - source: hosted - version: "1.18.0" - crypto: - dependency: transitive - description: - name: crypto - sha256: cf75650c66c0316274e21d7c43d3dea246273af5955bd94e8184837cd577575c - url: "https://pub.dev" - source: hosted - version: "3.0.1" - dartx: - dependency: "direct main" - description: - name: dartx - sha256: "8b25435617027257d43e6508b5fe061012880ddfdaa75a71d607c3de2a13d244" - url: "https://pub.dev" - source: hosted - version: "1.2.0" - matcher: - dependency: transitive - description: - name: matcher - sha256: "80c2989398773fa06e2457e9ff08580f24e9858b28462a722241cb53e5613478" - url: "https://pub.dev" - source: hosted - version: "0.12.12" - meta: - dependency: transitive - description: - name: meta - sha256: "5202fdd37b4da5fd14a237ed0a01cad6c1efd4c99b5b5a0d3c9237f3728c9485" - url: "https://pub.dev" - source: hosted - version: "1.7.0" - path: - dependency: transitive - description: - name: path - sha256: "2ad4cddff7f5cc0e2d13069f2a3f7a73ca18f66abd6f5ecf215219cdb3638edb" - url: "https://pub.dev" - source: hosted - version: "1.8.0" - quiver: - dependency: "direct main" - description: - name: quiver - sha256: b1c1ac5ce6688d77f65f3375a9abb9319b3cb32486bdc7a1e0fdf004d7ba4e47 - url: "https://pub.dev" - source: hosted - version: "3.2.1" - stack_trace: - dependency: transitive - description: - name: stack_trace - sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" - url: "https://pub.dev" - source: hosted - version: "1.11.1" - time: - dependency: transitive - description: - name: time - sha256: "267028bb7b3e87bbfd66876c6389d7101e4b14eb94fe863d3e008e497ca07844" - url: "https://pub.dev" - source: hosted - version: "2.1.2" - typed_data: - dependency: transitive - description: - name: typed_data - sha256: "53bdf7e979cfbf3e28987552fd72f637e63f3c8724c9e56d9246942dc2fa36ee" - url: "https://pub.dev" - source: hosted - version: "1.3.0" -sdks: - dart: ">=3.1.3 <4.0.0" diff --git a/release/pubspec.lock b/release/pubspec.lock deleted file mode 100644 index 9886ce5..0000000 --- a/release/pubspec.lock +++ /dev/null @@ -1,5 +0,0 @@ -# Generated by pub -# See https://dart.dev/tools/pub/glossary#lockfile -packages: {} -sdks: - dart: ">=3.1.3 <4.0.0" From 979516d4686f284d7c9e13474028394a2d44d32e Mon Sep 17 00:00:00 2001 From: Burhan Khanzada Date: Sat, 27 Jan 2024 08:03:50 +0500 Subject: [PATCH 3/4] Copy content from morphy README.md ot package root README.md and created symbolic link for morphy, annoations folder --- README.md | 329 +++++++++++++++++++++++++++++++++++- morphy/README.md | 329 +----------------------------------- morphy_annotation/README.md | 4 +- 3 files changed, 330 insertions(+), 332 deletions(-) mode change 100644 => 120000 morphy/README.md mode change 100644 => 120000 morphy_annotation/README.md diff --git a/README.md b/README.md index f23d354..0d84f63 100644 --- a/README.md +++ b/README.md @@ -1 +1,328 @@ -see morphy package \ No newline at end of file +# morphy +morphy is a code generation tool that can create copyWith, equals, toString, contructors and json to & from. +It's a bit like freezed or built_value but inheritance is allowed and polymorphism supported with copyWith and json. +There may be some edge cases so try it out and let me know how you get on. + +### Reasoning: +We need a way to simplify our Dart classes, keep things cleaner and provide more functionality. + +### Why Not Freezed or Built Value? +Well the main reason; I actually wrote this before Freezed was released. +Freezed is really good, established and well used. +However if you want to use both inheritance and composition in your data classes use Morphy. + +### Solution: use morphy + +## Simple Example +To create a new class. +1. add the package morphy_annotation to the dependencies and the package morphy and build_runner to the dev dependencies +``` + dart pub add morphy_annotation + dart pub add --dev morphy + dart pub add --dev build_runner +``` +2. copy and paste the following code into a new dart file: + ``` + import 'package:morphy_annotation/morphy_annotation.dart'; + part 'Pet.morphy.dart'; + + @morphy + abstract class $Pet { + String get type; + } + ``` + +3. run the build_runner +``` + dart run build_runner build +``` + +and that's it! You can then create your objects! + +``` + var cat = Pet(type: "cat"); +``` + +`$Pet` is the class definition name. The generated class, the one you use to create objects, will drop the dollar, ie `Pet`. + +### Rules + +As in the simplest example above, `morphy` class definitions must +1. start with a dollar (the generated class removes the dollar) +2. be made abstract (the generated class is not made abstract, details below on how to make classes abstract) +3. have the @morphy annotation added directly to the class name +4. have the part file added to the top of the file, ie `part 'Pet.morphy.dart';` +5. import the morphy_annotation package, ie `import 'package:morphy_annotation/morphy_annotation.dart';` +6. and all properties must be defined as getters, ie `String get type;` + +## Basic features (comes with every class) + +### Equality (and hashCode) + +Morphy supports deep equality out of the box. + +``` +var cat1 = Pet(type: "cat"); +var cat2 = Pet(type: "cat"); + +expect(cat1 == cat2, true); +``` + +### A constructor is created for each class + +All fields are required, non nullable and final by default + +``` +var cat1 = Pet(type: "cat"); +``` + +### CopyWith + +A simple copy with implementation comes with every class. +We pass a function to the copyWith_Pet method that returns a new value to set the property. +You can pass any value you like, including null if the property is nullable. + +``` + var flossy = Pet(name: "Flossy", age: 5); + var plossy = flossy.copyWith_Pet(name: () => "Plossy"); + + expect(flossy.age, plossy.age); +``` + +### ToString + +A default toString implementation is also included. + +``` + var flossy = Pet(name: "Flossy", age: 5); + + expect(flossy.toString(), "(Pet-name:Flossy|age:5)"); +``` + +### Inheritance + +You can inherit one morphy class from another - use the implements keyword and the class definition name (the one with the dollar). +All properties will be inherited by default. + + @morphy + abstract class $Cat implements $Pet { + int get whiskerLength; + } + + var bagpussCat = Cat(whiskerLength: 13.75, name: "Bagpuss", age: 4); + + expect(bagpussCat.whiskerLength, 13.75); + +### CopyWith Polymorphic + +Unlike other copy with implementations, morphy works on subclasses within the same file. +For example if you have a list of Person objects of which some are subtypes (Managers and Employees) +then the copyWith still works whilst preserving the underlying type. + + var pets = [ + Cat(whiskerLength: 13.75, name: "Bagpuss", age: 4), + Dog(woofSound: "rowf", name: "Colin", age: 4), + ]; + + var petsOlder = pets // + .map((e) => e.copyWith_Pet(age: () => e.age + 1)) + .toList(); + + expect(petsOlder[0].age, 5); + expect(petsOlder[1].age, 5); + +Importantly the type remains the same, it is not converted to a Pet class. + + expect(petsOlder[0].runtimeType, Cat); + expect(petsOlder[1].runtimeType, Dog); + +### Enums are allowed + + @morphy + abstract class $Fish implements $Pet { + eFishColour get fishColour; + } + + var goldie = Fish(fishColour: eFishColour.gold, name: "Goldie", age: 2); + expect(goldie.fishColour, eFishColour.gold); + +### Generics are allowed + +Specify the class definition if you want to constrain your generic type (use the dollar) + + @morphy + abstract class $PetOwner { + String get ownerName; + TPet get pet; + } + + var cathy = PetOwner(ownerName: "Cathy", pet: bagpussCat); + var dougie = PetOwner(ownerName: "Dougie", pet: colin); + + expect(cathy.pet.whiskerLength, 13.75); + expect(dougie.pet.woofSound, "rowf"); + +### ChangeTo + +Sometimes you might want to turn a super class into a subclass (Pet into a Cat) + + var flossy = Pet(name: "Flossy", age: 5); + + var bagpussCat = flossy.changeTo_Cat(whiskerLength: 13.75); + + expect(bagpussCat.whiskerLength, 13.75); + expect(bagpussCat.runtimeType, Cat); + +(subclass to super and sibling to sibling may also work. A later release will iron out any edge cases) + +### Convert object to Json + +In order to convert the object to Json specify the `generateJson`. + + @Morphy(generateJson: true) + abstract class $Pet { + +Add the dev dependency to the json_serializable package + + dart pub add json_serializable --dev + +Add the part file, .g is required by the json_serializable package used internally by `morphy` + + part 'Pets.g.dart'; + part 'Pets.morphy.dart'; + +Build the generated files then use the toJson_2 method to generate the JSON + + var json = flossy.toJson_2({}); + expect(json, {'name': 'Flossy', 'age': 5, '_className_': 'Pet'}); + +### Convert Json to Object + +Use the factory method `Pet.fromJson()` to create the new object. + + var json = {'name': 'Flossy', 'age': 5, '_className_': 'Pet'}; + + var flossyFromJson = Pet.fromJson(json); + var flossy = Pet(name: "Flossy", age: 5); + + expect(flossyFromJson == flossy, true); + +### Json to Object Polymorphism + +Unlike other json conversions you can convert subtypes using the super types toJson and fromJson functions. + +The subtypes must be specified in the explicitSubTypes and in the correct order for this to work. + + @Morphy(generateJson: true, explicitSubTypes: [$Z, $Y]) + abstract class $X { + String get val; + } + + @Morphy(generateJson: true, explicitSubTypes: [$Z]) + abstract class $Y implements $X { + int get valY; + } + + @Morphy(generateJson: true) + abstract class $Z implements $Y { + double get valZ; + } + + var xObjects = [ + X(val: "x"), + Y(val: "xy", valY: 1), + Z(val: "xyz", valY: 2, valZ: 4.34), + ]; + +We can then just convert our list of X objects to JSON preserving their original type. + + var resultInJsonFormat = xObjects.map((e) => e.toJson_2({})).toList(); + + var expectedJson = [ + {'val': 'x', '_className_': 'X'}, + {'val': 'xy', 'valY': 1, '_className_': 'Y'}, + {'val': 'xyz', 'valY': 2, 'valZ': 4.34, '_className_': 'Z'} + ]; + + expect(resultInJsonFormat, expectedJson); + +and then convert them back again, continuing to preserve their original type + + var resultXObjects = expectedJson.map((e) => X.fromJson(e)).toList(); + + expect(resultXObjects, xObjects); + +Also generics work and more complicated inheritance hierarchies. (see the tests ex52 in the example folder) + +### Multiple Inheritance + +We also allow multiple inheritance. + + @Morphy(generateJson: true) + abstract class $FrankensteinsDogCat implements $Dog, $Cat {} + + var frankie = FrankensteinsDogCat(whiskerLength: 13.75, woofSound: "rowf", name: "frankie", age: 1); + + expect(frankie is Cat, true); + expect(frankie is Dog, true); + +### Custom Constructors + +To allow custom constructors you can simply create a publicly accessible factory function that calls the constructor (ie just a method that calls the default constructor). +If you'd like to hide the automatic constructor set the `hidePublicConstructor` on the Morphy annotation to true. +If you do hide the default constructor, +then in order for the custom factory function (A_FactoryFunction in the example below) to be able to call the hidden (or private) default constructor, +your factory function should live in the same file you defined your class. + + @Morphy(hidePublicConstructor: true) + abstract class $A { + String get val; + DateTime get timestamp; + } + + A A_FactoryFunction(String val) { + return A._(val: val, timestamp: DateTime(2023, 11, 25)); + } + + var a = A_FactoryFunction("my value"); + + expect(a.timestamp, DateTime(2023, 11, 25)); + +### Optional Parameters + +Optional parameters can be specified using the ? keyword on the getter property. + + @morphy + abstract class $B { + String get val; + String? get optional; + } + + var b = B(val: "5"); + + expect(b.optional, null); + +### Comments + +Comments are copied from the class definition to the generated class +and for ease of use copied to the constructor too. + +### Constant Constructor + +Just define a blank const constructor in your class definition file + + const $A(); + + +### Other + +Self referencing classes are allowed. + +Overriding properties with a sub type in a subclass is allowed. + +If you need to navigate back to the class definition (not the generated code) it is +a kind of two step route back. You must go to the generated and then you can click on the +$ version of the class which will be next to it. + +Sometimes one class needs to be built before another. +In that scenario use morphy2 as the annotation in one class and morphy in the other. \ No newline at end of file diff --git a/morphy/README.md b/morphy/README.md deleted file mode 100644 index 0d84f63..0000000 --- a/morphy/README.md +++ /dev/null @@ -1,328 +0,0 @@ -# morphy -morphy is a code generation tool that can create copyWith, equals, toString, contructors and json to & from. -It's a bit like freezed or built_value but inheritance is allowed and polymorphism supported with copyWith and json. -There may be some edge cases so try it out and let me know how you get on. - -### Reasoning: -We need a way to simplify our Dart classes, keep things cleaner and provide more functionality. - -### Why Not Freezed or Built Value? -Well the main reason; I actually wrote this before Freezed was released. -Freezed is really good, established and well used. -However if you want to use both inheritance and composition in your data classes use Morphy. - -### Solution: use morphy - -## Simple Example -To create a new class. -1. add the package morphy_annotation to the dependencies and the package morphy and build_runner to the dev dependencies -``` - dart pub add morphy_annotation - dart pub add --dev morphy - dart pub add --dev build_runner -``` -2. copy and paste the following code into a new dart file: - ``` - import 'package:morphy_annotation/morphy_annotation.dart'; - part 'Pet.morphy.dart'; - - @morphy - abstract class $Pet { - String get type; - } - ``` - -3. run the build_runner -``` - dart run build_runner build -``` - -and that's it! You can then create your objects! - -``` - var cat = Pet(type: "cat"); -``` - -`$Pet` is the class definition name. The generated class, the one you use to create objects, will drop the dollar, ie `Pet`. - -### Rules - -As in the simplest example above, `morphy` class definitions must -1. start with a dollar (the generated class removes the dollar) -2. be made abstract (the generated class is not made abstract, details below on how to make classes abstract) -3. have the @morphy annotation added directly to the class name -4. have the part file added to the top of the file, ie `part 'Pet.morphy.dart';` -5. import the morphy_annotation package, ie `import 'package:morphy_annotation/morphy_annotation.dart';` -6. and all properties must be defined as getters, ie `String get type;` - -## Basic features (comes with every class) - -### Equality (and hashCode) - -Morphy supports deep equality out of the box. - -``` -var cat1 = Pet(type: "cat"); -var cat2 = Pet(type: "cat"); - -expect(cat1 == cat2, true); -``` - -### A constructor is created for each class - -All fields are required, non nullable and final by default - -``` -var cat1 = Pet(type: "cat"); -``` - -### CopyWith - -A simple copy with implementation comes with every class. -We pass a function to the copyWith_Pet method that returns a new value to set the property. -You can pass any value you like, including null if the property is nullable. - -``` - var flossy = Pet(name: "Flossy", age: 5); - var plossy = flossy.copyWith_Pet(name: () => "Plossy"); - - expect(flossy.age, plossy.age); -``` - -### ToString - -A default toString implementation is also included. - -``` - var flossy = Pet(name: "Flossy", age: 5); - - expect(flossy.toString(), "(Pet-name:Flossy|age:5)"); -``` - -### Inheritance - -You can inherit one morphy class from another - use the implements keyword and the class definition name (the one with the dollar). -All properties will be inherited by default. - - @morphy - abstract class $Cat implements $Pet { - int get whiskerLength; - } - - var bagpussCat = Cat(whiskerLength: 13.75, name: "Bagpuss", age: 4); - - expect(bagpussCat.whiskerLength, 13.75); - -### CopyWith Polymorphic - -Unlike other copy with implementations, morphy works on subclasses within the same file. -For example if you have a list of Person objects of which some are subtypes (Managers and Employees) -then the copyWith still works whilst preserving the underlying type. - - var pets = [ - Cat(whiskerLength: 13.75, name: "Bagpuss", age: 4), - Dog(woofSound: "rowf", name: "Colin", age: 4), - ]; - - var petsOlder = pets // - .map((e) => e.copyWith_Pet(age: () => e.age + 1)) - .toList(); - - expect(petsOlder[0].age, 5); - expect(petsOlder[1].age, 5); - -Importantly the type remains the same, it is not converted to a Pet class. - - expect(petsOlder[0].runtimeType, Cat); - expect(petsOlder[1].runtimeType, Dog); - -### Enums are allowed - - @morphy - abstract class $Fish implements $Pet { - eFishColour get fishColour; - } - - var goldie = Fish(fishColour: eFishColour.gold, name: "Goldie", age: 2); - expect(goldie.fishColour, eFishColour.gold); - -### Generics are allowed - -Specify the class definition if you want to constrain your generic type (use the dollar) - - @morphy - abstract class $PetOwner { - String get ownerName; - TPet get pet; - } - - var cathy = PetOwner(ownerName: "Cathy", pet: bagpussCat); - var dougie = PetOwner(ownerName: "Dougie", pet: colin); - - expect(cathy.pet.whiskerLength, 13.75); - expect(dougie.pet.woofSound, "rowf"); - -### ChangeTo - -Sometimes you might want to turn a super class into a subclass (Pet into a Cat) - - var flossy = Pet(name: "Flossy", age: 5); - - var bagpussCat = flossy.changeTo_Cat(whiskerLength: 13.75); - - expect(bagpussCat.whiskerLength, 13.75); - expect(bagpussCat.runtimeType, Cat); - -(subclass to super and sibling to sibling may also work. A later release will iron out any edge cases) - -### Convert object to Json - -In order to convert the object to Json specify the `generateJson`. - - @Morphy(generateJson: true) - abstract class $Pet { - -Add the dev dependency to the json_serializable package - - dart pub add json_serializable --dev - -Add the part file, .g is required by the json_serializable package used internally by `morphy` - - part 'Pets.g.dart'; - part 'Pets.morphy.dart'; - -Build the generated files then use the toJson_2 method to generate the JSON - - var json = flossy.toJson_2({}); - expect(json, {'name': 'Flossy', 'age': 5, '_className_': 'Pet'}); - -### Convert Json to Object - -Use the factory method `Pet.fromJson()` to create the new object. - - var json = {'name': 'Flossy', 'age': 5, '_className_': 'Pet'}; - - var flossyFromJson = Pet.fromJson(json); - var flossy = Pet(name: "Flossy", age: 5); - - expect(flossyFromJson == flossy, true); - -### Json to Object Polymorphism - -Unlike other json conversions you can convert subtypes using the super types toJson and fromJson functions. - -The subtypes must be specified in the explicitSubTypes and in the correct order for this to work. - - @Morphy(generateJson: true, explicitSubTypes: [$Z, $Y]) - abstract class $X { - String get val; - } - - @Morphy(generateJson: true, explicitSubTypes: [$Z]) - abstract class $Y implements $X { - int get valY; - } - - @Morphy(generateJson: true) - abstract class $Z implements $Y { - double get valZ; - } - - var xObjects = [ - X(val: "x"), - Y(val: "xy", valY: 1), - Z(val: "xyz", valY: 2, valZ: 4.34), - ]; - -We can then just convert our list of X objects to JSON preserving their original type. - - var resultInJsonFormat = xObjects.map((e) => e.toJson_2({})).toList(); - - var expectedJson = [ - {'val': 'x', '_className_': 'X'}, - {'val': 'xy', 'valY': 1, '_className_': 'Y'}, - {'val': 'xyz', 'valY': 2, 'valZ': 4.34, '_className_': 'Z'} - ]; - - expect(resultInJsonFormat, expectedJson); - -and then convert them back again, continuing to preserve their original type - - var resultXObjects = expectedJson.map((e) => X.fromJson(e)).toList(); - - expect(resultXObjects, xObjects); - -Also generics work and more complicated inheritance hierarchies. (see the tests ex52 in the example folder) - -### Multiple Inheritance - -We also allow multiple inheritance. - - @Morphy(generateJson: true) - abstract class $FrankensteinsDogCat implements $Dog, $Cat {} - - var frankie = FrankensteinsDogCat(whiskerLength: 13.75, woofSound: "rowf", name: "frankie", age: 1); - - expect(frankie is Cat, true); - expect(frankie is Dog, true); - -### Custom Constructors - -To allow custom constructors you can simply create a publicly accessible factory function that calls the constructor (ie just a method that calls the default constructor). -If you'd like to hide the automatic constructor set the `hidePublicConstructor` on the Morphy annotation to true. -If you do hide the default constructor, -then in order for the custom factory function (A_FactoryFunction in the example below) to be able to call the hidden (or private) default constructor, -your factory function should live in the same file you defined your class. - - @Morphy(hidePublicConstructor: true) - abstract class $A { - String get val; - DateTime get timestamp; - } - - A A_FactoryFunction(String val) { - return A._(val: val, timestamp: DateTime(2023, 11, 25)); - } - - var a = A_FactoryFunction("my value"); - - expect(a.timestamp, DateTime(2023, 11, 25)); - -### Optional Parameters - -Optional parameters can be specified using the ? keyword on the getter property. - - @morphy - abstract class $B { - String get val; - String? get optional; - } - - var b = B(val: "5"); - - expect(b.optional, null); - -### Comments - -Comments are copied from the class definition to the generated class -and for ease of use copied to the constructor too. - -### Constant Constructor - -Just define a blank const constructor in your class definition file - - const $A(); - - -### Other - -Self referencing classes are allowed. - -Overriding properties with a sub type in a subclass is allowed. - -If you need to navigate back to the class definition (not the generated code) it is -a kind of two step route back. You must go to the generated and then you can click on the -$ version of the class which will be next to it. - -Sometimes one class needs to be built before another. -In that scenario use morphy2 as the annotation in one class and morphy in the other. \ No newline at end of file diff --git a/morphy/README.md b/morphy/README.md new file mode 120000 index 0000000..32d46ee --- /dev/null +++ b/morphy/README.md @@ -0,0 +1 @@ +../README.md \ No newline at end of file diff --git a/morphy_annotation/README.md b/morphy_annotation/README.md deleted file mode 100644 index bef9c2e..0000000 --- a/morphy_annotation/README.md +++ /dev/null @@ -1,3 +0,0 @@ -morphy_annotation - -See morphy package \ No newline at end of file diff --git a/morphy_annotation/README.md b/morphy_annotation/README.md new file mode 120000 index 0000000..25cf9eb --- /dev/null +++ b/morphy_annotation/README.md @@ -0,0 +1 @@ +/Users/burhankhanzada/Projects/morphy/README.md \ No newline at end of file From 1d7030188694ae19ba659e1e581f694de295a9db Mon Sep 17 00:00:00 2001 From: Burhan Khanzada Date: Mon, 29 Jan 2024 16:55:54 +0500 Subject: [PATCH 4/4] Setup melos --- .gitignore | 4 ++++ melos.yaml | 5 +++++ pubspec.yaml | 6 ++++++ 3 files changed, 15 insertions(+) create mode 100644 melos.yaml create mode 100644 pubspec.yaml diff --git a/.gitignore b/.gitignore index 240b617..1c1c405 100644 --- a/.gitignore +++ b/.gitignore @@ -55,3 +55,7 @@ app.*.map.json /android/app/debug /android/app/profile /android/app/release + +# Melos +*/**/pubspec.lock +pubspec_overrides.yaml diff --git a/melos.yaml b/melos.yaml new file mode 100644 index 0000000..c3a2f20 --- /dev/null +++ b/melos.yaml @@ -0,0 +1,5 @@ +name: morphy + +packages: + - morphy + - morphy_annotation \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml new file mode 100644 index 0000000..11d6372 --- /dev/null +++ b/pubspec.yaml @@ -0,0 +1,6 @@ +name: morphy_melos_workspace + +environment: + sdk: '>=3.0.0 <4.0.0' +dev_dependencies: + melos: ^4.0.0