{"id":23900693,"url":"https://github.com/pcjbird/smartjswebview","last_synced_at":"2025-04-10T20:54:53.501Z","repository":{"id":62455656,"uuid":"114463118","full_name":"pcjbird/SmartJSWebView","owner":"pcjbird","description":"支持 H5 页面通过 JavaScript 与 Native App 交互的 WebView。","archived":false,"fork":false,"pushed_at":"2022-06-18T06:00:02.000Z","size":221,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-24T18:44:50.169Z","etag":null,"topics":["app","didcreatejavascriptcontext","easyjs","h5","invoke","ios","javascript","jscontext","native","smartjs","uiwebview","webview","wkwebview"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","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/pcjbird.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":"2017-12-16T13:31:11.000Z","updated_at":"2024-06-12T08:33:42.000Z","dependencies_parsed_at":"2022-11-02T00:01:09.535Z","dependency_job_id":null,"html_url":"https://github.com/pcjbird/SmartJSWebView","commit_stats":null,"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcjbird%2FSmartJSWebView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcjbird%2FSmartJSWebView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcjbird%2FSmartJSWebView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pcjbird%2FSmartJSWebView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pcjbird","download_url":"https://codeload.github.com/pcjbird/SmartJSWebView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248297995,"owners_count":21080313,"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":["app","didcreatejavascriptcontext","easyjs","h5","invoke","ios","javascript","jscontext","native","smartjs","uiwebview","webview","wkwebview"],"created_at":"2025-01-04T20:36:36.490Z","updated_at":"2025-04-10T20:54:53.482Z","avatar_url":"https://github.com/pcjbird.png","language":"Objective-C","readme":"![logo](logo.png)\n[![Build Status](http://img.shields.io/travis/pcjbird/SmartJSWebView/master.svg?style=flat)](https://travis-ci.org/pcjbird/SmartJSWebView)\n[![Pod Version](http://img.shields.io/cocoapods/v/SmartJSWebView.svg?style=flat)](http://cocoadocs.org/docsets/SmartJSWebView/)\n[![Pod Platform](http://img.shields.io/cocoapods/p/SmartJSWebView.svg?style=flat)](http://cocoadocs.org/docsets/SmartJSWebView/)\n[![Pod License](http://img.shields.io/cocoapods/l/SmartJSWebView.svg?style=flat)](https://www.apache.org/licenses/LICENSE-2.0.html)\n[![GitHub release](https://img.shields.io/github/release/pcjbird/SmartJSWebView.svg)](https://github.com/pcjbird/SmartJSWebView/releases)\n[![GitHub release](https://img.shields.io/github/release-date/pcjbird/SmartJSWebView.svg)](https://github.com/pcjbird/SmartJSWebView/releases)\n[![Website](https://img.shields.io/website-pcjbird-down-green-red/https/shields.io.svg?label=author)](https://pcjbird.github.io)\n\n# SmartJSWebView\n### 支持 H5 页面通过 JavaScript 与 Native App 交互的 WebView，支持白名单功能。从 2.0.0 开始不再支持 UIWebView。\n\n## 特性 / Features\n\n1. 支持 H5 页面通过 JavaScript 与 Native App 交互。      \n2. 安全策略，支持设置白名单功能。    \n3. 页面重定向后依然可以调用到 Native 方法，不含私有 API，实测通过 AppStore 审核。    \n4. 在 [EasyJSWebView](https://github.com/dukeland/EasyJSWebView) 基础上编写，功能更强大。    \n5. 更多可能，JS调用路由框架封装，详见 [QuickWebKit](https://github.com/pcjbird/QuickWebViewController) 的 QuickWebJSBridgePlugin 插件，已实现多个 proxies。    \n6. 支持 CocoaPods 安装。\n\n## 演示 / Demo\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"demo.png\" title=\"demo\"\u003e\u003c/p\u003e\n\n##  安装 / Installation\n\n方法一：`SmartJSWebView` is available through CocoaPods. To install it, simply add the following line to your Podfile:\n\n```\npod 'SmartJSWebView'\n```\n\n## 使用 / Usage\n*  [Demo项目](https://github.com/pcjbird/SmartJSWebView/tree/master/SmartJSWebViewDemo)\n*  [测试页面地址](https://pcjbird.github.io/SmartJSWebView/SmartJSWebViewDemo/SmartJSWebViewDemo/floatingconsole/index.html)\n\n## 关注我们 / Follow us\n  \n\u003ca href=\"https://itunes.apple.com/cn/app/iclock-一款满足-挑剔-的翻页时钟与任务闹钟/id1128196970?pt=117947806\u0026ct=com.github.pcjbird.SmartJSWebView\u0026mt=8\"\u003e\u003cimg src=\"https://github.com/pcjbird/AssetsExtractor/raw/master/iClock.gif\" width=\"400\" title=\"iClock - 一款满足“挑剔”的翻页时钟与任务闹钟\"\u003e\u003c/a\u003e\n\n[![Twitter URL](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=https://github.com/pcjbird/SmartJSWebView)\n[![Twitter Follow](https://img.shields.io/twitter/follow/pcjbird.svg?style=social)](https://twitter.com/pcjbird)\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcjbird%2Fsmartjswebview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpcjbird%2Fsmartjswebview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpcjbird%2Fsmartjswebview/lists"}