{"id":36822508,"url":"https://github.com/ooftf/tc-anywhere","last_synced_at":"2026-01-12T14:01:53.422Z","repository":{"id":57721937,"uuid":"346676933","full_name":"ooftf/tc-anywhere","owner":"ooftf","description":"可以在任何方法内添加try catch 操作","archived":false,"fork":false,"pushed_at":"2021-05-10T03:19:27.000Z","size":174,"stargazers_count":44,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-06-30T21:37:57.408Z","etag":null,"topics":["android","exception","plugin","try-catch"],"latest_commit_sha":null,"homepage":"","language":"Groovy","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/ooftf.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}},"created_at":"2021-03-11T11:19:30.000Z","updated_at":"2023-03-12T06:44:21.000Z","dependencies_parsed_at":"2022-09-26T21:50:26.701Z","dependency_job_id":null,"html_url":"https://github.com/ooftf/tc-anywhere","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/ooftf/tc-anywhere","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Ftc-anywhere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Ftc-anywhere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Ftc-anywhere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Ftc-anywhere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ooftf","download_url":"https://codeload.github.com/ooftf/tc-anywhere/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ooftf%2Ftc-anywhere/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340213,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","exception","plugin","try-catch"],"created_at":"2026-01-12T14:01:26.273Z","updated_at":"2026-01-12T14:01:53.342Z","avatar_url":"https://github.com/ooftf.png","language":"Groovy","funding_links":[],"categories":[],"sub_categories":[],"readme":"# tc-anywhere\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/tc-anywhere/badge.svg)](https://maven-badges.herokuapp.com/maven-central/com.github.ooftf/tc-anywhere)\n\n要解决的问题：有一些第三方包中存在一些崩溃问题，如果能try catch处理并不会影响程序运行，这时候就可以使用tc-anywhere来处理  \n目标：可以在任何地方添加try catch 操作；（目前只是实现了在方法无返回值的情况下添加try catch操作）\n# 使用\n```groovy\n //project\n repositories {\n        mavenCentral()\n }\n dependencies {\n       classpath 'com.github.ooftf:tc-anywhere:0.0.2'\n }\n //app\n apply plugin: 'tc-anywhere'\n // 第一个参数为要插入tryCatch的类名，后面的为该类的方法名（只支持无返回值的方法）\n tca {\n    tc 'com.ooftf.tca.MainActivity', 'test(I)V', 'onCreate(Landroid/os/Bundle;)V'\n }   \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooftf%2Ftc-anywhere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fooftf%2Ftc-anywhere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fooftf%2Ftc-anywhere/lists"}