Skip to content
Feralin

Developers

Kotlin Multiplatform: quickstart

Install and first-use steps for sending events to Feralin with Kotlin Multiplatform. Code samples come from the SDK's own README and statuses from the capability record.

Install

There is no package published on Maven Central yet. The package is downloaded from feralin.com; the commands first verify the SHA-256 digest of feralin-kmp-0.1.0.tar.gz and stop if verification fails.

mkdir -p feralin-sdk
curl -fsSL https://feralin.com/sdk/packages/feralin-kmp-0.1.0.tar.gz -o feralin-sdk/feralin-kmp-0.1.0.tar.gz
echo "618a7844a51bb5f78be2f09f09aab2f9dd14eb6f52bda564ff59ea4336b62f0e  feralin-sdk/feralin-kmp-0.1.0.tar.gz" | sha256sum -c -
tar -xzf feralin-sdk/feralin-kmp-0.1.0.tar.gz -C feralin-sdk

After extracting the archive, follow the Installation section in feralin-sdk/feralin-kmp-0.1.0/README.md.

First use

val client = FeralinClient(
    FeralinConfig(
        projectKey = "pk_live_...",
        collectUrl = "https://collect.example.com",
        consent = Consent(analytics = true),
    ),
)

client.track("order_completed", mapOf("order_id" to "ord_1", "amount" to 249.9), userId = "user_42")
val sonuc = client.flush()   // suspend; ağ hatasında fırlatmaz, sonuç sonuc.error içinde
client.close()               // suspend; kalan olayları en fazla 5 sn içinde gönderir

Code samples are taken as they are from sdks/kmp/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

Kotlin Multiplatform capability status
CapabilityStatus
Event sendingPartial
Batch sendingPartial
Consent handlingPartial
IdentityPartial
AttributionPlanned
Deep linksPlanned
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

Kotlin Multiplatform verification chain
LinkStatus
SourcePartial
BuildPartial
TestPartial
Registry publicationWaiting for external access
Clean installPartial
Event receiptPartial
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.