Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(android): upgrade android bom 1.19.1, handle session extend … #23

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,8 @@
## 1.0.7

* Upgrade to the latest SDKs Android Bom 1.15.0, iOS 1.6.15

## 1.0.8

* Upgrade to the latest SDK Android Bom 1.19.1
* Wrap session extend callback to fire session update event to Flutter
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ android {

dependencies {
implementation 'com.google.code.gson:gson:2.10'
implementation(platform("com.walletconnect:android-bom:1.15.0"))
implementation(platform("com.walletconnect:android-bom:1.19.1"))
implementation("com.walletconnect:android-core")
implementation("com.walletconnect:sign")
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ class WalletConnectV2Plugin : FlutterPlugin, MethodCallHandler, ActivityAware,
}
}

override fun onSessionExtend(session: Sign.Model.Session) {
onEvent(
name = "session_update", data = mapOf(
"topic" to session.topic
)
)
}

override fun onSessionSettleResponse(settleSessionResponse: Sign.Model.SettledSessionResponse) {
if (settleSessionResponse is Sign.Model.SettledSessionResponse.Result) {
val session = settleSessionResponse.session
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: wallet_connect_v2
description: Wallet Connect V2 for Flutter, available for both Wallet and DApp to interact easier
version: 1.0.7
version: 1.0.8
homepage: https://avacus.cc
repository: https://github.com/wakumo/flutter-wallet-connect-v2

Expand Down