From f1c50041913b11cbdddade82723cbb43b1b9c761 Mon Sep 17 00:00:00 2001 From: redDwarf03 Date: Fri, 13 Dec 2024 16:41:19 +0100 Subject: [PATCH] chore: :memo: Improve rate on pubdev --- .dart_tool/extension_discovery/README.md | 31 --- .dart_tool/extension_discovery/vs_code.json | 1 - CHANGELOG.md | 171 +++++++++-------- analysis_options.yaml | 2 + example/example.dart | 8 + l10n.yaml | 2 +- lib/archethic_dapp_framework_flutter.dart | 5 +- lib/src/application/coin_price.dart | 2 +- lib/src/application/oracle/provider.dart | 2 +- lib/src/application/oracle/state.dart | 2 +- lib/src/application/oracle/state.freezed.dart | 21 ++- lib/src/application/version.dart | 4 +- lib/src/domain/models/ae_token.dart | 2 +- lib/src/domain/models/ae_token.freezed.dart | 23 ++- lib/src/domain/models/ae_token_pair.dart | 2 +- .../domain/models/ae_token_pair.freezed.dart | 25 ++- .../domain/models/crypto_price.freezed.dart | 21 ++- lib/src/domain/models/failures.freezed.dart | 177 ++++++++++++++---- .../models/market_price_history.freezed.dart | 21 ++- lib/src/domain/models/result.dart | 28 +-- lib/src/domain/models/ucids_tokens.dart | 2 +- .../domain/models/ucids_tokens.freezed.dart | 21 ++- lib/src/domain/models/verified_tokens.dart | 2 +- .../models/verified_tokens.freezed.dart | 21 ++- .../repositories/consent.repository.dart | 2 +- .../tokens/coin_price.repository.dart | 2 +- .../tokens/def_tokens.repository.dart | 2 +- .../tokens/ucids_tokens.repository.dart | 2 +- .../tokens/verified_tokens.repository.dart | 2 +- .../infrastructure/coin_price.repository.dart | 2 +- lib/src/infrastructure/hive/consent.hive.dart | 2 +- .../ucids_tokens.repository.dart | 2 +- .../verified_tokens.repository.dart | 2 +- ...t => localizations_ae_dapp_framework.dart} | 8 +- ...> localizations_ae_dapp_framework_en.dart} | 4 +- ...> localizations_ae_dapp_framework_fr.dart} | 4 +- lib/src/ui/themes/app_theme_base.dart | 2 +- lib/src/ui/themes/archethic_theme_base.dart | 2 +- .../ui/util/components/app_text_field.dart | 2 +- .../util/components/archethic_oracle_uco.dart | 2 +- lib/src/ui/util/components/block_info.dart | 2 +- .../util/components/buttons/app_button.dart | 2 +- .../ui/util/components/buttons/btn_close.dart | 4 +- .../util/components/buttons/btn_confirm.dart | 2 +- .../components/buttons/btn_confirm_back.dart | 2 +- .../ui/util/components/buttons/btn_half.dart | 4 +- .../ui/util/components/buttons/btn_max.dart | 4 +- .../util/components/buttons/btn_validate.dart | 2 +- .../ui/util/components/buttons/consent.dart | 2 +- .../buttons/popup_close_button.dart | 4 +- .../buttons/welcome_connect_wallet_btn.dart | 4 +- lib/src/ui/util/components/error_message.dart | 2 +- lib/src/ui/util/components/icon_animated.dart | 2 +- .../util/components/icon_button_animated.dart | 2 +- ...ress_circular_step_progress_indicator.dart | 2 +- .../in_progress/in_progress_popup.dart | 2 +- .../in_progress/in_progress_resume_btn.dart | 4 +- lib/src/ui/util/components/info_banner.dart | 2 +- lib/src/ui/util/components/paste_icon.dart | 2 +- lib/src/ui/util/components/popup_waves.dart | 2 +- lib/src/ui/util/components/scrollbar.dart | 2 +- lib/src/ui/util/components/single_card.dart | 2 +- lib/src/ui/util/dimens.dart | 2 +- lib/src/ui/util/generic/formatters.dart | 2 +- lib/src/ui/util/iconsax.dart | 1 + lib/src/util/address_util.dart | 2 +- lib/src/util/custom_logs.dart | 2 +- lib/src/util/generic/get_it_instance.dart | 2 +- pubspec.lock | 61 +++--- pubspec.yaml | 34 ++-- 70 files changed, 501 insertions(+), 299 deletions(-) delete mode 100644 .dart_tool/extension_discovery/README.md delete mode 100644 .dart_tool/extension_discovery/vs_code.json create mode 100644 example/example.dart rename lib/src/l10n/{localizations-ae-dapp-framework.dart => localizations_ae_dapp_framework.dart} (97%) rename lib/src/l10n/{localizations-ae-dapp-framework_en.dart => localizations_ae_dapp_framework_en.dart} (94%) rename lib/src/l10n/{localizations-ae-dapp-framework_fr.dart => localizations_ae_dapp_framework_fr.dart} (95%) diff --git a/.dart_tool/extension_discovery/README.md b/.dart_tool/extension_discovery/README.md deleted file mode 100644 index 9dc6757..0000000 --- a/.dart_tool/extension_discovery/README.md +++ /dev/null @@ -1,31 +0,0 @@ -Extension Discovery Cache -========================= - -This folder is used by `package:extension_discovery` to cache lists of -packages that contains extensions for other packages. - -DO NOT USE THIS FOLDER ----------------------- - - * Do not read (or rely) the contents of this folder. - * Do write to this folder. - -If you're interested in the lists of extensions stored in this folder use the -API offered by package `extension_discovery` to get this information. - -If this package doesn't work for your use-case, then don't try to read the -contents of this folder. It may change, and will not remain stable. - -Use package `extension_discovery` ---------------------------------- - -If you want to access information from this folder. - -Feel free to delete this folder -------------------------------- - -Files in this folder act as a cache, and the cache is discarded if the files -are older than the modification time of `.dart_tool/package_config.json`. - -Hence, it should never be necessary to clear this cache manually, if you find a -need to do please file a bug. diff --git a/.dart_tool/extension_discovery/vs_code.json b/.dart_tool/extension_discovery/vs_code.json deleted file mode 100644 index 7ef5039..0000000 --- a/.dart_tool/extension_discovery/vs_code.json +++ /dev/null @@ -1 +0,0 @@ -{"version":2,"entries":[{"package":"archethic_dapp_framework_flutter","rootUri":"../","packageUri":"lib/"},{"package":"flutter_gen","rootUri":"flutter_gen/","packageUri":"flutter_gen/"}]} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1dc5440..4cb0028 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,344 +1,349 @@ +# 3.2.5 + +- ✅ Improve lib score. +- ⬆️ Upgrade dependencies + # 3.2.4 -* Export `defTokensRepositoryImpl` & `getDefTokenProvider` providers +- Export `defTokensRepositoryImpl` & `getDefTokenProvider` providers # 3.2.3 -* Add `defTokensRepository` provider +- Add `defTokensRepository` provider # 3.2.2 -* Use MediaQuery.sizeOf(context) instead of MediaQuery.of(context).size +- Use MediaQuery.sizeOf(context) instead of MediaQuery.of(context).size # 3.2.1 -* Coin price notifier starts auto updates on creation. +- Coin price notifier starts auto updates on creation. # 3.2.0 -* All providers are auto-disposable -* UCID provider returns NULL for unknown UCIDs. +- All providers are auto-disposable +- UCID provider returns NULL for unknown UCIDs. # 3.1.0 -* Remove GetIt usage for `OracleService` +- Remove GetIt usage for `OracleService` # 3.0.3 -* ✨ `AppBackground` widget : Add boxfit in param -* ✨ `ProvidersLogger` : Add timestamp in provider logs +- ✨ `AppBackground` widget : Add boxfit in param +- ✨ `ProvidersLogger` : Add timestamp in provider logs # 3.0.2 -* build: :arrow_up: Upgrade `archethic_wallet_client` +- build: :arrow_up: Upgrade `archethic_wallet_client` # 3.0.1 -* build: :arrow_up: Upgrade `archethic_lib_dart` & `archethic_wallet_client` +- build: :arrow_up: Upgrade `archethic_lib_dart` & `archethic_wallet_client` # 3.0.0 -* Use Logging library for [LogManager] -* **Breaking change : **[LogManager.logsActived] replaced by [LogManager.remoteLogsEnabled] +- Use Logging library for [LogManager] +- **Breaking change : **[LogManager.logsActived] replaced by [LogManager.remoteLogsEnabled] # 2.1.3 -* Upgrade archethic_wallet_client to 2.1.3 +- Upgrade archethic_wallet_client to 2.1.3 # 2.1.2 -* Upgrade package_info_plus to 8.0.2 -* Add textStyle param in Consent Widgets +- Upgrade package_info_plus to 8.0.2 +- Add textStyle param in Consent Widgets # 2.1.1 -* Upgrade AWC version to 2.1.2 +- Upgrade AWC version to 2.1.2 # 2.1.0 -* Upgrade AWC version to 2.1.0 +- Upgrade AWC version to 2.1.0 # 2.0.0 -* BREAKING CHANGES: Introduce the Environment type +- BREAKING CHANGES: Introduce the Environment type # 1.3.1 -* Fix bug: `CoinPriceProvider` : Return 0 when ucid doesn't exist for a token -* Fix typo: fix method `startTimer` instead of `starTimer` in `CoinPriceNotifier` +- Fix bug: `CoinPriceProvider` : Return 0 when ucid doesn't exist for a token +- Fix typo: fix method `startTimer` instead of `starTimer` in `CoinPriceNotifier` # 1.3.0 -* BREAKING CHANGES: `TransactionUtil` - Add `apiService` param for each method -* BREAKING CHANGES: Changing the way you load providers: `UcidsTokensProviders` & `CoinPriceProviders` -* Move coin price management to an infrastructure repository -* Add a generic token model and associated def +- BREAKING CHANGES: `TransactionUtil` - Add `apiService` param for each method +- BREAKING CHANGES: Changing the way you load providers: `UcidsTokensProviders` & `CoinPriceProviders` +- Move coin price management to an infrastructure repository +- Add a generic token model and associated def # 1.2.14 -* Add timestamp in debug logs +- Add timestamp in debug logs # 1.2.13 -* Add Bitcoin in ucids_tokens config file +- Add Bitcoin in ucids_tokens config file # 1.2.12 -* Update dependencies +- Update dependencies # 1.2.11 -* Add `precision` param in ArchethicOracleUco widget +- Add `precision` param in ArchethicOracleUco widget # 1.2.10 -* Update dependencies +- Update dependencies # 1.2.9 -* Add `TransactionUtil.isSCCallExecuted` method to check is a SC has been executed +- Add `TransactionUtil.isSCCallExecuted` method to check is a SC has been executed # 1.2.8 -* Update dependencies +- Update dependencies # 1.2.7 -* Update dependencies +- Update dependencies # 1.2.6 -* Add color params in SingleCard widget +- Add color params in SingleCard widget # 1.2.5 -* Add description in RPC sign tx method -* Fix PeriodicFuture class +- Add description in RPC sign tx method +- Fix PeriodicFuture class # 1.2.4 -* Update dependencies +- Update dependencies # 1.2.3 -* Migration to flutter 3.22 +- Migration to flutter 3.22 # 1.2.2 -* Update dependencies +- Update dependencies # 1.2.1 -* refactor: Use archethic_wallet_client 2.0.0 +- refactor: Use archethic_wallet_client 2.0.0 # 1.2.0 -* BREAKING CHANGES: Handle custom errors codes/messages in Dart SDK -* UI Adjustements +- BREAKING CHANGES: Handle custom errors codes/messages in Dart SDK +- UI Adjustements # 1.1.25 -* Add aeEURe mainnet in ucids_tokens config file +- Add aeEURe mainnet in ucids_tokens config file # 1.1.24 -* `Result` class. Support asynchronous callbacks in map method +- `Result` class. Support asynchronous callbacks in map method # 1.1.23 -* Update dependencies +- Update dependencies # 1.1.22 -* Fix aeEURe address in ucids_tokens config file +- Fix aeEURe address in ucids_tokens config file # 1.1.21 -* Add aeEURe in ucids_tokens config file +- Add aeEURe in ucids_tokens config file # 1.1.20 -* Add token EURe info + coin name fixed +- Add token EURe info + coin name fixed # 1.1.19 -* Update Archethic Dart SDK version 3.3.16 +- Update Archethic Dart SDK version 3.3.16 # 1.1.18 -* Add useUnifyDecimalSeparator param in AmountTextInputFormatter +- Add useUnifyDecimalSeparator param in AmountTextInputFormatter # 1.1.17 -* Adjust logs +- Adjust logs # 1.1.16 -* Fix bugs +- Fix bugs # 1.1.15 -* VerifiedTokensNotifier & UcidsTokensNotifier init - Add network in param -* Fix bugs +- VerifiedTokensNotifier & UcidsTokensNotifier init - Add network in param +- Fix bugs # 1.1.14 -* Add new Failures +- Add new Failures # 1.1.13 -* Add aeETH UCID +- Add aeETH UCID # 1.1.12 -* Update Archethic Dart SDK version 3.3.15 +- Update Archethic Dart SDK version 3.3.15 # 1.1.11 -* Add icon param in InProgressCircularStepProgressIndicator Widget -* Fix onPress action when AppButton is disabled +- Add icon param in InProgressCircularStepProgressIndicator Widget +- Fix onPress action when AppButton is disabled # 1.1.10 -* Fix consentement local db management +- Fix consentement local db management # 1.1.9 -* Fix crash with PopupCloseButton widget +- Fix crash with PopupCloseButton widget # 1.1.8 -* Update Archethic Dart SDK version 3.3.14 +- Update Archethic Dart SDK version 3.3.14 # 1.1.7 -* Widgets UI Improvements +- Widgets UI Improvements # 1.1.6 -* Add UDSC market price (for testnet usage) -* Update Archethic Dart SDK version 3.3.13 +- Add UDSC market price (for testnet usage) +- Update Archethic Dart SDK version 3.3.13 # 1.1.5 -* Fix legal consentement management +- Fix legal consentement management # 1.1.4 -* Add legal consentement management +- Add legal consentement management # 1.1.3 -* Upgrade dependencies +- Upgrade dependencies # 1.1.2 -* Improve AmountTextInputFormatter behavior +- Improve AmountTextInputFormatter behavior # 1.1.1 -* Upgrade dependencies +- Upgrade dependencies # 1.1.0 -* Upgrade dependencies (AWC web extension support) +- Upgrade dependencies (AWC web extension support) # 1.0.0 -* Stable version +- Stable version # 0.0.9 -* Fix responsive -* Fix popup navigation +- Fix responsive +- Fix popup navigation # 0.0.8 -* Upgrade dependencies +- Upgrade dependencies # 0.0.7 -* Upgrade dependencies +- Upgrade dependencies # 0.0.6 -* Upgrade dependencies +- Upgrade dependencies # 0.0.5 -* Get Verified tokens from blockchain +- Get Verified tokens from blockchain # 0.0.4 -* Responsive: Add tools +- Responsive: Add tools # 0.0.3 -* Fix bug +- Fix bug # 0.0.2 -* Migrate to Dart 3.3 and Flutter 3.19 -* Upgrade dependencies +- Migrate to Dart 3.3 and Flutter 3.19 +- Upgrade dependencies # 0.0.1 -* First version \ No newline at end of file +- First version \ No newline at end of file diff --git a/analysis_options.yaml b/analysis_options.yaml index efe43e3..de9118b 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -7,6 +7,7 @@ # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. +include: package:lints/core.yaml analyzer: exclude: - test/.test_coverage.dart @@ -173,6 +174,7 @@ linter: - unnecessary_getters_setters - unnecessary_lambdas - unnecessary_late + - unnecessary_library_directive - unnecessary_new - unnecessary_null_aware_assignments - unnecessary_null_checks diff --git a/example/example.dart b/example/example.dart new file mode 100644 index 0000000..1df4370 --- /dev/null +++ b/example/example.dart @@ -0,0 +1,8 @@ +// ignore: unused_import +import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart' + as aedappfm; + +void main(List args) { + /// This lib provides lot of Widgets and Utils + /// We recommend that you consult the DApps repository on Archethic repos: https://github.com/archethic-foundation for examples. +} diff --git a/l10n.yaml b/l10n.yaml index 4d442d0..53a2521 100644 --- a/l10n.yaml +++ b/l10n.yaml @@ -1,3 +1,3 @@ arb-dir: lib/src/l10n template-arb-file: intl_en.arb -output-localization-file: localizations-ae-dapp-framework.dart +output-localization-file: localizations_ae_dapp_framework.dart diff --git a/lib/archethic_dapp_framework_flutter.dart b/lib/archethic_dapp_framework_flutter.dart index eedeb9d..20d2dee 100644 --- a/lib/archethic_dapp_framework_flutter.dart +++ b/lib/archethic_dapp_framework_flutter.dart @@ -1,3 +1,4 @@ +/// An internal framework for archethic flutter development library archethic_dapp_framework_flutter; export 'src/application/ae_token.dart'; @@ -30,8 +31,8 @@ export 'src/infrastructure/consent.respository.dart'; export 'src/infrastructure/def_tokens.repository.dart'; export 'src/infrastructure/ucids_tokens.repository.dart'; export 'src/infrastructure/verified_tokens.repository.dart'; -export 'src/l10n/localizations-ae-dapp-framework.dart'; -export 'src/l10n/localizations-ae-dapp-framework_en.dart'; +export 'src/l10n/localizations_ae_dapp_framework.dart'; +export 'src/l10n/localizations_ae_dapp_framework_en.dart'; export 'src/ui/themes/app_theme_base.dart'; export 'src/ui/util/components/app_background.dart'; export 'src/ui/util/components/app_text_field.dart'; diff --git a/lib/src/application/coin_price.dart b/lib/src/application/coin_price.dart index 954a7e6..d4b4f7e 100644 --- a/lib/src/application/coin_price.dart +++ b/lib/src/application/coin_price.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart'; diff --git a/lib/src/application/oracle/provider.dart b/lib/src/application/oracle/provider.dart index 3e8fac5..b125b50 100644 --- a/lib/src/application/oracle/provider.dart +++ b/lib/src/application/oracle/provider.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; diff --git a/lib/src/application/oracle/state.dart b/lib/src/application/oracle/state.dart index 369cf06..caff0cf 100644 --- a/lib/src/application/oracle/state.dart +++ b/lib/src/application/oracle/state.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/lib/src/application/oracle/state.freezed.dart b/lib/src/application/oracle/state.freezed.dart index 9d4a3fa..1e6f520 100644 --- a/lib/src/application/oracle/state.freezed.dart +++ b/lib/src/application/oracle/state.freezed.dart @@ -24,8 +24,12 @@ mixin _$ArchethicOracleUCO { double get eur => throw _privateConstructorUsedError; double get usd => throw _privateConstructorUsedError; + /// Serializes this ArchethicOracleUCO to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of ArchethicOracleUCO + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $ArchethicOracleUCOCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -49,6 +53,8 @@ class _$ArchethicOracleUCOCopyWithImpl<$Res, $Val extends ArchethicOracleUCO> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of ArchethicOracleUCO + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -92,6 +98,8 @@ class __$$ArchethicOracleUCOImplCopyWithImpl<$Res> $Res Function(_$ArchethicOracleUCOImpl) _then) : super(_value, _then); + /// Create a copy of ArchethicOracleUCO + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -151,11 +159,13 @@ class _$ArchethicOracleUCOImpl implements _ArchethicOracleUCO { (identical(other.usd, usd) || other.usd == usd)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, timestamp, eur, usd); - @JsonKey(ignore: true) + /// Create a copy of ArchethicOracleUCO + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$ArchethicOracleUCOImplCopyWith<_$ArchethicOracleUCOImpl> get copyWith => @@ -185,8 +195,11 @@ abstract class _ArchethicOracleUCO implements ArchethicOracleUCO { double get eur; @override double get usd; + + /// Create a copy of ArchethicOracleUCO + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$ArchethicOracleUCOImplCopyWith<_$ArchethicOracleUCOImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/application/version.dart b/lib/src/application/version.dart index 3bfdd05..d96e2b1 100644 --- a/lib/src/application/version.dart +++ b/lib/src/application/version.dart @@ -1,5 +1,5 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later -import 'package:archethic_dapp_framework_flutter/src/l10n/localizations-ae-dapp-framework.dart'; +// SPDX-License-Identifier: AGPL-3.0-or-later +import 'package:archethic_dapp_framework_flutter/src/l10n/localizations_ae_dapp_framework.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; import 'package:package_info_plus/package_info_plus.dart'; import 'package:riverpod_annotation/riverpod_annotation.dart'; diff --git a/lib/src/domain/models/ae_token.dart b/lib/src/domain/models/ae_token.dart index 14908ee..eb8ccd4 100644 --- a/lib/src/domain/models/ae_token.dart +++ b/lib/src/domain/models/ae_token.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/domain/models/ae_token_pair.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/lib/src/domain/models/ae_token.freezed.dart b/lib/src/domain/models/ae_token.freezed.dart index 7adc813..ba86003 100644 --- a/lib/src/domain/models/ae_token.freezed.dart +++ b/lib/src/domain/models/ae_token.freezed.dart @@ -33,8 +33,12 @@ mixin _$AEToken { AETokenPair? get lpTokenPair => throw _privateConstructorUsedError; int? get ucid => throw _privateConstructorUsedError; + /// Serializes this AEToken to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AEToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AETokenCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -69,6 +73,8 @@ class _$AETokenCopyWithImpl<$Res, $Val extends AEToken> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AEToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -132,6 +138,8 @@ class _$AETokenCopyWithImpl<$Res, $Val extends AEToken> ) as $Val); } + /// Create a copy of AEToken + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AETokenPairCopyWith<$Res>? get lpTokenPair { @@ -177,6 +185,8 @@ class __$$AETokenImplCopyWithImpl<$Res> _$AETokenImpl _value, $Res Function(_$AETokenImpl) _then) : super(_value, _then); + /// Create a copy of AEToken + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -318,12 +328,14 @@ class _$AETokenImpl extends _AEToken { (identical(other.ucid, ucid) || other.ucid == ucid)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, name, address, icon, symbol, balance, reserve, supply, isVerified, isLpToken, lpTokenPair, ucid); - @JsonKey(ignore: true) + /// Create a copy of AEToken + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AETokenImplCopyWith<_$AETokenImpl> get copyWith => @@ -377,8 +389,11 @@ abstract class _AEToken extends AEToken { AETokenPair? get lpTokenPair; @override int? get ucid; + + /// Create a copy of AEToken + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AETokenImplCopyWith<_$AETokenImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/domain/models/ae_token_pair.dart b/lib/src/domain/models/ae_token_pair.dart index 58d12d0..0e62817 100644 --- a/lib/src/domain/models/ae_token_pair.dart +++ b/lib/src/domain/models/ae_token_pair.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/domain/models/ae_token.dart'; import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/lib/src/domain/models/ae_token_pair.freezed.dart b/lib/src/domain/models/ae_token_pair.freezed.dart index b2a53b6..bbea966 100644 --- a/lib/src/domain/models/ae_token_pair.freezed.dart +++ b/lib/src/domain/models/ae_token_pair.freezed.dart @@ -25,8 +25,12 @@ mixin _$AETokenPair { @AETokenJsonConverter() AEToken get token2 => throw _privateConstructorUsedError; + /// Serializes this AETokenPair to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of AETokenPair + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $AETokenPairCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -55,6 +59,8 @@ class _$AETokenPairCopyWithImpl<$Res, $Val extends AETokenPair> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of AETokenPair + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -73,6 +79,8 @@ class _$AETokenPairCopyWithImpl<$Res, $Val extends AETokenPair> ) as $Val); } + /// Create a copy of AETokenPair + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AETokenCopyWith<$Res> get token1 { @@ -81,6 +89,8 @@ class _$AETokenPairCopyWithImpl<$Res, $Val extends AETokenPair> }); } + /// Create a copy of AETokenPair + /// with the given fields replaced by the non-null parameter values. @override @pragma('vm:prefer-inline') $AETokenCopyWith<$Res> get token2 { @@ -116,6 +126,8 @@ class __$$AETokenPairImplCopyWithImpl<$Res> _$AETokenPairImpl _value, $Res Function(_$AETokenPairImpl) _then) : super(_value, _then); + /// Create a copy of AETokenPair + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -167,11 +179,13 @@ class _$AETokenPairImpl extends _AETokenPair { (identical(other.token2, token2) || other.token2 == token2)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, token1, token2); - @JsonKey(ignore: true) + /// Create a copy of AETokenPair + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$AETokenPairImplCopyWith<_$AETokenPairImpl> get copyWith => @@ -201,8 +215,11 @@ abstract class _AETokenPair extends AETokenPair { @override @AETokenJsonConverter() AEToken get token2; + + /// Create a copy of AETokenPair + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$AETokenPairImplCopyWith<_$AETokenPairImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/domain/models/crypto_price.freezed.dart b/lib/src/domain/models/crypto_price.freezed.dart index 447f8a0..b3ab211 100644 --- a/lib/src/domain/models/crypto_price.freezed.dart +++ b/lib/src/domain/models/crypto_price.freezed.dart @@ -28,8 +28,12 @@ mixin _$CryptoPrice { double get usdc => throw _privateConstructorUsedError; double get eure => throw _privateConstructorUsedError; + /// Serializes this CryptoPrice to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of CryptoPrice + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $CryptoPriceCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -60,6 +64,8 @@ class _$CryptoPriceCopyWithImpl<$Res, $Val extends CryptoPrice> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of CryptoPrice + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -130,6 +136,8 @@ class __$$CryptoPriceImplCopyWithImpl<$Res> _$CryptoPriceImpl _value, $Res Function(_$CryptoPriceImpl) _then) : super(_value, _then); + /// Create a copy of CryptoPrice + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -231,12 +239,14 @@ class _$CryptoPriceImpl implements _CryptoPrice { (identical(other.eure, eure) || other.eure == eure)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, timestamp, bitcoin, matic, ethereum, bnb, usdc, eure); - @JsonKey(ignore: true) + /// Create a copy of CryptoPrice + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$CryptoPriceImplCopyWith<_$CryptoPriceImpl> get copyWith => @@ -277,8 +287,11 @@ abstract class _CryptoPrice implements CryptoPrice { double get usdc; @override double get eure; + + /// Create a copy of CryptoPrice + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$CryptoPriceImplCopyWith<_$CryptoPriceImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/domain/models/failures.freezed.dart b/lib/src/domain/models/failures.freezed.dart index 03443d2..52eac38 100644 --- a/lib/src/domain/models/failures.freezed.dart +++ b/lib/src/domain/models/failures.freezed.dart @@ -282,6 +282,8 @@ mixin _$Failure { required TResult orElse(), }) => throw _privateConstructorUsedError; + + /// Serializes this Failure to a JSON map. Map toJson() => throw _privateConstructorUsedError; } @@ -300,6 +302,9 @@ class _$FailureCopyWithImpl<$Res, $Val extends Failure> final $Val _value; // ignore: unused_field final $Res Function($Val) _then; + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -316,6 +321,9 @@ class __$$LoggedOutImplCopyWithImpl<$Res> __$$LoggedOutImplCopyWithImpl( _$LoggedOutImpl _value, $Res Function(_$LoggedOutImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -342,7 +350,7 @@ class _$LoggedOutImpl extends LoggedOut { (other.runtimeType == runtimeType && other is _$LoggedOutImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -601,6 +609,9 @@ class __$$NetworkFailureImplCopyWithImpl<$Res> __$$NetworkFailureImplCopyWithImpl( _$NetworkFailureImpl _value, $Res Function(_$NetworkFailureImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -627,7 +638,7 @@ class _$NetworkFailureImpl extends NetworkFailure { (other.runtimeType == runtimeType && other is _$NetworkFailureImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -889,6 +900,8 @@ class __$$QuotaExceededFailureImplCopyWithImpl<$Res> $Res Function(_$QuotaExceededFailureImpl) _then) : super(_value, _then); + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -933,11 +946,13 @@ class _$QuotaExceededFailureImpl extends QuotaExceededFailure { other.cooldownEndDate == cooldownEndDate)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, cooldownEndDate); - @JsonKey(ignore: true) + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$QuotaExceededFailureImplCopyWith<_$QuotaExceededFailureImpl> @@ -1187,7 +1202,10 @@ abstract class QuotaExceededFailure extends Failure { _$QuotaExceededFailureImpl.fromJson; DateTime? get cooldownEndDate; - @JsonKey(ignore: true) + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$QuotaExceededFailureImplCopyWith<_$QuotaExceededFailureImpl> get copyWith => throw _privateConstructorUsedError; } @@ -1206,6 +1224,9 @@ class __$$ServiceNotFoundImplCopyWithImpl<$Res> __$$ServiceNotFoundImplCopyWithImpl( _$ServiceNotFoundImpl _value, $Res Function(_$ServiceNotFoundImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -1232,7 +1253,7 @@ class _$ServiceNotFoundImpl extends ServiceNotFound { (other.runtimeType == runtimeType && other is _$ServiceNotFoundImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -1491,6 +1512,9 @@ class __$$ServiceAlreadyExistsImplCopyWithImpl<$Res> __$$ServiceAlreadyExistsImplCopyWithImpl(_$ServiceAlreadyExistsImpl _value, $Res Function(_$ServiceAlreadyExistsImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -1518,7 +1542,7 @@ class _$ServiceAlreadyExistsImpl extends ServiceAlreadyExists { other is _$ServiceAlreadyExistsImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -1777,6 +1801,9 @@ class __$$PoolAlreadyExistsImplCopyWithImpl<$Res> __$$PoolAlreadyExistsImplCopyWithImpl(_$PoolAlreadyExistsImpl _value, $Res Function(_$PoolAlreadyExistsImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -1803,7 +1830,7 @@ class _$PoolAlreadyExistsImpl extends PoolAlreadyExists { (other.runtimeType == runtimeType && other is _$PoolAlreadyExistsImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -2064,6 +2091,9 @@ class __$$LPTokenAmountExceedBalanceImplCopyWithImpl<$Res> _$LPTokenAmountExceedBalanceImpl _value, $Res Function(_$LPTokenAmountExceedBalanceImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -2092,7 +2122,7 @@ class _$LPTokenAmountExceedBalanceImpl extends LPTokenAmountExceedBalance { other is _$LPTokenAmountExceedBalanceImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -2351,6 +2381,9 @@ class __$$PoolNotExistsImplCopyWithImpl<$Res> __$$PoolNotExistsImplCopyWithImpl( _$PoolNotExistsImpl _value, $Res Function(_$PoolNotExistsImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -2377,7 +2410,7 @@ class _$PoolNotExistsImpl extends PoolNotExists { (other.runtimeType == runtimeType && other is _$PoolNotExistsImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -2636,6 +2669,9 @@ class __$$InsufficientFundsImplCopyWithImpl<$Res> __$$InsufficientFundsImplCopyWithImpl(_$InsufficientFundsImpl _value, $Res Function(_$InsufficientFundsImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -2662,7 +2698,7 @@ class _$InsufficientFundsImpl extends InsufficientFunds { (other.runtimeType == runtimeType && other is _$InsufficientFundsImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -2921,6 +2957,9 @@ class __$$UnauthorizedImplCopyWithImpl<$Res> __$$UnauthorizedImplCopyWithImpl( _$UnauthorizedImpl _value, $Res Function(_$UnauthorizedImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -2947,7 +2986,7 @@ class _$UnauthorizedImpl extends Unauthorized { (other.runtimeType == runtimeType && other is _$UnauthorizedImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -3206,6 +3245,9 @@ class __$$InvalidValueImplCopyWithImpl<$Res> __$$InvalidValueImplCopyWithImpl( _$InvalidValueImpl _value, $Res Function(_$InvalidValueImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -3232,7 +3274,7 @@ class _$InvalidValueImpl extends InvalidValue { (other.runtimeType == runtimeType && other is _$InvalidValueImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -3491,6 +3533,9 @@ class __$$HTLCWithoutFundsImplCopyWithImpl<$Res> __$$HTLCWithoutFundsImplCopyWithImpl(_$HTLCWithoutFundsImpl _value, $Res Function(_$HTLCWithoutFundsImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -3517,7 +3562,7 @@ class _$HTLCWithoutFundsImpl extends HTLCWithoutFunds { (other.runtimeType == runtimeType && other is _$HTLCWithoutFundsImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -3776,6 +3821,9 @@ class __$$NotHTLCImplCopyWithImpl<$Res> __$$NotHTLCImplCopyWithImpl( _$NotHTLCImpl _value, $Res Function(_$NotHTLCImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -3802,7 +3850,7 @@ class _$NotHTLCImpl extends NotHTLC { (other.runtimeType == runtimeType && other is _$NotHTLCImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -4060,6 +4108,9 @@ class __$$FaucetUCOErrorImplCopyWithImpl<$Res> __$$FaucetUCOErrorImplCopyWithImpl( _$FaucetUCOErrorImpl _value, $Res Function(_$FaucetUCOErrorImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -4086,7 +4137,7 @@ class _$FaucetUCOErrorImpl extends FaucetUCOError { (other.runtimeType == runtimeType && other is _$FaucetUCOErrorImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -4345,6 +4396,9 @@ class __$$FaucetUCUserRejectedImplCopyWithImpl<$Res> __$$FaucetUCUserRejectedImplCopyWithImpl(_$FaucetUCUserRejectedImpl _value, $Res Function(_$FaucetUCUserRejectedImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -4372,7 +4426,7 @@ class _$FaucetUCUserRejectedImpl extends FaucetUCUserRejected { other is _$FaucetUCUserRejectedImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -4634,6 +4688,8 @@ class __$$WrongNetworkImplCopyWithImpl<$Res> _$WrongNetworkImpl _value, $Res Function(_$WrongNetworkImpl) _then) : super(_value, _then); + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -4677,11 +4733,13 @@ class _$WrongNetworkImpl extends WrongNetwork { (identical(other.cause, cause) || other.cause == cause)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, cause); - @JsonKey(ignore: true) + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$WrongNetworkImplCopyWith<_$WrongNetworkImpl> get copyWith => @@ -4928,7 +4986,10 @@ abstract class WrongNetwork extends Failure { _$WrongNetworkImpl.fromJson; String get cause; - @JsonKey(ignore: true) + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$WrongNetworkImplCopyWith<_$WrongNetworkImpl> get copyWith => throw _privateConstructorUsedError; } @@ -4948,6 +5009,9 @@ class __$$InsufficientPoolFundsImplCopyWithImpl<$Res> __$$InsufficientPoolFundsImplCopyWithImpl(_$InsufficientPoolFundsImpl _value, $Res Function(_$InsufficientPoolFundsImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -4975,7 +5039,7 @@ class _$InsufficientPoolFundsImpl extends InsufficientPoolFunds { other is _$InsufficientPoolFundsImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -5234,6 +5298,9 @@ class __$$IncompatibleBrowserImplCopyWithImpl<$Res> __$$IncompatibleBrowserImplCopyWithImpl(_$IncompatibleBrowserImpl _value, $Res Function(_$IncompatibleBrowserImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -5261,7 +5328,7 @@ class _$IncompatibleBrowserImpl extends IncompatibleBrowser { other is _$IncompatibleBrowserImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -5522,6 +5589,9 @@ class __$$ChainSwitchNotSupportedImplCopyWithImpl<$Res> _$ChainSwitchNotSupportedImpl _value, $Res Function(_$ChainSwitchNotSupportedImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -5549,7 +5619,7 @@ class _$ChainSwitchNotSupportedImpl extends ChainSwitchNotSupported { other is _$ChainSwitchNotSupportedImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -5808,6 +5878,9 @@ class __$$ConnectivityEVMImplCopyWithImpl<$Res> __$$ConnectivityEVMImplCopyWithImpl( _$ConnectivityEVMImpl _value, $Res Function(_$ConnectivityEVMImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -5834,7 +5907,7 @@ class _$ConnectivityEVMImpl extends ConnectivityEVM { (other.runtimeType == runtimeType && other is _$ConnectivityEVMImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -6094,6 +6167,9 @@ class __$$WalletNotSupportedEVMImplCopyWithImpl<$Res> __$$WalletNotSupportedEVMImplCopyWithImpl(_$WalletNotSupportedEVMImpl _value, $Res Function(_$WalletNotSupportedEVMImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -6121,7 +6197,7 @@ class _$WalletNotSupportedEVMImpl extends WalletNotSupportedEVM { other is _$WalletNotSupportedEVMImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -6380,6 +6456,9 @@ class __$$NoWalletSupportedEVMImplCopyWithImpl<$Res> __$$NoWalletSupportedEVMImplCopyWithImpl(_$NoWalletSupportedEVMImpl _value, $Res Function(_$NoWalletSupportedEVMImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -6407,7 +6486,7 @@ class _$NoWalletSupportedEVMImpl extends NoWalletSupportedEVM { other is _$NoWalletSupportedEVMImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -6666,6 +6745,9 @@ class __$$ParamEVMChainImplCopyWithImpl<$Res> __$$ParamEVMChainImplCopyWithImpl( _$ParamEVMChainImpl _value, $Res Function(_$ParamEVMChainImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -6692,7 +6774,7 @@ class _$ParamEVMChainImpl extends ParamEVMChain { (other.runtimeType == runtimeType && other is _$ParamEVMChainImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -6951,6 +7033,9 @@ class __$$UserRejectedImplCopyWithImpl<$Res> __$$UserRejectedImplCopyWithImpl( _$UserRejectedImpl _value, $Res Function(_$UserRejectedImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -6977,7 +7062,7 @@ class _$UserRejectedImpl extends UserRejected { (other.runtimeType == runtimeType && other is _$UserRejectedImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -7237,6 +7322,9 @@ class __$$ConnectivityArchethicImplCopyWithImpl<$Res> __$$ConnectivityArchethicImplCopyWithImpl(_$ConnectivityArchethicImpl _value, $Res Function(_$ConnectivityArchethicImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -7264,7 +7352,7 @@ class _$ConnectivityArchethicImpl extends ConnectivityArchethic { other is _$ConnectivityArchethicImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -7523,6 +7611,9 @@ class __$$TimeoutImplCopyWithImpl<$Res> __$$TimeoutImplCopyWithImpl( _$TimeoutImpl _value, $Res Function(_$TimeoutImpl) _then) : super(_value, _then); + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. } /// @nodoc @@ -7549,7 +7640,7 @@ class _$TimeoutImpl extends Timeout { (other.runtimeType == runtimeType && other is _$TimeoutImpl); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => runtimeType.hashCode; @@ -7810,6 +7901,8 @@ class __$$RPCErrorEVMImplCopyWithImpl<$Res> _$RPCErrorEVMImpl _value, $Res Function(_$RPCErrorEVMImpl) _then) : super(_value, _then); + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -7853,11 +7946,13 @@ class _$RPCErrorEVMImpl extends RPCErrorEVM { (identical(other.cause, cause) || other.cause == cause)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, cause); - @JsonKey(ignore: true) + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$RPCErrorEVMImplCopyWith<_$RPCErrorEVMImpl> get copyWith => @@ -8104,7 +8199,10 @@ abstract class RPCErrorEVM extends Failure { _$RPCErrorEVMImpl.fromJson; String? get cause; - @JsonKey(ignore: true) + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$RPCErrorEVMImplCopyWith<_$RPCErrorEVMImpl> get copyWith => throw _privateConstructorUsedError; } @@ -8126,6 +8224,8 @@ class __$$OtherFailureImplCopyWithImpl<$Res> _$OtherFailureImpl _value, $Res Function(_$OtherFailureImpl) _then) : super(_value, _then); + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -8177,11 +8277,13 @@ class _$OtherFailureImpl extends OtherFailure { (identical(other.stack, stack) || other.stack == stack)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, cause, stack); - @JsonKey(ignore: true) + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$OtherFailureImplCopyWith<_$OtherFailureImpl> get copyWith => @@ -8430,7 +8532,10 @@ abstract class OtherFailure extends Failure { String? get cause; String? get stack; - @JsonKey(ignore: true) + + /// Create a copy of Failure + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) _$$OtherFailureImplCopyWith<_$OtherFailureImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/domain/models/market_price_history.freezed.dart b/lib/src/domain/models/market_price_history.freezed.dart index bba89f0..6641666 100644 --- a/lib/src/domain/models/market_price_history.freezed.dart +++ b/lib/src/domain/models/market_price_history.freezed.dart @@ -23,8 +23,12 @@ mixin _$PriceHistoryValue { num get price => throw _privateConstructorUsedError; DateTime get time => throw _privateConstructorUsedError; + /// Serializes this PriceHistoryValue to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of PriceHistoryValue + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $PriceHistoryValueCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -48,6 +52,8 @@ class _$PriceHistoryValueCopyWithImpl<$Res, $Val extends PriceHistoryValue> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of PriceHistoryValue + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -86,6 +92,8 @@ class __$$PriceHistoryValueImplCopyWithImpl<$Res> $Res Function(_$PriceHistoryValueImpl) _then) : super(_value, _then); + /// Create a copy of PriceHistoryValue + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -132,11 +140,13 @@ class _$PriceHistoryValueImpl implements _PriceHistoryValue { (identical(other.time, time) || other.time == time)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, price, time); - @JsonKey(ignore: true) + /// Create a copy of PriceHistoryValue + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$PriceHistoryValueImplCopyWith<_$PriceHistoryValueImpl> get copyWith => @@ -163,8 +173,11 @@ abstract class _PriceHistoryValue implements PriceHistoryValue { num get price; @override DateTime get time; + + /// Create a copy of PriceHistoryValue + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$PriceHistoryValueImplCopyWith<_$PriceHistoryValueImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/domain/models/result.dart b/lib/src/domain/models/result.dart index 94d1534..4780de5 100644 --- a/lib/src/domain/models/result.dart +++ b/lib/src/domain/models/result.dart @@ -2,22 +2,22 @@ import 'dart:async'; import 'package:archethic_dapp_framework_flutter/src/domain/models/failures.dart'; import 'package:flutter/foundation.dart'; +/// Returns the value if it is a success. +/// Else, throws the error as an [Exception]. +/// +/// Thanks to this extension, instead of : +/// ```dart +/// Future> result; +/// final value = (await result).valueOrThrow; +/// ``` +/// +/// You can do : +/// ```dart +/// Future> result; +/// final value = await result.valueOrThrow; +/// ``` extension FutureResult on Future> { - /// Returns the value if it is a success. - /// Else, throws the error as an [Exception]. - /// - /// Thanks to this extension, instead of : - /// ```dart - /// Future> result; - /// final value = (await result).valueOrThrow; - /// ``` - /// - /// You can do : - /// ```dart - /// Future> result; - /// final value = await result.valueOrThrow; - /// ``` Future get valueOrThrow async { return (await this).valueOrThrow; } diff --git a/lib/src/domain/models/ucids_tokens.dart b/lib/src/domain/models/ucids_tokens.dart index c6c6eb6..de48386 100644 --- a/lib/src/domain/models/ucids_tokens.dart +++ b/lib/src/domain/models/ucids_tokens.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/lib/src/domain/models/ucids_tokens.freezed.dart b/lib/src/domain/models/ucids_tokens.freezed.dart index f5eae48..973c6c4 100644 --- a/lib/src/domain/models/ucids_tokens.freezed.dart +++ b/lib/src/domain/models/ucids_tokens.freezed.dart @@ -24,8 +24,12 @@ mixin _$UcidsTokens { Map get testnet => throw _privateConstructorUsedError; Map get devnet => throw _privateConstructorUsedError; + /// Serializes this UcidsTokens to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of UcidsTokens + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $UcidsTokensCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -52,6 +56,8 @@ class _$UcidsTokensCopyWithImpl<$Res, $Val extends UcidsTokens> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of UcidsTokens + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -98,6 +104,8 @@ class __$$UcidsTokensImplCopyWithImpl<$Res> _$UcidsTokensImpl _value, $Res Function(_$UcidsTokensImpl) _then) : super(_value, _then); + /// Create a copy of UcidsTokens + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -175,7 +183,7 @@ class _$UcidsTokensImpl implements _UcidsTokens { const DeepCollectionEquality().equals(other._devnet, _devnet)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash( runtimeType, @@ -183,7 +191,9 @@ class _$UcidsTokensImpl implements _UcidsTokens { const DeepCollectionEquality().hash(_testnet), const DeepCollectionEquality().hash(_devnet)); - @JsonKey(ignore: true) + /// Create a copy of UcidsTokens + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$UcidsTokensImplCopyWith<_$UcidsTokensImpl> get copyWith => @@ -212,8 +222,11 @@ abstract class _UcidsTokens implements UcidsTokens { Map get testnet; @override Map get devnet; + + /// Create a copy of UcidsTokens + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$UcidsTokensImplCopyWith<_$UcidsTokensImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/domain/models/verified_tokens.dart b/lib/src/domain/models/verified_tokens.dart index fa3efc4..47a2edc 100644 --- a/lib/src/domain/models/verified_tokens.dart +++ b/lib/src/domain/models/verified_tokens.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:freezed_annotation/freezed_annotation.dart'; diff --git a/lib/src/domain/models/verified_tokens.freezed.dart b/lib/src/domain/models/verified_tokens.freezed.dart index 3d0b5ef..ebce9e4 100644 --- a/lib/src/domain/models/verified_tokens.freezed.dart +++ b/lib/src/domain/models/verified_tokens.freezed.dart @@ -22,8 +22,12 @@ VerifiedTokens _$VerifiedTokensFromJson(Map json) { mixin _$VerifiedTokens { List get devnet => throw _privateConstructorUsedError; + /// Serializes this VerifiedTokens to a JSON map. Map toJson() => throw _privateConstructorUsedError; - @JsonKey(ignore: true) + + /// Create a copy of VerifiedTokens + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) $VerifiedTokensCopyWith get copyWith => throw _privateConstructorUsedError; } @@ -47,6 +51,8 @@ class _$VerifiedTokensCopyWithImpl<$Res, $Val extends VerifiedTokens> // ignore: unused_field final $Res Function($Val) _then; + /// Create a copy of VerifiedTokens + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -80,6 +86,8 @@ class __$$VerifiedTokensImplCopyWithImpl<$Res> _$VerifiedTokensImpl _value, $Res Function(_$VerifiedTokensImpl) _then) : super(_value, _then); + /// Create a copy of VerifiedTokens + /// with the given fields replaced by the non-null parameter values. @pragma('vm:prefer-inline') @override $Res call({ @@ -124,12 +132,14 @@ class _$VerifiedTokensImpl implements _VerifiedTokens { const DeepCollectionEquality().equals(other._devnet, _devnet)); } - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) @override int get hashCode => Object.hash(runtimeType, const DeepCollectionEquality().hash(_devnet)); - @JsonKey(ignore: true) + /// Create a copy of VerifiedTokens + /// with the given fields replaced by the non-null parameter values. + @JsonKey(includeFromJson: false, includeToJson: false) @override @pragma('vm:prefer-inline') _$$VerifiedTokensImplCopyWith<_$VerifiedTokensImpl> get copyWith => @@ -153,8 +163,11 @@ abstract class _VerifiedTokens implements VerifiedTokens { @override List get devnet; + + /// Create a copy of VerifiedTokens + /// with the given fields replaced by the non-null parameter values. @override - @JsonKey(ignore: true) + @JsonKey(includeFromJson: false, includeToJson: false) _$$VerifiedTokensImplCopyWith<_$VerifiedTokensImpl> get copyWith => throw _privateConstructorUsedError; } diff --git a/lib/src/domain/repositories/consent.repository.dart b/lib/src/domain/repositories/consent.repository.dart index 7c4acd9..1ea5687 100644 --- a/lib/src/domain/repositories/consent.repository.dart +++ b/lib/src/domain/repositories/consent.repository.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later abstract class ConsentRepository { Future addAddress(String v); diff --git a/lib/src/domain/repositories/tokens/coin_price.repository.dart b/lib/src/domain/repositories/tokens/coin_price.repository.dart index 48ceeed..54c2f72 100644 --- a/lib/src/domain/repositories/tokens/coin_price.repository.dart +++ b/lib/src/domain/repositories/tokens/coin_price.repository.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/domain/models/crypto_price.dart'; diff --git a/lib/src/domain/repositories/tokens/def_tokens.repository.dart b/lib/src/domain/repositories/tokens/def_tokens.repository.dart index 9a1ca19..080eaad 100644 --- a/lib/src/domain/repositories/tokens/def_tokens.repository.dart +++ b/lib/src/domain/repositories/tokens/def_tokens.repository.dart @@ -1,6 +1,6 @@ import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart'; -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later abstract class DefTokensRepositoryInterface { Future getDefToken(Environment enviroment, String address); diff --git a/lib/src/domain/repositories/tokens/ucids_tokens.repository.dart b/lib/src/domain/repositories/tokens/ucids_tokens.repository.dart index d0d2fd1..f142202 100644 --- a/lib/src/domain/repositories/tokens/ucids_tokens.repository.dart +++ b/lib/src/domain/repositories/tokens/ucids_tokens.repository.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/domain/models/environment.dart'; import 'package:archethic_dapp_framework_flutter/src/domain/models/ucids_tokens.dart'; diff --git a/lib/src/domain/repositories/tokens/verified_tokens.repository.dart b/lib/src/domain/repositories/tokens/verified_tokens.repository.dart index 648b007..f0beb05 100644 --- a/lib/src/domain/repositories/tokens/verified_tokens.repository.dart +++ b/lib/src/domain/repositories/tokens/verified_tokens.repository.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later abstract class VerifiedTokensRepositoryInterface { Future> getVerifiedTokens(); diff --git a/lib/src/infrastructure/coin_price.repository.dart b/lib/src/infrastructure/coin_price.repository.dart index a9ff231..474ff32 100644 --- a/lib/src/infrastructure/coin_price.repository.dart +++ b/lib/src/infrastructure/coin_price.repository.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; import 'package:archethic_dapp_framework_flutter/src/domain/models/crypto_price.dart'; diff --git a/lib/src/infrastructure/hive/consent.hive.dart b/lib/src/infrastructure/hive/consent.hive.dart index 608e8f8..5ea8814 100644 --- a/lib/src/infrastructure/hive/consent.hive.dart +++ b/lib/src/infrastructure/hive/consent.hive.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_lib_dart/archethic_lib_dart.dart'; import 'package:hive/hive.dart'; diff --git a/lib/src/infrastructure/ucids_tokens.repository.dart b/lib/src/infrastructure/ucids_tokens.repository.dart index 72cad3d..6608697 100644 --- a/lib/src/infrastructure/ucids_tokens.repository.dart +++ b/lib/src/infrastructure/ucids_tokens.repository.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/src/infrastructure/verified_tokens.repository.dart b/lib/src/infrastructure/verified_tokens.repository.dart index 145487c..f23a6a4 100644 --- a/lib/src/infrastructure/verified_tokens.repository.dart +++ b/lib/src/infrastructure/verified_tokens.repository.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:convert'; diff --git a/lib/src/l10n/localizations-ae-dapp-framework.dart b/lib/src/l10n/localizations_ae_dapp_framework.dart similarity index 97% rename from lib/src/l10n/localizations-ae-dapp-framework.dart rename to lib/src/l10n/localizations_ae_dapp_framework.dart index d2d3871..89673f6 100644 --- a/lib/src/l10n/localizations-ae-dapp-framework.dart +++ b/lib/src/l10n/localizations_ae_dapp_framework.dart @@ -5,8 +5,10 @@ import 'package:flutter/widgets.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:intl/intl.dart' as intl; -import 'localizations-ae-dapp-framework_en.dart'; -import 'localizations-ae-dapp-framework_fr.dart'; +import 'localizations_ae_dapp_framework_en.dart'; +import 'localizations_ae_dapp_framework_fr.dart'; + +// ignore_for_file: type=lint /// Callers can lookup localized strings with an instance of AppLocalizations /// returned by `AppLocalizations.of(context)`. @@ -16,7 +18,7 @@ import 'localizations-ae-dapp-framework_fr.dart'; /// `supportedLocales` list. For example: /// /// ```dart -/// import 'gen_l10n/localizations-ae-dapp-framework.dart'; +/// import 'gen_l10n/localizations_ae_dapp_framework.dart'; /// /// return MaterialApp( /// localizationsDelegates: AppLocalizations.localizationsDelegates, diff --git a/lib/src/l10n/localizations-ae-dapp-framework_en.dart b/lib/src/l10n/localizations_ae_dapp_framework_en.dart similarity index 94% rename from lib/src/l10n/localizations-ae-dapp-framework_en.dart rename to lib/src/l10n/localizations_ae_dapp_framework_en.dart index a12b7a8..f24e557 100644 --- a/lib/src/l10n/localizations-ae-dapp-framework_en.dart +++ b/lib/src/l10n/localizations_ae_dapp_framework_en.dart @@ -1,4 +1,6 @@ -import 'localizations-ae-dapp-framework.dart'; +import 'localizations_ae_dapp_framework.dart'; + +// ignore_for_file: type=lint /// The translations for English (`en`). class AppLocalizationsEn extends AppLocalizations { diff --git a/lib/src/l10n/localizations-ae-dapp-framework_fr.dart b/lib/src/l10n/localizations_ae_dapp_framework_fr.dart similarity index 95% rename from lib/src/l10n/localizations-ae-dapp-framework_fr.dart rename to lib/src/l10n/localizations_ae_dapp_framework_fr.dart index a3dead4..a475d79 100644 --- a/lib/src/l10n/localizations-ae-dapp-framework_fr.dart +++ b/lib/src/l10n/localizations_ae_dapp_framework_fr.dart @@ -1,4 +1,6 @@ -import 'localizations-ae-dapp-framework.dart'; +import 'localizations_ae_dapp_framework.dart'; + +// ignore_for_file: type=lint /// The translations for French (`fr`). class AppLocalizationsFr extends AppLocalizations { diff --git a/lib/src/ui/themes/app_theme_base.dart b/lib/src/ui/themes/app_theme_base.dart index 9181f0e..bca528f 100644 --- a/lib/src/ui/themes/app_theme_base.dart +++ b/lib/src/ui/themes/app_theme_base.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:flutter/material.dart'; part 'archethic_theme_base.dart'; diff --git a/lib/src/ui/themes/archethic_theme_base.dart b/lib/src/ui/themes/archethic_theme_base.dart index 21f887d..2833387 100644 --- a/lib/src/ui/themes/archethic_theme_base.dart +++ b/lib/src/ui/themes/archethic_theme_base.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later part of 'app_theme_base.dart'; class ArchethicThemeBase { diff --git a/lib/src/ui/util/components/app_text_field.dart b/lib/src/ui/util/components/app_text_field.dart index 196dbc2..c8e1320 100644 --- a/lib/src/ui/util/components/app_text_field.dart +++ b/lib/src/ui/util/components/app_text_field.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/src/ui/util/components/archethic_oracle_uco.dart b/lib/src/ui/util/components/archethic_oracle_uco.dart index 78053fd..2cf9175 100755 --- a/lib/src/ui/util/components/archethic_oracle_uco.dart +++ b/lib/src/ui/util/components/archethic_oracle_uco.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/application/oracle/provider.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/icon_button_animated.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/generic/formatters.dart'; diff --git a/lib/src/ui/util/components/block_info.dart b/lib/src/ui/util/components/block_info.dart index 7c2450f..96afb45 100644 --- a/lib/src/ui/util/components/block_info.dart +++ b/lib/src/ui/util/components/block_info.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:ui'; import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; diff --git a/lib/src/ui/util/components/buttons/app_button.dart b/lib/src/ui/util/components/buttons/app_button.dart index 1caa80e..d8e8494 100644 --- a/lib/src/ui/util/components/buttons/app_button.dart +++ b/lib/src/ui/util/components/buttons/app_button.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/dimens.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/generic/responsive.dart'; diff --git a/lib/src/ui/util/components/buttons/btn_close.dart b/lib/src/ui/util/components/buttons/btn_close.dart index 8ee0962..49e8ecf 100755 --- a/lib/src/ui/util/components/buttons/btn_close.dart +++ b/lib/src/ui/util/components/buttons/btn_close.dart @@ -1,5 +1,5 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later -import 'package:archethic_dapp_framework_flutter/src/l10n/localizations-ae-dapp-framework.dart'; +// SPDX-License-Identifier: AGPL-3.0-or-later +import 'package:archethic_dapp_framework_flutter/src/l10n/localizations_ae_dapp_framework.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/buttons/app_button.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/dimens.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/buttons/btn_confirm.dart b/lib/src/ui/util/components/buttons/btn_confirm.dart index 2c7b430..5739ff3 100644 --- a/lib/src/ui/util/components/buttons/btn_confirm.dart +++ b/lib/src/ui/util/components/buttons/btn_confirm.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/ui/util/components/buttons/app_button.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/dimens.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/buttons/btn_confirm_back.dart b/lib/src/ui/util/components/buttons/btn_confirm_back.dart index 5814f9e..44674fd 100755 --- a/lib/src/ui/util/components/buttons/btn_confirm_back.dart +++ b/lib/src/ui/util/components/buttons/btn_confirm_back.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:flutter/material.dart'; class ButtonConfirmBack extends StatelessWidget { diff --git a/lib/src/ui/util/components/buttons/btn_half.dart b/lib/src/ui/util/components/buttons/btn_half.dart index 5cbd9fc..b615266 100755 --- a/lib/src/ui/util/components/buttons/btn_half.dart +++ b/lib/src/ui/util/components/buttons/btn_half.dart @@ -1,5 +1,5 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later -import 'package:archethic_dapp_framework_flutter/src/l10n/localizations-ae-dapp-framework.dart'; +// SPDX-License-Identifier: AGPL-3.0-or-later +import 'package:archethic_dapp_framework_flutter/src/l10n/localizations_ae_dapp_framework.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/generic/responsive.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/buttons/btn_max.dart b/lib/src/ui/util/components/buttons/btn_max.dart index 6acb74f..e10772a 100755 --- a/lib/src/ui/util/components/buttons/btn_max.dart +++ b/lib/src/ui/util/components/buttons/btn_max.dart @@ -1,5 +1,5 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later -import 'package:archethic_dapp_framework_flutter/src/l10n/localizations-ae-dapp-framework.dart'; +// SPDX-License-Identifier: AGPL-3.0-or-later +import 'package:archethic_dapp_framework_flutter/src/l10n/localizations_ae_dapp_framework.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/generic/responsive.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/buttons/btn_validate.dart b/lib/src/ui/util/components/buttons/btn_validate.dart index c150246..ebf8cb9 100755 --- a/lib/src/ui/util/components/buttons/btn_validate.dart +++ b/lib/src/ui/util/components/buttons/btn_validate.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/ui/util/components/buttons/app_button.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/buttons/welcome_connect_wallet_btn.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/dimens.dart'; diff --git a/lib/src/ui/util/components/buttons/consent.dart b/lib/src/ui/util/components/buttons/consent.dart index 39bd932..56adb46 100644 --- a/lib/src/ui/util/components/buttons/consent.dart +++ b/lib/src/ui/util/components/buttons/consent.dart @@ -1,4 +1,4 @@ -import 'package:archethic_dapp_framework_flutter/src/l10n/localizations-ae-dapp-framework.dart'; +import 'package:archethic_dapp_framework_flutter/src/l10n/localizations_ae_dapp_framework.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/iconsax.dart'; import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/buttons/popup_close_button.dart b/lib/src/ui/util/components/buttons/popup_close_button.dart index 52baedd..79589b2 100644 --- a/lib/src/ui/util/components/buttons/popup_close_button.dart +++ b/lib/src/ui/util/components/buttons/popup_close_button.dart @@ -1,5 +1,5 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later -import 'package:archethic_dapp_framework_flutter/src/l10n/localizations-ae-dapp-framework.dart'; +// SPDX-License-Identifier: AGPL-3.0-or-later +import 'package:archethic_dapp_framework_flutter/src/l10n/localizations_ae_dapp_framework.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/buttons/app_button.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/icon_animated.dart'; diff --git a/lib/src/ui/util/components/buttons/welcome_connect_wallet_btn.dart b/lib/src/ui/util/components/buttons/welcome_connect_wallet_btn.dart index 7e1dac5..a1ffb0d 100755 --- a/lib/src/ui/util/components/buttons/welcome_connect_wallet_btn.dart +++ b/lib/src/ui/util/components/buttons/welcome_connect_wallet_btn.dart @@ -1,5 +1,5 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later -import 'package:archethic_dapp_framework_flutter/src/l10n/localizations-ae-dapp-framework.dart'; +// SPDX-License-Identifier: AGPL-3.0-or-later +import 'package:archethic_dapp_framework_flutter/src/l10n/localizations_ae_dapp_framework.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/buttons/app_button.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/error_message.dart b/lib/src/ui/util/components/error_message.dart index 6e6c070..a6c1fc9 100644 --- a/lib/src/ui/util/components/error_message.dart +++ b/lib/src/ui/util/components/error_message.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/domain/models/failures.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/info_banner.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/icon_animated.dart b/lib/src/ui/util/components/icon_animated.dart index a5c7eb6..fd04eae 100644 --- a/lib/src/ui/util/components/icon_animated.dart +++ b/lib/src/ui/util/components/icon_animated.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:flutter/material.dart'; import 'package:flutter_animate/flutter_animate.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/src/ui/util/components/icon_button_animated.dart b/lib/src/ui/util/components/icon_button_animated.dart index aa68ae1..9f0047d 100644 --- a/lib/src/ui/util/components/icon_button_animated.dart +++ b/lib/src/ui/util/components/icon_button_animated.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:flutter/material.dart'; import 'package:flutter_animate/flutter_animate.dart'; import 'package:flutter_riverpod/flutter_riverpod.dart'; diff --git a/lib/src/ui/util/components/in_progress/in_progress_circular_step_progress_indicator.dart b/lib/src/ui/util/components/in_progress/in_progress_circular_step_progress_indicator.dart index 477b1a1..cbb819d 100644 --- a/lib/src/ui/util/components/in_progress/in_progress_circular_step_progress_indicator.dart +++ b/lib/src/ui/util/components/in_progress/in_progress_circular_step_progress_indicator.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/domain/models/failures.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/iconsax.dart'; diff --git a/lib/src/ui/util/components/in_progress/in_progress_popup.dart b/lib/src/ui/util/components/in_progress/in_progress_popup.dart index 76a23f4..b196936 100755 --- a/lib/src/ui/util/components/in_progress/in_progress_popup.dart +++ b/lib/src/ui/util/components/in_progress/in_progress_popup.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:ui'; import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/buttons/popup_close_button.dart'; diff --git a/lib/src/ui/util/components/in_progress/in_progress_resume_btn.dart b/lib/src/ui/util/components/in_progress/in_progress_resume_btn.dart index 7d58dbb..5e4dbea 100755 --- a/lib/src/ui/util/components/in_progress/in_progress_resume_btn.dart +++ b/lib/src/ui/util/components/in_progress/in_progress_resume_btn.dart @@ -1,6 +1,6 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/domain/models/failures.dart'; -import 'package:archethic_dapp_framework_flutter/src/l10n/localizations-ae-dapp-framework.dart'; +import 'package:archethic_dapp_framework_flutter/src/l10n/localizations_ae_dapp_framework.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/components/buttons/app_button.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/info_banner.dart b/lib/src/ui/util/components/info_banner.dart index 274b101..e81d614 100755 --- a/lib/src/ui/util/components/info_banner.dart +++ b/lib/src/ui/util/components/info_banner.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/generic/responsive.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/iconsax.dart'; diff --git a/lib/src/ui/util/components/paste_icon.dart b/lib/src/ui/util/components/paste_icon.dart index 81bfb56..41c6959 100644 --- a/lib/src/ui/util/components/paste_icon.dart +++ b/lib/src/ui/util/components/paste_icon.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/ui/util/components/app_text_field.dart'; import 'package:archethic_dapp_framework_flutter/src/ui/util/iconsax.dart'; import 'package:flutter/material.dart'; diff --git a/lib/src/ui/util/components/popup_waves.dart b/lib/src/ui/util/components/popup_waves.dart index 6e842b9..87d2165 100755 --- a/lib/src/ui/util/components/popup_waves.dart +++ b/lib/src/ui/util/components/popup_waves.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:archethic_dapp_framework_flutter/src/ui/themes/app_theme_base.dart'; import 'package:flutter/material.dart'; import 'package:wave/config.dart'; diff --git a/lib/src/ui/util/components/scrollbar.dart b/lib/src/ui/util/components/scrollbar.dart index f5d5cc3..26ed2bb 100755 --- a/lib/src/ui/util/components/scrollbar.dart +++ b/lib/src/ui/util/components/scrollbar.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:flutter/material.dart'; class ArchethicScrollbar extends StatefulWidget { diff --git a/lib/src/ui/util/components/single_card.dart b/lib/src/ui/util/components/single_card.dart index 403aa54..b8c4dd3 100755 --- a/lib/src/ui/util/components/single_card.dart +++ b/lib/src/ui/util/components/single_card.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:ui'; import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart'; diff --git a/lib/src/ui/util/dimens.dart b/lib/src/ui/util/dimens.dart index 1a11029..e1f42bd 100755 --- a/lib/src/ui/util/dimens.dart +++ b/lib/src/ui/util/dimens.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later class Dimens { static const List buttonTopDimens = [28, 0, 28, 8]; diff --git a/lib/src/ui/util/generic/formatters.dart b/lib/src/ui/util/generic/formatters.dart index 131cd13..8a6722d 100644 --- a/lib/src/ui/util/generic/formatters.dart +++ b/lib/src/ui/util/generic/formatters.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:math'; import 'package:flutter/services.dart'; diff --git a/lib/src/ui/util/iconsax.dart b/lib/src/ui/util/iconsax.dart index 6cc5e70..686874f 100644 --- a/lib/src/ui/util/iconsax.dart +++ b/lib/src/ui/util/iconsax.dart @@ -13,6 +13,7 @@ /// /// /// +library; // ignore_for_file: avoid_redundant_argument_values, constant_identifier_names import 'package:flutter/widgets.dart'; diff --git a/lib/src/util/address_util.dart b/lib/src/util/address_util.dart index 1df26ad..ea2e346 100644 --- a/lib/src/util/address_util.dart +++ b/lib/src/util/address_util.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later class AddressUtil { static String reduceAddress(String input) { if (input.length <= 14) { diff --git a/lib/src/util/custom_logs.dart b/lib/src/util/custom_logs.dart index 60e149b..db9602d 100644 --- a/lib/src/util/custom_logs.dart +++ b/lib/src/util/custom_logs.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'dart:async'; import 'dart:convert'; diff --git a/lib/src/util/generic/get_it_instance.dart b/lib/src/util/generic/get_it_instance.dart index 89d0daf..7fae4bd 100644 --- a/lib/src/util/generic/get_it_instance.dart +++ b/lib/src/util/generic/get_it_instance.dart @@ -1,4 +1,4 @@ -/// SPDX-License-Identifier: AGPL-3.0-or-later +// SPDX-License-Identifier: AGPL-3.0-or-later import 'package:get_it/get_it.dart'; final GetIt sl = GetIt.instance; diff --git a/pubspec.lock b/pubspec.lock index 81f548f..5d1bf3b 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -42,18 +42,18 @@ packages: dependency: "direct main" description: name: archethic_lib_dart - sha256: "6abb532e25212c10782e09274d8a17b00a745910f4410e558b17d305cc202ce5" + sha256: "9200c8b49322c01e765ecd44cca97658a0436767abb76cbeda5f742d23d0e61e" url: "https://pub.dev" source: hosted - version: "5.0.1" + version: "5.0.2" archethic_wallet_client: dependency: "direct main" description: name: archethic_wallet_client - sha256: b67757e69306743bfeff80f59db385b3097bcef2de10bb1d6793077dd5202f05 + sha256: "69463fe1716b365b17623745fadc7e8ca37135c0bbd908e88fb9d68b05030a85" url: "https://pub.dev" source: hosted - version: "2.1.6" + version: "2.1.7" archive: dependency: "direct main" description: @@ -194,10 +194,10 @@ packages: dependency: transitive description: name: clock - sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b + sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf url: "https://pub.dev" source: hosted - version: "1.1.2" + version: "1.1.1" code_builder: dependency: transitive description: @@ -266,18 +266,10 @@ packages: dependency: transitive description: name: custom_lint_core - sha256: "02450c3e45e2a6e8b26c4d16687596ab3c4644dd5792e3313aa9ceba5a49b7f5" - url: "https://pub.dev" - source: hosted - version: "0.7.0" - custom_lint_visitor: - dependency: transitive - description: - name: custom_lint_visitor - sha256: "8aeb3b6ae2bb765e7716b93d1d10e8356d04e0ff6d7592de6ee04e0dd7d6587d" + sha256: a85e8f78f4c52f6c63cdaf8c872eb573db0231dcdf3c3a5906d493c1f8bc20e6 url: "https://pub.dev" source: hosted - version: "1.0.0+6.7.0" + version: "0.6.3" dart_style: dependency: transitive description: @@ -290,10 +282,10 @@ packages: dependency: transitive description: name: decimal - sha256: da8f65df568345f2738cc8b0de74971c86d2d93ce5fc8c4ec094f6b7c5d48eb5 + sha256: "4140a688f9e443e2f4de3a1162387bf25e1ac6d51e24c9da263f245210f41440" url: "https://pub.dev" source: hosted - version: "3.1.0" + version: "3.0.2" deeplink_rpc: dependency: transitive description: @@ -355,6 +347,11 @@ packages: url: "https://pub.dev" source: hosted version: "4.5.2" + flutter_localizations: + dependency: "direct main" + description: flutter + source: sdk + version: "0.0.0" flutter_riverpod: dependency: "direct main" description: @@ -548,10 +545,10 @@ packages: dependency: "direct main" description: name: intl - sha256: "00f33b908655e606b86d2ade4710a231b802eec6f11e87e4ea3783fd72077a50" + sha256: d6f56758b7d3014a48af9701c085700aac781a92a87a62b1333b46d8879661cf url: "https://pub.dev" source: hosted - version: "0.20.1" + version: "0.19.0" io: dependency: transitive description: @@ -600,6 +597,14 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.3" + lints: + dependency: "direct dev" + description: + name: lints + sha256: "3315600f3fb3b135be672bf4a178c55f274bebe368325ae18462c89ac1e3b413" + url: "https://pub.dev" + source: hosted + version: "5.0.0" lit_starfield: dependency: "direct main" description: @@ -708,10 +713,10 @@ packages: dependency: transitive description: name: path - sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.9.1" + version: "1.9.0" path_provider: dependency: transitive description: @@ -852,10 +857,10 @@ packages: dependency: transitive description: name: riverpod_analyzer_utils - sha256: c6b8222b2b483cb87ae77ad147d6408f400c64f060df7a225b127f4afef4f8c8 + sha256: "0dcb0af32d561f8fa000c6a6d95633c9fb08ea8a8df46e3f9daca59f11218167" url: "https://pub.dev" source: hosted - version: "0.5.8" + version: "0.5.6" riverpod_annotation: dependency: "direct main" description: @@ -876,10 +881,10 @@ packages: dependency: "direct dev" description: name: riverpod_lint - sha256: "63546d70952015f0981361636bf8f356d9cfd9d7f6f0815e3c07789a41233188" + sha256: "0684c21a9a4582c28c897d55c7b611fa59a351579061b43f8c92c005804e63a8" url: "https://pub.dev" source: hosted - version: "2.6.3" + version: "2.6.1" rxdart: dependency: transitive description: @@ -1153,10 +1158,10 @@ packages: dependency: transitive description: name: vm_service - sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 + sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14" url: "https://pub.dev" source: hosted - version: "15.0.0" + version: "14.3.1" watcher: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 7a35aa3..477ea20 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: archethic_dapp_framework_flutter description: An internal framework for archethic flutter development homepage: https://github.com/archethic-foundation/archethic-dapp-framework-flutter -version: 3.2.4 +version: 3.2.5 environment: sdk: ">=3.5.3 <4.0.0" @@ -10,7 +10,7 @@ environment: dependencies: # Archethic dart library for Flutter based on Official Archethic Javascript library for Node and Browser - archethic_lib_dart: ^5.0.0 + archethic_lib_dart: ^5.0.2 #archethic_lib_dart: # git: # url: https://github.com/archethic-foundation/libdart.git @@ -19,7 +19,7 @@ dependencies: # path: ../../packages/libdart # A client dart library to interact with Archethic Wallet RPC API. - archethic_wallet_client: ^2.1.6 + archethic_wallet_client: ^2.1.7 #archethic_wallet_client: # git: # url: https://github.com/archethic-foundation/archethic-wallet-client-dart.git @@ -37,13 +37,16 @@ dependencies: sdk: flutter # Add beautiful animated effects & builders in Flutter, via an easy, customizable, unified API. - flutter_animate: ^4.5.0 + flutter_animate: ^4.5.2 + + flutter_localizations: + sdk: flutter # State management flutter_riverpod: ^2.6.1 # Annotations for the freezed code-generator. This package does nothing without freezed too - freezed_annotation: ^2.4.1 + freezed_annotation: ^2.4.4 # Simple direct Service Locator that allows to decouple the interface from a concrete implementation and to access the concrete implementation from everywhere in your App get_it: ^7.6.7 @@ -56,19 +59,19 @@ dependencies: hive_flutter: ^1.1.0 # A composable, multi-platform, Future-based API for HTTP requests - http: ^1.2.1 - - # Contains code to deal with internationalized/localized messages, date and number formatting and parsing, bi-directional text, and other internationalization issues. - intl: ^0.20.0 + http: + ^1.2.1 + # Contains code to deal with internationalized/localized messages, date and number formatting and parsing, bi-directional text, and other internationalization issues. + intl: ^0.19.0 # Classes and helper functions that support JSON code generation via the `json_serializable` package - json_annotation: ^4.8.1 + json_annotation: ^4.9.0 # A Flutter plugin for rendering an animated and customizable starfield on a dark background. lit_starfield: ^0.1.1 # Provides APIs for debugging and error logging, similar to loggers in other languages, such as the Closure JS Logger and java.util.logging.Logger. - logging: ^1.2.0 + logging: ^1.3.0 # Flutter plugin for querying information about the application package, such as CFBundleVersion on iOS or versionCode on Android package_info_plus: ^8.0.2 @@ -87,17 +90,18 @@ dependencies: dev_dependencies: # A build system for Dart code generation and modular compilation. - build_runner: ^2.4.8 + build_runner: ^2.4.13 custom_lint: ^0.6.4 # Code generation for immutable classes that has a simple syntax/API without compromising on the features. - freezed: ^2.4.7 + freezed: ^2.5.7 # Automatically generate code for converting to and from JSON by annotating Dart classes. - json_serializable: ^6.7.1 + json_serializable: ^6.9.0 + lints: ^5.0.0 # A code generator for Riverpod. This both simplifies the syntax empowers it, such as allowing stateful hot-reload. riverpod_generator: ^2.6.1 riverpod_lint: ^2.4.0 # Automated tests - test: ^1.25.2 + test: ^1.25.12 flutter: generate: true