https://github.com/koitharu/workinspector
Library for inspecting Android WorkManager jobs
https://github.com/koitharu/workinspector
android-library android-workmanager work-manager workmanager
Last synced: 2 months ago
JSON representation
Library for inspecting Android WorkManager jobs
- Host: GitHub
- URL: https://github.com/koitharu/workinspector
- Owner: Koitharu
- License: gpl-3.0
- Created: 2024-04-30T11:00:38.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-12-19T16:27:46.000Z (6 months ago)
- Last Synced: 2025-03-21T01:04:26.454Z (3 months ago)
- Topics: android-library, android-workmanager, work-manager, workmanager
- Language: Kotlin
- Homepage:
- Size: 1.42 MB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WorkInspector
Library to inspect the Android WorkManager jobs. Like an App inspector, but on a device.
[](https://jitpack.io/#koitharu/workinspector)  
### Screenshots
|  |  |  |
|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------|---------------------------------------------------------------------------------|## Usage
1. Add it to your root build.gradle at the end of repositories:
```groovy
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
```2. Add the dependency
```groovy
dependencies {
debugImplementation("com.github.koitharu:workinspector:$version")
}
```Versions are available on [JitPack](https://jitpack.io/#koitharu/workinspector)
3. Usage
The WorkInspector will be available via the launcher icon.
Alternatively, you can disable the launcher icon and open it programmatically:
```xml
false
``````kotlin
// 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)
}
```