Skip to content

Commit

Permalink
feat: initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
timbru31 committed Nov 7, 2017
0 parents commit 21b635b
Show file tree
Hide file tree
Showing 14 changed files with 3,317 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
indent_size = 4
indent_style = space

[*.{js,yml}]
indent_size = 2

[package.json]
indent_size = 2

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_Store
node_modules/
dist/
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.DS_Store
node_modules/
15 changes: 15 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
os: osx
osx_image: xcode9.1

before_install:
- npm install -g greenkeeper-lockfile

before_script:
- swiftlint version
- greenkeeper-lockfile-update

script:
- swiftlint

after_script:
- greenkeeper-lockfile-upload
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2017 Tim Brust

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
41 changes: 41 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# cordova-plugin-detect-webview-engine
[![Build Status](https://travis-ci.org/timbru31/cordova-plugin-detect-webview-engine.svg?branch=master)](https://travis-ci.org/timbru31/cordova-plugin-detect-webview-engine)

[![Dependency Status](https://david-dm.org/timbru31/cordova-plugin-detect-webview-engine.svg)](https://david-dm.org/timbru31/cordova-plugin-detect-webview-engine)
[![devDependency Status](https://david-dm.org/timbru31/cordova-plugin-detect-webview-engine/dev-status.svg)](https://david-dm.org/timbru31/cordova-plugin-detect-webview-engine#info=devDependencies)
[![Known Vulnerabilities](https://snyk.io/test/github/timbru31/cordova-plugin-detect-webview-engine/badge.svg)](https://snyk.io/test/github/timbru31/cordova-plugin-detect-webview-engine)

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Greenkeeper badge](https://badges.greenkeeper.io/timbru31/cordova-plugin-detect-webview-engine.svg)](https://greenkeeper.io/)
[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
[![npm](https://img.shields.io/npm/v/cordova-plugin-detect-webview-engine.svg)](https://www.npmjs.com/package/cordova-plugin-detect-webview-engine)

#### Cordova plugin to determine whether the application is using UIWebView or WKWebView engine

### Supported platforms

* **iOS**

### Installation

`$ cordova plugin add cordova-plugin-detect-webview-engine`

### Usage

#### Check for UIWebView

```js
cordova.plugins.webviewEngine.isUIWebView(isUIWebView => {
// returns true or false
})
```

#### Check for WKWebView

```js
cordova.plugins.webviewEngine.isWKWebView(isWKWebView => {
// returns true or false
})
```
---
Built by (c) Tim Brust and contributors. Released under the MIT license.
Loading

0 comments on commit 21b635b

Please sign in to comment.