Library to inspect the Android WorkManager jobs. Like an App inspector, but on a device.
-
Add it to your root build.gradle at the end of repositories:
allprojects { repositories { ... maven { url 'https://jitpack.io' } } }
-
Add the dependency
dependencies { debugImplementation("com.github.koitharu:workinspector:$version") }
Versions are available on JitPack
-
Usage
The WorkInspector will be available via the launcher icon.
Alternatively, you can disable the launcher icon and open it programmatically:
<bool name="wi_launcher_icon_enabled" tools:node="replace">false</bool>
// start activity context.startActivity(WorkInspector.getIntent(context)) // or alternatively, for the debug-only implementation if (BuildConfig.DEBUG) { val intent = Intent() intent.component = ComponentName(context, "org.koitharu.workinspector.WorkInspectorActivity") context.startActivity(intent) }