Skip to main content
The MobileBoost SDK for Espresso supports both Jetpack Compose and View/XML based Android apps.

Installation

Add the MobileBoost Android library to your dependencies (Maven Central):
build.gradle.kts (:app)
If needed, add packaging exclude rules in the android section of your build.gradle.kts (:app) file to resolve build failures caused by duplicate metadata files from dependencies:
build.gradle.kts (:app)
If not already present, add internet permissions to your AndroidManifest.xml:
AndroidManifest.xml

Jetpack Compose

Import the SDK and create a GptDriver instance in your test, passing the ComposeTestRule:

Caching modes

View/XML based apps

For traditional View-based apps, the setup is similar but uses an ActivityScenarioRule instead of ComposeTestRule.