Latest 1.1.3
Homepage https://github.com/pcjbird/SmartJSWebView
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit, WebKit, JavaScriptCore, QuartzCore
Authors

logo
Build Status
Pod Version
Pod Platform
Pod License
CocoaPods
CocoaPods
GitHub release
GitHub release
Website

支持 H5 页面通过 JavaScript 与 Native App 交互的 WebView,兼容 UIWebView 和 WKWebView,支持白名单功能。

特性 / Features

  1. 支持 H5 页面通过 JavaScript 与 Native App 交互。
  2. 兼容 UIWebView 和 WKWebView。
  3. 安全策略,支持设置白名单功能。
  4. 页面重定向后依然可以调用到 Native 方法,不含私有 API,实测通过 AppStore 审核。
  5. EasyJSWebView 基础上编写,功能更强大。
  6. 更多可能,JS调用路由框架封装,详见 QuickWebKit 的 QuickWebJSBridgePlugin 插件,已实现多个 proxies。
  7. 支持 CocoaPods 安装。

演示 / Demo

安装 / Installation

方法一:SmartJSWebView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SmartJSWebView'

使用 / Usage

关注我们 / Follow us

  

Twitter URL
Twitter Follow

Latest podspec

{
    "name": "SmartJSWebView",
    "summary": "u652fu6301 H5 u9875u9762u901au8fc7 JavaScript u4e0e Native App u4ea4u4e92u7684 WebViewuff0cu517cu5bb9 UIWebView u548c WKWebViewu3002",
    "description": "u652fu6301 H5 u9875u9762u901au8fc7 JavaScript u4e0e Native App u4ea4u4e92u7684 WebViewuff0cu517cu5bb9 UIWebView u548c WKWebViewuff0cu652fu6301u767du540du5355u529fu80fdu3002",
    "version": "1.1.3",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "pcjbird": "[email protected]"
    },
    "social_media_url": "http://www.lessney.com",
    "homepage": "https://github.com/pcjbird/SmartJSWebView",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/pcjbird/SmartJSWebView.git",
        "tag": "1.1.3"
    },
    "requires_arc": true,
    "source_files": "SmartJSWebView/**/*.{h,m}",
    "public_header_files": "SmartJSWebView/public_headers/*.{h}",
    "frameworks": [
        "Foundation",
        "UIKit",
        "WebKit",
        "JavaScriptCore",
        "QuartzCore"
    ],
    "resource_bundles": {
        "SmartJSWebView": [
            "SmartJSWebView/resource/*.*"
        ]
    },
    "pod_target_xcconfig": {
        "OTHER_LDFLAGS": "-lObjC"
    }
}

Pin It on Pinterest

Share This