Production No-Op Builds
Connekt is built so you never need #if DEBUG flags scattered across your app code to keep debug tooling out of production binaries.
Both mobile SDKs ship an official No-Op companion artifact with the exact same public API surface — zero permissions, zero background threads, zero ContentProvider, and zero network code.
Android (connekt-sdk-no-op)
Swap implementations purely in build.gradle.kts:
kotlin
dependencies {
debugImplementation("dev.mobra.connekt:connekt-sdk:0.1.0")
releaseImplementation("dev.mobra.connekt:connekt-sdk-no-op:0.1.0")
}What CI Verifies Automatically on Every Release
- Zero
<uses-permission>entries inconnekt-sdk-no-op's mergedAndroidManifest.xml. - Zero
ConnektInitProvider(ContentProvider) entries. - Zero
kotlinx-coroutines-androiddependency. - 100% compile-time API parity with
dev.mobra.connekt:connekt-sdk(verified by compilingexamples/android-demo'sappAReleasebuild againstconnekt-sdk-no-op).
iOS (ConnektNoOp)
Both products are exported from the root Package.swift:
Connekt— Full USB (usbmuxd) + optional LAN SDK, bundled with Apple's requiredPrivacyInfo.xcprivacy.ConnektNoOp— Pure stub target mirroring every public type, method, and property with zeroNetwork.frameworksockets or background queues.
Conditional Linking in Swift / Xcode
If you use conditional target dependencies or build configurations, link Connekt in Debug and ConnektNoOp in Release (or import cleanly via a thin app-level module alias):
swift
#if DEBUG
import Connekt
#else
import ConnektNoOp
#endif
// Identical call sites everywhere in your app:
Connekt.start()
Connekt.channel("telemetry").post("ready")SwiftPM Contract Testing
ConnektNoOpTests runs in CI on every commit to guarantee ConnektNoOp stays 100% signature-compatible with Connekt.