{"id":20732399,"url":"https://github.com/jpush/jiguang-java-client-common","last_synced_at":"2026-03-11T04:30:54.108Z","repository":{"id":9349385,"uuid":"61615837","full_name":"jpush/jiguang-java-client-common","owner":"jpush","description":"Common lib for JiGuang Java clients. ","archived":false,"fork":false,"pushed_at":"2024-05-29T03:07:24.000Z","size":5116,"stargazers_count":21,"open_issues_count":8,"forks_count":14,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-10-20T06:48:08.918Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://docs.jiguang.cn","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jpush.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-06-21T08:21:23.000Z","updated_at":"2025-10-10T08:14:23.000Z","dependencies_parsed_at":"2024-02-04T10:28:37.828Z","dependency_job_id":"ec7e2049-db78-49e5-80ca-bbe87bd8420b","html_url":"https://github.com/jpush/jiguang-java-client-common","commit_stats":null,"previous_names":[],"tags_count":41,"template":false,"template_full_name":null,"purl":"pkg:github/jpush/jiguang-java-client-common","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjiguang-java-client-common","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjiguang-java-client-common/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjiguang-java-client-common/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjiguang-java-client-common/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jpush","download_url":"https://codeload.github.com/jpush/jiguang-java-client-common/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jpush%2Fjiguang-java-client-common/sbom","scorecard":{"id":536230,"data":{"date":"2025-08-11","repo":{"name":"github.com/jpush/jiguang-java-client-common","commit":"778febdf16c8ad1b8d6c671213959c314648f70d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.9,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 1/22 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":4,"reason":"binaries present in source code","details":["Warn: binary detected: libs/bcpkix-jdk15on-1.60.jar:1","Warn: binary detected: libs/bcprov-jdk15on-1.60.jar:1","Warn: binary detected: libs/gson-2.2.4.jar:1","Warn: binary detected: libs/log4j-1.2.17.jar:1","Warn: binary detected: libs/slf4j-api-1.7.7.jar:1","Warn: binary detected: libs/slf4j-log4j12-1.7.7.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/maven.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/jpush/jiguang-java-client-common/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/jpush/jiguang-java-client-common/maven.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/maven.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/jpush/jiguang-java-client-common/maven.yml/master?enable=pin","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-4jrv-ppp4-jm57","Warn: Project is vulnerable to: GHSA-w33c-445m-f8w7","Warn: Project is vulnerable to: GHSA-p979-4mfw-53vg","Warn: Project is vulnerable to: GHSA-2qrg-x229-3v8q","Warn: Project is vulnerable to: GHSA-65fg-84f6-3jq3","Warn: Project is vulnerable to: GHSA-f7vh-qwp3-x37m","Warn: Project is vulnerable to: GHSA-fp5r-v3w9-4333","Warn: Project is vulnerable to: GHSA-w9p3-5cr8-m3jj","Warn: Project is vulnerable to: GHSA-7r82-7xv7-xcpj","Warn: Project is vulnerable to: GHSA-4cx2-fc23-5wg6","Warn: Project is vulnerable to: GHSA-6xx3-rg99-gc3p","Warn: Project is vulnerable to: GHSA-72m5-fvvv-55m6","Warn: Project is vulnerable to: GHSA-8xfc-gm6g-vgpv","Warn: Project is vulnerable to: GHSA-hr8g-6v94-x4m9","Warn: Project is vulnerable to: GHSA-v435-xc8x-wvr9","Warn: Project is vulnerable to: GHSA-wjxj-5m7g-mg7q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T07:02:44.507Z","repository_id":9349385,"created_at":"2025-08-20T07:02:44.507Z","updated_at":"2025-08-20T07:02:44.507Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30370797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T21:41:54.280Z","status":"online","status_checked_at":"2026-03-11T02:00:07.027Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-11-17T05:19:13.815Z","updated_at":"2026-03-11T04:30:54.078Z","avatar_url":"https://github.com/jpush.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JiGuang Common for Java\n\nCommon lib for JiGuang Java clients. \n\n## 概述\n\n这是极光 Java client 的公共封装开发包，为 [jpush](https://github.com/jpush/jpush-api-java-client), [jmessage](https://github.com/jpush/jmessage-api-java-client), [jsms](https://github.com/jpush/jsms-api-java-client) 等 client 提供公共依赖。\n\n版本更新：[Release页面](https://github.com/jpush/jiguang-java-client-common/releases)。下载更新请到这里。\n\n**新增 http2 分支，使用 Netty 第三方工具支持使用 Http/2 发送请求，详情参考 http2 分支下的 ReadMe**\n\n**新增 ApacheHttpClient，效率更高**\n\n**新增 NettyHttpClient（多线程还是不推荐，因为使用了同步锁，可能会有各种意外。异步请求方式比较推荐），用法如下：**\n\n- 同步方式（以 PushClient 为例），发送完请求后，请务必调用 close 方法，否则不会自动结束进程。\n\n```\n//在 PushClient 中将 NativeHttpClient 改为 NettyHttpClient, 发送请求方式和之前一样。\nthis._httpClient = new NettyHttpClient(authCode, proxy, conf);\n...\n\n\n```\n\n- 异步方式，异步方式在调用结束后自动关闭。\n\n```\npublic void testSendPushWithCallback() {\n        ClientConfig clientConfig = ClientConfig.getInstance();\n        String host = (String) clientConfig.get(ClientConfig.PUSH_HOST_NAME);\n        NettyHttpClient client = new NettyHttpClient(ServiceHelper.getBasicAuthorization(APP_KEY, MASTER_SECRET),\n                null, clientConfig);\n        try {\n            URI uri = new URI(host + clientConfig.get(ClientConfig.PUSH_PATH));\n            PushPayload payload = buildPushObject_all_alias_alert();\n            client.sendRequest(HttpMethod.POST, payload.toString(), uri, new NettyHttpClient.BaseCallback() {\n                @Override\n                public void onSucceed(ResponseWrapper responseWrapper) {\n                    LOG.info(\"Got result: \" + responseWrapper.responseContent);\n                }\n            });\n        } catch (URISyntaxException e) {\n            e.printStackTrace();\n        }\n    }\n```\n\n\u003e 非常欢迎各位开发者提交代码，贡献一份力量，Review 过有效的代码将会合入本项目。\n\n\n## 安装\n\n### maven 方式\n\n将下边的依赖条件放到你项目的 maven pom.xml 文件里。\n\u003e 其中 slf4j 可以与 logback, log4j, commons-logging 等日志框架一起工作，可根据你的需要配置使用。\n\n```Java\n\u003cdependency\u003e\n    \u003cgroupId\u003ecn.jpush.api\u003c/groupId\u003e\n    \u003cartifactId\u003ejiguang-common\u003c/artifactId\u003e\n    \u003cversion\u003e1.1.10\u003c/version\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n\t\u003cgroupId\u003ecom.google.code.gson\u003c/groupId\u003e\n\t\u003cartifactId\u003egson\u003c/artifactId\u003e\n\t\u003cversion\u003e2.2.4\u003c/version\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n\t\u003cgroupId\u003eorg.slf4j\u003c/groupId\u003e\n\t\u003cartifactId\u003eslf4j-api\u003c/artifactId\u003e\n\t\u003cversion\u003e1.7.5\u003c/version\u003e\n\u003c/dependency\u003e\n\u003c!-- For log4j --\u003e\n\u003cdependency\u003e\n\t\u003cgroupId\u003eorg.slf4j\u003c/groupId\u003e\n\t\u003cartifactId\u003eslf4j-log4j12\u003c/artifactId\u003e\n\t\u003cversion\u003e1.7.5\u003c/version\u003e\n\u003c/dependency\u003e\n\u003cdependency\u003e\n\t\u003cgroupId\u003elog4j\u003c/groupId\u003e\n\t\u003cartifactId\u003elog4j\u003c/artifactId\u003e\n\t\u003cversion\u003e1.2.16\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n### jar 包方式\n\n* jiguang-common的jar包下载。[请点击](https://github.com/jpush/jiguang-java-client-common/releases)\n* [slf4j](http://www.slf4j.org/) / log4j (Logger)\n* [gson](https://code.google.com/p/google-gson/) (Google JSON Utils)\n\n[项目 libs/ 目录](https://github.com/jpush/jiguang-java-client-common/tree/master/libs)下可以找到 slf4j 及 gson jar 包复制到你的项目里去。\n\n## 编译源码\n\n\u003e 如果开发者想基于本项目做一些扩展的开发，或者想了解本项目源码，可以参考此章，否则可略过此章。\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjiguang-java-client-common","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjpush%2Fjiguang-java-client-common","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjpush%2Fjiguang-java-client-common/lists"}