Skip to content

Commit

Permalink
plugin.xml declare SQLitePlugin.js per platform
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher J. Brody committed May 1, 2017
1 parent af45d6e commit aff5f3c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changes

## cordova-sqlite-storage 2.1.0-browser-wip1

TBD

## cordova-sqlite-storage 2.0.3

- Drop engines rule from package.json
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cordova-sqlite-storage",
"version": "2.0.3",
"version": "2.1.0-browser-wip1",
"description": "Native interface to SQLite for PhoneGap/Cordova",
"cordova": {
"id": "cordova-sqlite-storage",
Expand Down
22 changes: 17 additions & 5 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<plugin xmlns="http://www.phonegap.com/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="cordova-sqlite-storage"
version="2.0.3">
version="2.1.0-browser-wip1">

<name>Cordova sqlite storage plugin</name>

Expand All @@ -16,12 +16,12 @@
<!-- THANKS to AllJoyn-Cordova / cordova-plugin-alljoyn: -->
<hook type="before_plugin_install" src="scripts/beforePluginInstall.js" />

<js-module src="www/SQLitePlugin.js" name="SQLitePlugin">
<clobbers target="SQLitePlugin" />
</js-module>

<!-- android -->
<platform name="android">
<js-module src="www/SQLitePlugin.js" name="SQLitePlugin">
<clobbers target="SQLitePlugin" />
</js-module>

<!-- Cordova >= 3.0.0 -->
<config-file target="res/xml/config.xml" parent="/*">
<feature name="SQLitePlugin">
Expand All @@ -45,6 +45,10 @@

<!-- iOS -->
<platform name="ios">
<js-module src="www/SQLitePlugin.js" name="SQLitePlugin">
<clobbers target="SQLitePlugin" />
</js-module>

<config-file target="config.xml" parent="/*">
<feature name="SQLitePlugin">
<param name="ios-package" value="SQLitePlugin" />
Expand All @@ -62,6 +66,10 @@

<!-- macOS -->
<platform name="osx">
<js-module src="www/SQLitePlugin.js" name="SQLitePlugin">
<clobbers target="SQLitePlugin" />
</js-module>

<config-file target="config.xml" parent="/*">
<feature name="SQLitePlugin">
<param name="ios-package" value="SQLitePlugin" />
Expand All @@ -80,6 +88,10 @@

<!-- windows -->
<platform name="windows">
<js-module src="www/SQLitePlugin.js" name="SQLitePlugin">
<clobbers target="SQLitePlugin" />
</js-module>

<js-module src="src/windows/sqlite-proxy.js" name="SQLiteProxy">
<runs />
</js-module>
Expand Down

0 comments on commit aff5f3c

Please sign in to comment.