A boilerplate example app for Solana Mobile dApps built using Jetpack Compose. It provides an interface to connect to locally installed wallet apps (that are MWA-compatible), view your account balance on devnet, and request an airdrop of SOL.
- Mobile Wallet Adapter (
clientlib-ktx
) for connecting to wallets and signing transactions/messages - web3-solana for Solana primitive types (
SolanaPublicKey
) and constructing messages/transactions. - rpc-core for constructing and sending Solana RPC requests.
You'll need to first setup your environment for Android development. Follow the Prerequisite Setup Guide.
Follow the guide to make sure you:
- setup your Android and React Native development environment.
- have an Android device or emulator.
- install an MWA compliant wallet app on your device/emulator.
- Initialize project template
git clone https://github.com/solana-mobile/solana-kotlin-compose-scaffold.git
-
Open the project on Android Studio > Open > "SolanaKotlinComposeScaffold/app/build.gradle.kts"
-
Start your emulator/device and build the app
Compatible wallet not found.
- Make sure you install a compatible MWA wallet on your device, like Phantom, Solflare, Ultimate, or
fakewallet
. Follow the setup guide.
- Make sure you install a compatible MWA wallet on your device, like Phantom, Solflare, Ultimate, or