[jira] [Created] (CB-9150) executeScript excepts if no data returned on Windows Phone platform

2015-06-10 Thread John Little (JIRA)
John Little created CB-9150:
---

 Summary: executeScript excepts if no data returned on Windows 
Phone platform
 Key: CB-9150
 URL: https://issues.apache.org/jira/browse/CB-9150
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin InAppBrowser
Affects Versions: 5.0.0
 Environment: Cordova 5.0.0, Windows 3.8.1, InAppBrowser 1.0.0
Reporter: John Little


The executeScript function can return data across the inteface.
When using Windows Phone 8.1 if no data is returned the current code will 
except, crashing the app.
I have found the following code to solve the problem
In file InAppBrowserProxy.js
Change lines 250 and 272 from
var result = [e.target.result];
to
var result = [];
if(e  e.target) result = [e.target.result];




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9147) Adding a platform with a caret version adds the very latest rather than the latest matching version

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580183#comment-14580183
 ] 

ASF GitHub Bot commented on CB-9147:


Github user TimBarham commented on a diff in the pull request:

https://github.com/apache/cordova-lib/pull/244#discussion_r32095108
  
--- Diff: cordova-lib/src/plugman/registry/registry.js ---
@@ -364,6 +364,26 @@ function fetchPlugin(plugin, client, useNpmRegistry) {
 });
 }
 
+function processPluginVersion(plugin) {
+// If plugin includes a version that is a caret range, the ancient 
version of npm we're using won't now how to
--- End diff --

Will fix.


 Adding a platform with a caret version adds the very latest rather than the 
 latest matching version
 ---

 Key: CB-9147
 URL: https://issues.apache.org/jira/browse/CB-9147
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaLib
Affects Versions: 5.0.0
Reporter: Tim Barham
Assignee: Tim Barham

 If you add, say, windows 3.5.0 platform to a project with the save flag:
 {noformat}
 cordova platform add windows@3.5.0 --save
 {noformat}
 We write out {{^3.5.0}} to {{config.xml}}.
 If the platform is removed then re-added, we install {{4.0.0}} instead of the 
 expected {{3.8.2}}.
 This is because internally we are using a version of {{npm}} that doesn't 
 understand caret versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9147) Adding a platform with a caret version adds the very latest rather than the latest matching version

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580182#comment-14580182
 ] 

ASF GitHub Bot commented on CB-9147:


Github user TimBarham commented on a diff in the pull request:

https://github.com/apache/cordova-lib/pull/244#discussion_r32095091
  
--- Diff: cordova-lib/src/plugman/registry/registry.js ---
@@ -364,6 +364,26 @@ function fetchPlugin(plugin, client, useNpmRegistry) {
 });
 }
 
+function processPluginVersion(plugin) {
--- End diff --

I'm intentionally not doing that... Calling getLatestMatchingNpmVersion is 
expensive - I only use it for platform because we were already calling it..


 Adding a platform with a caret version adds the very latest rather than the 
 latest matching version
 ---

 Key: CB-9147
 URL: https://issues.apache.org/jira/browse/CB-9147
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaLib
Affects Versions: 5.0.0
Reporter: Tim Barham
Assignee: Tim Barham

 If you add, say, windows 3.5.0 platform to a project with the save flag:
 {noformat}
 cordova platform add windows@3.5.0 --save
 {noformat}
 We write out {{^3.5.0}} to {{config.xml}}.
 If the platform is removed then re-added, we install {{4.0.0}} instead of the 
 expected {{3.8.2}}.
 This is because internally we are using a version of {{npm}} that doesn't 
 understand caret versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-5578) clean command for CLI

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580267#comment-14580267
 ] 

ASF GitHub Bot commented on CB-5578:


Github user asfgit closed the pull request at:

https://github.com/apache/cordova-cli/pull/216


 clean command for CLI
 -

 Key: CB-5578
 URL: https://issues.apache.org/jira/browse/CB-5578
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI
Affects Versions: 3.2.0
Reporter: Orçun Topdağı
Assignee: Vladimir Kotikov
Priority: Minor

  cordova clean (platform)
 Actually I need this feature to workaround this 
 [issue|https://issues.apache.org/jira/browse/CB-5568] for now. However if 
 there is a build command, I believe a clean command is called for, at least I 
 even just run the above command before checking its existence.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-5578) clean command for CLI

2015-06-10 Thread Vladimir Kotikov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Kotikov resolved CB-5578.
--
Resolution: Implemented

 clean command for CLI
 -

 Key: CB-5578
 URL: https://issues.apache.org/jira/browse/CB-5578
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI
Affects Versions: 3.2.0
Reporter: Orçun Topdağı
Assignee: Vladimir Kotikov
Priority: Minor

  cordova clean (platform)
 Actually I need this feature to workaround this 
 [issue|https://issues.apache.org/jira/browse/CB-5568] for now. However if 
 there is a build command, I believe a clean command is called for, at least I 
 even just run the above command before checking its existence.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9147) Adding a platform with a caret version adds the very latest rather than the latest matching version

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580177#comment-14580177
 ] 

ASF GitHub Bot commented on CB-9147:


Github user TimBarham commented on a diff in the pull request:

https://github.com/apache/cordova-lib/pull/244#discussion_r32094913
  
--- Diff: cordova-lib/src/cordova/plugin.js ---
@@ -360,6 +360,12 @@ function getPluginVariables(variables){
 
 function getVersionFromConfigFile(plugin, cfg){
 var pluginEntry = cfg.getPlugin(plugin);
+if (!pluginEntry) {
+var oldStylePluginId = pluginMapper[plugin];
+if (oldStylePluginId) {
--- End diff --

Nope, it really is oldStylePluginId... Have a look at the declaration of 
pluginMapper.


 Adding a platform with a caret version adds the very latest rather than the 
 latest matching version
 ---

 Key: CB-9147
 URL: https://issues.apache.org/jira/browse/CB-9147
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaLib
Affects Versions: 5.0.0
Reporter: Tim Barham
Assignee: Tim Barham

 If you add, say, windows 3.5.0 platform to a project with the save flag:
 {noformat}
 cordova platform add windows@3.5.0 --save
 {noformat}
 We write out {{^3.5.0}} to {{config.xml}}.
 If the platform is removed then re-added, we install {{4.0.0}} instead of the 
 expected {{3.8.2}}.
 This is because internally we are using a version of {{npm}} that doesn't 
 understand caret versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-8621) Error: Cannot find module 'Q'

2015-06-10 Thread clemclim (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580212#comment-14580212
 ] 

clemclim edited comment on CB-8621 at 6/10/15 8:25 AM:
---

Yes it works for ios, but for windows phone the problem is still not solved (Q 
instead of q). If you compile from linux or macos the same error happen.

Please patch the problem, because I don't know how to do it ... each time I 
make a phonegap platform add wp8 it re-download the original wrong javascript 
for windows phone... 

It's not that I like windows, but I have to build it on this system Guys... :-/ 
Thanks

###
orion@orion:~/Documents/android-studio/build/iki$ phonegap platform add wp8
WARNING: Applications for platform wp8 can not be built on this OS - linux.

Adding wp8 project...



module.js:340

throw err;
  ^

Error: Cannot find module 'Q'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.anonymous 
(/home/orion/.cordova/lib/npm_cache/cordova-wp8/3.8.0/package/bin/lib/create.js:20:13)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

Error: /home/orion/.cordova/lib/npm_cache/cordova-wp8/3.8.0/package/bin/create: 
Command failed with exit code 8
at ChildProcess.whenDone 
(/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)


was (Author: cliclem):
Yes it works for ios, but for windows phone the problem is still not solved (Q 
instead of q). If you compile from linux or macos the same error happen.

Please patch the problem, because I don't know how to do it ... each time I 
make a phonegap platform add wp8 it re-download the original wrong javascript 
for windows phone... 

It's not that I like windows, but I have to build it on this system Guys... :-/ 
Thanks

 Error: Cannot find module 'Q'
 -

 Key: CB-8621
 URL: https://issues.apache.org/jira/browse/CB-8621
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
 Environment: Mac OSX Yosemite 10.10.1
Reporter: Marco
 Fix For: 4.0.0

 Attachments: CB-8621.patch


 After upgrading Cordova-CLI to the last version (4.3.0), when i run: cordova 
 build i get the following error:
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'Q'
 at Function.Module._resolveFilename (module.js:338:15)
 at Function.Module._load (module.js:280:25)
 at Module.require (module.js:364:17)
 at require (module.js:380:17)
 at Object.anonymous 
 (/Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/lib/check_reqs.js:25:13)
 at Module._compile (module.js:456:26)
 at Object.Module._extensions..js (module.js:474:10)
 at Module.load (module.js:356:32)
 at Function.Module._load (module.js:312:12)
 at Module.require (module.js:364:17)
 ERROR building one of the platforms: Error: 
 /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build:
  Command failed with exit code 8
 You may not have the required environment or OS to build this project
 Error: 
 /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build:
  Command failed with exit code 8
 at ChildProcess.whenDone 
 (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
 at ChildProcess.EventEmitter.emit (events.js:98:17)
 at maybeClose (child_process.js:753:16)
 at Process.ChildProcess._handle.onexit (child_process.js:820:5)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-5578) clean command for CLI

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580261#comment-14580261
 ] 

ASF GitHub Bot commented on CB-5578:


Github user asfgit closed the pull request at:

https://github.com/apache/cordova-lib/pull/241


 clean command for CLI
 -

 Key: CB-5578
 URL: https://issues.apache.org/jira/browse/CB-5578
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI
Affects Versions: 3.2.0
Reporter: Orçun Topdağı
Assignee: Vladimir Kotikov
Priority: Minor

  cordova clean (platform)
 Actually I need this feature to workaround this 
 [issue|https://issues.apache.org/jira/browse/CB-5568] for now. However if 
 there is a build command, I believe a clean command is called for, at least I 
 even just run the above command before checking its existence.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-5578) clean command for CLI

2015-06-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580269#comment-14580269
 ] 

ASF subversion and git services commented on CB-5578:
-

Commit c6054d96a1d4b6a50a6b5e80d02914f565c79317 in cordova-docs's branch 
refs/heads/master from [~vladimir.kotikov]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;h=c6054d9 ]

CB-5578 Documents new hooks introduced by 'clean' command


 clean command for CLI
 -

 Key: CB-5578
 URL: https://issues.apache.org/jira/browse/CB-5578
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI
Affects Versions: 3.2.0
Reporter: Orçun Topdağı
Assignee: Vladimir Kotikov
Priority: Minor

  cordova clean (platform)
 Actually I need this feature to workaround this 
 [issue|https://issues.apache.org/jira/browse/CB-5568] for now. However if 
 there is a build command, I believe a clean command is called for, at least I 
 even just run the above command before checking its existence.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-5578) clean command for CLI

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580270#comment-14580270
 ] 

ASF GitHub Bot commented on CB-5578:


Github user asfgit closed the pull request at:

https://github.com/apache/cordova-docs/pull/293


 clean command for CLI
 -

 Key: CB-5578
 URL: https://issues.apache.org/jira/browse/CB-5578
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI
Affects Versions: 3.2.0
Reporter: Orçun Topdağı
Assignee: Vladimir Kotikov
Priority: Minor

  cordova clean (platform)
 Actually I need this feature to workaround this 
 [issue|https://issues.apache.org/jira/browse/CB-5568] for now. However if 
 there is a build command, I believe a clean command is called for, at least I 
 even just run the above command before checking its existence.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9074) cordova run windows -- --phone fails with Error: The parameter is incorrect.

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580187#comment-14580187
 ] 

ASF GitHub Bot commented on CB-9074:


Github user dblotsky commented on the pull request:

https://github.com/apache/cordova-windows/pull/86#issuecomment-110642165
  
Gotcha. Thanks! Just wanted to double-check, since there were no PR 
comments.


 cordova run windows -- --phone fails with Error: The parameter is incorrect.
 

 Key: CB-9074
 URL: https://issues.apache.org/jira/browse/CB-9074
 Project: Apache Cordova
  Issue Type: Bug
  Components: Windows
Reporter: Alexander Sorokin

 Steps to repro:
 1. Create mobilespec application for windows: 
 {{cordova-mobile-spec\createmobilespec\createmobilespec mobilespec --windows}}
 2. {{cordova run -- --phone}}
 Actual Result:
 {code}
 node cordova-medic/medic/medic.js run --id 
 cordova-windows-phone8.1-42-aegis.apache.org --platform windows --couchdb 
 http://cdv-ms-buildbot.cloudapp.net:5984 --entry cdvtests/index.html --app 
 mobilespec --timeout 740 --winvers phone
  in dir C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\. (timeout 
 800 secs)
  watching logfiles {}
  argv: ['node', 'cordova-medic/medic/medic.js', 'run', '--id', 
 'cordova-windows-phone8.1-42-aegis.apache.org', '--platform', 'windows', 
 '--couchdb', 'http://cdv-ms-buildbot.cloudapp.net:5984', '--entry', 
 'cdvtests/index.html', '--app', 'mobilespec', '--timeout', '740', 
 '--winvers', 'phone']
  environment:
   ADT_HOME=C:\Program Files (x86)\Android\android-sdk
   ALLUSERSPROFILE=C:\ProgramData
   ANT_HOME=C:\apache-ant-1.9.3
   APPDATA=C:\Users\buildbot\AppData\Roaming
   ASL.LOG=Destination=file
   BB_BUILDSLAVE=C:\Python27\Scripts\buildslave 
   BB_PYTHON=C:\Python27\Scripts\..\python
   CLIENTNAME=DBDEATHSTAR
   COMMONPROGRAMFILES=C:\Program Files\Common Files
   COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
   COMMONPROGRAMW6432=C:\Program Files\Common Files
   COMPUTERNAME=DBSTARDESTROYER
   COMSPEC=C:\windows\system32\cmd.exe
   FP_NO_HOST_CHECK=NO
   GIT_HOME=C:\Git
   HOMEDRIVE=C:
   HOMEPATH=\Users\buildbot
   JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
   LOCALAPPDATA=C:\Users\buildbot\AppData\Local
   LOGONSERVER=\\DBSTARDESTROYER
   NUMBER_OF_PROCESSORS=12
   OS=Windows_NT
   
 PATH=C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Program
  Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS 
 Client\;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online 
 Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft 
 Online 
 Services;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program
  Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program 
 Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files 
 (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files 
 (x86)\Intel\Intel(R) Management Engine 
 Components\IPT;C:\Git\cmd;C:\Git\bin;C:\Program Files\nodejs\;C:\Program 
 Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program 
 Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft 
 SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL 
 Server\120\Tools\Binn\;C:\Program Files (x86)\Java\jdk1.7.0_55\bin;C:\Program 
 Files (x86)\Android\android-sdk\tools;C:\Program Files 
 (x86)\Android\android-sdk\platform-tools;C:\apache-ant-1.9.3\bin;C:\Git\cmd
   PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
   PROCESSOR_ARCHITECTURE=AMD64
   PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
   PROCESSOR_LEVEL=6
   PROCESSOR_REVISION=2d07
   PROGRAMDATA=C:\ProgramData
   PROGRAMFILES=C:\Program Files
   PROGRAMFILES(X86)=C:\Program Files (x86)
   PROGRAMW6432=C:\Program Files
   PROMPT=$P$G
   PSMODULEPATH=C:\windows\system32\WindowsPowerShell\v1.0\Modules\;c:\Program 
 Files\Microsoft Security Client\MpProvider\
   PUBLIC=C:\Users\Public
   PWD=C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1
   SESSIONNAME=RDP-Tcp#9
   SYSTEMDRIVE=C:
   SYSTEMROOT=C:\windows
   SYSTEMTYPE=other
   TEMP=C:\Users\buildbot\AppData\Local\Temp
   TMP=C:\Users\buildbot\AppData\Local\Temp
   UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
   USERDOMAIN=DBSTARDESTROYER
   USERDOMAIN_ROAMINGPROFILE=DBSTARDESTROYER
   USERNAME=buildbot
   USERPROFILE=C:\Users\buildbot
   VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 
 11.0\Common7\Tools\
   VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 
 12.0\Common7\Tools\
   WINDIR=C:\windows
  using PTY: False
 [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] Writing medic.json to mobilespec
 [MEDIC LOG Wed, 27 May 2015 

[jira] [Commented] (CB-5578) clean command for CLI

2015-06-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580260#comment-14580260
 ] 

ASF subversion and git services commented on CB-5578:
-

Commit 09a62c32e9cb4499416d5db2bdc0982c49805622 in cordova-lib's branch 
refs/heads/master from [~vladimir.kotikov]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=09a62c3 ]

