Zello’s Android SDK is a fully-native set of libraries that provides APIs for connecting with Zello servers, enabling tasks such as authentication and message sending. You can add the SDK to your project using Gradle, similar to how you would add other libraries. However, you will also need to add a Zello-hosted Maven repository to access the compiled code.
Prerequisites:
An Android build environment that includes Gradle.
Hilt dependency injection, which is required for the SDK to properly initialize.
Android SDK 24+
Adding Zello SDK to your project:
Add the Zello-hosted repository that contains our SDK to the section where your Gradle configuration defines repositories.
For example, your top-level build.gradle.kts file may contain this block:
We recommend using the google and mavenCentral repositories to load the transitive dependencies required by the Zello SDK. However, as long as your set of repositories includes all of Zello’s necessary dependencies, the SDK will run. The full list can be found below.
In your module-level or app-level build.gradle.kts, include the following:
// Set this to the lastest version
def zelloSdkVersion = "1.0.1"
dependencies {
implementation("com.zello:sdk:$zelloSdkVersion")
implementation("com.zello:core:$zelloSdkVersion") {
exclude(module = "unspecified")
}
implementation("com.zello:zello:$zelloSdkVersion")
// Firebase Messaging is used for push notifications and is a compile-time dependency
// used when generating dependency injectors
implementation(platform("com.google.firebase:firebase-bom:32.8.0"))
implementation("com.google.firebase:firebase-messaging")
// Other project dependencies
}
NOTE: The exclude(module = "unspecified") call is needed to account for an issue with a transitive dependency. This will be resolved in a future version of the SDK
NOTE: This step step should not be necessary for React Native integrations
Transitive Dependencies:
The latest version of the Zello SDK includes the following dependencies transitively which must be resolved in order to prevent errors.