Skip to content

helikon-labs/subvt-data-android

Repository files navigation

Quality Gate Status Release

SubVT Data Access for Android

SubVT (Substrate Validator Toolkit) data access library for Android.

Please visit the top-level Subvt repository for project information.

Test & Build

  • Rename the file subvt.properties.sample in the root folder to subvt.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.

Installation

  1. 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' }
        }
    }
  2. Add the dependency:

    dependencies {
        // ...
        implementation 'com.github.helikon-labs:subvt-data-android:0.24.5'
        // ...
    }

Usage

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.