{"id":19419173,"url":"https://github.com/serso/thread-guard","last_synced_at":"2026-05-12T20:11:04.482Z","repository":{"id":57740786,"uuid":"154204757","full_name":"serso/thread-guard","owner":"serso","description":"Injects assertions in methods annotated with @MainThread or @WorkerThread","archived":false,"fork":false,"pushed_at":"2018-11-01T12:48:12.000Z","size":142,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-07T17:43:36.695Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serso.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-22T19:36:17.000Z","updated_at":"2018-11-01T12:48:13.000Z","dependencies_parsed_at":"2022-08-25T18:30:12.121Z","dependency_job_id":null,"html_url":"https://github.com/serso/thread-guard","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serso%2Fthread-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serso%2Fthread-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serso%2Fthread-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serso%2Fthread-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serso","download_url":"https://codeload.github.com/serso/thread-guard/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240599179,"owners_count":19826959,"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":[],"created_at":"2024-11-10T13:16:34.914Z","updated_at":"2026-05-12T20:11:04.409Z","avatar_url":"https://github.com/serso.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Description\nProtects against calling methods on wrong threads using AspectJ and Android's\n`@MainThread`/`@WorkerThread` annotations.\n\n# Usage\nSet up AspectA as described here: https://github.com/serso/aspecta.\n\nImport Thread Guard library to your project:\n```groovy\ndependencies {\n  implementation 'org.solovyev.android.threadguard:lib:1.0.2'\n}\n```\n\nOptionally, you can specify how to penalize the violations:\n```java\npackage org.example.android;\n\nclass App extends Application {\n\n    @Override\n    void onCreate() {\n        ThreadGuard.penaltyDeath();\n        // or\n        ThreadGuard.penaltyLog();        \n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserso%2Fthread-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserso%2Fthread-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserso%2Fthread-guard/lists"}