Android
Add the SDK in Gradle file. You need to specify the version of the SDK to use ($HIVE_SDK_VERSION).
Project-level build.gradle file¶
First, add repositories to the project-level build.gradle file to fetch external libraries.
Module-level build.gradle file¶
Add the SDK to the module-level build.gradle file. Below is an example of build.gradle. The SDK uses Maven BOM (Bill of Materials) for dependency and version management.
android {
   ... compileOptions {
       sourceCompatibility JavaVersion.VERSION_1_8
       targetCompatibility JavaVersion.VERSION_1_8
   }
    ...;
}
dependencies {
   // Hive SDK BOM ex: 23.0.0
   implementation(platform("com.com2us.android.hive:hive-sdk-bom:${project.HIVE_SDK_VERSION}"))
   // Hive SDK
   implementation "com.com2us.android.hive:hive-sdk"
    // Used for Google Install Referrer tracking.
   implementation "com.android.installreferrer:installreferrer"
}