From 6443a16486ab3d2ede0e8d5c1034b7479c1ca3f3 Mon Sep 17 00:00:00 2001 From: Apisit Ritreungroj Date: Fri, 20 Sep 2024 22:21:57 +0700 Subject: [PATCH] refactor: move to models --- catalyst_voices/analysis_options.yaml | 1 - .../packages/catalyst_voices_models/analysis_options.yaml | 1 + .../catalyst_voices_models/lib/src}/seed_phrase.dart | 0 catalyst_voices/packages/catalyst_voices_models/pubspec.yaml | 4 ++++ .../catalyst_voices_models/tests}/seed_phrase_test.dart | 2 +- catalyst_voices/pubspec.yaml | 2 -- 6 files changed, 6 insertions(+), 4 deletions(-) rename catalyst_voices/{lib/common/bip39 => packages/catalyst_voices_models/lib/src}/seed_phrase.dart (100%) rename catalyst_voices/{test/common/bip39 => packages/catalyst_voices_models/tests}/seed_phrase_test.dart (97%) diff --git a/catalyst_voices/analysis_options.yaml b/catalyst_voices/analysis_options.yaml index 84cc0b09e3..f289118262 100644 --- a/catalyst_voices/analysis_options.yaml +++ b/catalyst_voices/analysis_options.yaml @@ -3,5 +3,4 @@ include: package:catalyst_analysis/analysis_options.yaml analyzer: exclude: [build/**, lib/*.g.dart, lib/generated/**] errors: - implementation_imports: ignore public_member_api_docs: ignore \ No newline at end of file diff --git a/catalyst_voices/packages/catalyst_voices_models/analysis_options.yaml b/catalyst_voices/packages/catalyst_voices_models/analysis_options.yaml index 376b1c3947..2f6e747b89 100644 --- a/catalyst_voices/packages/catalyst_voices_models/analysis_options.yaml +++ b/catalyst_voices/packages/catalyst_voices_models/analysis_options.yaml @@ -3,4 +3,5 @@ include: package:catalyst_analysis/analysis_options.yaml analyzer: exclude: [build/**, lib/*.g.dart, lib/generated/**] errors: + implementation_imports: ignore public_member_api_docs: ignore diff --git a/catalyst_voices/lib/common/bip39/seed_phrase.dart b/catalyst_voices/packages/catalyst_voices_models/lib/src/seed_phrase.dart similarity index 100% rename from catalyst_voices/lib/common/bip39/seed_phrase.dart rename to catalyst_voices/packages/catalyst_voices_models/lib/src/seed_phrase.dart diff --git a/catalyst_voices/packages/catalyst_voices_models/pubspec.yaml b/catalyst_voices/packages/catalyst_voices_models/pubspec.yaml index df456f50f1..17f5ff4fef 100644 --- a/catalyst_voices/packages/catalyst_voices_models/pubspec.yaml +++ b/catalyst_voices/packages/catalyst_voices_models/pubspec.yaml @@ -7,11 +7,15 @@ environment: sdk: ">=3.5.0 <4.0.0" dependencies: + bip39: ^1.0.6 catalyst_cardano_serialization: ^0.4.0 + convert: ^3.1.1 equatable: ^2.0.5 flutter_quill: ^10.5.13 meta: ^1.10.0 dev_dependencies: catalyst_analysis: ^2.0.0 + flutter_test: + sdk: flutter test: ^1.24.9 diff --git a/catalyst_voices/test/common/bip39/seed_phrase_test.dart b/catalyst_voices/packages/catalyst_voices_models/tests/seed_phrase_test.dart similarity index 97% rename from catalyst_voices/test/common/bip39/seed_phrase_test.dart rename to catalyst_voices/packages/catalyst_voices_models/tests/seed_phrase_test.dart index 5660555685..401179fc6c 100644 --- a/catalyst_voices/test/common/bip39/seed_phrase_test.dart +++ b/catalyst_voices/packages/catalyst_voices_models/tests/seed_phrase_test.dart @@ -1,5 +1,5 @@ import 'package:bip39/bip39.dart' as bip39; -import 'package:catalyst_voices/common/bip39/seed_phrase.dart'; +import 'package:catalyst_voices_models/src/seed_phrase.dart'; import 'package:flutter_test/flutter_test.dart'; void main() { diff --git a/catalyst_voices/pubspec.yaml b/catalyst_voices/pubspec.yaml index 0031dc3ac3..e18d1bbbaf 100644 --- a/catalyst_voices/pubspec.yaml +++ b/catalyst_voices/pubspec.yaml @@ -10,7 +10,6 @@ environment: dependencies: animated_text_kit: ^4.2.2 animations: ^2.0.11 - bip39: ^1.0.6 catalyst_cardano: ^0.3.0 catalyst_cardano_serialization: ^0.4.0 catalyst_cardano_web: ^0.3.0 @@ -33,7 +32,6 @@ dependencies: catalyst_voices_view_models: path: ./packages/catalyst_voices_view_models collection: ^1.18.0 - convert: ^3.1.1 equatable: ^2.0.5 flutter: sdk: flutter