You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2013/11/26 02:06:22 UTC

[1/3] git commit: Added amazon-fireos platform.

Updated Branches:
  refs/heads/fireos [created] b5418affc


Added amazon-fireos 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/cea4d829
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugman/tree/cea4d829
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugman/diff/cea4d829

Branch: refs/heads/fireos
Commit: cea4d8294ea04d2c522278d5fba667304d9279b2
Parents: 26ae2d4
Author: Archana Naik <na...@lab126.com>
Authored: Tue Oct 15 19:10:33 2013 -0700
Committer: Archana Naik <na...@lab126.com>
Committed: Wed Nov 13 11:38:17 2013 -0800

----------------------------------------------------------------------
 main.js                              |   2 +-
 spec/platforms/amazon-fireos.spec.js | 139 ++++++++++++++++++++++++++++++
 src/platforms.js                     |   1 +
 src/platforms/amazon-fireos.js       |  59 +++++++++++++
 4 files changed, 200 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/cea4d829/main.js
----------------------------------------------------------------------
diff --git a/main.js b/main.js
index 3c18964..5fa6422 100755
--- a/main.js
+++ b/main.js
@@ -27,7 +27,7 @@ var path = require('path')
     , Q = require('q')
     , plugman = require('./plugman');
 
-var known_opts = { 'platform' : [ 'ios', 'android', 'blackberry10', 'wp7', 'wp8' , 'windows8', 'firefoxos' ]
+var known_opts = { 'platform' : [ 'ios', 'android', 'amazon-fireos', 'blackberry10', 'wp7', 'wp8' , 'windows8', 'firefoxos' ]
         , 'project' : path
         , 'plugin' : [String, path, url]
         , 'version' : Boolean

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/cea4d829/spec/platforms/amazon-fireos.spec.js
----------------------------------------------------------------------
diff --git a/spec/platforms/amazon-fireos.spec.js b/spec/platforms/amazon-fireos.spec.js
new file mode 100644
index 0000000..fe91a53
--- /dev/null
+++ b/spec/platforms/amazon-fireos.spec.js
@@ -0,0 +1,139 @@
+var android = require('../../src/platforms/android'),
+    common  = require('../../src/platforms/common'),
+    install = require('../../src/install'),
+    path    = require('path'),
+    fs      = require('fs'),
+    shell   = require('shelljs'),
+    et      = require('elementtree'),
+    os      = require('osenv'),
+    temp    = path.join(os.tmpdir(), 'plugman'),
+    plugins_dir = path.join(temp, 'cordova', 'plugins'),
+    xml_helpers = require('../../src/util/xml-helpers'),
+    plugins_module = require('../../src/util/plugins'),
+    dummyplugin = path.join(__dirname, '..', 'plugins', 'DummyPlugin'),
+    faultyplugin = path.join(__dirname, '..', 'plugins', 'FaultyPlugin'),
+    variableplugin = path.join(__dirname, '..', 'plugins', 'VariablePlugin'),
+    android_one_project = path.join(__dirname, '..', 'projects', 'android_one', '*'),
+    android_two_project = path.join(__dirname, '..', 'projects', 'android_two', '*');
+
+var xml_path     = path.join(dummyplugin, 'plugin.xml')
+  , xml_text     = fs.readFileSync(xml_path, 'utf-8')
+  , plugin_et    = new et.ElementTree(et.XML(xml_text));
+
+var platformTag = plugin_et.find('./platform[@name="android"]');
+var dummy_id = plugin_et._root.attrib['id'];
+var valid_source = platformTag.findall('./source-file'),
+    valid_libs = platformTag.findall('./lib-file'),
+    assets = plugin_et.findall('./asset'),
+    configChanges = platformTag.findall('./config-file');
+
+xml_path  = path.join(faultyplugin, 'plugin.xml')
+xml_text  = fs.readFileSync(xml_path, 'utf-8')
+plugin_et = new et.ElementTree(et.XML(xml_text));
+
+platformTag = plugin_et.find('./platform[@name="android"]');
+var invalid_source = platformTag.findall('./source-file');
+var faulty_id = plugin_et._root.attrib['id'];
+
+xml_path  = path.join(variableplugin, 'plugin.xml')
+xml_text  = fs.readFileSync(xml_path, 'utf-8')
+plugin_et = new et.ElementTree(et.XML(xml_text));
+platformTag = plugin_et.find('./platform[@name="android"]');
+
+var variable_id = plugin_et._root.attrib['id'];
+var variable_configs = platformTag.findall('./config-file');
+
+function copyArray(arr) {
+    return Array.prototype.slice.call(arr, 0);
+}
+
+describe('android project handler', function() {
+    describe('www_dir method', function() {
+        it('should return cordova-android project www location using www_dir', function() {
+            expect(android.www_dir(path.sep)).toEqual(path.sep + path.join('assets', 'www'));
+        });
+    });
+    describe('package_name method', function() {
+        it('should return an android project\'s proper package name', function() {
+            expect(android.package_name(path.join(android_one_project, '..'))).toEqual('com.alunny.childapp');
+        });
+    });
+
+    describe('installation', function() {
+        beforeEach(function() {
+            shell.mkdir('-p', temp);
+        });
+        afterEach(function() {
+            shell.rm('-rf', temp);
+        });
+        describe('of <lib-file> elements', function() {
+            it("should copy jar files to project/libs", function () {
+                var s = spyOn(common, 'copyFile');
+
+                android['lib-file'].install(valid_libs[0], dummyplugin, temp);
+                expect(s).toHaveBeenCalledWith(dummyplugin, 'src/android/TestLib.jar', temp, path.join('libs', 'TestLib.jar'));
+            });
+        });
+        describe('of <source-file> elements', function() {
+            beforeEach(function() {
+                shell.cp('-rf', android_one_project, temp);
+            });
+
+            it('should copy stuff from one location to another by calling common.copyFile', function() {
+                var source = copyArray(valid_source);
+                var s = spyOn(common, 'copyFile');
+                android['source-file'].install(source[0], dummyplugin, temp); 
+                expect(s).toHaveBeenCalledWith(dummyplugin, 'src/android/DummyPlugin.java', temp, path.join('src', 'com', 'phonegap', 'plugins', 'dummyplugin', 'DummyPlugin.java'));
+            });
+            it('should throw if source file cannot be found', function() {
+                var source = copyArray(invalid_source);
+                expect(function() {
+                    android['source-file'].install(source[0], faultyplugin, temp); 
+                }).toThrow('"' + path.resolve(faultyplugin, 'src/android/NotHere.java') + '" not found!');
+            });
+            it('should throw if target file already exists', function() {
+                // write out a file
+                var target = path.resolve(temp, 'src/com/phonegap/plugins/dummyplugin');
+                shell.mkdir('-p', target);
+                target = path.join(target, 'DummyPlugin.java');
+                fs.writeFileSync(target, 'some bs', 'utf-8');
+
+                var source = copyArray(valid_source);
+                expect(function() {
+                    android['source-file'].install(source[0], dummyplugin, temp); 
+                }).toThrow('"' + target + '" already exists!');
+            });
+        });
+    });
+
+    describe('uninstallation', function() {
+        beforeEach(function() {
+            shell.mkdir('-p', temp);
+            shell.mkdir('-p', plugins_dir);
+            shell.cp('-rf', android_two_project, temp);
+        });
+        afterEach(function() {
+            shell.rm('-rf', temp);
+        });
+        describe('of <lib-file> elements', function(done) {
+            it('should remove jar files', function () {
+                var s = spyOn(common, 'removeFile');
+                android['lib-file'].install(valid_libs[0], dummyplugin, temp);
+                android['lib-file'].uninstall(valid_libs[0], temp, dummy_id);
+                expect(s).toHaveBeenCalledWith(temp, path.join('libs', 'TestLib.jar'));
+            });
+        });
+        describe('of <source-file> elements', function() {
+            it('should remove stuff by calling common.deleteJava', function(done) {
+                var s = spyOn(common, 'deleteJava');
+                install('android', temp, dummyplugin, plugins_dir, {})
+                .then(function() {
+                    var source = copyArray(valid_source);
+                    android['source-file'].uninstall(source[0], temp);
+                    expect(s).toHaveBeenCalledWith(temp, path.join('src', 'com', 'phonegap', 'plugins', 'dummyplugin', 'DummyPlugin.java'));
+                    done();
+                });
+            });
+        });
+    });
+});

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/cea4d829/src/platforms.js
----------------------------------------------------------------------
diff --git a/src/platforms.js b/src/platforms.js
index bcd2613..2668aff 100644
--- a/src/platforms.js
+++ b/src/platforms.js
@@ -1,5 +1,6 @@
 module.exports = {
     'android': require('./platforms/android'),
+    'amazon-fireos': require('./platforms/amazon-fireos'),
     'ios': require('./platforms/ios'),
     'blackberry10': require('./platforms/blackberry10'),
     'wp7': require('./platforms/wp7'),

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/cea4d829/src/platforms/amazon-fireos.js
----------------------------------------------------------------------
diff --git a/src/platforms/amazon-fireos.js b/src/platforms/amazon-fireos.js
new file mode 100644
index 0000000..83b2d02
--- /dev/null
+++ b/src/platforms/amazon-fireos.js
@@ -0,0 +1,59 @@
+/*
+ *
+ * Copyright 2013 Anis Kadri
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+var fs = require('fs')  // use existsSync in 0.6.x
+   , path = require('path')
+   , common = require('./common')
+   , xml_helpers = require(path.join(__dirname, '..', 'util', 'xml-helpers'));
+
+module.exports = {
+    www_dir:function(project_dir) {
+        return path.join(project_dir, 'assets', 'www');
+    },
+    // reads the package name out of the Android Manifest file
+    // @param string project_dir the absolute path to the directory containing the project
+    // @return string the name of the package
+    package_name:function (project_dir) {
+        var mDoc = xml_helpers.parseElementtreeSync(path.join(project_dir, 'AndroidManifest.xml'));
+
+        return mDoc._root.attrib['package'];
+    },
+    "source-file":{
+        install:function(source_el, plugin_dir, project_dir, plugin_id) {
+            var dest = path.join(source_el.attrib['target-dir'], path.basename(source_el.attrib['src']));
+            common.copyFile(plugin_dir, source_el.attrib['src'], project_dir, dest);
+        },
+        uninstall:function(source_el, project_dir, plugin_id) {
+            var dest = path.join(source_el.attrib['target-dir'], path.basename(source_el.attrib['src']));
+            common.deleteJava(project_dir, dest);
+        }
+    },
+    "lib-file":{
+        install:function(lib_el, plugin_dir, project_dir) {
+            var src = lib_el.attrib.src;
+            var dest = path.join("libs", path.basename(src));
+            common.copyFile(plugin_dir, src, project_dir, dest);
+        },
+        uninstall:function(lib_el, project_dir) {
+            var src = lib_el.attrib.src;
+            var dest = path.join("libs", path.basename(src));
+            common.removeFile(project_dir, dest);
+        }
+    }
+};


[2/3] git commit: Updated amazon-fireos.spec with amazon-fireos platform name. Corrected project names for android_one and android_two. Modified README.md for Cordova-AmazonWebView-Plugman

Posted by st...@apache.org.
Updated amazon-fireos.spec with amazon-fireos platform name.
Corrected project names for android_one and android_two.
Modified README.md for Cordova-AmazonWebView-Plugman


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

Branch: refs/heads/fireos
Commit: 6ee4b4b4cd5e597f60f8bce146144c8ca17bb02f
Parents: cea4d82
Author: Archana Naik <na...@lab126.com>
Authored: Thu Oct 24 17:55:14 2013 -0700
Committer: Archana Naik <na...@lab126.com>
Committed: Wed Nov 13 11:38:37 2013 -0800

----------------------------------------------------------------------
 README.md                            | 11 +++----
 spec/platforms/amazon-fireos.spec.js | 48 +++++++++++++++----------------
 2 files changed, 30 insertions(+), 29 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/6ee4b4b4/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 3bc886d..cd83a81 100644
--- a/README.md
+++ b/README.md
@@ -25,14 +25,15 @@ You must have `git` on your PATH to be able to install plugins directly from rem
 ## Supported Platforms
 
 * iOS
+* Amazon Fire OS
 * Android
 * BlackBerry 10
 * Windows Phone (7+8)
 
 ## Command Line Usage
 
-    plugman install --platform <ios|android|blackberry10|wp7|wp8> --project <directory> --plugin <name|url|path> [--plugins_dir <directory>] [--www <directory>] [--variable <name>=<value> [--variable <name>=<value> ...]]
-    plugman uninstall --platform <ios|android|blackberr10|wp7|wp8> --project <directory> --plugin <id> [--www <directory>] [--plugins_dir <directory>]
+    plugman install --platform <ios|amazon-fireos|android|blackberry10|wp7|wp8> --project <directory> --plugin <name|url|path> [--plugins_dir <directory>] [--www <directory>] [--variable <name>=<value> [--variable <name>=<value> ...]]
+    plugman uninstall --platform <ios|amazon-fireos|android|blackberr10|wp7|wp8> --project <directory> --plugin <id> [--www <directory>] [--plugins_dir <directory>]
 
 * Using minimum parameters, installs a plugin into a cordova project. You must specify a platform and cordova project location for that platform. You also must specify a plugin, with the different `--plugin` parameter forms being:
   * `name`: The directory name where the plugin contents exist. This must be an existing directory under the `--plugins_dir` path (see below for more info) or a plugin in the Cordova registry.
@@ -65,7 +66,7 @@ Other parameters:
 
 Installs a plugin into a specified cordova project of a specified platform.
 
- * `platform`: one of `android`, `ios`, `blackberry10`, `wp7` or `wp8`
+ * `platform`: one of `amazon-fireos`, `android`, `ios`, `blackberry10`, `wp7` or `wp8`
  * `project_dir`: path to an instance of the above specified platform's cordova project
  * `id`: a string representing the `id` of the plugin, a path to a cordova plugin with a valid `plugin.xml` file, or an `https://` or `git://` url to a git repository of a valid cordova plugin or a plugin published to the Cordova registry
  * `plugins_dir`: path to directory where plugins will be stored, defaults to `<project_dir>/cordova/plugins`
@@ -80,7 +81,7 @@ Installs a plugin into a specified cordova project of a specified platform.
 
 Uninstalls a previously-installed cordova plugin from a specified cordova project of a specified platform.
 
- * `platform`: one of `android`, `ios`, `blackberry10`, `wp7` or `wp8`
+ * `platform`: one of `amazon-fireos`, `android`, `ios`, `blackberry10`, `wp7` or `wp8`
  * `project_dir`: path to an instance of the above specified platform's cordova project
  * `id`: a string representing the `id` of the plugin
  * `plugins_dir`: path to directory where plugins are stored, defaults to `<project_dir>/cordova/plugins`
@@ -109,7 +110,7 @@ Finalizes plugin installation by making configuration file changes and setting u
     module.exports = function handlePrepare(project_dir, platform, plugins_dir) {
 
  * `project_dir`: path to an instance of the above specified platform's cordova project
- * `platform`: one of `android`, `ios`, `blackberry10`, `wp7` or `wp8`
+ * `platform`: one of `amazon-fireos`, `android`, `ios`, `blackberry10`, `wp7` or `wp8`
  * `plugins_dir`: path housing all plugins used in this project
 
 ## Registry related actions

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/6ee4b4b4/spec/platforms/amazon-fireos.spec.js
----------------------------------------------------------------------
diff --git a/spec/platforms/amazon-fireos.spec.js b/spec/platforms/amazon-fireos.spec.js
index fe91a53..cb4bc4c 100644
--- a/spec/platforms/amazon-fireos.spec.js
+++ b/spec/platforms/amazon-fireos.spec.js
@@ -1,4 +1,4 @@
-var android = require('../../src/platforms/android'),
+var amazon_fireos = require('../../src/platforms/amazon-fireos'),
     common  = require('../../src/platforms/common'),
     install = require('../../src/install'),
     path    = require('path'),
@@ -13,14 +13,14 @@ var android = require('../../src/platforms/android'),
     dummyplugin = path.join(__dirname, '..', 'plugins', 'DummyPlugin'),
     faultyplugin = path.join(__dirname, '..', 'plugins', 'FaultyPlugin'),
     variableplugin = path.join(__dirname, '..', 'plugins', 'VariablePlugin'),
-    android_one_project = path.join(__dirname, '..', 'projects', 'android_one', '*'),
-    android_two_project = path.join(__dirname, '..', 'projects', 'android_two', '*');
+    amzon_fireos_one_project = path.join(__dirname, '..', 'projects', 'android_one', '*'),
+    amazon_fireos_two_project = path.join(__dirname, '..', 'projects', 'android_two', '*');
 
 var xml_path     = path.join(dummyplugin, 'plugin.xml')
   , xml_text     = fs.readFileSync(xml_path, 'utf-8')
   , plugin_et    = new et.ElementTree(et.XML(xml_text));
 
-var platformTag = plugin_et.find('./platform[@name="android"]');
+var platformTag = plugin_et.find('./platform[@name="amazon-fireos"]');
 var dummy_id = plugin_et._root.attrib['id'];
 var valid_source = platformTag.findall('./source-file'),
     valid_libs = platformTag.findall('./lib-file'),
@@ -31,14 +31,14 @@ xml_path  = path.join(faultyplugin, 'plugin.xml')
 xml_text  = fs.readFileSync(xml_path, 'utf-8')
 plugin_et = new et.ElementTree(et.XML(xml_text));
 
-platformTag = plugin_et.find('./platform[@name="android"]');
+platformTag = plugin_et.find('./platform[@name="amazon-fireos"]');
 var invalid_source = platformTag.findall('./source-file');
 var faulty_id = plugin_et._root.attrib['id'];
 
 xml_path  = path.join(variableplugin, 'plugin.xml')
 xml_text  = fs.readFileSync(xml_path, 'utf-8')
 plugin_et = new et.ElementTree(et.XML(xml_text));
-platformTag = plugin_et.find('./platform[@name="android"]');
+platformTag = plugin_et.find('./platform[@name="amazon-fireos"]');
 
 var variable_id = plugin_et._root.attrib['id'];
 var variable_configs = platformTag.findall('./config-file');
@@ -47,15 +47,15 @@ function copyArray(arr) {
     return Array.prototype.slice.call(arr, 0);
 }
 
-describe('android project handler', function() {
+describe('amazon-fireos project handler', function() {
     describe('www_dir method', function() {
-        it('should return cordova-android project www location using www_dir', function() {
-            expect(android.www_dir(path.sep)).toEqual(path.sep + path.join('assets', 'www'));
+        it('should return cordova-amazon-fireos project www location using www_dir', function() {
+            expect(amazon_fireos.www_dir(path.sep)).toEqual(path.sep + path.join('assets', 'www'));
         });
     });
     describe('package_name method', function() {
-        it('should return an android project\'s proper package name', function() {
-            expect(android.package_name(path.join(android_one_project, '..'))).toEqual('com.alunny.childapp');
+        it('should return an amazon-fireos project\'s proper package name', function() {
+            expect(amazon_fireos.package_name(path.join(amazon_fireos_one_project, '..'))).toEqual('com.alunny.childapp');
         });
     });
 
@@ -70,26 +70,26 @@ describe('android project handler', function() {
             it("should copy jar files to project/libs", function () {
                 var s = spyOn(common, 'copyFile');
 
-                android['lib-file'].install(valid_libs[0], dummyplugin, temp);
-                expect(s).toHaveBeenCalledWith(dummyplugin, 'src/android/TestLib.jar', temp, path.join('libs', 'TestLib.jar'));
+                amazon_fireos['lib-file'].install(valid_libs[0], dummyplugin, temp);
+                expect(s).toHaveBeenCalledWith(dummyplugin, 'src/amazon-fireos/TestLib.jar', temp, path.join('libs', 'TestLib.jar'));
             });
         });
         describe('of <source-file> elements', function() {
             beforeEach(function() {
-                shell.cp('-rf', android_one_project, temp);
+                shell.cp('-rf', amazon_fireos_one_project, temp);
             });
 
             it('should copy stuff from one location to another by calling common.copyFile', function() {
                 var source = copyArray(valid_source);
                 var s = spyOn(common, 'copyFile');
-                android['source-file'].install(source[0], dummyplugin, temp); 
-                expect(s).toHaveBeenCalledWith(dummyplugin, 'src/android/DummyPlugin.java', temp, path.join('src', 'com', 'phonegap', 'plugins', 'dummyplugin', 'DummyPlugin.java'));
+                amazon_fireos['source-file'].install(source[0], dummyplugin, temp); 
+                expect(s).toHaveBeenCalledWith(dummyplugin, 'src/amazon-fireos/DummyPlugin.java', temp, path.join('src', 'com', 'phonegap', 'plugins', 'dummyplugin', 'DummyPlugin.java'));
             });
             it('should throw if source file cannot be found', function() {
                 var source = copyArray(invalid_source);
                 expect(function() {
-                    android['source-file'].install(source[0], faultyplugin, temp); 
-                }).toThrow('"' + path.resolve(faultyplugin, 'src/android/NotHere.java') + '" not found!');
+                    amazon_fireos['source-file'].install(source[0], faultyplugin, temp); 
+                }).toThrow('"' + path.resolve(faultyplugin, 'src/amazon-fireos/NotHere.java') + '" not found!');
             });
             it('should throw if target file already exists', function() {
                 // write out a file
@@ -100,7 +100,7 @@ describe('android project handler', function() {
 
                 var source = copyArray(valid_source);
                 expect(function() {
-                    android['source-file'].install(source[0], dummyplugin, temp); 
+                    amazon_fireos['source-file'].install(source[0], dummyplugin, temp); 
                 }).toThrow('"' + target + '" already exists!');
             });
         });
@@ -110,7 +110,7 @@ describe('android project handler', function() {
         beforeEach(function() {
             shell.mkdir('-p', temp);
             shell.mkdir('-p', plugins_dir);
-            shell.cp('-rf', android_two_project, temp);
+            shell.cp('-rf', amazon_fireos_two_project, temp);
         });
         afterEach(function() {
             shell.rm('-rf', temp);
@@ -118,18 +118,18 @@ describe('android project handler', function() {
         describe('of <lib-file> elements', function(done) {
             it('should remove jar files', function () {
                 var s = spyOn(common, 'removeFile');
-                android['lib-file'].install(valid_libs[0], dummyplugin, temp);
-                android['lib-file'].uninstall(valid_libs[0], temp, dummy_id);
+                amazon_fireos['lib-file'].install(valid_libs[0], dummyplugin, temp);
+                amazon_fireos['lib-file'].uninstall(valid_libs[0], temp, dummy_id);
                 expect(s).toHaveBeenCalledWith(temp, path.join('libs', 'TestLib.jar'));
             });
         });
         describe('of <source-file> elements', function() {
             it('should remove stuff by calling common.deleteJava', function(done) {
                 var s = spyOn(common, 'deleteJava');
-                install('android', temp, dummyplugin, plugins_dir, {})
+                install('amazon-fireos', temp, dummyplugin, plugins_dir, {})
                 .then(function() {
                     var source = copyArray(valid_source);
-                    android['source-file'].uninstall(source[0], temp);
+                    amazon_fireos['source-file'].uninstall(source[0], temp);
                     expect(s).toHaveBeenCalledWith(temp, path.join('src', 'com', 'phonegap', 'plugins', 'dummyplugin', 'DummyPlugin.java'));
                     done();
                 });


[3/3] git commit: Merge branch 'master' of github.com:archananaik/cordova-plugman

Posted by st...@apache.org.
Merge branch 'master' of github.com:archananaik/cordova-plugman


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

Branch: refs/heads/fireos
Commit: b5418affc8690f7688128f77e467ffb8038d810a
Parents: 4414a43 6ee4b4b
Author: Steven Gill <st...@gmail.com>
Authored: Mon Nov 25 16:10:09 2013 -0800
Committer: Steven Gill <st...@gmail.com>
Committed: Mon Nov 25 16:10:09 2013 -0800

----------------------------------------------------------------------
 README.md                            |  11 +--
 main.js                              |   2 +-
 spec/platforms/amazon-fireos.spec.js | 139 ++++++++++++++++++++++++++++++
 src/platforms.js                     |   1 +
 src/platforms/amazon-fireos.js       |  59 +++++++++++++
 5 files changed, 206 insertions(+), 6 deletions(-)
----------------------------------------------------------------------