- Make sure you have jitpack repository installed. Add the following to your root build.gradle file at the end of repositories:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
- Add the following dependency to your app/build.gradle
dependencies {
implementation 'com.github.wix-incubator:detox-inspector:Tag'
}
(Replace Tag with the latest version name)
You have two options to invoke the inspector:
- adb:
adb shell am start -n {YOUR_PACKAGE_NAME}/com.wix.detox.inspector.features.inspect.InspectActivity
- Quick Settings: Open your application, open the quick settings panel (Located at near the Wifi toggle), click on edit, and drag the "Detox Inspector" tile to the quick settings panel. Click on the tile to open the inspector.