{"id":22013696,"url":"https://github.com/knight-zxw/spwaitkiller","last_synced_at":"2025-04-06T09:07:19.930Z","repository":{"id":40386426,"uuid":"406340716","full_name":"Knight-ZXW/SpWaitKiller","owner":"Knight-ZXW","description":"解决 Sharedpreferences 造成的主线程阻塞问题，避免应用因此造成ANR问题，降低ANR率","archived":false,"fork":false,"pushed_at":"2024-10-08T10:36:40.000Z","size":134,"stargazers_count":96,"open_issues_count":1,"forks_count":13,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T08:07:46.926Z","etag":null,"topics":["android","anr","sharedpreferences","sp-anr"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Knight-ZXW.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-09-14T11:33:46.000Z","updated_at":"2025-03-12T06:31:15.000Z","dependencies_parsed_at":"2024-12-31T10:13:04.830Z","dependency_job_id":"4929f224-0fe2-4fe7-b2e0-f3d701994932","html_url":"https://github.com/Knight-ZXW/SpWaitKiller","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knight-ZXW%2FSpWaitKiller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knight-ZXW%2FSpWaitKiller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knight-ZXW%2FSpWaitKiller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Knight-ZXW%2FSpWaitKiller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Knight-ZXW","download_url":"https://codeload.github.com/Knight-ZXW/SpWaitKiller/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457800,"owners_count":20941906,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","anr","sharedpreferences","sp-anr"],"created_at":"2024-11-30T03:24:33.891Z","updated_at":"2025-04-06T09:07:19.904Z","avatar_url":"https://github.com/Knight-ZXW.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpWaitKiller [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.knight-zxw/spwaitkiller/badge.svg?style=flat)](https://github.com/Knight-ZXW/SpWaitKiller)\n\n解决 Sharedpreferences 造成的主线程阻塞问题，避免应用因此造成ANR问题，降低ANR率。\n\n背景及实现介绍: https://juejin.cn/post/7054766647026352158\n\n## 使用方式\n\n### 引入依赖\n\nStep 1. 添加依赖\n\u003e 当前版本  [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.knight-zxw/spwaitkiller/badge.svg?style=flat)](https://github.com/Knight-ZXW/SpWaitKiller)\n```\n\tdependencies {\n\t        implementation 'io.github.knight-zxw:spwaitkiller:${latestVersion}'\n\t}\n```\nStep 2. 代码开启\n```\n SpWaitKiller.builder(getApplication())\n          .build()\n          .work();\n```\n\n## 兼容性\nAndroid 5.0 ~ Android 14\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknight-zxw%2Fspwaitkiller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknight-zxw%2Fspwaitkiller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknight-zxw%2Fspwaitkiller/lists"}