Skip to main content
Version: 3.2.0

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, 4.1.x or any version above 4    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 lines to your app-level build.gradle file.

Project/app/build.gradle
android {  buildTypes {    debug {      manifestPlaceholders = [          bharatx_partner_id: "testPartnerId",          bharatx_api_key: "testApiKey"      ]    }    release {      manifestPlaceholders = [          bharatx_partner_id: "testPartnerId",          bharatx_api_key: "testApiKey"      ]    }  }}
dependencies {  // ...  implementation 'tech.bharatx.sdk:startup:3.1.2'  // ...}

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