cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [8/8] git commit: added support for wp8, same as wp7 really, except plugin/xml must specify the platform.
Date Mon, 22 Apr 2013 23:28:27 GMT
added support for wp8, same as wp7 really, except plugin/xml must specify the platform.


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugman/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugman/commit/1fd68b18
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/1fd68b18
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/1fd68b18

Branch: refs/heads/master
Commit: 1fd68b187a97dab02d6c491869244fe38d516ace
Parents: 072df9a
Author: Jesse MacFadyen <purplecabbage@gmail.com>
Authored: Tue Apr 16 16:48:56 2013 -0700
Committer: Anis Kadri <anis@apache.org>
Committed: Mon Apr 22 16:28:05 2013 -0700

----------------------------------------------------------------------
 plugman.js                           |    3 ++-
 test/plugins/ChildBrowser/plugin.xml |   17 +++++++++++++++++
 2 files changed, 19 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/1fd68b18/plugman.js
----------------------------------------------------------------------
diff --git a/plugman.js b/plugman.js
index fd8e0dd..16bc669 100755
--- a/plugman.js
+++ b/plugman.js
@@ -31,10 +31,11 @@ var fs = require('fs')
         'ios': require('./platforms/ios'),
         'blackberry': require('./platforms/blackberry'),
         'wp7': require('./platforms/wp7'),
+        'wp8': require('./platforms/wp7'),
         'www': require('./platforms/www')
     };
 
-var known_opts = { 'platform' : [ 'ios', 'android', 'blackberry' ,'wp7' , 'www' ]
+var known_opts = { 'platform' : [ 'ios', 'android', 'blackberry' ,'wp7', 'wp8' , 'www' ]
             , 'project' : path
             , 'plugin' : [String, path, url]
             , 'remove' : Boolean

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/1fd68b18/test/plugins/ChildBrowser/plugin.xml
----------------------------------------------------------------------
diff --git a/test/plugins/ChildBrowser/plugin.xml b/test/plugins/ChildBrowser/plugin.xml
index d92c1c4..946f3a8 100644
--- a/test/plugins/ChildBrowser/plugin.xml
+++ b/test/plugins/ChildBrowser/plugin.xml
@@ -118,4 +118,21 @@
         </config-file> 
 
     </platform>
+
+    <!-- wp8 -->
+    <platform name="wp8">
+        <resource-file src="src\wp7\Images\appbar.back.rest.png" />
+        <config-file target="config.xml" parent="/widget/plugins">
+            <plugin name="ChildBrowser"
+                value="ChildBrowser"/>
+        </config-file>
+
+        <source-file src="src\wp7\ChildBrowserCommand.cs"
+                     target-dir="Plugins\" />
+
+        <!-- modify the project file to include the added files -->
+        <config-file target=".csproj" parent=".">  
+        </config-file> 
+
+    </platform>
 </plugin>


Mime
View raw message