You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by na...@apache.org on 2014/05/12 21:50:19 UTC
git commit: [CB-6675][amazon-fireos]Adding amazon-fireos platform
fails with an error in amazon_fireos_parser.js Fixed the error.
Repository: cordova-lib
Updated Branches:
refs/heads/master 5e4a99218 -> 3dd426a3e
[CB-6675][amazon-fireos]Adding amazon-fireos platform fails with an error in amazon_fireos_parser.js
Fixed the error.
Project: http://git-wip-us.apache.org/repos/asf/cordova-lib/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-lib/commit/3dd426a3
Tree: http://git-wip-us.apache.org/repos/asf/cordova-lib/tree/3dd426a3
Diff: http://git-wip-us.apache.org/repos/asf/cordova-lib/diff/3dd426a3
Branch: refs/heads/master
Commit: 3dd426a3eb86ef87b27aa2dcf0f63a014c49c56a
Parents: 5e4a992
Author: Archana Naik <na...@lab126.com>
Authored: Mon May 12 12:49:06 2014 -0700
Committer: Archana Naik <na...@lab126.com>
Committed: Mon May 12 12:49:06 2014 -0700
----------------------------------------------------------------------
cordova-lib/src/cordova/metadata/amazon_fireos_parser.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-lib/blob/3dd426a3/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js
----------------------------------------------------------------------
diff --git a/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js b/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js
index 32b4d2c..dd5b52c 100644
--- a/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js
+++ b/cordova-lib/src/cordova/metadata/amazon_fireos_parser.js
@@ -27,8 +27,6 @@ var fs = require('fs'),
ConfigParser = require('../ConfigParser'),
CordovaError = require('../../CordovaError');
-var awv_interface='awv_interface.jar';
-
var default_prefs = {
"useBrowserHistory":"true",
"exit-on-suspend":"false"
@@ -45,7 +43,6 @@ module.exports = function android_parser(project) {
};
// Returns a promise.
-// Returns a promise.
module.exports.check_requirements = function(project_root) {
// Rely on platform's bin/create script to check requirements.
return Q(true);
@@ -191,10 +188,11 @@ module.exports.prototype = {
var orig_pkg = manifest.getroot().attrib.package;
manifest.getroot().attrib.package = pkg;
+ var act = manifest.getroot().find('./application/activity');
+
// Set the orientation in the AndroidManifest
var orientationPref = this.findOrientationPreference(config);
if (orientationPref) {
- var act = manifest.getroot().find('./application/activity');
switch (orientationPref) {
case 'default':
delete act.attrib["android:screenOrientation"];