Skip to main content

Setup

In the project level build.gradle file, add the following lines. This will make the SDKs from our server available to you.

Project/build.gradle
buildscript {  // ...  dependencies {    // VERSION must be 3.3.3, 3.4.3, 3.5.4, 3.6.4, 4.0.1 or 4.1.x    classpath("com.android.tools.build:gradle:VERSION")  }}allprojects {  repositories {    // ...    maven {      url "https://repository.bharatx.tech/repository/maven-releases/"      credentials {          username "repository-user"          password "nxN7D4U6CBdJs8g2"      }    }  }}

Add the following line to your app-level build.gradle file.

Project/app/build.gradle
implementation 'tech.bharatx.sdk:simple:1.0.2'

You can now use BharatX's SDK in your project!