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
WormaCeptor is published to Maven Central. If your settings.gradle.kts already includes mavenCentral() (the Android default), no repository changes are needed:
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}Add dependencies to your module's build.gradle.kts:
dependencies {
// Required: API client (lightweight, safe for all build types)
implementation("com.azikar24.wormaceptor:wormaceptor-client:2.3.1")
// Debug: Choose one storage backend
debugImplementation("com.azikar24.wormaceptor:wormaceptor-persistence:2.3.1")
}Storage Backend Comparison
| Module | Storage | Survives App Restart | Size Impact | Best For |
|---|---|---|---|---|
wormaceptor-persistence | Room (SQLite) | Yes | ~2 MB | Most apps: persistent inspection across sessions |
wormaceptor-imdb | In-memory | No | ~0.5 MB | CI/testing: lightweight, no disk I/O |
wormaceptor-noop | None | N/A | ~5 KB | Explicit no-op (rarely needed) |
The wormaceptor-client module automatically falls back to a no-op implementation when no backend is found, so wormaceptor-noop is rarely needed.
Migrating from JitPack
WormaCeptor was previously distributed via JitPack with com.github.azikar24.WormaCeptor coordinates. Starting with 2.3.0, artifacts are published to Maven Central with stable IDs under the com.azikar24.wormaceptor group. Update your dependencies and remove the JitPack repository entry from settings.gradle.kts.