This document outlines the steps to migrate from the old com.walletconnect
packages to the new com.reown
package in your Unity project.
Alternatively, you can use the OpenUPM CLI:
If the com.walletconnect.web3modal
package was installed manually via the Package Manager window or directly from the GitHub repository,
remove all com.walletconnect
packages and replace them with the com.reown
packages. You can find the list of all necessary packages in the
Installation Documentation under Package Manager with OpenUPM
tab.
The com.walletconnect.web3modal
package used two configuration objects: WalletConnectProjectConfig
scriptable object
and optional Web3ModalConfig
class.
The Reown AppKit combines these two configurations into a single AppKitConfig
class that can be passed into AppKit initialization method.
WalletConnectProjectConfig
scriptable objectThe modern IDE such as Rider or Visual Studio should be able to automatically update the namespaces for you. If not, you can manually update the namespaces as follows:
Note that some objects from WalletConnectUnity.Core
were moved into Reown.AppKit.Unity
namespace, therefore we
recommend to rely on the IDE to automatically update the namespaces.
Change Web3Modal
to AppKit
in your codebase. For example:
If you customized any AppKit USS variables, simply change --wui
part of the variable name to --ro
. For example:
This document outlines the steps to migrate from the old com.walletconnect
packages to the new com.reown
package in your Unity project.
Alternatively, you can use the OpenUPM CLI:
If the com.walletconnect.web3modal
package was installed manually via the Package Manager window or directly from the GitHub repository,
remove all com.walletconnect
packages and replace them with the com.reown
packages. You can find the list of all necessary packages in the
Installation Documentation under Package Manager with OpenUPM
tab.
The com.walletconnect.web3modal
package used two configuration objects: WalletConnectProjectConfig
scriptable object
and optional Web3ModalConfig
class.
The Reown AppKit combines these two configurations into a single AppKitConfig
class that can be passed into AppKit initialization method.
WalletConnectProjectConfig
scriptable objectThe modern IDE such as Rider or Visual Studio should be able to automatically update the namespaces for you. If not, you can manually update the namespaces as follows:
Note that some objects from WalletConnectUnity.Core
were moved into Reown.AppKit.Unity
namespace, therefore we
recommend to rely on the IDE to automatically update the namespaces.
Change Web3Modal
to AppKit
in your codebase. For example:
If you customized any AppKit USS variables, simply change --wui
part of the variable name to --ro
. For example: