Skip to content

Commit

Permalink
chore: 🎨 Improve lib score
Browse files Browse the repository at this point in the history
  • Loading branch information
redDwarf03 committed Dec 13, 2024
1 parent d4ab200 commit 292157c
Show file tree
Hide file tree
Showing 45 changed files with 661 additions and 962 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# 2.1.6

- ✅ Improve lib score.
- ⬆️ Upgrade dependencies

# 2.1.5

- fix: :bug: Message channel dispose uninitialized late field.
- fix: 🐛 Message channel dispose uninitialized late field.

# 2.1.4

Expand Down
2 changes: 2 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
- "**/*.freezed.dart"
Expand Down Expand Up @@ -170,6 +171,7 @@ linter:
- unnecessary_getters_setters
# - unnecessary_lambdas
- unnecessary_late
- unnecessary_library_directive
- unnecessary_new
- unnecessary_null_aware_assignments
- unnecessary_null_checks
Expand Down
9 changes: 9 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
targets:
$default:
sources:
exclude:
- "example/**"
- "windows/flutter/ephemeral/**"
- "**/.symlinks/**"
- "**/build/**"
- "**/.dart_tool/**"
1 change: 1 addition & 0 deletions example/lib/tab/account_subscription.dart
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ class _AccountSubscriptionTabState extends State<AccountSubscriptionTab> {
setState(() {
accountSub = success;
accountStreamSub = success.updates.listen((event) {
if (!context.mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
ResultSnackbar.update(
'balance: ${event.balance}, lastAddress: ${event.lastAddress}',
Expand Down
1 change: 1 addition & 0 deletions example/lib/tab/current_account_subscription.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ class _CurrentAccountSubscriptionTabState
setState(() {
accountSub = success;
accountStreamSub = success.updates.listen((event) {
if (!context.mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
ResultSnackbar.update(
'name: ${event.name}, genesisAddress: ${event.genesisAddress}',
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ dependencies:
flutter_svg: ^2.0.10+1

# Logging lib
logging: ^1.2.0
logging: ^1.3.0

dev_dependencies:
flutter_test:
Expand Down
4 changes: 3 additions & 1 deletion lib/archethic_wallet_client.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
/// SPDX-License-Identifier: AGPL-3.0-or-later
// SPDX-License-Identifier: AGPL-3.0-or-later
///
/// A client dart library to interact with Archethic Wallet RPC API.
library archethic_wallet_client;

export 'src/core/request.dart';
Expand Down
224 changes: 0 additions & 224 deletions lib/src/core/failures.freezed.dart

This file was deleted.

2 changes: 1 addition & 1 deletion lib/src/core/request.dart
Original file line number Diff line number Diff line change
@@ -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';

part 'request.freezed.dart';
Expand Down
Loading

0 comments on commit 292157c

Please sign in to comment.