Skip to content

Getting Started

Christopher O'Brien edited this page Jul 1, 2021 · 1 revision

Getting Started

Add the Github Package repository to your top-level build.gradle, along with a Github username and access token (no permissions required).

repositories {
  maven {
    url = "https://maven.pkg.github.com/hmrc/android-components"
    credentials {
      username = System.getenv("GITHUB_USER_NAME")
      password = System.getenv("GITHUB_TOKEN")
    }
  }
}

Then add the following to your list of dependencies:

implementation 'uk.gov.hmrc.components:components:{version}'
androidTestImplementation 'uk.gov.hmrc.components:components-test:{version}'

The latest release can be found here.

Clone this wiki locally