SubVT (Substrate Validator Toolkit) data access library for Android.
Please visit the top-level Subvt repository for project information.
- Rename the file
subvt.properties.sample
in the root folder tosubvt.properties
, and edit the file contents with the service host and port details. - Run
./gradlew lintDebug
in the folder for lint checks. - Run
./gradlew test
for complete unit tests. - Run
./gradlew connectedCheck
for instrumented tests (only application service for now). - Run
./gradlew build
to build.
-
Add the JitPack repository in your root-level
settings.gradle
file:dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() mavenCentral() jcenter() // Warning: this repository is going to shut down soon // add the JitPack repository here maven { url 'https://jitpack.io' } } }
-
Add the dependency:
dependencies { // ... implementation 'com.github.helikon-labs:subvt-data-android:0.24.5' // ... }
Please refer to the unit and instrumented tests for information about how to use the report and application REST services, and network status, active/inactive validator list and validator details RPC pub/sub services.