CB-5578 Adds `clean` module to cordova. This closes #241


 clean command for CLI
 -

 Key: CB-5578
 URL: https://issues.apache.org/jira/browse/CB-5578
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI
Affects Versions: 3.2.0
Reporter: Orçun Topdağı
Assignee: Vladimir Kotikov
Priority: Minor

  cordova clean (platform)
 Actually I need this feature to workaround this 
 [issue|https://issues.apache.org/jira/browse/CB-5568] for now. However if 
 there is a build command, I believe a clean command is called for, at least I 
 even just run the above command before checking its existence.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9074) cordova run windows -- --phone fails with Error: The parameter is incorrect.

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580170#comment-14580170
 ] 

ASF GitHub Bot commented on CB-9074:


Github user alsorokin commented on the pull request:

https://github.com/apache/cordova-windows/pull/86#issuecomment-110637001
  
it's been reviewed and merged by @sgrebnov 


 cordova run windows -- --phone fails with Error: The parameter is incorrect.
 

 Key: CB-9074
 URL: https://issues.apache.org/jira/browse/CB-9074
 Project: Apache Cordova
  Issue Type: Bug
  Components: Windows
Reporter: Alexander Sorokin

 Steps to repro:
 1. Create mobilespec application for windows: 
 {{cordova-mobile-spec\createmobilespec\createmobilespec mobilespec --windows}}
 2. {{cordova run -- --phone}}
 Actual Result:
 {code}
 node cordova-medic/medic/medic.js run --id 
 cordova-windows-phone8.1-42-aegis.apache.org --platform windows --couchdb 
 http://cdv-ms-buildbot.cloudapp.net:5984 --entry cdvtests/index.html --app 
 mobilespec --timeout 740 --winvers phone
  in dir C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\. (timeout 
 800 secs)
  watching logfiles {}
  argv: ['node', 'cordova-medic/medic/medic.js', 'run', '--id', 
 'cordova-windows-phone8.1-42-aegis.apache.org', '--platform', 'windows', 
 '--couchdb', 'http://cdv-ms-buildbot.cloudapp.net:5984', '--entry', 
 'cdvtests/index.html', '--app', 'mobilespec', '--timeout', '740', 
 '--winvers', 'phone']
  environment:
   ADT_HOME=C:\Program Files (x86)\Android\android-sdk
   ALLUSERSPROFILE=C:\ProgramData
   ANT_HOME=C:\apache-ant-1.9.3
   APPDATA=C:\Users\buildbot\AppData\Roaming
   ASL.LOG=Destination=file
   BB_BUILDSLAVE=C:\Python27\Scripts\buildslave 
   BB_PYTHON=C:\Python27\Scripts\..\python
   CLIENTNAME=DBDEATHSTAR
   COMMONPROGRAMFILES=C:\Program Files\Common Files
   COMMONPROGRAMFILES(X86)=C:\Program Files (x86)\Common Files
   COMMONPROGRAMW6432=C:\Program Files\Common Files
   COMPUTERNAME=DBSTARDESTROYER
   COMSPEC=C:\windows\system32\cmd.exe
   FP_NO_HOST_CHECK=NO
   GIT_HOME=C:\Git
   HOMEDRIVE=C:
   HOMEPATH=\Users\buildbot
   JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
   LOCALAPPDATA=C:\Users\buildbot\AppData\Local
   LOGONSERVER=\\DBSTARDESTROYER
   NUMBER_OF_PROCESSORS=12
   OS=Windows_NT
   
 PATH=C:\ProgramData\Oracle\Java\javapath;C:\Python27\;C:\Python27\Scripts;C:\Program
  Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS 
 Client\;C:\Program Files\Common Files\Microsoft Shared\Microsoft Online 
 Services;C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft 
 Online 
 Services;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program
  Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program 
 Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files 
 (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files 
 (x86)\Intel\Intel(R) Management Engine 
 Components\IPT;C:\Git\cmd;C:\Git\bin;C:\Program Files\nodejs\;C:\Program 
 Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program 
 Files\Microsoft SQL Server\110\Tools\Binn\;C:\Program Files (x86)\Microsoft 
 SDKs\TypeScript\1.0\;C:\Program Files\Microsoft SQL 
 Server\120\Tools\Binn\;C:\Program Files (x86)\Java\jdk1.7.0_55\bin;C:\Program 
 Files (x86)\Android\android-sdk\tools;C:\Program Files 
 (x86)\Android\android-sdk\platform-tools;C:\apache-ant-1.9.3\bin;C:\Git\cmd
   PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
   PROCESSOR_ARCHITECTURE=AMD64
   PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 45 Stepping 7, GenuineIntel
   PROCESSOR_LEVEL=6
   PROCESSOR_REVISION=2d07
   PROGRAMDATA=C:\ProgramData
   PROGRAMFILES=C:\Program Files
   PROGRAMFILES(X86)=C:\Program Files (x86)
   PROGRAMW6432=C:\Program Files
   PROMPT=$P$G
   PSMODULEPATH=C:\windows\system32\WindowsPowerShell\v1.0\Modules\;c:\Program 
 Files\Microsoft Security Client\MpProvider\
   PUBLIC=C:\Users\Public
   PWD=C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1
   SESSIONNAME=RDP-Tcp#9
   SYSTEMDRIVE=C:
   SYSTEMROOT=C:\windows
   SYSTEMTYPE=other
   TEMP=C:\Users\buildbot\AppData\Local\Temp
   TMP=C:\Users\buildbot\AppData\Local\Temp
   UATDATA=C:\Windows\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77
   USERDOMAIN=DBSTARDESTROYER
   USERDOMAIN_ROAMINGPROFILE=DBSTARDESTROYER
   USERNAME=buildbot
   USERPROFILE=C:\Users\buildbot
   VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 
 11.0\Common7\Tools\
   VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 
 12.0\Common7\Tools\
   WINDIR=C:\windows
  using PTY: False
 [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] Writing medic.json to mobilespec
 [MEDIC LOG Wed, 27 May 2015 07:22:16 GMT] sha: 
 

[jira] [Commented] (CB-9147) Adding a platform with a caret version adds the very latest rather than the latest matching version

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580178#comment-14580178
 ] 

ASF GitHub Bot commented on CB-9147:


Github user TimBarham commented on a diff in the pull request:

https://github.com/apache/cordova-lib/pull/244#discussion_r32094927
  
--- Diff: cordova-lib/src/cordova/plugin.js ---
@@ -360,6 +360,12 @@ function getPluginVariables(variables){
 
 function getVersionFromConfigFile(plugin, cfg){
 var pluginEntry = cfg.getPlugin(plugin);
+if (!pluginEntry) {
+var oldStylePluginId = pluginMapper[plugin];
--- End diff --

Good idea. Will add.


 Adding a platform with a caret version adds the very latest rather than the 
 latest matching version
 ---

 Key: CB-9147
 URL: https://issues.apache.org/jira/browse/CB-9147
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaLib
Affects Versions: 5.0.0
Reporter: Tim Barham
Assignee: Tim Barham

 If you add, say, windows 3.5.0 platform to a project with the save flag:
 {noformat}
 cordova platform add windows@3.5.0 --save
 {noformat}
 We write out {{^3.5.0}} to {{config.xml}}.
 If the platform is removed then re-added, we install {{4.0.0}} instead of the 
 expected {{3.8.2}}.
 This is because internally we are using a version of {{npm}} that doesn't 
 understand caret versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-8621) Error: Cannot find module 'Q'

2015-06-10 Thread clemclim (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580212#comment-14580212
 ] 

clemclim edited comment on CB-8621 at 6/10/15 8:23 AM:
---

Yes it works for ios, but for windows phone the problem is still not solved (Q 
instead of q). If you compile from linux or macos the same error happen.

Please patch the problem, because I don't know how to do it ... each time I 
make a phonegap platform add wp8 it re-download the original wrong javascript 
for windows phone... 

It's not that I like windows, but I have to build it on this system Guys... :-/ 
Thanks


was (Author: cliclem):
Yes it works for ios, but for windows phone the problem is still not solved (Q 
instead of q). If you compile from linux or macos the same error happen.

Please patch the problem, because I don't know how to do it ... each time I 
make a phonegap platform add wp8 it re-download the original wrong javascript 
for windows phone... 

It's not that I like windows, but I have to build it on this system Guys... :/ 
Thanks

 Error: Cannot find module 'Q'
 -

 Key: CB-8621
 URL: https://issues.apache.org/jira/browse/CB-8621
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
 Environment: Mac OSX Yosemite 10.10.1
Reporter: Marco
 Fix For: 4.0.0

 Attachments: CB-8621.patch


 After upgrading Cordova-CLI to the last version (4.3.0), when i run: cordova 
 build i get the following error:
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'Q'
 at Function.Module._resolveFilename (module.js:338:15)
 at Function.Module._load (module.js:280:25)
 at Module.require (module.js:364:17)
 at require (module.js:380:17)
 at Object.anonymous 
 (/Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/lib/check_reqs.js:25:13)
 at Module._compile (module.js:456:26)
 at Object.Module._extensions..js (module.js:474:10)
 at Module.load (module.js:356:32)
 at Function.Module._load (module.js:312:12)
 at Module.require (module.js:364:17)
 ERROR building one of the platforms: Error: 
 /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build:
  Command failed with exit code 8
 You may not have the required environment or OS to build this project
 Error: 
 /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build:
  Command failed with exit code 8
 at ChildProcess.whenDone 
 (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
 at ChildProcess.EventEmitter.emit (events.js:98:17)
 at maybeClose (child_process.js:753:16)
 at Process.ChildProcess._handle.onexit (child_process.js:820:5)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-8621) Error: Cannot find module 'Q'

2015-06-10 Thread clemclim (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580212#comment-14580212
 ] 

clemclim commented on CB-8621:
--

Yes it works for ios, but for windows phone the problem is still not solved (Q 
instead of q). If you compile from linux or macos the same error happen.

Please patch the problem, because I don't know how to do it ... each time I 
make a phonegap platform add wp8 it re-download the original wrong javascript 
for windows phone... 

It's not that I like windows, but I have to build it on this system Guys... :/ 
Thanks

 Error: Cannot find module 'Q'
 -

 Key: CB-8621
 URL: https://issues.apache.org/jira/browse/CB-8621
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
 Environment: Mac OSX Yosemite 10.10.1
Reporter: Marco
 Fix For: 4.0.0

 Attachments: CB-8621.patch


 After upgrading Cordova-CLI to the last version (4.3.0), when i run: cordova 
 build i get the following error:
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'Q'
 at Function.Module._resolveFilename (module.js:338:15)
 at Function.Module._load (module.js:280:25)
 at Module.require (module.js:364:17)
 at require (module.js:380:17)
 at Object.anonymous 
 (/Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/lib/check_reqs.js:25:13)
 at Module._compile (module.js:456:26)
 at Object.Module._extensions..js (module.js:474:10)
 at Module.load (module.js:356:32)
 at Function.Module._load (module.js:312:12)
 at Module.require (module.js:364:17)
 ERROR building one of the platforms: Error: 
 /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build:
  Command failed with exit code 8
 You may not have the required environment or OS to build this project
 Error: 
 /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build:
  Command failed with exit code 8
 at ChildProcess.whenDone 
 (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
 at ChildProcess.EventEmitter.emit (events.js:98:17)
 at maybeClose (child_process.js:753:16)
 at Process.ChildProcess._handle.onexit (child_process.js:820:5)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-5578) clean command for CLI

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580252#comment-14580252
 ] 

ASF GitHub Bot commented on CB-5578:


GitHub user vladimir-kotikov opened a pull request:

https://github.com/apache/cordova-docs/pull/293

CB-5578 Documents new hooks introduced by 'clean' command



You can merge this pull request into a Git repository by running:

$ git pull https://github.com/MSOpenTech/cordova-docs CB-5578

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/cordova-docs/pull/293.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #293


commit c6054d96a1d4b6a50a6b5e80d02914f565c79317
Author: Vladimir Kotikov v-vlk...@microsoft.com
Date:   2015-06-10T08:47:20Z

CB-5578 Documents new hooks introduced by 'clean' command




 clean command for CLI
 -

 Key: CB-5578
 URL: https://issues.apache.org/jira/browse/CB-5578
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI
Affects Versions: 3.2.0
Reporter: Orçun Topdağı
Assignee: Vladimir Kotikov
Priority: Minor

  cordova clean (platform)
 Actually I need this feature to workaround this 
 [issue|https://issues.apache.org/jira/browse/CB-5568] for now. However if 
 there is a build command, I believe a clean command is called for, at least I 
 even just run the above command before checking its existence.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-5578) clean command for CLI

2015-06-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-5578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580266#comment-14580266
 ] 

ASF subversion and git services commented on CB-5578:
-

Commit 9fcc4e6ff92ce858735b407107c52d5c6c381295 in cordova-cli's branch 
refs/heads/master from [~vladimir.kotikov]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-cli.git;h=9fcc4e6 ]

CB-5578 Adds `clean` command to cordova-cli.

