Installation
#
How to install Beacon Android SDKTo add Beacon Android SDK into your project:
- Make sure the JitPack repository is included in your root
build.gradle
file:
- Groovy
- Kotlin
- Add the dependencies:
- Groovy
- Kotlin
#
Modules OverviewThe library modules and their relations are described below.
#
CoreCore modules are the basis for other modules. They are required for the SDK to work as expected.
Module | Description | Dependencies | Required by |
---|---|---|---|
:core | Base for other modules | ✖️ | :client-wallet :client-wallet-compat :blockchain-substrate :blockchain-tezos :transport-p2p-matrix |
#
ClientClient modules ship with Beacon implementations for different parts of the network.
Module | Description | Dependencies | Required by |
---|---|---|---|
:client-wallet | Beacon implementation for wallets | :core | :client-wallet-compat |
:client-wallet-compat | Provides a supplementary interface for :client-wallet for use without Coroutines | :core :client-wallet | ✖️ |
#
BlockchainBlockchain modules provide support for different blockchains.
Module | Description | Dependencies | Required by |
---|---|---|---|
:blockchain-substrate | Substrate specific components | :core | ✖️ |
:blockchain-tezos | Tezos specific components | :core | ✖️ |
#
TransportTransport modules provide various interfaces used to establish connection between Beacon clients.
Module | Description | Dependencies | Required by |
---|---|---|---|
:transport-p2p-matrix | Beacon P2P implementation which uses Matrix for the communication | :core | ✖️ |
#
Proguard and R8Beacon Android SDK
internally uses various libraries that may require custom ProGuard rules. If you're using ProGuard or R8, please follow the guides listed below to make sure your app works correctly after obfuscation:
#
TroubleshootingSee the list of known issues and how to fix them if you run into problems after adding the dependencies:
Native library (com/sun/jna/xxxxx/libjnidispatch.so) not found in resource path
Add the
"net.java.dev.jna:jna:x.y.z@aar"
dependency and exclude thenet.java.dev.jna
group from the Beacon dependencies.
- Groovy
- Kotlin