This repository hosts the Maven artifacts for the Alloy Android SDK.
✅ This is a stable release version - Safe for production use.
Add the Alloy Android SDK to your Android project:
repositories {
maven {
url = uri("https://raw.githubusercontent.com/alloy-ch/rcplus-alloy-android-sdk-maven/v0.2.1/")
}
}
dependencies {
implementation("com.alloy:android-sdk:0.2.1")
}repositories {
maven {
url 'https://raw.githubusercontent.com/alloy-ch/rcplus-alloy-android-sdk-maven/v0.2.1/'
}
}
dependencies {
implementation 'com.alloy:android-sdk:0.2.1'
}- Latest: 0.2.1 (Release)
- Repository Structure: This repository uses semantic versioning with git tags for both releases and prereleases
Each version of the SDK has its own immutable Maven repository URL:
- Release:
https://raw.githubusercontent.com/alloy-ch/rcplus-alloy-android-sdk-maven/v0.2.1/
- Add the repository and dependency to your
build.gradle.kts:
repositories {
google()
mavenCentral()
maven {
url = uri("https://raw.githubusercontent.com/alloy-ch/rcplus-alloy-android-sdk-maven/v0.2.1/")
}
}
dependencies {
implementation("com.alloy:android-sdk:0.2.1")
}- Add required permissions to your
AndroidManifest.xml:
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />- Initialize the SDK in your Application class:
class MyApplication : Application() {
private lateinit var alloySDK: AlloySDK
override fun onCreate() {
super.onCreate()
alloySDK = AlloySDK(
context = this,
tenant = "your-tenant",
env = "prod",
appId = "your-app-id"
)
}
fun getAlloySDK(): AlloySDK = alloySDK
}- Android 5.0 (API level 21) or higher
- Kotlin 1.9.0 or higher
- Target SDK 34 (Android 14)
- Google Play Services (for AAID and App Set ID)
Generated: 2025-10-15 06:47:09 UTC
Version: 0.2.1
Type: Release