This closes #216


 clean command for CLI
 -

 Key: CB-5578
 URL: https://issues.apache.org/jira/browse/CB-5578
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI
Affects Versions: 3.2.0
Reporter: Orçun Topdağı
Assignee: Vladimir Kotikov
Priority: Minor

  cordova clean (platform)
 Actually I need this feature to workaround this 
 [issue|https://issues.apache.org/jira/browse/CB-5568] for now. However if 
 there is a build command, I believe a clean command is called for, at least I 
 even just run the above command before checking its existence.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9151) Fix app crash on repeated take picture via camera plugin on Windows Phone 8.1

2015-06-10 Thread Sergey Shakhnazarov (JIRA)
Sergey Shakhnazarov created CB-9151:
---

 Summary: Fix app crash on repeated take picture via camera plugin 
on Windows Phone 8.1
 Key: CB-9151
 URL: https://issues.apache.org/jira/browse/CB-9151
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Camera
 Environment: Windows Phone 8.1, windows platform
Reporter: Sergey Shakhnazarov


Tapping twice on camera preview gives such an error:

Exception is about to be caught by JavaScript library code at line 443, column 
21 in 
ms-appx://io.cordova.myapp9a1f58af41d240d79016f68247e6f82c/www/plugins/cordova-plugin-camera/src/windows/CameraProxy.js

0xc00d36b2 - JavaScript runtime error: The request is invalid in the current 
state.

Started

WinRT information: Started

If there is a handler for this exception, the program may be safely continued.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-8052) Update cordova-lib for webOS support

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580077#comment-14580077
 ] 

ASF GitHub Bot commented on CB-8052:


Github user JayCanuck commented on a diff in the pull request:

https://github.com/apache/cordova-lib/pull/239#discussion_r32090271
  
--- Diff: cordova-lib/src/plugman/platforms/webos.js ---
@@ -0,0 +1,99 @@
+/**
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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.
+*/
+
+/* jshint node:true, bitwise:true, undef:true, trailing:true, 
quotmark:true,
+  indent:4, unused:vars, latedef:nofunc,
+  laxcomma:true, sub:true
+*/
+
+var path = require('path')
+, fs = require('fs')
+, common = require('./common')
+, events = require('../../events')
+, xml_helpers = require(path.join(__dirname, '..', '..', 'util', 
'xml-helpers'))
+;
+
+module.exports = {
+www_dir: function(project_dir) {
+return path.join(project_dir, 'www');
+},
+package_name:function(project_dir) {
+// preferred location if cordova = 3.4
+var preferred_path = path.join(project_dir, 'config.xml');
+var config_path;
+
+if (!fs.existsSync(preferred_path)) {
+// older location
+var old_config_path = 
path.join(module.exports.www_dir(project_dir), 'config.xml');
+if (!fs.existsSync(old_config_path)) {
+// output newer location and fail reading
+config_path = preferred_path;
+events.emit('verbose', 'unable to find '+config_path);
+} else {
+config_path = old_config_path;
+}
+} else {
+config_path = preferred_path;
+}
+var widget_doc = xml_helpers.parseElementtreeSync(config_path);
+return widget_doc._root.attrib['id'];
+},
+'source-file':{
+install:function(obj, plugin_dir, project_dir, plugin_id, options) 
{
+var dest = path.join(obj.targetDir, path.basename(obj.src));
+common.copyFile(plugin_dir, obj.src, project_dir, dest);
--- End diff --

Looks like browser platform uses it as well. Is there some advantage to 
copyNewFile that I'm missing that would make the change worth it?


 Update cordova-lib for webOS support
 

 Key: CB-8052
 URL: https://issues.apache.org/jira/browse/CB-8052
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaLib
Reporter: Jason Robitaille





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9119) ADB install in automation sometimes hangs the emulator

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580085#comment-14580085
 ] 

ASF GitHub Bot commented on CB-9119:


Github user dblotsky commented on a diff in the pull request:

https://github.com/apache/cordova-android/pull/180#discussion_r32090785
  
--- Diff: bin/templates/cordova/lib/emulator.js ---
@@ -298,37 +306,67 @@ module.exports.resolveTarget = function(target) {
  * If no started emulators are found, error out.
  * Returns a promise.
  */
-module.exports.install = function(target, buildResults) {
-return Q().then(function() {
-if (target  typeof target == 'object') {
-return target;
+module.exports.install = function(givenTarget, buildResults) {
+
+var target;
+
+// resolve the target emulator
+return Q().then(function () {
+if (givenTarget  typeof givenTarget == 'object') {
+return givenTarget;
+} else {
+return module.exports.resolveTarget(givenTarget);
 }
-return module.exports.resolveTarget(target);
-}).then(function(resolvedTarget) {
-var apk_path = build.findBestApkForArchitecture(buildResults, 
resolvedTarget.arch);
+
+// set the resolved target
+}).then(function (resolvedTarget) {
+target = resolvedTarget;
+
+// install the app
+}).then(function () {
+
+var apk_path= build.findBestApkForArchitecture(buildResults, 
target.arch);
+var execOptions = {
+timeout:INSTALL_COMMAND_TIMEOUT, // in milliseconds
+killSignal: EXEC_KILL_SIGNAL
+};
+
 console.log('Installing app on emulator...');
 console.log('Using apk: ' + apk_path);
-return exec('adb -s ' + resolvedTarget.target + ' install -r -d ' 
+ apk_path + '', os.tmpdir())
-.then(function(output) {
+
+var retriedInstall = retry.retryPromise(
+NUM_INSTALL_RETRIES,
+exec, 'adb -s ' + target.target + ' install -r -d ' + 
apk_path + '', os.tmpdir(), execOptions
+);
+
+return retriedInstall.then(function (output) {
 if (output.match(/Failure/)) {
 return Q.reject('Failed to install apk to emulator: ' + 
output);
+} else {
+console.log('INSTALL SUCCESS');
 }
-return Q();
-}, function(err) {
+}, function (err) {
 return Q.reject('Failed to install apk to emulator: ' + err);
-}).then(function() {
-//unlock screen
-return exec('adb -s ' + resolvedTarget.target + ' shell input 
keyevent 82', os.tmpdir());
-}).then(function() {
-// launch the application
-console.log('Launching application...');
-var launchName = appinfo.getActivityName();
-var cmd = 'adb -s ' + resolvedTarget.target + ' shell am start 
-W -a android.intent.action.MAIN -n ' + launchName;
-return exec(cmd, os.tmpdir());
-}).then(function(output) {
-console.log('LAUNCH SUCCESS');
-}, function(err) {
-return Q.reject('Failed to launch app on emulator: ' + err);
 });
+
+// unlock screen
+}).then(function () {
+
+console.log('Unlocking screen...');
+return exec('adb -s ' + target.target + ' shell input keyevent 
82', os.tmpdir());
+
+// launch the application
--- End diff --

Don't Repeat Yourself applies to repeated code or logic, not to comments. 
This comment improves readability because you can clearly see what every `then` 
block does by looking only at the comment above it, and it is therefore useful.


 ADB install in automation sometimes hangs the emulator
 --

 Key: CB-9119
 URL: https://issues.apache.org/jira/browse/CB-9119
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: Master
Reporter: Dmitry Blotsky
Assignee: Dmitry Blotsky
Priority: Critical
  Labels: adb, android, hang, hard_to_verify
   Original Estimate: 72h
  Remaining Estimate: 72h

 Sometimes adb install ... hangs indefinitely when running cordova run 
 under medic. Jenkins also sees this. Related links below.
 Android bug: http://code.google.com/p/android/issues/detail?id=10255



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: 

[jira] [Closed] (CB-7962) Add cordova-plugin-media support for browser platform

2015-06-10 Thread Vladimir Kotikov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-7962?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Kotikov closed CB-7962.


 Add cordova-plugin-media support for browser platform
 -

 Key: CB-7962
 URL: https://issues.apache.org/jira/browse/CB-7962
 Project: Apache Cordova
  Issue Type: Sub-task
  Components: Browser
Reporter: Sergey Shakhnazarov
Assignee: Vladimir Kotikov





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Closed] (CB-7963) Add cordova-plugin-media-capture support for browser platform

2015-06-10 Thread Vladimir Kotikov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-7963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Kotikov closed CB-7963.


 Add cordova-plugin-media-capture support for browser platform
 -

 Key: CB-7963
 URL: https://issues.apache.org/jira/browse/CB-7963
 Project: Apache Cordova
  Issue Type: Sub-task
  Components: Browser
Reporter: Sergey Shakhnazarov
Assignee: Vladimir Kotikov





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9119) ADB install in automation sometimes hangs the emulator

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580093#comment-14580093
 ] 

ASF GitHub Bot commented on CB-9119:


Github user dblotsky commented on a diff in the pull request:

https://github.com/apache/cordova-android/pull/180#discussion_r32090933
  
--- Diff: bin/templates/cordova/lib/retry.js ---
@@ -0,0 +1,63 @@
+#!/usr/bin/env node
+
+/*
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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.
+*/
+
+/* jshint node: true */
+
+use strict;
+
+/*
+ * Retry a promise-returning function attemts_left times, propagating its
+ * results on success or throwing its error on a failed final attempt.
+ *
+ * Takes a number of attempts, a promise-returning function, and all its
+ * arguments (as trailing arguments).
+ */
+module.exports.retryPromise = function (attemts_left, promiseFunction) {
+
+// NOTE:
+//  get all trailing arguments, by skipping the first two 
(attemts_left and
+//  promiseFunction) because they shouldn't get passed to 
promiseFunction
+var promiseFunctionArguments = Array.prototype.slice.call(arguments, 
2);
+
+return promiseFunction.apply(undefined, promiseFunctionArguments).then(
+
+// on success pass results through
+function onFulfilled(value) {
+return value;
+},
+
+// on rejection either retry, or throw the error
+function onRejected(error) {
+
+attemts_left -= 1;
+
+if (attemts_left  1) {
+throw error;
+}
+
+console.log(call failed; retrying  + attemts_left +  more 
time(s));
--- End diff --

Added capitals and periods.


 ADB install in automation sometimes hangs the emulator
 --

 Key: CB-9119
 URL: https://issues.apache.org/jira/browse/CB-9119
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: Master
Reporter: Dmitry Blotsky
Assignee: Dmitry Blotsky
Priority: Critical
  Labels: adb, android, hang, hard_to_verify
   Original Estimate: 72h
  Remaining Estimate: 72h

 Sometimes adb install ... hangs indefinitely when running cordova run 
 under medic. Jenkins also sees this. Related links below.
 Android bug: http://code.google.com/p/android/issues/detail?id=10255



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9119) ADB install in automation sometimes hangs the emulator

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580096#comment-14580096
 ] 

ASF GitHub Bot commented on CB-9119:


Github user dblotsky commented on a diff in the pull request:

https://github.com/apache/cordova-android/pull/180#discussion_r32090950
  
--- Diff: bin/templates/cordova/lib/exec.js ---
@@ -19,16 +19,42 @@
under the License.
 */
 
-var child_process = require('child_process'),
-Q   = require('q');
+var child_process = require('child_process');
+var Q = require('q');
+
+// constants
+var DEFAULT_MAX_BUFFER = 1024000;
 
 // Takes a command and optional current working directory.
 // Returns a promise that either resolves with the stdout, or
 // rejects with an error message and the stderr.
-module.exports = function(cmd, opt_cwd) {
+//
+// WARNING:
+// opt_cwd is an artifact of an old design, and must
+// be removed in the future; the correct solution is
+// to pass the options object the same way that
+// child_process.exec expects
+//
+// NOTE:
+//  exec documented here - 
https://nodejs.org/api/child_process.html#child_process_child_process_exec_command_options_callback
+module.exports = function(cmd, opt_cwd, options) {
+
 var d = Q.defer();
+
+if (options === undefined) {
+options = {};
+}
+
+// override cwd to preserve old opt_cwd behavior
+options.cwd = opt_cwd;
+
+// set maxBuffer
+if (options.maxBuffer === undefined) {
--- End diff --

Now using `typeof options.maxBuffer === undefined` instead.


 ADB install in automation sometimes hangs the emulator
 --

 Key: CB-9119
 URL: https://issues.apache.org/jira/browse/CB-9119
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: Master
Reporter: Dmitry Blotsky
Assignee: Dmitry Blotsky
Priority: Critical
  Labels: adb, android, hang, hard_to_verify
   Original Estimate: 72h
  Remaining Estimate: 72h

 Sometimes adb install ... hangs indefinitely when running cordova run 
 under medic. Jenkins also sees this. Related links below.
 Android bug: http://code.google.com/p/android/issues/detail?id=10255



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-9141) Unable to use Gradle behind a proxy

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser updated CB-9141:
---
Priority: Major  (was: Critical)

 Unable to use Gradle behind a proxy
 ---

 Key: CB-9141
 URL: https://issues.apache.org/jira/browse/CB-9141
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CLI
Affects Versions: 4.0.0
 Environment: windows 8.1, Cordova 5.0.0 Node.js 0.12.4, npm 2.10.1, 
Reporter: John Little
Assignee: Joe Bowser

 After being unable to build using gradle (issues with building behind a 
 proxy) I tried to build using ant, the default way with the previous version.
 This doesn't work as the build process fails to create required directories.
 I have given up with version 4.0.x and gon back to 3.7.x 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9147) Adding a platform with a caret version adds the very latest rather than the latest matching version

2015-06-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580733#comment-14580733
 ] 

ASF subversion and git services commented on CB-9147:
-

Commit 024b970b26d3d8b7f9a6b2f0eab2325d7716deef in cordova-lib's branch 
refs/heads/master from [~TimBarham]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=024b970 ]

CB-9147 Adding a platform via caret version adds latest rather than the latest 
matching.

Internally we are using a version of npm that doesn't understand caret 
versions, so it just gets the latest. Missed this previously because when I 
tried this, the latest version *was* the latest matching version.

The same problem also applies to plugins.

Slightly different fix in each case:

For platforms, we already had the latest matching version as a result of our 
call to getLatestMatchingNpmVersion(), so we just use that.

For plugins, in this specific scenario (a caret version) we turn it into a 
standard range using a version of semver that understands caret ranges (so 
'^1.2.3' becomes '=1.2.3 2.0.0') and use that instead.

Also, I noticed that we failed to find the version in config.xml if you added 
it using the new form (cordova-plugin-camera, for example), but it was stored 
in config.xml using the id, so fixed that.


 Adding a platform with a caret version adds the very latest rather than the 
 latest matching version
 ---

 Key: CB-9147
 URL: https://issues.apache.org/jira/browse/CB-9147
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaLib
Affects Versions: 5.0.0
Reporter: Tim Barham
Assignee: Tim Barham

 If you add, say, windows 3.5.0 platform to a project with the save flag:
 {noformat}
 cordova platform add windows@3.5.0 --save
 {noformat}
 We write out {{^3.5.0}} to {{config.xml}}.
 If the platform is removed then re-added, we install {{4.0.0}} instead of the 
 expected {{3.8.2}}.
 This is because internally we are using a version of {{npm}} that doesn't 
 understand caret versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-8431) File Transfer tests crash on Android Lolipop

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580653#comment-14580653
 ] 

ASF GitHub Bot commented on CB-8431:


Github user nikhilkh commented on the pull request:


https://github.com/apache/cordova-plugin-file-transfer/pull/79#issuecomment-110799248
  
Is the fatal exception same as the one you are seeing here? 
https://issues.apache.org/jira/browse/CB-8431


 File Transfer tests crash on Android Lolipop
 

 Key: CB-8431
 URL: https://issues.apache.org/jira/browse/CB-8431
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File Transfer
Affects Versions: 4.0.0
Reporter: Ian Clelland
Assignee: Andrew Grieve

 Mobile Spec crashes during File Transfer tests, with a NullPointerException 
 thrown inside of OkHTTP.
 This is very similar to CB-6378, except that all operations here appear to be 
 happening on the same thread.
 The stack trace I've seen is:
 {code}
 E/AndroidRuntime(16078): FATAL EXCEPTION: pool-1-thread-3
 E/AndroidRuntime(16078): Process: org.apache.mobilespec, PID: 16078
 E/AndroidRuntime(16078): java.lang.NullPointerException: Attempt to read from 
 field 'int com.android.okio.Segment.limit' on a null object reference
 E/AndroidRuntime(16078):  at 
 com.android.okio.OkBuffer.write(OkBuffer.java:574)
 E/AndroidRuntime(16078):  at 
 com.android.okio.OkBuffer.read(OkBuffer.java:610)
 E/AndroidRuntime(16078):  at 
 com.android.okio.RealBufferedSource.read(RealBufferedSource.java:53)
 E/AndroidRuntime(16078):  at 
 com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:442)
 E/AndroidRuntime(16078):  at 
 com.android.okhttp.internal.Util.skipAll(Util.java:227)
 E/AndroidRuntime(16078):  at 
 com.android.okhttp.internal.http.HttpConnection.discard(HttpConnection.java:212)
 E/AndroidRuntime(16078):  at 
 com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.close(HttpConnection.java:464)
 E/AndroidRuntime(16078):  at 
 com.android.okhttp.internal.Util.closeQuietly(Util.java:97)
 E/AndroidRuntime(16078):  at 
 com.android.okhttp.internal.http.HttpEngine.close(HttpEngine.java:433)
 E/AndroidRuntime(16078):  at 
 com.android.okhttp.internal.http.HttpURLConnectionImpl.disconnect(HttpURLConnectionImpl.java:113)
 E/AndroidRuntime(16078):  at 
 org.apache.cordova.filetransfer.FileTransfer$5.run(FileTransfer.java:950)
 E/AndroidRuntime(16078):  at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
 E/AndroidRuntime(16078):  at 
 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
 E/AndroidRuntime(16078):  at java.lang.Thread.run(Thread.java:818)
 E/FileTransfer(16078): 
 {code:3,source:http:\/\/cordova.apache.org\/downloads\/logos_2.zip,target:file:\/\/\/data\/data\/org.apache.mobilespec\/files\/files\/testFile.txt,http_status:200,exception:Attempt
  to read from field 'int com.android.okio.Segment.limit' on a null object 
 reference}
 E/FileTransfer(16078): java.lang.NullPointerException: Attempt to read from 
 field 'int com.android.okio.Segment.limit' on a null object reference
 E/FileTransfer(16078):at 
 com.android.okio.OkBuffer.write(OkBuffer.java:574)
 E/FileTransfer(16078):at 
 com.android.okio.OkBuffer.read(OkBuffer.java:610)
 E/FileTransfer(16078):at 
 com.android.okio.RealBufferedSource.read(RealBufferedSource.java:53)
 E/FileTransfer(16078):at 
 com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.read(HttpConnection.java:442)
 E/FileTransfer(16078):at 
 com.android.okhttp.internal.Util.skipAll(Util.java:227)
 E/FileTransfer(16078):at 
 com.android.okhttp.internal.http.HttpConnection.discard(HttpConnection.java:212)
 E/FileTransfer(16078):at 
 com.android.okhttp.internal.http.HttpConnection$FixedLengthSource.close(HttpConnection.java:464)
 E/FileTransfer(16078):at 
 com.android.okio.RealBufferedSource.close(RealBufferedSource.java:198)
 E/FileTransfer(16078):at 
 com.android.okio.RealBufferedSource$1.close(RealBufferedSource.java:181)
 E/FileTransfer(16078):at 
 java.io.FilterInputStream.close(FilterInputStream.java:64)
 E/FileTransfer(16078):at 
 org.apache.cordova.filetransfer.FileTransfer.safeClose(FileTransfer.java:516)
 E/FileTransfer(16078):at 
 org.apache.cordova.filetransfer.FileTransfer.access$300(FileTransfer.java:69)
 E/FileTransfer(16078):at 
 org.apache.cordova.filetransfer.FileTransfer$4.run(FileTransfer.java:843)
 E/FileTransfer(16078):at 
 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
 E/FileTransfer(16078):at 
 

[jira] [Commented] (CB-9140) Unable to build android 4.0.x when behind a proxy

2015-06-10 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580705#comment-14580705
 ] 

Joe Bowser commented on CB-9140:


It does, but you have to manually update gradle.properties, which is a 
non-trivial task

http://codetutr.com/2013/03/27/configuring-gradle-behind-a-proxy/

 Unable to build android 4.0.x when behind a proxy
 -

 Key: CB-9140
 URL: https://issues.apache.org/jira/browse/CB-9140
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CLI
Affects Versions: 4.0.0
 Environment: windows 8.1, Cordova 5.0.0 Node.js 0.12.4, npm 2.10.1, 
Reporter: John Little

 My development enviroment is behind a proxy. I have npm and git configured to 
 use the proxy. However I have been unable to configure gradle to work, I have 
 created a gradle-wrapper.properties file and set the http.proxyHost and 
 http.proxyPort correctly, with no luck.
 I have even changed the script that produces the gradle build files to add 
 the parameters to the java command line, still with no luck.
 I was able to manualy download the gradle-2.2.1-all.zip and get the buld 
 files to use that file (rather than try to download it). Unfortunatly it then 
 tried to download other maven files.
 The gradle documentation seems to suggest that it should work with a proxy 
 but I had to give up and go back to android 3.7.2 which does build using ant.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-9140) Unable to build android 4.0.x when behind a proxy

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9140?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser reassigned CB-9140:
--

Assignee: Joe Bowser

 Unable to build android 4.0.x when behind a proxy
 -

 Key: CB-9140
 URL: https://issues.apache.org/jira/browse/CB-9140
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CLI
Affects Versions: 4.0.0
 Environment: windows 8.1, Cordova 5.0.0 Node.js 0.12.4, npm 2.10.1, 
Reporter: John Little
Assignee: Joe Bowser

 My development enviroment is behind a proxy. I have npm and git configured to 
 use the proxy. However I have been unable to configure gradle to work, I have 
 created a gradle-wrapper.properties file and set the http.proxyHost and 
 http.proxyPort correctly, with no luck.
 I have even changed the script that produces the gradle build files to add 
 the parameters to the java command line, still with no luck.
 I was able to manualy download the gradle-2.2.1-all.zip and get the buld 
 files to use that file (rather than try to download it). Unfortunatly it then 
 tried to download other maven files.
 The gradle documentation seems to suggest that it should work with a proxy 
 but I had to give up and go back to android 3.7.2 which does build using ant.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-9141) Unable to use Gradle behind a proxy

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser updated CB-9141:
---
Summary: Unable to use Gradle behind a proxy  (was: Unable to build using 
ant)

 Unable to use Gradle behind a proxy
 ---

 Key: CB-9141
 URL: https://issues.apache.org/jira/browse/CB-9141
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CLI
Affects Versions: 4.0.0
 Environment: windows 8.1, Cordova 5.0.0 Node.js 0.12.4, npm 2.10.1, 
Reporter: John Little
Assignee: Joe Bowser

 After being unable to build using gradle (issues with building behind a 
 proxy) I tried to build using ant, the default way with the previous version.
 This doesn't work as the build process fails to create required directories.
 I have given up with version 4.0.x and gon back to 3.7.x 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9135) Crash Apache Cordova App on Android using secondary configuration variable loadurltimeoutvalue

2015-06-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9135?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580697#comment-14580697
 ] 

ASF subversion and git services commented on CB-9135:
-

Commit c1c0a63e5e5a0738d8b1af1a6789e777986a2821 in cordova-android's branch 
refs/heads/3.7.x from [~caoyr]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=c1c0a63 ]

CB-9135 fix the vulnerability bug

This closes 181
https://github.com/apache/cordova-android/pull/181


 Crash Apache Cordova App on Android using secondary configuration variable 
 loadurltimeoutvalue
 

 Key: CB-9135
 URL: https://issues.apache.org/jira/browse/CB-9135
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CordovaLib, mobile-spec
 Environment: Android
Reporter: xianghui

 It can remote exploit Apache Cordova App's secondary configuration variables 
 on Android.
 The details are in the following links:
 1.http://cordova.apache.org/announcements/2015/05/26/android-402.html
 2.http://blog.trendmicro.com/trendlabs-security-intelligence/trend-micro-discovers-apache-vulnerability-that-allows-one-click-modification-of-android-apps/
 However, the fix isn't complete. Using the following adb command, it can 
 still crash the Cordova App.
 
 adb shell am start -n org.apache.mobilespec/.CordovaApp -es 
 loadurltimeoutvalue aaa
 
 The reason is that in CordovaWebView.java's loadUrlIntoView(final String url, 
 boolean recreatePlugins) mehtod, it try to get loadurltimeoutvalue value 
 from Activity's intent and then be parsed int using the following code.
 
 final int loadUrlTimeoutValue = 
 Integer.parseInt(this.getProperty(LoadUrlTimeoutValue, 2));
 
 However, if the value isn't a int type, such as aaa, it will throw 
 java.lang.NumberFormatException, and crash the App.
 The possible solution is to verify the value if it's a int type. If it's a 
 valid int type value, we can use the value, or ignore the value and use the 
 default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9140) Unable to build android 4.0.x when behind a proxy

