Skip to content

Integrate WC Modal, Upgrade SDK, Multichain & Multiaccount #189

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

Merged
merged 7 commits into from
May 28, 2024
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
7 changes: 4 additions & 3 deletions Assets/Plugins/Android/Linker.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import com.unity3d.player.UnityPlayerActivity;

public class Linker {
public static boolean canOpenURL(Context context, String url) {
public static boolean canOpenURL(UnityPlayerActivity activity, String url){
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
return intent.resolveActivity(context.getPackageManager()) != null;
return intent.resolveActivity(activity.getPackageManager()) != null;
}
}
}
4 changes: 2 additions & 2 deletions Assets/Plugins/Android/Linker.java.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Assets/Plugins/iOS/CanOpenUrl.m.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ MonoBehaviour:
Native:
Universal:
VerifyUrl:
<RelayUrl>k__BackingField: wss://relay.walletconnect.com
<LoggingEnabled>k__BackingField: 0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.1.6] - 2024-05-09

### Added

- visionOS support

### Changed

- Upgraded WalletConnectSharp to [v2.3.6](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.6)
- Don't use PlayerPrefs for storage in the Editor when targeting WebGL

### [3.1.5] - 2024-04-26

### Added

- `ApplicationFocus` event in UnityEventsDispatcher

### Changed

- Disable reference validation of external DLLs

## [3.1.4] - 2024-04-17

### Changed

- Upgraded WalletConnectSharp to [v2.3.5](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.5)

## [3.1.3] - 2024-04-16

### Changed

- Upgraded WalletConnectSharp to [v2.3.4](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.4)
- Use Recent Wallet’s redirect when session doesn't have native redirect
- Improve WebSocket reconnection when not having an internet connection from the start

## [3.1.2] - 2024-03-29

### Added

- Dispose WalletConnect on `ApplicationQuit`. This will also dispose the instance when exiting play mode in the Editor.

### Changed

- Don’t pause WebSocket when app loses focus

### Fixed

- Device type detection on Android

## [3.1.1] - 2024-03-25

### Added

- Add `ActiveChainIdChanged` event to `IWalletConnect` interface

### Fixed

- Broken WebGL build

## [3.1.0] - 2024-03-21

### Added

- Types for common EVM methods (e.g. `eth_sendTransaction`, `personal_sign`, etc.)
- Ethereum chain switching with `wallet_switchEthereumChain` and `wallet_addEthereumChain`
- Chain switch event
- Optional `chainID` parameter in `IWalletConnect.RequestAsync` method
- Chain types and constants
- Tests for Core package
- `RelayUrl` customisation

### Changed

- Upgraded WalletConnectSharp to [v2.3.0](https://github.com/WalletConnect/WalletConnectSharp/releases/tag/v2.3.0)
- Disposability of `WebSocket`
- Disable `OrientationTracker` on platforms other than mobile
- Handle more JSON deserialize errors caused by storage corruption

### Fixed

- Session proposal via deep linking didn't work with some wallets
- `com.unity.nuget.newtonsoft-json` dependency version
- Incompatibility with Firebase and Jetifier in Android builds

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading