{"id":21650710,"url":"https://github.com/czy1121/jsbridge","last_synced_at":"2026-05-03T01:32:15.225Z","repository":{"id":199057608,"uuid":"427752884","full_name":"czy1121/jsbridge","owner":"czy1121","description":"简单易用的 Android WebView 和 Javascript 交互框架。","archived":false,"fork":false,"pushed_at":"2022-09-03T08:15:56.000Z","size":244,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-02T13:55:44.101Z","etag":null,"topics":["jsbridge","webview"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/czy1121.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}},"created_at":"2021-11-13T19:18:55.000Z","updated_at":"2023-10-31T07:18:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a605fda-7ee7-404d-9f88-36201552f494","html_url":"https://github.com/czy1121/jsbridge","commit_stats":null,"previous_names":["czy1121/jsbridge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/czy1121/jsbridge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fjsbridge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fjsbridge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fjsbridge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fjsbridge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/czy1121","download_url":"https://codeload.github.com/czy1121/jsbridge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/czy1121%2Fjsbridge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32555839,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T00:31:16.350Z","status":"ssl_error","status_checked_at":"2026-05-03T00:31:15.546Z","response_time":132,"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":["jsbridge","webview"],"created_at":"2024-11-25T07:42:10.026Z","updated_at":"2026-05-03T01:32:15.204Z","avatar_url":"https://github.com/czy1121.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSBridge\n \n简单易用的 Android WebView 和 Javascript 交互框架。 \n\n\n## 使用\n\n```kotlin   \nclass MainActivity : AppCompatActivity(R.layout.layout_web) {\n\n    private val bridge = JSBridge()\n\n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState) \n\n        // 添加模块\n        bridge.addModule(TestModule()) \n\n        // 注入 WebView\n        bridge.injectBridge(web)\n\n\n        web.webViewClient = object : WebViewClient() {\n\n            override fun onPageStarted(view: WebView, url: String?, favicon: Bitmap?) {\n                logE(\"onPageStarted =\u003e $url\")\n                // 注入模块\n                bridge.injectModules()\n                progress.visibility = View.VISIBLE\n            }\n\n            override fun onPageFinished(view: WebView, url: String?) {\n                logE(\"onPageFinished =\u003e $url\")\n                // 注入模块\n                bridge.injectModules()\n                progress.visibility = View.GONE\n            }\n\n        }\n    }\n}\n``` \n\n\n\n\n## Gradle\n\n``` groovy\nrepositories { \n    maven { url \"https://gitee.com/ezy/repo/raw/cosmo/\"}\n} \ndependencies {\n    implementation \"me.reezy.cosmo:jsbridge:0.7.0\"\n}\n```\n \n\n\n\n## LICENSE\n\nThe Component is open-sourced software licensed under the [Apache license](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczy1121%2Fjsbridge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fczy1121%2Fjsbridge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fczy1121%2Fjsbridge/lists"}