2015-06-10 Thread John Little (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9140?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580743#comment-14580743
 ] 

John Little commented on CB-9140:
-

I am building on Windows 8.1, I have a .gradle directory in my home directory, 
I also have on in the build directory for my cordova project.
I have tried putting a gradle.properties in both these directories. I have also 
tried putting them in the version specific ones, i.e. .gradle/2.2.1
None if this made any difference.
I then modified the code that creates the gradle wrapper file and added -D 
parameters to the java task thats run, just incase the gradle.properties files 
was being ignored.
Again the proxy was ignored.
Any help/suggestions would be greatfully recieved :D

 Unable to build android 4.0.x when behind a proxy
 -

 Key: CB-9140
 URL: https://issues.apache.org/jira/browse/CB-9140
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CLI
Affects Versions: 4.0.0
 Environment: windows 8.1, Cordova 5.0.0 Node.js 0.12.4, npm 2.10.1, 
Reporter: John Little
Assignee: Joe Bowser

 My development enviroment is behind a proxy. I have npm and git configured to 
 use the proxy. However I have been unable to configure gradle to work, I have 
 created a gradle-wrapper.properties file and set the http.proxyHost and 
 http.proxyPort correctly, with no luck.
 I have even changed the script that produces the gradle build files to add 
 the parameters to the java command line, still with no luck.
 I was able to manualy download the gradle-2.2.1-all.zip and get the buld 
 files to use that file (rather than try to download it). Unfortunatly it then 
 tried to download other maven files.
 The gradle documentation seems to suggest that it should work with a proxy 
 but I had to give up and go back to android 3.7.2 which does build using ant.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9141) Unable to use Gradle behind a proxy

2015-06-10 Thread John Little (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9141?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580701#comment-14580701
 ] 

John Little commented on CB-9141:
-

I created this issue https://issues.apache.org/jira/browse/CB-9140 yesterday.
I tried a number of different configurations to try and get gradle to work 
behinde a firewall, including the one you just sent,
and gave up after spending all morning trying to get it to work. At no time did 
I ever see squid (the proxy being used) report an access to the gradle url.
It would be great if the gradle configuration could work out the proxy settings 
from the node/npm configuration that is working, as thats how cordova gets the 
android platform files :D
Thanks for the reply

 Unable to use Gradle behind a proxy
 ---

 Key: CB-9141
 URL: https://issues.apache.org/jira/browse/CB-9141
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CLI
Affects Versions: 4.0.0
 Environment: windows 8.1, Cordova 5.0.0 Node.js 0.12.4, npm 2.10.1, 
Reporter: John Little
Assignee: Joe Bowser

 After being unable to build using gradle (issues with building behind a 
 proxy) I tried to build using ant, the default way with the previous version.
 This doesn't work as the build process fails to create required directories.
 I have given up with version 4.0.x and gon back to 3.7.x 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-9112) Can't build Cordova v5.0 Android v4

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-9112.

Resolution: Won't Fix

Cordova-Android 4.0 moved to gradle because Google has moved to supporting 
gradle and stopped supporting ANT builds.  It sounds like you're having 
problems with your Android Build Tools, and you should make sure that you have 
the latest build tools installed.

 Can't build Cordova v5.0 Android v4
 ---

 Key: CB-9112
 URL: https://issues.apache.org/jira/browse/CB-9112
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 5.0.1
 Environment: Mac OS X Yosemite
 node v0.12.2
 npm v2.3.0
 Android SDK =v22
