iOS SDK
Swift Package Manager distribution with Universal Links support.
Version: 0.3.3 · github.com/flinku-dev/ios-sdk
Installation
text
Repository: https://github.com/flinku-dev/ios-sdk
Dependency Rule: Exact Version — 0.3.3Add your project host under Associated Domains: applinks:yourapp.flku.dev.
Configure
Use your publishable key (flk_pk_) in apps. Never embed your secret key (flk_live_).
swift
@main
struct MyApp: App {
init() {
Flinku.configure(
baseUrl: "https://yourapp.flku.dev",
apiKey: "flk_pk_..." // optional — required for createLink / createLinkInstant
)
}
}match()
swift
let link = await Flinku.match()
if link.matched {
// link.deepLink, link.params
}createLink()
Requires a publishable API key and Allowed Domains for the destination URLs you create.
swift
var options = FlinkuLinkOptions(title: "Summer Campaign")
options.deepLink = "yourapp://promo"
options.params = ["ref": "instagram"]
Flinku.createLink(options) { result in
switch result {
case .success(let link):
print(link.shortUrl)
case .failure(let error):
print(error) // surfaces Allowed Domains 403 messages verbatim
}
}