Skip to main content
Version: 5.2.2

Zealot Android SDK

The Android component provides a service to check for new versions and installations for Zealot, supporting both Kotlin and Java.

Install​

JitPack​

Using jitpack to install:

allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}

In build.gradle file of main app project add:

dependencies {
implementation 'com.github.tryzealot:zealot-android:master-SNAPSHOT'
}

Permission​

Zealot needs internet permission

<uses-permission android:name="android.permission.INTERNET" />

Usages​

Add the start code to the onCreate method block of your Application file:

// Single channel
Zealot.create(getActivity())
.setEndpoint("https://zealot.com")
.setChannelKey("...")
.setBuildType(BuildConfig.BUILD_TYPE)
.launch()

// Multi-channel, such as beta, adhoc versions
Zealot.create(getActivity())
.setEndpoint("https://zealot.com")
.setChannelKey("xxxxxxx", "beta")
.setCHannelKey("yyyyyyy", "test")
.setBuildType(BuildConfig.BUILD_TYPE)
.launch()