cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From na...@apache.org
Subject git commit: Updated check_requirements functions to see if AWV sdk is installed in libs folder. This code used to be in cli's platform script but cordova recently moved it to individual platforms.
Date Fri, 07 Feb 2014 22:22:53 GMT
Updated Branches:
  refs/heads/3.4.x 6a3adc53a -> f8bd5894e


Updated check_requirements functions to see if AWV sdk is installed in libs folder.
This code used to be in cli's platform script but cordova recently moved it to individual
platforms.


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

Branch: refs/heads/3.4.x
Commit: f8bd5894ee54b0662382c0249a013f2ccd7ac10c
Parents: 6a3adc5
Author: Archana Naik <naika@lab126.com>
Authored: Fri Feb 7 14:06:59 2014 -0800
Committer: Archana Naik <naika@lab126.com>
Committed: Fri Feb 7 14:22:33 2014 -0800

----------------------------------------------------------------------
 bin/lib/check_reqs.js | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/f8bd5894/bin/lib/check_reqs.js
----------------------------------------------------------------------
diff --git a/bin/lib/check_reqs.js b/bin/lib/check_reqs.js
index ef11e0c..215d1b5 100644
--- a/bin/lib/check_reqs.js
+++ b/bin/lib/check_reqs.js
@@ -26,6 +26,8 @@ var shell = require('shelljs'),
     fs    = require('fs'),
     ROOT  = path.join(__dirname, '..', '..');
 
+var awv_interface='awv_interface.jar';
+
 // Get valid target from framework/project.properties
 module.exports.get_target = function() {
     if(fs.existsSync(path.join(ROOT, 'framework', 'project.properties'))) {
@@ -78,6 +80,11 @@ module.exports.check_android = function() {
     return d.promise.then(function(output) {
         if (!output.match(valid_target)) {
             return Q.reject(new Error('Please install Android target ' + valid_target.split('-')[1]
+ ' (the Android newest SDK). Make sure you have the latest Android tools installed as well.
Run \"android\" from your command-line to install/update any missing SDKs or tools.'));
+        } else {
+            var awv_interface_expected_path=path.join(ROOT, 'framework','libs');
+            if (!fs.existsSync(path.join(awv_interface_expected_path,awv_interface))) {
+                Q.reject(new Error('awv_interface.jar not found in ' + awv_interface_expected_path
+' folder. \nPlease download the AmazonWebView SDK from http://developer.amazon.com/sdk/fire/IntegratingAWV.html#installawv
and copy the awv_interface.jar file to this folder:' + awv_interface_expected_path + ' and
re-run cordova platform add amazon-fireos command.'));
+                }
         }
         return Q();
     }, function(stderr) {


Mime
View raw message