caelum0x fba4dba792 feat(analytics): native Swift and Kotlin SDKs for product analytics
RailyardAnalytics (Swift package, iOS/macOS/tvOS/watchOS) and
railyard-analytics-kotlin (Android/JVM, stdlib only): capture, screen,
identify with the anonymous-id link, alias, groups, super properties,
feature flags, batched delivery with retry on network errors, 429 and
5xx, bounded queue, persisted ids and reset. Swift: 6 XCTest cases;
Kotlin: 9 checks including a real HTTP round trip, runnable offline with
the Kotlin compiler bundled in Gradle.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 18:47:44 +03:00

22 lines
589 B
Plaintext

// JVM / Android library build. The SDK has no dependencies beyond the
// Kotlin standard library. Offline checks: `scripts/test.sh`.
plugins {
kotlin("jvm") version "2.2.21"
`java-library`
}
group = "com.railyard"
version = "0.1.0"
repositories { mavenCentral() }
kotlin { jvmToolchain(17) }
tasks.register<JavaExec>("selfTest") {
group = "verification"
description = "Runs the dependency-free SDK checks."
classpath = sourceSets["test"].runtimeClasspath
mainClass.set("com.railyard.analytics.AnalyticsTestKt")
}
tasks.named("check") { dependsOn("selfTest") }