This is a demo app for the Solana Capacitor dApp plugin.
To run and deploy this project, please first install the dependencies for Capacitor described here and for Ionic as described here.
- Clone this repo
- Change to the directory you cloned the files to
- run the "npm i" command
- run "ionic build"
- run "npx cap sync"
- run "ionic cap open android to open the project in Android studio
- deploy to a device to emulator using the standard Android Studio workflow
After installing the dependencies and trying to run you get the compilation warning "Error: node_modules/@jnwng/walletconnect-solana/lib/types/adapter.d.ts:3:15 - error TS2305: Module '"@walletconnect/types"' has no exported member 'SignClientTypes'." you can fix this as follows;
In node_modules/@jnwng/wallet-connect-solana/lib/types/adapter.d.s;
Comment out "import type { SignClientTypes } from '@walletconnect/types';"
In lines 5-8 change the type of options to any so it looks like this: export interface WalletConnectWalletAdapterConfig { network: WalletConnectChainID; options: any; }
Pretty hacky and definitely not ideal but will allow you to run the demo.