dependencyResolutionManagement {
repositories {
google()
mavenCentral()
}
}
Integrate AppInspect in three steps.
Add the library by build variant, attach the OkHttp interceptor once,
and tune the inspector for your team. AppInspect auto-initializes via
AndroidX Startup — no Application class changes needed for basic usage.
Install by build variant, not as a blanket dependency.
The recommended setup gives internal builds the full inspector and production
builds only the no-op OkHttp counterpart. AppInspect auto-initializes via
AndroidX Startup — add the dependency and the inspector is ready, with
AppInspect.install() available when you want host-controlled setup.
dependencies {
debugImplementation("io.github.suryansh1720001.appinspect:appinspect:<latest-version>")
releaseImplementation("io.github.suryansh1720001.appinspect:appinspect-no-op:<latest-version>")
}
For custom variants, add the full appinspect artifact per
variant — e.g. add("stagingImplementation", ...) or
add("internalTestImplementation", ...). Check
Maven Central
for the latest published version. See
Security for why the no-op artifact keeps release
builds clean.
val client = OkHttpClient.Builder()
.addAppInspectInterceptor()
.build()
Guard direct AppInspect.open() or AppInspect.install() calls by build variant,
because the no-op artifact only mirrors the OkHttp API surface.
Customize AppInspect for your team workflow.
The default setup is developer-friendly. When the build is shared with a wider QA or business audience, you can hide raw values, disable editing tools, turn off request notifications, or remove panels that are not needed.
Controlled QA profile
AppInspect.install(
application = application,
configuration = AppInspectConfiguration(
enablement = AppInspectEnablement(
allowedBuildTiers = linkedSetOf(AppInspectBuildTier.DEBUG),
),
entryPoints = AppInspectEntryPoints(
shakeToOpenEnabled = true,
networkNotificationsEnabled = false,
),
panels = AppInspectPanels(
crashesEnabled = true,
),
powerTools = AppInspectPowerTools(
showRawSensitiveValues = false,
allowSharedPreferencesEditing = false,
allowDatabaseEditing = false,
allowSqlConsole = false,
),
),
)
Add AppInspect to your Android app from Maven Central.
Copy the two Gradle lines above, wire the OkHttp interceptor, and the inspector is live in your next debug build.