From 15cab9dbe798893fdb9fc81d2e5930cb42d61afc Mon Sep 17 00:00:00 2001 From: Alfreedom <00tango.bromine@icloud.com> Date: Tue, 22 Oct 2024 16:04:41 +0100 Subject: [PATCH] minor changes in walletkit --- packages/reown_walletkit/CHANGELOG.md | 6 +++++- .../lib/dependencies/walletkit_service.dart | 14 +------------- packages/reown_walletkit/example/pubspec.yaml | 2 +- packages/reown_walletkit/lib/version.dart | 2 +- packages/reown_walletkit/pubspec.yaml | 10 +++++----- .../test/shared/shared_test_utils.mocks.dart | 5 +++-- 6 files changed, 16 insertions(+), 23 deletions(-) diff --git a/packages/reown_walletkit/CHANGELOG.md b/packages/reown_walletkit/CHANGELOG.md index 38b39c0..37e3b13 100644 --- a/packages/reown_walletkit/CHANGELOG.md +++ b/packages/reown_walletkit/CHANGELOG.md @@ -1,7 +1,11 @@ +## 1.0.2 + +- Minor dependency update + ## 1.0.1 - Update readme ## 1.0.0 -Initial release. +- Initial release diff --git a/packages/reown_walletkit/example/lib/dependencies/walletkit_service.dart b/packages/reown_walletkit/example/lib/dependencies/walletkit_service.dart index 77edd56..75caa5e 100644 --- a/packages/reown_walletkit/example/lib/dependencies/walletkit_service.dart +++ b/packages/reown_walletkit/example/lib/dependencies/walletkit_service.dart @@ -53,7 +53,7 @@ class WalletKitService extends IWalletKitService { _walletKit = ReownWalletKit( core: ReownCore( projectId: DartDefines.projectId, - logLevel: LogLevel.error, + logLevel: LogLevel.info, ), metadata: PairingMetadata( name: 'FL WalletKit Sample', @@ -66,8 +66,6 @@ class WalletKitService extends IWalletKitService { ), ); - _walletKit!.core.addLogListener(_logListener); - // Setup our listeners debugPrint('[SampleWallet] create'); _walletKit!.core.pairing.onPairingInvalid.subscribe(_onPairingInvalid); @@ -148,18 +146,8 @@ class WalletKitService extends IWalletKitService { } } - void _logListener(LogEvent event) { - if (event.level == Level.debug) { - // TODO send to mixpanel - log('${event.message}'); - } else { - debugPrint('${event.message}'); - } - } - @override FutureOr onDispose() { - _walletKit!.core.removeLogListener(_logListener); _walletKit!.core.pairing.onPairingInvalid.unsubscribe(_onPairingInvalid); _walletKit!.core.pairing.onPairingCreate.unsubscribe(_onPairingCreate); _walletKit!.core.relayClient.onRelayClientError.unsubscribe( diff --git a/packages/reown_walletkit/example/pubspec.yaml b/packages/reown_walletkit/example/pubspec.yaml index 28108b6..be1d49e 100644 --- a/packages/reown_walletkit/example/pubspec.yaml +++ b/packages/reown_walletkit/example/pubspec.yaml @@ -22,7 +22,7 @@ dependencies: http: ^1.2.2 json_annotation: ^4.8.1 kadena_dart_sdk: ^2.3.2 - package_info_plus: ^7.0.0 + package_info_plus: ^8.0.2 pointycastle: ^3.9.1 polkadart: ^0.4.6 polkadart_keyring: ^0.4.3 diff --git a/packages/reown_walletkit/lib/version.dart b/packages/reown_walletkit/lib/version.dart index 92a0d66..b0e99a5 100644 --- a/packages/reown_walletkit/lib/version.dart +++ b/packages/reown_walletkit/lib/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '1.0.1'; +const packageVersion = '1.0.2'; diff --git a/packages/reown_walletkit/pubspec.yaml b/packages/reown_walletkit/pubspec.yaml index 007b025..8a510c0 100644 --- a/packages/reown_walletkit/pubspec.yaml +++ b/packages/reown_walletkit/pubspec.yaml @@ -1,6 +1,6 @@ name: reown_walletkit description: "Reown is the onchain UX platform that provides toolkits built on top of the WalletConnect Network" -version: 1.0.1 +version: 1.0.2 homepage: https://github.com/reown-com/reown_flutter repository: https://github.com/reown-com/reown_flutter/tree/master/packages/reown_walletkit documentation: https://docs.reown.com/walletkit/flutter/installation @@ -12,8 +12,8 @@ dependencies: event: ^2.1.2 flutter: sdk: flutter - reown_core: ^1.0.0 - reown_sign: ^1.0.0 + reown_core: ^1.0.2 + reown_sign: ^1.0.2 dev_dependencies: build_runner: ^2.4.7 @@ -25,8 +25,8 @@ dev_dependencies: http: ^1.2.2 logger: ^2.2.0 mockito: ^5.4.3 - package_info_plus: ^7.0.0 - reown_appkit: ^1.0.0 + package_info_plus: ^8.0.2 + reown_appkit: ^1.0.1 platforms: android: diff --git a/packages/reown_walletkit/test/shared/shared_test_utils.mocks.dart b/packages/reown_walletkit/test/shared/shared_test_utils.mocks.dart index e7a5ab2..e36a4d0 100644 --- a/packages/reown_walletkit/test/shared/shared_test_utils.mocks.dart +++ b/packages/reown_walletkit/test/shared/shared_test_utils.mocks.dart @@ -1454,7 +1454,7 @@ class MockReownCore extends _i1.Mock implements _i28.ReownCore { ) as _i19.Logger); @override - void addLogListener(_i19.LogCallback? callback) => super.noSuchMethod( + void addLogListener(dynamic Function(String)? callback) => super.noSuchMethod( Invocation.method( #addLogListener, [callback], @@ -1463,7 +1463,8 @@ class MockReownCore extends _i1.Mock implements _i28.ReownCore { ); @override - bool removeLogListener(_i19.LogCallback? callback) => (super.noSuchMethod( + bool removeLogListener(dynamic Function(String)? callback) => + (super.noSuchMethod( Invocation.method( #removeLogListener, [callback],