Skip to content

Commit

Permalink
refactor: use cordova-ios built in Swift support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: use cordova-ios built in Swift support
  • Loading branch information
timbru31 committed Dec 31, 2019
1 parent 742d6f5 commit 7cfb82d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
},
"engines": {
"cordovaDependencies": {
"2.0.0": {
"cordova": ">= 9.0.0",
"cordova-ios": ">=5.0.0"
},
"1.0.1": {
"cordova": ">= 6.4.0",
"cordova-ios": ">=4.3.0"
Expand Down
8 changes: 3 additions & 5 deletions plugin.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-detect-webview-engine" version="1.0.1">
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="cordova-plugin-detect-webview-engine" version="2.0.0">
<name>DetectWebViewEngine</name>
<description>Cordova plugin to determine whether the application is using UIWebView or WKWebView engine</description>
<author>Tim Brust</author>
<license>MIT</license>
<keywords>cordova,ios,webview,wkwebview,uiwebview</keywords>

<engines>
<engine name="cordova" version=">=6.4.0" />
<engine name="cordova-ios" version=">=4.3.0" />
<engine name="cordova" version=">=9.0.0" />
<engine name="cordova-ios" version=">=5.0.0" />
</engines>

<js-module src="dist/www/detect-webview-engine.js" name="DetectWebViewEngine">
Expand All @@ -24,7 +24,5 @@
</config-file>

<source-file src="src/ios/DetectWebViewEngine.swift" />

<dependency id="cordova-plugin-add-swift-support" version="^1.7.2" />
</platform>
</plugin>

0 comments on commit 7cfb82d

Please sign in to comment.