diff --git a/CHANGELOG.md b/CHANGELOG.md index 81496f82..280136ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 3.1.1-beta02 + +- Minor bug fix during preferences clearing + ## 3.1.1-beta01 - Better Smart Contract interactions diff --git a/example/android/gradle.properties b/example/android/gradle.properties index cc45d321..3cf03a0e 100644 --- a/example/android/gradle.properties +++ b/example/android/gradle.properties @@ -2,4 +2,4 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true versionName=3.1.1 -versionCode=31 +versionCode=32 diff --git a/example/ios/Runner.xcodeproj/project.pbxproj b/example/ios/Runner.xcodeproj/project.pbxproj index 5597e309..cc914b2b 100644 --- a/example/ios/Runner.xcodeproj/project.pbxproj +++ b/example/ios/Runner.xcodeproj/project.pbxproj @@ -470,7 +470,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 31; + CURRENT_PROJECT_VERSION = 32; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = W5R8AG9K22; ENABLE_BITCODE = NO; @@ -496,7 +496,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 31; + CURRENT_PROJECT_VERSION = 32; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.web3modal.flutterExample.RunnerTests; @@ -514,7 +514,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 31; + CURRENT_PROJECT_VERSION = 32; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.web3modal.flutterExample.RunnerTests; @@ -530,7 +530,7 @@ buildSettings = { BUNDLE_LOADER = "$(TEST_HOST)"; CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 31; + CURRENT_PROJECT_VERSION = 32; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; PRODUCT_BUNDLE_IDENTIFIER = com.web3modal.flutterExample.RunnerTests; @@ -655,7 +655,7 @@ CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 31; + CURRENT_PROJECT_VERSION = 32; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = W5R8AG9K22; ENABLE_BITCODE = NO; @@ -686,7 +686,7 @@ CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Distribution"; CODE_SIGN_STYLE = Manual; - CURRENT_PROJECT_VERSION = 31; + CURRENT_PROJECT_VERSION = 32; DEVELOPMENT_TEAM = ""; "DEVELOPMENT_TEAM[sdk=iphoneos*]" = W5R8AG9K22; ENABLE_BITCODE = NO; diff --git a/example/ios/Runner/Info.plist b/example/ios/Runner/Info.plist index 531556a5..4b74b6d9 100644 --- a/example/ios/Runner/Info.plist +++ b/example/ios/Runner/Info.plist @@ -36,7 +36,7 @@ CFBundleVersion - 31 + 32 ITSAppUsesNonExemptEncryption LSApplicationQueriesSchemes diff --git a/example/pubspec.lock b/example/pubspec.lock index 0af8e8df..ebc4a766 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -1073,10 +1073,10 @@ packages: dependency: transitive description: name: walletconnect_flutter_v2 - sha256: f3c90f6eceb130fefcc6b6e22a28ecc971612c90e91fbfaaafbd73c2178db8c1 + sha256: "1e4d437baac68519fc1fb8eca17075673ee55c8aad1ed1d8cec95f60dcf6b512" url: "https://pub.dev" source: hosted - version: "2.2.0-beta01" + version: "2.2.0-beta02" watcher: dependency: transitive description: @@ -1107,7 +1107,7 @@ packages: path: ".." relative: true source: path - version: "3.1.1-beta01" + version: "3.1.1-beta02" web_socket_channel: dependency: transitive description: diff --git a/lib/services/storage_service/i_storage_service.dart b/lib/services/storage_service/i_storage_service.dart index d8cf0ca6..5dd5b9c5 100644 --- a/lib/services/storage_service/i_storage_service.dart +++ b/lib/services/storage_service/i_storage_service.dart @@ -2,6 +2,6 @@ abstract class IStorageService { Future init(); String? getString(String key, {String? defaultValue}); Future setString(String key, String value); - Future clearAll(); + Future clearAll(); Future clearKey(String key); } diff --git a/lib/services/storage_service/storage_service.dart b/lib/services/storage_service/storage_service.dart index 527886a6..2f42b9e9 100644 --- a/lib/services/storage_service/storage_service.dart +++ b/lib/services/storage_service/storage_service.dart @@ -20,8 +20,13 @@ class StorageService implements IStorageService { } @override - Future clearAll() async { - return await _prefs!.clear(); + Future clearAll() async { + final keys = _prefs!.getKeys(); + for (var key in keys) { + if (key.startsWith('w3m_')) { + await _prefs!.remove(key); + } + } } @override diff --git a/lib/version.dart b/lib/version.dart index e6cc46ed..02df74f7 100644 --- a/lib/version.dart +++ b/lib/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '3.1.1-beta01'; +const packageVersion = '3.1.1-beta02'; diff --git a/pubspec.lock b/pubspec.lock index 9af08f19..947c8119 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -1049,10 +1049,10 @@ packages: dependency: "direct main" description: name: walletconnect_flutter_v2 - sha256: f3c90f6eceb130fefcc6b6e22a28ecc971612c90e91fbfaaafbd73c2178db8c1 + sha256: "1e4d437baac68519fc1fb8eca17075673ee55c8aad1ed1d8cec95f60dcf6b512" url: "https://pub.dev" source: hosted - version: "2.2.0-beta01" + version: "2.2.0-beta02" watcher: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 72e58e05..ee538ae9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: web3modal_flutter description: "WalletConnect Web3Modal: Simple, intuitive wallet login. With this drop-in UI SDK, enable any wallet's users to seamlessly log in to your app and enjoy a unified experience" -version: 3.1.1-beta01 +version: 3.1.1-beta02 repository: https://github.com/WalletConnect/Web3ModalFlutter environment: @@ -23,7 +23,7 @@ dependencies: shimmer: ^3.0.0 url_launcher: ^6.2.3 # walletconnect_flutter_v2: ^2.1.14 - walletconnect_flutter_v2: ^2.2.0-beta01 + walletconnect_flutter_v2: ^2.2.0-beta02 dev_dependencies: build_runner: ^2.4.7 diff --git a/test/mock_classes.mocks.dart b/test/mock_classes.mocks.dart index 5589602f..d94c168c 100644 --- a/test/mock_classes.mocks.dart +++ b/test/mock_classes.mocks.dart @@ -2482,13 +2482,14 @@ class MockStorageService extends _i1.Mock implements _i33.StorageService { returnValue: _i14.Future.value(false), ) as _i14.Future); @override - _i14.Future clearAll() => (super.noSuchMethod( + _i14.Future clearAll() => (super.noSuchMethod( Invocation.method( #clearAll, [], ), - returnValue: _i14.Future.value(false), - ) as _i14.Future); + returnValue: _i14.Future.value(), + returnValueForMissingStub: _i14.Future.value(), + ) as _i14.Future); @override _i14.Future clearKey(String? key) => (super.noSuchMethod( Invocation.method(