Skip to content

Commit

Permalink
Merge pull request #23 from wakumo/feature/android-bom-1-19-1
Browse files Browse the repository at this point in the history
refactor(android): upgrade android bom 1.19.1, handle session extend …
  • Loading branch information
ludowkm authored Nov 6, 2023
2 parents 2f82324 + 776757b commit 18de9c9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 2 deletions.
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

0 comments on commit 18de9c9

Please sign in to comment.