Installation
Add the MobileBoost Android library to your dependencies (Maven Central):build.gradle.kts (:app)
android section of your build.gradle.kts (:app) file to resolve build failures caused by duplicate metadata files from dependencies:
build.gradle.kts (:app)
AndroidManifest.xml:
AndroidManifest.xml
Jetpack Compose
Import the SDK and create aGptDriver instance in your test, passing the ComposeTestRule:
Caching modes
| Mode | Description |
|---|---|
NONE | No caching |
FULL_SCREEN | Cache hit only if the full screen matches |
INTERACTION_REGION | Cache hit if the interaction region matches (recommended) |
View/XML based apps
For traditional View-based apps, the setup is similar but uses anActivityScenarioRule instead of ComposeTestRule.