Reporter: James Wade

 I am trying to get the basic Cordova v5.0 Android v4.0 project (note: using 
 Cordova v4 builds successfully) to build on Mac OS X Yosemite, but keep 
 getting this error.   I have uninstalled and reinstalled the Android SDK, 
 Cordova, and even Gradle (but I don't think I need it).  I've checked that my 
 Path variable contains the correct paths to ANDROID_SDK/tools and 
 ANDROID_SDK/platform_tools. But when I do the 'cordova build' or 'cordova 
 build android' using java v1.6 (java 1.7 and 1.8 give a different error, 
 below), I always get the same error:
  Could not create an instance of type
  org.gradle.invocation.DefaultGradle_Decorated.
 Further down it says:
  You may not have the required environment or OS to build this project
 What am I missing?
 Here's the full text of what I'm doing:
 my_acct$cordova create build_test com.example.build_test BuildTest
 Creating a new cordova project.
 my_acct$cd build_test
 my_acct$cordova platform add android
 Adding android project...
 Creating Cordova project for the Android platform:
   Path: platforms/android
   Package: com.example.build_test
   Name: BuildTest
   Activity: MainActivity
   Android target: android-22
 Copying template files...
 Android project created with cordova-android@4.0.0
 Discovered plugin cordova-plugin-whitelist in config.xml. Installing to 
 the project
 Fetching plugin cordova-plugin-whitelist@1 via npm
 npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
 npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
 npm http 304 https://registry.npmjs.org/cordova-plugin-whitelist
 Installing cordova-plugin-whitelist for android
 my_acct$cordova build
 Running command: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
  
 ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
 JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Running: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
  cdvBuildDebug -b 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
  -Dorg.gradle.daemon=true
 
 FAILURE: Build failed with an exception.
 
 * What went wrong:
 Could not create an instance of type 
 org.gradle.invocation.DefaultGradle_Decorated.
 
 * Try:
 Run with --stacktrace option to get the stack trace. Run with --info or 
 --debug option to get more log output.
 
 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
 throw e;
   ^
 Error code 1 for command: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
  with args: 
 cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
 ERROR building one of the platforms: Error: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
  Command failed with exit code 8
 You may not have the required environment or OS to build this project
 Error: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
  Command failed with exit code 8
 at ChildProcess.whenDone 
 (/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
 at ChildProcess.emit (events.js:98:17)
 at maybeClose (child_process.js:766:16)
 at Process.ChildProcess._handle.onexit (child_process.js:833:5)
 =
 If I change to use java 1.7 or 1.8, the error changes to:
  A problem occurred configuring root project 'android'.
   Could not resolve all dependencies for configuration ':classpath'.
  Could not resolve com.android.tools.build:gradle:1.0.0+.
   Required by:
   :android:unspecified
 
  

[jira] [Resolved] (CB-9141) Unable to use Gradle behind a proxy

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-9141.

Resolution: Duplicate

We're not reverting to Ant, so closing this out.

 Unable to use Gradle behind a proxy
 ---

 Key: CB-9141
 URL: https://issues.apache.org/jira/browse/CB-9141
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CLI
Affects Versions: 4.0.0
 Environment: windows 8.1, Cordova 5.0.0 Node.js 0.12.4, npm 2.10.1, 
Reporter: John Little
Assignee: Joe Bowser

 After being unable to build using gradle (issues with building behind a 
 proxy) I tried to build using ant, the default way with the previous version.
 This doesn't work as the build process fails to create required directories.
 I have given up with version 4.0.x and gon back to 3.7.x 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Assigned] (CB-9068) FileWriter.write() failure on Lollipop when no ext_sdcard present

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9068?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser reassigned CB-9068:
--

Assignee: Joe Bowser

 FileWriter.write() failure on Lollipop when no ext_sdcard present
 -

 Key: CB-9068
 URL: https://issues.apache.org/jira/browse/CB-9068
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, Plugin File
Affects Versions: 5.0.0
 Environment: Android Emulator (4.4.2, 5.0.1 and 5.1.1)
 Xperia Sola (with 4.4.4)
 Xperia Z3 Compact (5.0.2)
 
 Cordova 5.0.0
 cordova-android 4.0.0
Reporter: Tanase Butcaru
Assignee: Joe Bowser
  Labels: file, fileWriter, writer

 FileWriter write method fails on android lollipop versions when no external 
 sdcard is present.
 Simple test case:
 {code:javascript}
 function fwriteTest(){
   console.log(START FILE WRITE!!);
   console.log(CDV dataDirectory:  + cordova.file.dataDirectory);
   window.resolveLocalFileSystemURL(cordova.file.dataDirectory, 
 resolveLocalFSUrlWin, resolveLocalFSUrlErr);
   }
   function resolveLocalFSUrlErr(err){ console.log(resolve FS ERR: --  + 
 JSON.stringify(err)); }
   function resolveLocalFSUrlWin(dirEntry){
   console.log(resolve FS WIN!!);
   dirEntry.getFile('fileWriter.txt', { create: true, exclusive: 
 false }, getFileWin, getFileErr);
   }
   function getFileErr(err){ console.log(get file ERR: --  + 
 JSON.stringify(err)); }
   function getFileWin(fileEntry){
   console.log(get file WIN!!);
   fileEntry.createWriter(
   function(writer){
   writer.onwrite = function(evt){
   console.log(Write to file WIN!!);
   alert(ALL GOOD!!);
   };
   writer.onerror = function(err){
   console.log(Write to file FAIL: --  + 
 JSON.stringify(err));
   }
   writer.write(sample text goes hereee);
   },
   function(err){
console.log(create writer ERR: --  + 
 JSON.stringify(err)); 
   }
   );
   }
//run test!
   fwriteTest();
 {code}
 AndroidManifest.xml contains the following permission, so it's all good here:
 {code:xml}uses-permission 
 android:name=android.permission.WRITE_EXTERNAL_STORAGE /{code}
 I have two android devices, different android versions (4.4.4 and 5.0.2) and 
 I have 3 android emulators with android 4.4.2, 5.0.1 and 5.1.1.
 I tested all environments with and without ext_sdcard (for emulators do not 
 enter Size for Sd card option) and here are my results:
 {noformat}
 Android 4.4.4 with  without extSD (XPERIA Sola)
 ==
 LEVEL | TAG  |   TEXT
 ===
 I | chromium | [INFO:CONSOLE(228)] START FILE WRITE!!, source: 
 ...
 
 I | chromium | [INFO:CONSOLE(229)] CDV dataDirectory: 
 file:///data/data/cdv.filewriter.issue/files/, source: ...
 
 W | AssetFilesystem  | Asset manifest not found. Recursive copies and 
 directory listing will be slow.
 
 I | chromium | [INFO:CONSOLE(236)] resolve FS WIN!!, source: 
 ...
 
 I | chromium | [INFO:CONSOLE(243)] get file WIN!!, source: ...
 
 D | TEST | cdvfile://localhost/files/fileWriter.txt: 23
 
 I | chromium | [INFO:CONSOLE(248)] Write to file WIN!!, source: 
 ...
 ANDROID 4.4.2 without sdcard / with sdcard (EMULATOR)
 ==
  same output as XPERIA Sola 
 ANDROID 5.0.2 without extSD (XPERIA Z3 Compact)
 ===
 LEVEL | TAG  |   TEXT
 ===
 I | chromium | [INFO:CONSOLE(228)] START FILE WRITE!!, source: 
 ...
 ---
 I | chromium | [INFO:CONSOLE(229)] CDV dataDirectory: 
 file:///data/data/cdv.filewriter.issue/files/, source: ...
 ---
 W | AssetFilesystem  | Asset manifest not found. Recursive copies and 
 directory listing will be slow.
 ---
 I | chromium | [INFO:CONSOLE(236)] resolve FS WIN!!, source: 
 ...
 ---
 I | chromium | [INFO:CONSOLE(243)] get file WIN!!, source: ...
 

[jira] [Resolved] (CB-9123) Cordova App freezes after picking a file via filechoosing intent

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9123?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-9123.

Resolution: Duplicate

Duplicate of CB-9115

 Cordova App freezes after picking a file via filechoosing intent
 

 Key: CB-9123
 URL: https://issues.apache.org/jira/browse/CB-9123
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 4.3.0
 Environment: Device: Samsung S3 mini
 Platform: Android 4.1.2
 File Explorer: Cheetah File Manager 2.3.3
