Android SDK
JitPack artifact with App Links verification.
Installation
kotlin
dependencies {
implementation("com.github.flinku-dev:android-sdk:0.3.0")
}Include the JitPack repository: https://jitpack.io
Configure
kotlin
class MyApplication : Application() {
override fun onCreate() {
super.onCreate()
Flinku.configure(this, baseUrl = "https://yourapp.flku.dev")
}
}match()
kotlin
lifecycleScope.launch {
val link = Flinku.match(context)
if (link.matched) {
startActivity(Intent(Intent.ACTION_VIEW, Uri.parse(link.deepLink)))
}
}createLink()
kotlin
val link = flinku.createLink(FlinkuLinkOptions(
title = "Summer Campaign",
deepLink = "yourapp://promo",
params = mapOf("ref" to "instagram")
))
println(link.shortUrl)