Installation
Prerequisites and dependency setup for WormaCeptor V2.
Prerequisites
| Requirement | Minimum |
|---|---|
| Android SDK | API 23 (Android 6.0) |
| Kotlin | 2.0+ |
| OkHttp | 4.x (for OkHttp interceptor) |
| Ktor | 3.x (for Ktor plugin) |
| Gradle | 8.x |
Installation
Add JitPack to your settings.gradle.kts:
dependencyResolutionManagement {
repositories {
maven { url = uri("https://jitpack.io") }
}
}Add dependencies to your module's build.gradle.kts:
dependencies {
// Required: API client (lightweight, safe for all build types)
implementation("com.github.azikar24.WormaCeptor:api-client:2.2.1")
// Debug: Choose one storage backend
debugImplementation("com.github.azikar24.WormaCeptor:api-impl-persistence:2.2.1")
}Storage Backend Comparison
| Module | Storage | Survives App Restart | Size Impact | Best For |
|---|---|---|---|---|
api-impl-persistence | Room (SQLite) | Yes | ~2 MB | Most apps: persistent inspection across sessions |
api-impl-imdb | In-memory | No | ~0.5 MB | CI/testing: lightweight, no disk I/O |
api-impl-no-op | None | N/A | ~5 KB | Explicit no-op (rarely needed) |
The api-client module automatically falls back to a no-op implementation when no backend is found, so api-impl-no-op is rarely needed.