Reporter: Markus Kniep

 Cordova App freezes after picking a file via filechoosing intent using the 
 Cheetah File Manager 2.3.3. When using a different device or a different 
 filemanager the Cordova App continues as espected. It seems like the 
 combination of S3 Mini and the Cheetah File Manager 2.3.3 cause this issue.
 The intent: 
 public void chooseFile(CallbackContext callbackContext) {
 // type and title should be configurable
 Intent intent = new Intent(Intent.ACTION_GET_CONTENT);
 intent.setType(*/*);
 intent.addCategory(Intent.CATEGORY_OPENABLE);
 intent.putExtra(Intent.EXTRA_LOCAL_ONLY, true);
 Intent chooser = Intent.createChooser(intent, Select File);
 cordova.startActivityForResult(this, chooser, PICK_FILE_REQUEST);
 PluginResult pluginResult = new 
 PluginResult(PluginResult.Status.NO_RESULT);
 pluginResult.setKeepCallback(true);
 callback = callbackContext;
 callbackContext.sendPluginResult(pluginResult);
 }
 Then, a file explorer can choose a file and accept the choice, but the public 
 void onActivityResult(int requestCode, int resultCode, Intent data) {...} 
 will not be called. 
 The app stucks with following stacktrace:
 06-02 17:47:55.153 21318-21318/de.EXAMPLE.EXAMPLE I/CordovaActivity﹕ Apache 
 Cordova native platform version 3.6.4 is starting 
 06-02 17:47:55.153 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ 
 CordovaActivity.onCreate() 
 06-02 17:47:55.163 21318-21318/de.EXAMPLE.EXAMPLE I/CordovaLog﹕ Changing log 
 level to DEBUG(3) 
 06-02 17:47:55.163 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ 
 CordovaActivity.init() 
 06-02 17:47:55.173 21318-21318/de.EXAMPLE.EXAMPLE I/webclipboard﹕ 
 clipservice: android.sec.clipboard.ClipboardExManager@41f73620 
 06-02 17:47:55.203 21318-21343/de.EXAMPLE.EXAMPLE V/webkit﹕ BrowserFrame 
 constructor: this=Handler (android.webkit.BrowserFrame) {41f73678} 
 06-02 17:47:55.223 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaWebView﹕ 
 CordovaWebView is running on device made by: samsung 
 06-02 17:47:55.233 21318-21318/de.EXAMPLE.EXAMPLE I/CordovaWebView﹕ Disabled 
 addJavascriptInterface() bridge since Android version is old. 
 06-02 17:47:55.233 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ 
 CordovaActivity.createViews() 
 06-02 17:47:55.243 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaWebView﹕  
 loadUrl(file:///android_asset/www/index.html) 
 06-02 17:47:55.243 21318-21318/de.EXAMPLE.EXAMPLE D/PluginManager﹕ init() 
 06-02 17:47:55.253 21318-21319/de.EXAMPLE.EXAMPLE D/dalvikvm﹕ GC_CONCURRENT 
 freed 126K, 16% free 9992K/11847K, paused 13ms+6ms, total 73ms 
 06-02 17:47:55.253 21318-21324/de.EXAMPLE.EXAMPLE D/AbsListView﹕ 
 [unregisterDoubleTapMotionListener] 
 06-02 17:47:55.253 21318-21324/de.EXAMPLE.EXAMPLE I/MotionRecognitionManager﹕ 
 .unregisterListener : / listener count = 0-0, ubvf 
 9budiwrd5ordgfl5BakTrklMrfo$,@,*e(c((8 
 06-02 17:47:55.253 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaWebView﹕  
 loadUrlNow() 
 06-02 17:47:55.253 21318-21318/de.EXAMPLE.EXAMPLE D/WebView﹕ loadUrlImpl: 
 called 
 06-02 17:47:55.253 21318-21343/de.EXAMPLE.EXAMPLE D/webcore﹕ CORE loadUrl: 
 called 
 06-02 17:47:55.253 21318-21343/de.EXAMPLE.EXAMPLE D/webkit﹕ Firewall not null 
 06-02 17:47:55.263 21318-21343/de.EXAMPLE.EXAMPLE D/webkit﹕ euler: 
 isUrlBlocked = false 
 06-02 17:47:55.263 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ Incoming 
 Result 
 06-02 17:47:55.263 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ Request 
 code = 1 
 06-02 17:47:55.263 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ Resuming 
 the App 
 06-02 17:47:55.273 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaWebViewClient﹕ 
 onPageStarted(file:///android_asset/www/index.html) 
 06-02 17:47:55.273 21318-21318/de.EXAMPLE.EXAMPLE D/CordovaActivity﹕ 
 onMessage(onPageStarted,file:///android_asset/www/index.html) 
 06-02 17:47:55.283 21318-21318/de.EXAMPLE.EXAMPLE D/SoftKeyboardDetect﹕ 
 Ignore this event 
 06-02 17:47:55.313 21318-21318/de.EXAMPLE.EXAMPLE D/SoftKeyboardDetect﹕ 
 Ignore this event 
 06-02 17:47:55.313 21318-21318/de.EXAMPLE.EXAMPLE D/WebView﹕ onSizeChanged - 
 w:480 h:762 
 06-02 17:47:55.343 21318-21318/de.EXAMPLE.EXAMPLE D/SoftKeyboardDetect﹕ 
 Ignore this event 
 06-02 

[jira] [Assigned] (CB-9115) Lollipop onPermissionRequest denies everything

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9115?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser reassigned CB-9115:
--

Assignee: Joe Bowser

 Lollipop onPermissionRequest denies everything
 --

 Key: CB-9115
 URL: https://issues.apache.org/jira/browse/CB-9115
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: Master
 Environment: Android L
Reporter: Volker Braun
Assignee: Joe Bowser

 WebChromeClient.onPermissionRequest is not overridden, so getUserMedia 
 permission requests are denied by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9147) Adding a platform with a caret version adds the very latest rather than the latest matching version

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580734#comment-14580734
 ] 

ASF GitHub Bot commented on CB-9147:


Github user asfgit closed the pull request at:

https://github.com/apache/cordova-lib/pull/244


 Adding a platform with a caret version adds the very latest rather than the 
 latest matching version
 ---

 Key: CB-9147
 URL: https://issues.apache.org/jira/browse/CB-9147
 Project: Apache Cordova
  Issue Type: Bug
  Components: CordovaLib
Affects Versions: 5.0.0
Reporter: Tim Barham
Assignee: Tim Barham

 If you add, say, windows 3.5.0 platform to a project with the save flag:
 {noformat}
 cordova platform add windows@3.5.0 --save
 {noformat}
 We write out {{^3.5.0}} to {{config.xml}}.
 If the platform is removed then re-added, we install {{4.0.0}} instead of the 
 expected {{3.8.2}}.
 This is because internally we are using a version of {{npm}} that doesn't 
 understand caret versions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-8430) Library, which is dependency of another library, not recognized in cordova run android

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8430?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-8430.

Resolution: Incomplete

After leaving this issue for a few months and looking at it again, I have no 
idea what exactly is going on.  Can you please provide some code so that we can 
see how this is failing? Also, is this currently a problem with Android 4.0.x? 

 Library, which is dependency of another library, not recognized in cordova 
 run android
 

 Key: CB-8430
 URL: https://issues.apache.org/jira/browse/CB-8430
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CLI
Affects Versions: 4.0.0, 4.1.3
 Environment: Macbook
Reporter: Sid Ferreira
Assignee: Joe Bowser

 Im creating a plugin which will need a library (fullCamera) which uses 
 another library (ecoGallery) If I run my demo project on the command line 
 cordova run android, the second gallery isn't recognized (package 
 us.feras.ecogallery does not exist). But if I run on Eclipse, the project 
 works as it should.
 Does anyone ever faced something like this? Any suggestion?
 The ecoGallery library is inside the fullCamera library, so, the app's 
 project.properties requires fullCamera and fullCamera's project.properties 
 requires ecoGallery.
 ---
 My CLI is 4.2.0
 http://stackoverflow.com/questions/28213846/library-which-is-depdendency-of-another-library-not-recognized-in-cordova-run?noredirect=1#comment44989082_28213846



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9143) Signing an app need including in the documentation

2015-06-10 Thread Nikhil Khandelwal (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580666#comment-14580666
 ] 

Nikhil Khandelwal commented on CB-9143:
---

It already does - please look at 'Signing the apps': 
http://cordova.apache.org/docs/en/5.0.0/guide_platforms_android_tools.md.html#Android%20Shell%20Tool%20Guide
http://cordova.apache.org/docs/en/edge/guide_platforms_win8_packaging.md.html#Windows%20Packaging
http://cordova.apache.org/docs/en/edge/guide_platforms_ios_tools.md.html#iOS%20Shell%20Tool%20Guide

There is probably some work to make it more discoverable.




 Signing an app need including in the documentation
 --

 Key: CB-9143
 URL: https://issues.apache.org/jira/browse/CB-9143
 Project: Apache Cordova
  Issue Type: Wish
  Components: Docs
Affects Versions: 5.0.0
 Environment: http://cordova.apache.org/docs/en/5.0.0/
Reporter: Ben Jones
  Labels: Docs, Sign

 The documentation for 5.0.0 needs to include instructions for signing and 
 building release apps.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-8621) Error: Cannot find module 'Q'

2015-06-10 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580711#comment-14580711
 ] 

Shazron Abdullah commented on CB-8621:
--

Please file an issue for Windows, this issue is resolved for iOS.

 Error: Cannot find module 'Q'
 -

 Key: CB-8621
 URL: https://issues.apache.org/jira/browse/CB-8621
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
 Environment: Mac OSX Yosemite 10.10.1
Reporter: Marco
 Fix For: 4.0.0

 Attachments: CB-8621.patch


 After upgrading Cordova-CLI to the last version (4.3.0), when i run: cordova 
 build i get the following error:
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'Q'
 at Function.Module._resolveFilename (module.js:338:15)
 at Function.Module._load (module.js:280:25)
 at Module.require (module.js:364:17)
 at require (module.js:380:17)
 at Object.anonymous 
 (/Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/lib/check_reqs.js:25:13)
 at Module._compile (module.js:456:26)
 at Object.Module._extensions..js (module.js:474:10)
 at Module.load (module.js:356:32)
 at Function.Module._load (module.js:312:12)
 at Module.require (module.js:364:17)
 ERROR building one of the platforms: Error: 
 /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build:
  Command failed with exit code 8
 You may not have the required environment or OS to build this project
 Error: 
 /Volumes/CaseSensitive/ios_projects/_Tests/testGruntCordova/testGruntCordova/platforms/ios/cordova/build:
  Command failed with exit code 8
 at ChildProcess.whenDone 
 (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
 at ChildProcess.EventEmitter.emit (events.js:98:17)
 at maybeClose (child_process.js:753:16)
 at Process.ChildProcess._handle.onexit (child_process.js:820:5)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-5694) location.replace does not behave as expected

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-5694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-5694.

Resolution: Won't Fix

As illustrated by ~iclelland, this is a browser issue, so this can be closed as 
Won't Fix, since this can be worked around 

 location.replace does not behave as expected
 

 Key: CB-5694
 URL: https://issues.apache.org/jira/browse/CB-5694
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 3.1.0, 3.2.0, 3.3.0
 Environment: Tested on Android 4.1.2 Sony Xperia T
 Android 4.2.2 Samsung Galaxy S4
Reporter: Clark Pan
Assignee: Joe Bowser
Priority: Minor

 Using location.replace should replace the current page with the specified 
 page. This is not the case when using hash values.
 Steps to reproduce:
 1. Create new cordova project
 2. Add android
 3. Run code similar to this after device ready
 {code:javascript}
 window.location.hash = '#foo';
 expect(window.location.hash).toBe('#foo');
 window.location.replace('#bar');
 expect(window.location.hash).toBe('#bar');
 window.location.hash = '#foobar';
 expect(window.location.hash).toBe('#foobar');
 window.history.back();
 setTimeout(function(){
 expect(window.location.hash).toBe('#bar');
 }, 0);
 {code}
 Expected results:
 All the expectations to be true
 Actual results:
 the last hash value will be '#foo'
 Workaround:
 One could shim location and history and provide their own implementation of 
 history state.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-8662) Latest release of Cordova breaks http via proxy

2015-06-10 Thread John Little (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8662?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

John Little updated CB-8662:

  Environment: 
Windows
Node.js 0.12.0
npm 2.5.1
Cordova 4.3.0
Cordova 5.0.0

  was:
Windows
Node.js 0.12.0
npm 2.5.1
Cordova 4.3.0

Affects Version/s: 4.3.0
   5.0.0

 Latest release of Cordova breaks http via proxy
 ---

 Key: CB-8662
 URL: https://issues.apache.org/jira/browse/CB-8662
 Project: Apache Cordova
  Issue Type: Bug
  Components: CLI
Affects Versions: 5.0.0, 4.3.0
 Environment: Windows
 Node.js 0.12.0
 npm 2.5.1
 Cordova 4.3.0
 Cordova 5.0.0
Reporter: John Little

 I work behind a squid firewall and need the HTTP_PROXY settings in the npm 
 config to work.
 After upgrading cordova to version 4.3.0 any package add's or upgrades using 
 cordova would fail with the following error :-
   TypeError: Request path contains unescaped characters.
 After a bit of searching I found this thread which sounded like my problem :-
https://github.com/npm/npm/issues/4569
 I followed the instructions and downloaded the latest tunnel-agent and copied 
 the files over the ones in my nodejs install directory.
 It seems that the new cordova package provides an updated request module 
 which is not compatible with the tunnel-agent.
 After this manual upgrade every thing works ok.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9152) XHR calls in npm registry search can be optimized

2015-06-10 Thread Murat Sutunc (JIRA)
Murat Sutunc created CB-9152:


 Summary: XHR calls in npm registry search can be optimized
 Key: CB-9152
 URL: https://issues.apache.org/jira/browse/CB-9152
 Project: Apache Cordova
  Issue Type: Bug
  Components: Registry Web
Reporter: Murat Sutunc


Currently we're doing two xhr calls when getting list of plugins. The first 
call is needed to get number of plugins available. Second one gets the rest of 
the plugins. 

An idea is to increase the number of first XHR call to 200 (or any number tbh). 
And in case we still have more plugins, do the second call



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9154) Registry search queries should be lowercased

2015-06-10 Thread Murat Sutunc (JIRA)
Murat Sutunc created CB-9154:


 Summary: Registry search queries should be lowercased
 Key: CB-9154
 URL: https://issues.apache.org/jira/browse/CB-9154
 Project: Apache Cordova
  Issue Type: Bug
  Components: Registry Web
Reporter: Murat Sutunc


Currently we allow both uppercase and lowercase characters when searching for 
plugins. We should by default lowercase all the package names like npm. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9155) Plugin remove does not remove plugin dependencies from fetch.json

2015-06-10 Thread Karen Tran (JIRA)
Karen Tran created CB-9155:
--

 Summary: Plugin remove does not remove plugin dependencies from 
fetch.json
 Key: CB-9155
 URL: https://issues.apache.org/jira/browse/CB-9155
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugins
Affects Versions: Master
Reporter: Karen Tran
Priority: Minor
 Fix For: Master


Plugin A has a dependency on Plugin B.

If I add Plugin A to my project, it also adds Plugin B. 
Then when I remove Plugin A, it removes Plugin B, 
but Plugin B does not get removed from fetch.json. 

This isn't a huge issue, but it seems like it should be deleted from fetch.json 
if the plugin isn't there. 




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-5526) Keycodes not getting identified and throws error on Android KitKat

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-5526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-5526.

Resolution: Won't Fix

On second thought, I'm going to close this because it's fixed in Lollipop and 
that's all the Chrome team cares about.  If you need this fixed on 4.4, run 
Crosswalk.

 Keycodes not getting identified and throws error on Android KitKat
 --

 Key: CB-5526
 URL: https://issues.apache.org/jira/browse/CB-5526
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 2.0.0
 Environment: Heres what my app is running on:
  Cordova - 2.0.0
  Jquery Mobile - 1.0
  Android - 4.4 (Kit kat)
  Device - Nexus 5
 I have created a sample with Cordova  3.1.0 and issue is still there.
Reporter: Deep Singh
Assignee: Joe Bowser
  Labels: patch
 Fix For: 2.0.0

   Original Estimate: 672h
  Remaining Estimate: 672h

 Hi There -
 I got Google Nexus 5 phone today and tried to test my app on it. Most of the 
 parts work fine but I get following error very frequently. And few parts are 
 not working at all. Any idea what this error means? I searched internet but 
 only found that Google has changed webkit to chromium. Can you provide more 
 details on it or any solution? 
 I have been talking phonegap (cordova) support and they confirmed it is an 
 issue and I have to log defect here.
 11-21 14:49:39.256: E/chromium(5721): 
 [ERROR:aw_autofill_manager_delegate.cc(144)] Not implemented reached in 
 virtual void 
 android_webview::AwAutofillManagerDelegate::UpdateAutofillPopupDataListValues(const
  std::vector , const std::vector )
 I have a custom method created by me for converting user entered values to 
 currency format. And the above problem is happening all the time when I press 
 delete button from keypad.
 Here is the code:
 function CurrencyFormatter(object, e, maxLength)
  { try { //alert(e.keyCode); var val = $.trim(object.value); var len = 
 val.length + 1; var char = String.fromCharCode(e.keyCode);
  var pattern = new RegExp(/^[0-9]+$/);
 //console.log(char:  + char);
 //console.log(pattern.test(char));
 //console.log(pattern.test(new String(char)));
 if(len = maxLength  pattern.test(char))
 {   
 //console.log(val);
 if(val == '0'){
 if (val.length  0  val.length  11)
 val = val + char;
 }
 else
 if (val.length  11)
 val = val + char;
 object.value = formatCurrency(val, add);
 }
 else if(e.keyCode == 8)
 {   
 //var numBox = document.getElementById('numBox');
 if(val.length  0){
 //pennies = pennies.substring(0, pennies.length - 1);
 object.value = formatCurrency(val, del);
 }   
 }
 e.preventDefault();
 return false;
 }
 catch (ex) 
 {
 console.log(ex);
 }
 }
 function formatCurrency(amount, type)
  { var i = parseFloat(amount); var i2; //console.log(1:  + i); if(isNaN(i)) 
 { i = 0.00; }
 if(type == add)
 {
 i = Math.round(i * 1000);
 //console.log(1.5:  + i); 
 i = i / 100;
 //console.log(3:  + i);
 }
 else if(type == del)
 {
 i = parseInt(i * 100);
 //console.log(2:  + i);
 sub = new String(i);
 //console.log(sub1:  + sub);
 sub = sub.substring(0, sub.length - 1) ;
 sub = sub == ? 0:sub;
 //console.log(sub2:  + sub);
 i = parseFloat(sub);
 //console.log(del:  + i);
 i = i / 100;
 //console.log(3:  + i);
 }
 s = new String(i);
 if(s.indexOf('.')  0) { s += '.00'; }
 if(s.indexOf('.') == (s.length - 2)) { s += '0'; }
 //console.log(4:  + s);
 return s;
 }
 The crash errors will not be on phone screen.
 The sample I have provided should work to enter just numbers and format it to 
 currency. No special characters should be allowed.
 If you can enter special characters then the issue is there.
 Heres what my app is running on:
  Cordova - 2.0.0
  Jquery Mobile - 1.0
  Android - 4.4 (Kit kat)
  Device - Nexus 5
 Will be waiting for your reply on this as we can't certify our app on Android 
 4.4
 -Deep



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9153) Supported platform tags look bad when width is small

2015-06-10 Thread Murat Sutunc (JIRA)
Murat Sutunc created CB-9153:


 Summary: Supported platform tags look bad when width is small
 Key: CB-9153
 URL: https://issues.apache.org/jira/browse/CB-9153
 Project: Apache Cordova
  Issue Type: Bug
  Components: Registry Web
Reporter: Murat Sutunc


Supported platform tags on plugin cards look ugly with small width. This 
impacts mobile browsers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Reopened] (CB-8197) Switch to nodejs for ios platform scripts

2015-06-10 Thread Vladimir Kotikov (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8197?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vladimir Kotikov reopened CB-8197:
--

 Switch to nodejs for ios platform scripts
 -

 Key: CB-8197
 URL: https://issues.apache.org/jira/browse/CB-8197
 Project: Apache Cordova
  Issue Type: Improvement
  Components: iOS
Reporter: Vladimir Kotikov
 Fix For: 3.8.0


 Currently platform tooling for ios is based on bash scripts and to improve 
 maintainability of such scripts it would be useful to port them to NodeJS.
 Part of this work is already done for create/update scripts in 
 https://issues.apache.org/jira/browse/CB-5706 but platform scripts placed in 
 cordova folder of platform is still being unported.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-9087) Tools Release May 27, 2015

2015-06-10 Thread Steve Gill (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Gill resolved CB-9087.

Resolution: Fixed

 Tools Release May 27, 2015
 --

 Key: CB-9087
 URL: https://issues.apache.org/jira/browse/CB-9087
 Project: Apache Cordova
  Issue Type: Task
  Components: CLI, CordovaJS, CordovaLib, Plugman
Reporter: Steve Gill
Assignee: Steve Gill

 Following steps at 
 https://github.com/apache/cordova-coho/blob/master/docs/tools-release-process.md;



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-9037) add a transform for plugins that use cordova.define

2015-06-10 Thread Steve Gill (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9037?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Gill resolved CB-9037.

Resolution: Won't Fix

Plugin authors shouldn't have define in their plugins. Should update them 
instead. 

 add a transform for plugins that use cordova.define
 ---

 Key: CB-9037
 URL: https://issues.apache.org/jira/browse/CB-9037
 Project: Apache Cordova
  Issue Type: Sub-task
  Components: CordovaJS
Affects Versions: Master
Reporter: Steve Gill
Assignee: Steve Gill

 Reported by [~dpolivy]
 cordova.define() doesn't seem to be defined in the browserify model. Is this 
 a legacy plugin definition approach? I couldn't find any documentation about 
 it, but I don't see it being used in any of the current Apache plugins. I'm 
 running into it with the barcodescanner plugin 
 (https://github.com/wildabeast/BarcodeScanner/blob/master/www/barcodescanner.js#L132);
  commenting it out seems to work fine. Does this need to be translated in the 
 browserify code?
 We should see if we can solve this when we run our transforms 
 https://github.com/apache/cordova-js/blob/master/tasks/lib/require-tr.js



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9112) Can't build Cordova v5.0 Android v4

2015-06-10 Thread James Wade (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580810#comment-14580810
 ] 

James Wade commented on CB-9112:


I'm using :
Android SDK Tools: v24.3.1
Android SDK Platform Tools: v22
Android SDK Build Tools: v22.0.1
Android SDK Platform: API 22 rev 2
What about the node version: I'm using v0.12.4 with npm v2.10.1, but when I run 
the command 'sudo npm install -g cordova' it says it wants node 0.10.x. Could 
that really be an issue?
Jim-Wade:work jimwade$sudo npm install -g cordova
npm WARN engine cordova-js@4.0.0: wanted:
{node:~0.10.x}
(current:
{node:0.12.4,npm:2.10.1}
)
npm WARN engine npm@1.3.4: wanted:
{node:=0.6,npm:1}
(current:
{node:0.12.4,npm:2.10.1}
)
npm WARN engine xmlbuilder@2.2.1: wanted:
{node:0.8.x || 0.10.x}
(current:
{node:0.12.4,npm:2.10.1}
)
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but 
bundled package wasn't found in unpacked tree

 Can't build Cordova v5.0 Android v4
 ---

 Key: CB-9112
 URL: https://issues.apache.org/jira/browse/CB-9112
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 5.0.1
 Environment: Mac OS X Yosemite
 node v0.12.2
 npm v2.3.0
 Android SDK =v22
Reporter: James Wade

 I am trying to get the basic Cordova v5.0 Android v4.0 project (note: using 
 Cordova v4 builds successfully) to build on Mac OS X Yosemite, but keep 
 getting this error.   I have uninstalled and reinstalled the Android SDK, 
 Cordova, and even Gradle (but I don't think I need it).  I've checked that my 
 Path variable contains the correct paths to ANDROID_SDK/tools and 
 ANDROID_SDK/platform_tools. But when I do the 'cordova build' or 'cordova 
 build android' using java v1.6 (java 1.7 and 1.8 give a different error, 
 below), I always get the same error:
  Could not create an instance of type
  org.gradle.invocation.DefaultGradle_Decorated.
 Further down it says:
  You may not have the required environment or OS to build this project
 What am I missing?
 Here's the full text of what I'm doing:
 my_acct$cordova create build_test com.example.build_test BuildTest
 Creating a new cordova project.
 my_acct$cd build_test
 my_acct$cordova platform add android
 Adding android project...
 Creating Cordova project for the Android platform:
   Path: platforms/android
   Package: com.example.build_test
   Name: BuildTest
   Activity: MainActivity
   Android target: android-22
 Copying template files...
 Android project created with cordova-android@4.0.0
 Discovered plugin cordova-plugin-whitelist in config.xml. Installing to 
 the project
 Fetching plugin cordova-plugin-whitelist@1 via npm
 npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
 npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
 npm http 304 https://registry.npmjs.org/cordova-plugin-whitelist
 Installing cordova-plugin-whitelist for android
 my_acct$cordova build
 Running command: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
  
 ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
 JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Running: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
  cdvBuildDebug -b 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
  -Dorg.gradle.daemon=true
 
 FAILURE: Build failed with an exception.
 
 * What went wrong:
 Could not create an instance of type 
 org.gradle.invocation.DefaultGradle_Decorated.
 
 * Try:
 Run with --stacktrace option to get the stack trace. Run with --info or 
 --debug option to get more log output.
 
 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
 throw e;
   ^
 Error code 1 for command: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
  with args: 
 cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
 ERROR building one of the platforms: Error: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
  Command failed with exit code 8
 You may not have the required environment or OS to build this project
 Error: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
  Command failed with exit code 8
 at ChildProcess.whenDone 
 (/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
 at ChildProcess.emit 

[jira] [Issue Comment Deleted] (CB-9112) Can't build Cordova v5.0 Android v4

2015-06-10 Thread James Wade (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-9112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Wade updated CB-9112:
---
Comment: was deleted

(was: I'm using :
Android SDK Tools:   v24.3.1
Android SDK Platform Tools: v22
Android SDK Build Tools:  v22.0.1
Android SDK Platform:  API 22 rev 2

What about the node version:  I'm using v0.12.4 with npm v2.10.1, but when I 
run the command 'sudo npm install -g cordova'  it says it wants node 0.10.x.  
Could that really be an issue?

Jim-Wade:work jimwade$sudo npm install -g cordova
npm WARN engine cordova-js@4.0.0: wanted: {node:~0.10.x} (current: 
{node:0.12.4,npm:2.10.1})
npm WARN engine npm@1.3.4: wanted: {node:=0.6,npm:1} (current: 
{node:0.12.4,npm:2.10.1})
npm WARN engine xmlbuilder@2.2.1: wanted: {node:0.8.x || 0.10.x} (current: 
{node:0.12.4,npm:2.10.1})
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but 
bundled package wasn't found in unpacked tree
)

 Can't build Cordova v5.0 Android v4
 ---

 Key: CB-9112
 URL: https://issues.apache.org/jira/browse/CB-9112
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 5.0.1
 Environment: Mac OS X Yosemite
 node v0.12.2
 npm v2.3.0
 Android SDK =v22
Reporter: James Wade

 I am trying to get the basic Cordova v5.0 Android v4.0 project (note: using 
 Cordova v4 builds successfully) to build on Mac OS X Yosemite, but keep 
 getting this error.   I have uninstalled and reinstalled the Android SDK, 
 Cordova, and even Gradle (but I don't think I need it).  I've checked that my 
 Path variable contains the correct paths to ANDROID_SDK/tools and 
 ANDROID_SDK/platform_tools. But when I do the 'cordova build' or 'cordova 
 build android' using java v1.6 (java 1.7 and 1.8 give a different error, 
 below), I always get the same error:
  Could not create an instance of type
  org.gradle.invocation.DefaultGradle_Decorated.
 Further down it says:
  You may not have the required environment or OS to build this project
 What am I missing?
 Here's the full text of what I'm doing:
 my_acct$cordova create build_test com.example.build_test BuildTest
 Creating a new cordova project.
 my_acct$cd build_test
 my_acct$cordova platform add android
 Adding android project...
 Creating Cordova project for the Android platform:
   Path: platforms/android
   Package: com.example.build_test
   Name: BuildTest
   Activity: MainActivity
   Android target: android-22
 Copying template files...
 Android project created with cordova-android@4.0.0
 Discovered plugin cordova-plugin-whitelist in config.xml. Installing to 
 the project
 Fetching plugin cordova-plugin-whitelist@1 via npm
 npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
 npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
 npm http 304 https://registry.npmjs.org/cordova-plugin-whitelist
 Installing cordova-plugin-whitelist for android
 my_acct$cordova build
 Running command: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
  
 ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
 JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Running: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
  cdvBuildDebug -b 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
  -Dorg.gradle.daemon=true
 
 FAILURE: Build failed with an exception.
 
 * What went wrong:
 Could not create an instance of type 
 org.gradle.invocation.DefaultGradle_Decorated.
 
 * Try:
 Run with --stacktrace option to get the stack trace. Run with --info or 
 --debug option to get more log output.
 
 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
 throw e;
   ^
 Error code 1 for command: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
  with args: 
 cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
 ERROR building one of the platforms: Error: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
  Command failed with exit code 8
 You may not have the required environment or OS to build this project
 Error: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
  Command failed with exit code 8
 at ChildProcess.whenDone 
 (/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
 at ChildProcess.emit 

[jira] [Commented] (CB-9112) Can't build Cordova v5.0 Android v4

2015-06-10 Thread James Wade (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9112?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580799#comment-14580799
 ] 

James Wade commented on CB-9112:


I'm using :
Android SDK Tools:   v24.3.1
Android SDK Platform Tools: v22
Android SDK Build Tools:  v22.0.1
Android SDK Platform:  API 22 rev 2

What about the node version:  I'm using v0.12.4 with npm v2.10.1, but when I 
run the command 'sudo npm install -g cordova'  it says it wants node 0.10.x.  
Could that really be an issue?

Jim-Wade:work jimwade$sudo npm install -g cordova
npm WARN engine cordova-js@4.0.0: wanted: {node:~0.10.x} (current: 
{node:0.12.4,npm:2.10.1})
npm WARN engine npm@1.3.4: wanted: {node:=0.6,npm:1} (current: 
{node:0.12.4,npm:2.10.1})
npm WARN engine xmlbuilder@2.2.1: wanted: {node:0.8.x || 0.10.x} (current: 
{node:0.12.4,npm:2.10.1})
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but 
bundled package wasn't found in unpacked tree


 Can't build Cordova v5.0 Android v4
 ---

 Key: CB-9112
 URL: https://issues.apache.org/jira/browse/CB-9112
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 5.0.1
 Environment: Mac OS X Yosemite
 node v0.12.2
 npm v2.3.0
 Android SDK =v22
Reporter: James Wade

 I am trying to get the basic Cordova v5.0 Android v4.0 project (note: using 
 Cordova v4 builds successfully) to build on Mac OS X Yosemite, but keep 
 getting this error.   I have uninstalled and reinstalled the Android SDK, 
 Cordova, and even Gradle (but I don't think I need it).  I've checked that my 
 Path variable contains the correct paths to ANDROID_SDK/tools and 
 ANDROID_SDK/platform_tools. But when I do the 'cordova build' or 'cordova 
 build android' using java v1.6 (java 1.7 and 1.8 give a different error, 
 below), I always get the same error:
  Could not create an instance of type
  org.gradle.invocation.DefaultGradle_Decorated.
 Further down it says:
  You may not have the required environment or OS to build this project
 What am I missing?
 Here's the full text of what I'm doing:
 my_acct$cordova create build_test com.example.build_test BuildTest
 Creating a new cordova project.
 my_acct$cd build_test
 my_acct$cordova platform add android
 Adding android project...
 Creating Cordova project for the Android platform:
   Path: platforms/android
   Package: com.example.build_test
   Name: BuildTest
   Activity: MainActivity
   Android target: android-22
 Copying template files...
 Android project created with cordova-android@4.0.0
 Discovered plugin cordova-plugin-whitelist in config.xml. Installing to 
 the project
 Fetching plugin cordova-plugin-whitelist@1 via npm
 npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
 npm http GET https://registry.npmjs.org/cordova-plugin-whitelist
 npm http 304 https://registry.npmjs.org/cordova-plugin-whitelist
 Installing cordova-plugin-whitelist for android
 my_acct$cordova build
 Running command: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build
  
 ANDROID_HOME=/Users/my_acct/Documents/Development/android-sdk-macosx/sdk
 JAVA_HOME=/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
 Running: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
  cdvBuildDebug -b 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle
  -Dorg.gradle.daemon=true
 
 FAILURE: Build failed with an exception.
 
 * What went wrong:
 Could not create an instance of type 
 org.gradle.invocation.DefaultGradle_Decorated.
 
 * Try:
 Run with --stacktrace option to get the stack trace. Run with --info or 
 --debug option to get more log output.
 
 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/node_modules/q/q.js:126
 throw e;
   ^
 Error code 1 for command: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/gradlew
  with args: 
 cdvBuildDebug,-b,/Users/my_acct/Documents/Development/work/build_test/platforms/android/build.gradle,-Dorg.gradle.daemon=true
 ERROR building one of the platforms: Error: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
  Command failed with exit code 8
 You may not have the required environment or OS to build this project
 Error: 
 /Users/my_acct/Documents/Development/work/build_test/platforms/android/cordova/build:
  Command failed with exit code 8
 at ChildProcess.whenDone 
 (/Users/my_acct/.node/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:131:23)
 at 

[jira] [Commented] (CB-9115) Lollipop onPermissionRequest denies everything

2015-06-10 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580949#comment-14580949
 ] 

ASF subversion and git services commented on CB-9115:
-

Commit eb70f05168dcf3a07d8716c772db3a3c3c3a59f8 in cordova-android's branch 
refs/heads/master from [~vfbraun]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=eb70f05 ]

CB-9115 android: Grant Lollipop permission req

This patch overrides onPermissionRequest so that getUserMedia can be
used inside the browser.

Since a hybrid app has to request permissions anyways via
AndroidManifest.xml, I think it is unnecessary to have any further
configuration for onPermissionRequest. Anything that the app is allowed
to do should be possible from the JS side. Hence all requests are
granted. This enables getUserMedia (and WebRTC) on Android Lollipop,
without resorting to crosswalk.

The docs say that request.grant has to be called from the UI thread, but
don't explicitly spell out whether onPermissionRequest is called from
the UI thread. I think that this is so, the WebChromeClient of course
makes its calls from the UI thread unless otherwise noted. So there is
no need to post a runnable to the UI thread.

This closes 178
https://github.com/apache/cordova-android/pull/178


 Lollipop onPermissionRequest denies everything
 --

 Key: CB-9115
 URL: https://issues.apache.org/jira/browse/CB-9115
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: Master
 Environment: Android L
Reporter: Volker Braun
Assignee: Joe Bowser

 WebChromeClient.onPermissionRequest is not overridden, so getUserMedia 
 permission requests are denied by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-8977) java.util.ConcurrentModificationException in java.util.HashMap$HashIterator.nextEntry

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-8977.

Resolution: Incomplete

I can't reproduce this case, I'm going to close this for now.  Please re-open 
with more information.

 java.util.ConcurrentModificationException in 
 java.util.HashMap$HashIterator.nextEntry
 -

 Key: CB-8977
 URL: https://issues.apache.org/jira/browse/CB-8977
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 3.7.1
 Environment: Samsung Galaxy S4 on Android 4.4
Reporter: Hirbod
Assignee: Joe Bowser

 I've received two crashreports. I think they are related to cordova and some 
 of the plugins. The plugins are all up-to-date. I'm using CLI 5.0.0 but still 
 on Android-JS 3.7.1 (can't upgrade right know)
 I've upgrade all the plugins from the new npm-repo, I don't know if this is 
 related, but before upgrading the plugins, everything worked well.
 Here is the crash report:
 java.util.ConcurrentModificationException
 at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
 at java.util.HashMap$ValueIterator.next(HashMap.java:838)
 at org.apache.cordova.PluginManager.postMessage(PluginManager.java:271)
 at org.apache.cordova.CordovaWebView.postMessage(CordovaWebView.java:515)
 at org.apache.cordova.splashscreen.SplashScreen$1.run(SplashScreen.java:128)
 at android.os.Handler.handleCallback(Handler.java:733)
 at android.os.Handler.dispatchMessage(Handler.java:95)
 at android.os.Looper.loop(Looper.java:157)
 at android.app.ActivityThread.main(ActivityThread.java:5356)
 at java.lang.reflect.Method.invokeNative(Native Method)
 at java.lang.reflect.Method.invoke(Method.java:515)
 at 
 com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1265)
 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1081)
 at dalvik.system.NativeStart.main(Native Method)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9122) Implement integration tests for platform and plugin save/restore feature

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580907#comment-14580907
 ] 

ASF GitHub Bot commented on CB-9122:


GitHub user alsorokin opened a pull request:

https://github.com/apache/cordova-lib/pull/246

CB-9122 Added tests for platform/plugin add/rm/update with --save flag

https://issues.apache.org/jira/browse/CB-9122

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/MSOpenTech/cordova-lib CB-9122

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/cordova-lib/pull/246.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #246


commit 71570ebda500beb6f6867f78642fb83576b9b208
Author: alsorokin alexander.soro...@akvelon.com
Date:   2015-06-10T18:15:31Z

CB-9122 Added tests for platform/plugin add/rm/update with --save flag




 Implement integration tests for platform and plugin save/restore feature
 

 Key: CB-9122
 URL: https://issues.apache.org/jira/browse/CB-9122
 Project: Apache Cordova
  Issue Type: Task
  Components: CordovaLib
Reporter: Alexander Sorokin

 List of integration tests and scenarios to be written :
  
CORDOVA PLATFORM/PLUGIN ADD TESTS :
 -  Ensure that support for custom .tgz files is still enabled (VS 
 depends on this)
 -  cordova platform add android --save [empty config.xml]
 -  cordova platform add android --save [config.xml already contains 
 android@3.6.0]
 -  cordova platform add android --save [config.xml contains 
 android@file://C:/path/to/android]
 -  cordova platform add android@3.18.9 --save [invalid version = in 
 this case, install should fail and should not update config.xml] 
 -  cordova platform add C://path/to/android/platform --save
 -  support for custom branch checkout : cordova platform add 
 https://github.com/apache/cordova-android.git#2.6.x
 -  cordova plugin add cordova-plugin-console –save [config.xml empty]
 -  cordova plugin add cordova-plugin-console –save [config.xml 
 already contains cordova-plugin-console@0.2.11]
 -  cordova plugin add facebook-plugins –variables … –save [testing 
 variables support]
 -  cordova plugin add git_url
 -  cordova plugin add local_folder
  
CORDOVA PLATFORM/PLUGIN REMOVE TESTS :
 -  cordova platform remove android --save [config.xml is empty]
 -  cordova platform remove android --save [config.xml contains 
 android@C:/path/to/android/platform]
 -  cordova plugin remove plugin-id --save [config.xml is empty]
 -  cordova plugin remove plugin-id --save [config.xml contains 
 git-url of plugin]
  
CORDOVA PLATFORM/PLUGIN UPDATE TESTS :
 -  cordova platform update android@3.7.0  --save [config.xml already 
 contains android@3.8.0]
 -  support for git-urls : cordova platform update 
 https://github.com/apache/cordova-android.git –save
 -  cordova plugin update cordova-plugin-console --save
 -  cordova plugin update cordova-plugin-console@0.2.11 --save
  
   MASS-SAVE TESTS :
 -  cordova platform save [no platforms installed = no update to 
 config.xml]
 -  cordova platform save [with some platforms installed]
 -  cordova plugin save [no plugins installed = no update to 
 config.xml]
 -  cordova plugin save [with some plugins installed: one with 
 version, one with local folder and another one via git cloning]
  
PLATFORM/PLUGIN RESTORATION :
 -  cordova prepare = should restore all platforms and plugins
 -  cordova prepare android



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9005) Can no longer use setOnKeyListener on webView in plugins

2015-06-10 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580952#comment-14580952
 ] 

Joe Bowser commented on CB-9005:


Remember that any change to the system webview works for that webview only.  We 
need to figure out the general case.

 Can no longer use setOnKeyListener on webView in plugins
 

 Key: CB-9005
 URL: https://issues.apache.org/jira/browse/CB-9005
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, Plugins
Affects Versions: 4.0.0
Reporter: Ian Darling
Assignee: Joe Bowser
Priority: Minor

 I have a plugin that is used for handling physical key down/up events on 
 Android devices with additional buttons - these buttons typically fire off 
 KEYCODE_BUTTON_R1, etc
 In earlier versions of Cordova (3.7.0?) I was able to attach a keyListener in 
 the plugin by doing:
 this.webView.setOnKeyListener(etc);
 In migrating to 4.0.0 this no longer compiles.
 My initial thought was to change to using 
 this.webView.getView().setOnKeyListener instead (which appears to be the 
 right way to do it), but this doesn't seem to fully work - my plugin still 
 gets volume up/down key events (which I disregard), but not events for 
 BUTTON_R1.
 Debugging CordovaLib suggests that CordovaWebViewImpl.onDispatchKeyEvent does 
 receive the BUTTON_R1 events, but I'm at a loss as to how to get them into 
 the plugin itself.
 Is there a workaround or alternate API I should be using?
 Thanks,



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-8919) Event deviceready doesn't fire when built on Ubuntu

2015-06-10 Thread Joe Bowser (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8919?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Bowser resolved CB-8919.

Resolution: Cannot Reproduce

I tested with a default project.  I couldn't get full-on mobile-spec running on 
Ubuntu for some weird reason, but I did manage to create a project, add the 
device plugin and have device-ready fire.  I'm testing on Nexus 6

 Event deviceready doesn't fire when built on Ubuntu
 ---

 Key: CB-8919
 URL: https://issues.apache.org/jira/browse/CB-8919
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 3.7.1
 Environment: Ubuntu 14.04, Cordova version 4.3.0, Platform version 
 3.7.1
Reporter: Tolga Özses
Assignee: Joe Bowser
  Labels: build

 Hi,
 I use two distributions; Mint and Ubuntu. After building the .apk on Ubuntu 
 and using cordova run to deploy and run on the device, I've noticed that 
 deviceready event doesn't fire. My phone is a Samsung Galaxy A3 and I've 
 recently read that it can have network connectivity issues and my app was 
 issuing an XHR, so I've tested with something as simple as alert('Hello 
 World'); , and verified it doesn't fire. I installed cordova with npm.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9115) Lollipop onPermissionRequest denies everything

2015-06-10 Thread Joe Bowser (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9115?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14580950#comment-14580950
 ] 

Joe Bowser commented on CB-9115:


Keeping this open because this will break with Android M.

 Lollipop onPermissionRequest denies everything
 --

 Key: CB-9115
 URL: https://issues.apache.org/jira/browse/CB-9115
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: Master
 Environment: Android L
Reporter: Volker Braun
Assignee: Joe Bowser

 WebChromeClient.onPermissionRequest is not overridden, so getUserMedia 
 permission requests are denied by default.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9157) coho command to create and copy cordova.js to platform

2015-06-10 Thread Steve Gill (JIRA)
Steve Gill created CB-9157:
--

 Summary: coho command to create and copy cordova.js to platform 
 Key: CB-9157
 URL: https://issues.apache.org/jira/browse/CB-9157
 Project: Apache Cordova
  Issue Type: New Feature
  Components: Coho
Reporter: Steve Gill
Assignee: Steve Gill


Right now, prepare-release-branch command does this. I want to split it up into 
its own command so we can update platform's cordova.js files before release 
time.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Comment Edited] (CB-8197) Switch to nodejs for ios platform scripts

2015-06-10 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14581094#comment-14581094
 ] 

Shazron Abdullah edited comment on CB-8197 at 6/10/15 9:11 PM:
---

Why was this re-opened? Note that some nodejs fixes have been pushed into the 
4.0.x branch, so check that


was (Author: shazron):
Why was this re-opened? Note that some nodes fixes have been pushed into the 
4.0.x branch, so check that

 Switch to nodejs for ios platform scripts
 -

 Key: CB-8197
 URL: https://issues.apache.org/jira/browse/CB-8197
 Project: Apache Cordova
  Issue Type: Improvement
  Components: iOS
Reporter: Vladimir Kotikov
 Fix For: 3.8.0


 Currently platform tooling for ios is based on bash scripts and to improve 
 maintainability of such scripts it would be useful to port them to NodeJS.
 Part of this work is already done for create/update scripts in 
 https://issues.apache.org/jira/browse/CB-5706 but platform scripts placed in 
 cordova folder of platform is still being unported.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-8197) Switch to nodejs for ios platform scripts

2015-06-10 Thread Shazron Abdullah (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14581094#comment-14581094
 ] 

Shazron Abdullah commented on CB-8197:
--

Why was this re-opened? Note that some nodes fixes have been pushed into the 
4.0.x branch, so check that

 Switch to nodejs for ios platform scripts
 -

 Key: CB-8197
 URL: https://issues.apache.org/jira/browse/CB-8197
 Project: Apache Cordova
  Issue Type: Improvement
  Components: iOS
Reporter: Vladimir Kotikov
 Fix For: 3.8.0


 Currently platform tooling for ios is based on bash scripts and to improve 
 maintainability of such scripts it would be useful to port them to NodeJS.
 Part of this work is already done for create/update scripts in 
 https://issues.apache.org/jira/browse/CB-5706 but platform scripts placed in 
 cordova folder of platform is still being unported.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Updated] (CB-8006) coho repo-clone -r dist -r dist/dev fails silently when svn isn't installed

2015-06-10 Thread Steve Gill (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8006?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Gill updated CB-8006:
---
Assignee: (was: Steve Gill)

 coho repo-clone -r dist -r dist/dev fails silently when svn isn't installed
 ---

 Key: CB-8006
 URL: https://issues.apache.org/jira/browse/CB-8006
 Project: Apache Cordova
  Issue Type: Bug
  Components: Coho
Reporter: Steve Gill

 should make noise! 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Resolved] (CB-8732) Cordova-firefoxos Platform Release March 23, 2015

2015-06-10 Thread Steve Gill (JIRA)

 [ 
https://issues.apache.org/jira/browse/CB-8732?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Steve Gill resolved CB-8732.

Resolution: Won't Fix

Voting failed. Release never happened

 Cordova-firefoxos Platform Release March 23, 2015
 -

 Key: CB-8732
 URL: https://issues.apache.org/jira/browse/CB-8732
 Project: Apache Cordova
  Issue Type: Task
  Components: FirefoxOS
Reporter: Steve Gill
Assignee: Steve Gill

 Following steps at 
 https://github.com/apache/cordova-coho/blob/master/docs/platforms-release-process.md;



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Created] (CB-9156) remove devdependencies, add path based dependencies on platforms

2015-06-10 Thread Steve Gill (JIRA)
Steve Gill created CB-9156:
--

 Summary: remove devdependencies, add path based dependencies on 
platforms
 Key: CB-9156
 URL: https://issues.apache.org/jira/browse/CB-9156
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CordovaJS
Reporter: Steve Gill
Assignee: Steve Gill


Devdependencies cause cordova.js's grunt:compile to use an older version of the 
platform when generating cordova.js for a new release. Instead, have 
grunt:compile use cordova-platform directories that are siblings to cordova.js 
and allow for a user to pass in a path to platform via command line incase they 
don't have platforms as siblings. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org



[jira] [Commented] (CB-9119) ADB install in automation sometimes hangs the emulator

2015-06-10 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14581245#comment-14581245
 ] 

ASF GitHub Bot commented on CB-9119:


Github user nikhilkh commented on a diff in the pull request:

https://github.com/apache/cordova-android/pull/180#discussion_r32178275
  
--- Diff: bin/templates/cordova/lib/emulator.js ---
@@ -298,37 +306,67 @@ module.exports.resolveTarget = function(target) {
  * If no started emulators are found, error out.
  * Returns a promise.
  */
-module.exports.install = function(target, buildResults) {
-return Q().then(function() {
-if (target  typeof target == 'object') {
-return target;
+module.exports.install = function(givenTarget, buildResults) {
+
+var target;
+
+// resolve the target emulator
+return Q().then(function () {
+if (givenTarget  typeof givenTarget == 'object') {
+return givenTarget;
+} else {
+return module.exports.resolveTarget(givenTarget);
 }
-return module.exports.resolveTarget(target);
-}).then(function(resolvedTarget) {
-var apk_path = build.findBestApkForArchitecture(buildResults, 
resolvedTarget.arch);
+
+// set the resolved target
+}).then(function (resolvedTarget) {
+target = resolvedTarget;
+
+// install the app
+}).then(function () {
+
+var apk_path= build.findBestApkForArchitecture(buildResults, 
target.arch);
+var execOptions = {
+timeout:INSTALL_COMMAND_TIMEOUT, // in milliseconds
+killSignal: EXEC_KILL_SIGNAL
+};
+
 console.log('Installing app on emulator...');
 console.log('Using apk: ' + apk_path);
-return exec('adb -s ' + resolvedTarget.target + ' install -r -d ' 
+ apk_path + '', os.tmpdir())
-.then(function(output) {
+
+var retriedInstall = retry.retryPromise(
+NUM_INSTALL_RETRIES,
+exec, 'adb -s ' + target.target + ' install -r -d ' + 
apk_path + '', os.tmpdir(), execOptions
+);
+
+return retriedInstall.then(function (output) {
 if (output.match(/Failure/)) {
 return Q.reject('Failed to install apk to emulator: ' + 
output);
+} else {
+console.log('INSTALL SUCCESS');
 }
-return Q();
-}, function(err) {
+}, function (err) {
 return Q.reject('Failed to install apk to emulator: ' + err);
-}).then(function() {
-//unlock screen
-return exec('adb -s ' + resolvedTarget.target + ' shell input 
keyevent 82', os.tmpdir());
-}).then(function() {
-// launch the application
-console.log('Launching application...');
-var launchName = appinfo.getActivityName();
-var cmd = 'adb -s ' + resolvedTarget.target + ' shell am start 
-W -a android.intent.action.MAIN -n ' + launchName;
-return exec(cmd, os.tmpdir());
-}).then(function(output) {
-console.log('LAUNCH SUCCESS');
-}, function(err) {
-return Q.reject('Failed to launch app on emulator: ' + err);
 });
+
+// unlock screen
+}).then(function () {
+
+console.log('Unlocking screen...');
+return exec('adb -s ' + target.target + ' shell input keyevent 
82', os.tmpdir());
+
+// launch the application
--- End diff --

It applies two any n things you need to keep in sync - be it 
code/comments/documentation etc. Anyway, this duplication is too trivial to 
make any measurable difference and it's best to move forward.


 ADB install in automation sometimes hangs the emulator
 --

 Key: CB-9119
 URL: https://issues.apache.org/jira/browse/CB-9119
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: Master
Reporter: Dmitry Blotsky
Assignee: Dmitry Blotsky
Priority: Critical
  Labels: adb, android, hang, hard_to_verify
   Original Estimate: 72h
  Remaining Estimate: 72h

 Sometimes adb install ... hangs indefinitely when running cordova run 
 under medic. Jenkins also sees this. Related links below.
 Android bug: http://code.google.com/p/android/issues/detail?id=10255



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org

[jira] [Commented] (CB-8197) Switch to nodejs for ios platform scripts

2015-06-10 Thread Sergey Shakhnazarov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-8197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=14581463#comment-14581463
 ] 

Sergey Shakhnazarov commented on CB-8197:
-

Reopened to convert copy-www-build-step.sh to nodejs

 Switch to nodejs for ios platform scripts
 -

 Key: CB-8197
 URL: https://issues.apache.org/jira/browse/CB-8197
 Project: Apache Cordova
  Issue Type: Improvement
  Components: iOS
Reporter: Vladimir Kotikov
 Fix For: 3.8.0


 Currently platform tooling for ios is based on bash scripts and to improve 
 maintainability of such scripts it would be useful to port them to NodeJS.
 Part of this work is already done for create/update scripts in 
 https://issues.apache.org/jira/browse/CB-5706 but platform scripts placed in 
 cordova folder of platform is still being unported.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

-
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org