Skip to content

Android SDK

JitPack artifact with App Links verification.

Version: 0.3.2 · github.com/flinku-dev/android-sdk

Installation

kotlin
dependencies {
    implementation("com.github.flinku-dev:android-sdk:0.3.2")
}

Include the JitPack repository: https://jitpack.io

Configure

Use your publishable key (flk_pk_) in apps. Never embed your secret key (flk_live_).

kotlin
class MyApplication : Application() {
  override fun onCreate() {
    super.onCreate()
    Flinku.configure(
      this,
      baseUrl = "https://yourapp.flku.dev",
      apiKey = "flk_pk_..." // optional — required for createLink / createLinkInstant
    )
  }
}

match()

kotlin
lifecycleScope.launch {
  val link = Flinku.match(context)
  if (link.matched) {
    startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(link.deepLink)))
  }
}

Requires a publishable API key and Allowed Domains for the destination URLs you create.

kotlin
lifecycleScope.launch {
  val link = Flinku.createLink(FlinkuLinkOptions(
    title = "Summer Campaign",
    deepLink = "yourapp://promo",
    params = mapOf("ref" to "instagram")
  ))
  println(link.shortUrl)
}

The modern Firebase Dynamic Links replacement.