Get started
Install
The library is on GitHub Packages, which asks for a token even to read. Create a classic personal access token with only read:packages and put it in your user Gradle properties, never in the project:
properties~/.gradle/gradle.properties
gpr.user=your-github-username
gpr.key=ghp_…kotlinsettings.gradle.kts
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven {
url = uri("https://maven.pkg.github.com/Korex23/decane-android")
credentials {
username = providers.gradleProperty("gpr.user").get()
password = providers.gradleProperty("gpr.key").get()
}
}
}
}kotlinapp/build.gradle.kts
android {
defaultConfig {
minSdk = 28
// Required: the scheme of your redirect URI.
manifestPlaceholders["decaneRedirectScheme"] = "myapp"
}
}
dependencies {
implementation("app.decane:decane-kit:0.1.0")
}The AAR carries libdecane_ffi.so for arm64-v8a, armeabi-v7a and x86_64, plus its R8 rules. Decane.init(application) runs automatically through androidx.startup; if your app removes the startup provider, call it from Application.onCreate.
What you need from the dashboard
Your project id (proj_…) and a publishable API key (dck_live_…). The publishable key is safe to ship in an app; never ship the project secret.