Skip to content

XWebView/cordova-xwv

 
 

Repository files navigation

Cordova XWebView

Introduction

Cordova XWebView is a customized platform of Cordova for XWebView. It helps to reuse existing Cordova plugins with XWebView. You can easily create an XWebView plugin project which includes Cordova plugins by using Corodova CLI commands.

Cordova XWebView is based on Cordova iOS version 4.0.0-dev which is in developement currently. Some Cordova plugins may not work well with it.

Quick Start

  1. Install the Cordova CLI

  2. Creat a Cordova project

    It should not include HTML files in XWebView plugin, so use the --copy-from with an empty directory is recommended.

    cordova create Hello com.example.hello HelloWorld --copy-from=/an/empty/dir
    
  3. Add the Cordova XWebView platform

    cordova platform add https://github.com/xwebview/cordova-xwv.git
    
  4. Add Cordova plugins

  5. [Build the plugin]

    Open the Xcode project in platform/ios directory or use CLI:

    cordova build ios
    

    Becuase the target is a dynamic library, you can't run it on emulator.

Packages

No packages published

Languages

  • Objective-C 71.4%
  • JavaScript 14.6%
  • Python 3.2%
  • Shell 2.9%
  • Batchfile 2.8%
  • Swift 1.7%
  • Other 3.4%