[jira] [Commented] (CB-7375) Investigate breaking changes at file plugin

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

Commit 58f8ac0645e30546f0eebe8c7a5a56600e64963b in cordova-plugin-file's branch 
refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=58f8ac0 ]

CB-7375 Never create new FileSystem instances (except on windows since they 
don't implement requestAllFileSystems())


 Investigate breaking changes at file plugin
 ---

 Key: CB-7375
 URL: https://issues.apache.org/jira/browse/CB-7375
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File
Affects Versions: 3.5.0
Reporter: Martin Gonzalez
  Labels: file
 Fix For: 3.6.0

 Attachments: Jasmine-Report-FileMediaPlugin-tests_149-30-1.txt


 Some of the changes made lately to file plugin with this commit: 
 https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;a=commit;h=0ffb96988c0539222887f7756a653e7f0a1ed12c
 Are breaking changes to this plugin, affecting other platforms as android.
 Running mobile spec after that specific commit, 4 file tests are failing 
 (test 125 -128).



--
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-8269) Cordova application crashes on android 2.3.4

2015-01-08 Thread dukai (JIRA)

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

dukai commented on CB-8269:
---

This issue found at Samsung Ace-2, and android version is 2.3.6, but we don't 
have this device, we only have HTC, and it can reproduce this issue. For this 
issue, do you mean is it caused by mobile Android system? How to fix that like 
this issue?

 Cordova application crashes on android 2.3.4
 

 Key: CB-8269
 URL: https://issues.apache.org/jira/browse/CB-8269
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: Cordova 3.5.1  HTC(android 2.3.4)  Build with Android 
 4.3
Reporter: dukai
  Labels: Android

 When we run the app with cordova 3.5.1 and a old Android device(2.3.6  
 2.3.4), sometime the app crashes, but we are fine with cordova 3.1 before. We 
 find the below log:
 01-06 20:28:29.354 I/DEBUG   (  128): signal 11 (SIGSEGV), code 1 
 (SEGV_MAPERR), fault addr b0603554
 01-06 20:28:29.354 I/DEBUG   (  128):  r0 48649c71  r1 48649c71  r2 b0603549  
 r3 4afaef70
 01-06 20:28:29.354 I/DEBUG   (  128):  r4 48b06035  r5 a86b6c7d  r6 457f1604  
 r7 0060
 01-06 20:28:29.354 I/DEBUG   (  128):  r8 48b00021  r9 48b06021  10 a8800e90  
 fp 457f1644
 01-06 20:28:29.354 I/DEBUG   (  128):  ip 48b0602d  sp 457f1618  lr 4ae074dc  
 pc 4ae07508  cpsr 3010
 01-06 20:28:29.354 I/DEBUG   (  128):  d0  0042e5d80042e5d4  d1  
 0302e12fff1c
 01-06 20:28:29.354 I/DEBUG   (  128):  d2  1a02e151000c  d3  
 e590001fe593
 01-06 20:28:29.354 I/DEBUG   (  128):  d4  e59fc014e5918017  d5  
 e59fc010e12fff1c
 01-06 20:28:29.354 I/DEBUG   (  128):  d6  0304e12fff1c  d7  
 0289
 01-06 20:28:29.354 I/DEBUG   (  128):  d8  41d52af53b4eebc8  d9  
 41d52af53b521efb
 01-06 20:28:29.354 I/DEBUG   (  128):  d10 408f4000  d11 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d12   d13 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d14   d15 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d16 48b0604d48b0604d  d17 
 41f0
 01-06 20:28:29.354 I/DEBUG   (  128):  d18 41d52af53b40  d19 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d20   d21 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d22 3ff0  d23 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d24   d25 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d26   d27 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d28   d29 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d30 3ff0  d31 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  scr 2013
 01-06 20:28:29.354 I/DEBUG   (  128): 
 01-06 20:28:29.424 I/DEBUG   (  128):  #00  pc 4ae07508  
 01-06 20:28:29.424 I/DEBUG   (  128):  #01  lr 4ae074dc  unknown
 01-06 20:28:29.424 I/DEBUG   (  128): 
 01-06 20:28:29.424 I/DEBUG   (  128): code around pc:
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074e8 e59a4044 e1520004 1a3f 
 e5113001 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074f8 e5932013 e59ac0dc e152000c 
 0a3a 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae07508 e592200b e3120001 0a37 
 e151 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae07518 0a02 e592200b e1520004 
 1a32 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae07528 e593100b e59ac018 e151000c 
 1aea 
 01-06 20:28:29.424 I/DEBUG   (  128): 
 01-06 20:28:29.424 I/DEBUG   (  128): code around lr:
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074bc e351009e 2a05 e52d0004 
 e5981017 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074cc e591100b e5911073 e591200b 
 e12fff32 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074dc e52d0004 e1a01000 e5912007 
 e59a4044 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074ec e1520004 1a3f e5113001 
 e5932013 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074fc e59ac0dc e152000c 0a3a 
 e592200b 
 01-06 20:28:29.424 I/DEBUG   (  128): 
 01-06 20:28:29.424 I/DEBUG   (  128): stack:
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15d8  a86b6c7d  
 /system/lib/libwebcore.so
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15dc  457f1604  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15e0    
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15e4  48b26254  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15e8  48b26254  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15ec  48b261e1  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15f0  48b05bc1  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15f4  48b0029d  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15f8  457f1610  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15fc  48b37318  
 01-06 20:28:29.424 

[jira] [Updated] (CB-8278) plugins fail due to missing variables when reading platforms

2015-01-08 Thread Gorkem ERCAN (JIRA)

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

Gorkem ERCAN updated CB-8278:
-
Summary: plugins fail due to missing variables when reading platforms  
(was: plugins fail due to missing variables when readding platforms)

 plugins fail due to missing variables when reading platforms
 

 Key: CB-8278
 URL: https://issues.apache.org/jira/browse/CB-8278
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugman
Reporter: Josh Soref

 List platforms:
 {quote}
 $ cordova platforms
 Installed platforms: android 3.4.0, blackberry10 3.5.0, ios 3.4.0
 Available platforms: amazon-fireos, browser, firefoxos
 {quote}
 Update android
 {quote}
 $ cordova platform update android
 Android project is now at version 3.6.4
 If you updated from a pre-3.2.0 version and use an IDE, we now require that 
 you import the CordovaLib library project.
 {quote}
 Add plugin (partially)
 {quote}
 $ cordova plugin add ~/Cordova/phonegap-facebook-plugin  --variable 
 APP_ID=616451688482285 --variable APP_NAME=hybrid-app 
 Installing com.phonegap.plugins.facebookconnect for android
 Installing com.phonegap.plugins.facebookconnect for blackberry10
 Installing com.phonegap.plugins.facebookconnect for ios
 Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin 
 doesn't support this project's cordova version. cordova: 3.4.0, failed 
 version requirement: =3.5.0
 ...
 {quote}
 Remove iOS
 {quote}
 $ cordova platform rm ios
 {quote}
 Add iOS
 {quote}
 $ cordova platform add ios
 Creating ios project...
 Installing com.phonegap.plugins.facebookconnect for ios
 Failed to install 'com.phonegap.plugins.facebookconnect':Error: Variable(s) 
 missing: APP_ID, APP_NAME
 at cordova-lib/src/plugman/install.js:304:23
 at _fulfilled (cordova-lib/node_modules/q/q.js:787:54)
 at self.promiseDispatch.done (cordova-lib/node_modules/q/q.js:816:30)
 at Promise.promise.promiseDispatch 
 (cordova-lib/node_modules/q/q.js:749:13)
 at cordova-lib/node_modules/q/q.js:557:44
 at flush (cordova-lib/node_modules/q/q.js:108:17)
 at process._tickCallback (node.js:415:13)
 Error: Variable(s) missing: APP_ID, APP_NAME
 at cordova-lib/src/plugman/install.js:304:23
 at _fulfilled (cordova-lib/node_modules/q/q.js:787:54)
 at self.promiseDispatch.done (cordova-lib/node_modules/q/q.js:816:30)
 at Promise.promise.promiseDispatch 
 (cordova-lib/node_modules/q/q.js:749:13)
 at cordova-lib/node_modules/q/q.js:557:44
 at flush (cordova-lib/node_modules/q/q.js:108:17)
 at process._tickCallback (node.js:415:13)
 {quote}



--
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-8026) Apps targeting LOLLIPOP or later default to disallowing third party cookies

2015-01-08 Thread Joe Bowser (JIRA)

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

Joe Bowser edited comment on CB-8026 at 1/9/15 2:36 AM:


Wait, why are we turning on Third-Party cookies? I think this is actually a 
good default since this discourages harmful behaviour like using third-party ad 
networks in your application.  Can you please explain the use case and why we 
would want to have these cookies enabled?


was (Author: bowserj):
Wait, why are we turning on Third-Party cookies? I think this is actually a 
good default since this discourages harmful behaviour like using third-party ad 
networks in your application.  Can you please explain the use case and why we 
would want to have these cookies enabled?

 Apps targeting LOLLIPOP or later default to disallowing third party cookies
 ---

 Key: CB-8026
 URL: https://issues.apache.org/jira/browse/CB-8026
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 4.0.0
Reporter: jan
Assignee: Joe Bowser
 Fix For: 3.7.0, 4.0.0


 Apps that target KITKAT or below default to allowing third party cookies. 
 Apps targeting LOLLIPOP or later default to disallowing third party cookies.
 https://developer.android.com/reference/android/webkit/CookieManager.html
 Android 5.0 changes the default behavior for your app.
 If your app targets API level 21 or higher:
 The system blocks mixed content and third party cookies by default. To allow 
 mixed content and third party cookies, use the setMixedContentMode() and 
 setAcceptThirdPartyCookies() methods respectively.
 The system now intelligently chooses portions of the HTML document to draw. 
 This new default behavior helps to reduce memory footprint and increase 
 performance. If you want to render the whole document at once, disable this 
 optimization by calling enableSlowWholeDocumentDraw().
 If your app targets API levels lower than 21: The system allows mixed content 
 and third party cookies, and always renders the whole document at once.
 https://developer.android.com/about/versions/android-5.0-changes.html#BehaviorWebView
 Workaround in the Comments section...



--
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-8036) Cannot update to 3.7.0

2015-01-08 Thread Andrew Grieve (JIRA)

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

Andrew Grieve resolved CB-8036.
---
Resolution: Fixed

It was due to npm pack obeying .gitignore, and .gitignore had node_modules 
instead of /node_modules in it.


 Cannot update to 3.7.0
 --

 Key: CB-8036
 URL: https://issues.apache.org/jira/browse/CB-8036
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.7.0
 Environment: OS X Maverics (10.9.5) with XCode 6
Reporter: Hirbod

 Hi,
 before 3.7.0 I could update without any problems from 3.5.0 to 3.6.3
 I tried to update from 3.6.3 to 3.7.0 but now I receive this error:
 cordova platform update ios
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'shelljs'
 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 
 (/Users/Hirbod/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update:21: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 Function.Module.runMain (module.js:497:10)
 Error: 
 /Users/Hirbod/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update: 
 Command failed with exit code 8
 at ChildProcess.whenDone 
 (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
 at ChildProcess.emit (events.js:98:17)
 at maybeClose (child_process.js:756:16)
 at Process.ChildProcess._handle.onexit (child_process.js:823:5)
 I tried to reinstall shelljs locally and globally but I can't figure out this 
 bug.
 Update for Android to version 3.6.4 worked without any problems.
 Of course I've updated phonegap and cordova before (like described in the CLI 
 Docs on phonegap.com)



--
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-8026) Apps targeting LOLLIPOP or later default to disallowing third party cookies

2015-01-08 Thread Joe Bowser (JIRA)

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

Joe Bowser updated CB-8026:
---
Priority: Major  (was: Blocker)

 Apps targeting LOLLIPOP or later default to disallowing third party cookies
 ---

 Key: CB-8026
 URL: https://issues.apache.org/jira/browse/CB-8026
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 4.0.0
Reporter: jan
Assignee: Joe Bowser
 Fix For: 3.7.0, 4.0.0


 Apps that target KITKAT or below default to allowing third party cookies. 
 Apps targeting LOLLIPOP or later default to disallowing third party cookies.
 https://developer.android.com/reference/android/webkit/CookieManager.html
 Android 5.0 changes the default behavior for your app.
 If your app targets API level 21 or higher:
 The system blocks mixed content and third party cookies by default. To allow 
 mixed content and third party cookies, use the setMixedContentMode() and 
 setAcceptThirdPartyCookies() methods respectively.
 The system now intelligently chooses portions of the HTML document to draw. 
 This new default behavior helps to reduce memory footprint and increase 
 performance. If you want to render the whole document at once, disable this 
 optimization by calling enableSlowWholeDocumentDraw().
 If your app targets API levels lower than 21: The system allows mixed content 
 and third party cookies, and always renders the whole document at once.
 https://developer.android.com/about/versions/android-5.0-changes.html#BehaviorWebView
 Workaround in the Comments section...



--
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-8026) Apps targeting LOLLIPOP or later default to disallowing third party cookies

2015-01-08 Thread Joe Bowser (JIRA)

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

Joe Bowser commented on CB-8026:


Wait, why are we turning on Third-Party cookies? I think this is actually a 
good default since this discourages harmful behaviour like using third-party ad 
networks in your application.  Can you please explain the use case and why we 
would want to have these cookies enabled?

 Apps targeting LOLLIPOP or later default to disallowing third party cookies
 ---

 Key: CB-8026
 URL: https://issues.apache.org/jira/browse/CB-8026
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Affects Versions: 4.0.0
Reporter: jan
Assignee: Joe Bowser
Priority: Blocker
 Fix For: 3.7.0, 4.0.0


 Apps that target KITKAT or below default to allowing third party cookies. 
 Apps targeting LOLLIPOP or later default to disallowing third party cookies.
 https://developer.android.com/reference/android/webkit/CookieManager.html
 Android 5.0 changes the default behavior for your app.
 If your app targets API level 21 or higher:
 The system blocks mixed content and third party cookies by default. To allow 
 mixed content and third party cookies, use the setMixedContentMode() and 
 setAcceptThirdPartyCookies() methods respectively.
 The system now intelligently chooses portions of the HTML document to draw. 
 This new default behavior helps to reduce memory footprint and increase 
 performance. If you want to render the whole document at once, disable this 
 optimization by calling enableSlowWholeDocumentDraw().
 If your app targets API levels lower than 21: The system allows mixed content 
 and third party cookies, and always renders the whole document at once.
 https://developer.android.com/about/versions/android-5.0-changes.html#BehaviorWebView
 Workaround in the Comments section...



--
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-8252) Prep core plugins for CSP by removing eval()s (Android only)

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8252:


Github user asfgit closed the pull request at:

https://github.com/apache/cordova-plugin-media/pull/41


 Prep core plugins for CSP by removing eval()s (Android only)
 

 Key: CB-8252
 URL: https://issues.apache.org/jira/browse/CB-8252
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugins
Affects Versions: Master
Reporter: Jason Chase
Assignee: Andrew Grieve

 In preparation for CSP, remove any native Android code in the core plugins 
 that is using inline javascript/eval()s.  Other platforms with native code 
 (i.e. iOS) are out of scope for now.
 Found only the media plugin (org.apache.cordova.media) that was using inline 
 javascript (to send status updates).



--
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-8252) Prep core plugins for CSP by removing eval()s (Android only)

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

Commit 4fb7b37a4e825868cae808caa807f8afbde194de in cordova-plugin-media's 
branch refs/heads/master from [~chasej]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-media.git;h=4fb7b37 ]

CB-8252 Fire audio events from native via message channel (close #41)
- Add startup logic to initialize a message channel for native - Javascript
- Applies only to android and amazon-fireos (as this reuses the android native 
code)
- Change audio status events to send via plugin message channel, instead
using eval() (i.e. webView.sendJavascript())


 Prep core plugins for CSP by removing eval()s (Android only)
 

 Key: CB-8252
 URL: https://issues.apache.org/jira/browse/CB-8252
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugins
Affects Versions: Master
Reporter: Jason Chase
Assignee: Andrew Grieve

 In preparation for CSP, remove any native Android code in the core plugins 
 that is using inline javascript/eval()s.  Other platforms with native code 
 (i.e. iOS) are out of scope for now.
 Found only the media plugin (org.apache.cordova.media) that was using inline 
 javascript (to send status updates).



--
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-6431) Method remapUri handle url 'content://...' incorrectly in FileUtils.java

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

Commit cd45e67fea90d6ecae479d42200a3c3729de41ab in cordova-plugin-file's branch 
refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-file.git;h=cd45e67 ]

CB-6431 android: Fix plugin breaking content: URLs

There were actually two bugs to this:
1. The plugin was remaping content:, when it shouldn't have been
2. There was an extra / being added, as described in the JIRA


 Method remapUri handle url 'content://...' incorrectly in FileUtils.java
 

 Key: CB-6431
 URL: https://issues.apache.org/jira/browse/CB-6431
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File
Affects Versions: 3.4.0
 Environment: Android 4.1.2
Reporter: puchen
Assignee: Ian Clelland

 Method remapUri handle url like this 
 content://media/external/images/media/6794, path in uri got 
 file:mnt/..., which got more '/' than normol file path.



--
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-6431) Method remapUri handle url 'content://...' incorrectly in FileUtils.java

2015-01-08 Thread Andrew Grieve (JIRA)

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

Andrew Grieve resolved CB-6431.
---
Resolution: Fixed

Fixed in 1.3.3-dev

 Method remapUri handle url 'content://...' incorrectly in FileUtils.java
 

 Key: CB-6431
 URL: https://issues.apache.org/jira/browse/CB-6431
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File
Affects Versions: 3.4.0
 Environment: Android 4.1.2
Reporter: puchen
Assignee: Ian Clelland

 Method remapUri handle url like this 
 content://media/external/images/media/6794, path in uri got 
 file:mnt/..., which got more '/' than normol file path.



--
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-8252) Prep core plugins for CSP by removing eval()s (Android only)

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8252:


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

https://github.com/apache/cordova-plugin-media/pull/41#discussion_r22699122
  
--- Diff: RELEASENOTES.md ---
@@ -103,3 +103,7 @@
 * CB-7977 Mention `deviceready` in plugin docs
 * CB-7945 Made media.spec.15 and media.spec.16 auto tests green
 * CB-7700 cordova-plugin-media documentation translation: 
cordova-plugin-media
+
+### 0.2.16 (Jan 08, 2015)
+* CB-8252 **Android/Amazon**: Use message channel/PluginResult to send 
events from native - Javascript. Removes all use of inline javascript/eval()s
--- End diff --

We update release notes as a part of releases. Going to not pull in the 
releasenotes commit.


 Prep core plugins for CSP by removing eval()s (Android only)
 

 Key: CB-8252
 URL: https://issues.apache.org/jira/browse/CB-8252
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugins
Affects Versions: Master
Reporter: Jason Chase
Assignee: Andrew Grieve

 In preparation for CSP, remove any native Android code in the core plugins 
 that is using inline javascript/eval()s.  Other platforms with native code 
 (i.e. iOS) are out of scope for now.
 Found only the media plugin (org.apache.cordova.media) that was using inline 
 javascript (to send status updates).



--
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-8153) Cordova Browserify based prepare should still create a plugin metadata file.

2015-01-08 Thread Steve Gill (JIRA)

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

Steve Gill commented on CB-8153:


Do you still need it to be module.exports.metadata or is module.exports = 
{pluginid:pluginversion} good?

 Cordova Browserify based prepare should still create a plugin metadata file.
 

 Key: CB-8153
 URL: https://issues.apache.org/jira/browse/CB-8153
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CordovaLib
Reporter: Michal Mocny
Assignee: Steve Gill
Priority: Minor

 If we move away from cordova_plugins.js and onto browserify concat for plugin 
 js modules, it would still be useful to retain some plugin metadata file.
 Hopefully it can be as simple as a json file with { pluginId: pluginVersion } 
 or something like that.
 Being able to quickly figure out which plugins a given app was built with has 
 come up as useful in the past, even if only for informational purposes!



--
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-8238) Add --save option to 'cordova platform update'

2015-01-08 Thread Omar Mefire (JIRA)

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

Omar Mefire commented on CB-8238:
-

Here are the associated pull requests:
https://github.com/apache/cordova-cli/pull/203
https://github.com/apache/cordova-lib/pull/144

 Add --save option to 'cordova platform update'
 --

 Key: CB-8238
 URL: https://issues.apache.org/jira/browse/CB-8238
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CLI, CordovaLib
Reporter: Omar Mefire
Priority: Minor

 Add --save option to 'cordova platform update' so that in addition to 
 updating to the latest pinned version, it also saves the latest pinned 
 version to config.xml



--
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-8237) Add --save option to 'cordova platform remove'

2015-01-08 Thread Omar Mefire (JIRA)

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

Omar Mefire commented on CB-8237:
-

Here are the associated pull requests:
https://github.com/apache/cordova-cli/pull/203
https://github.com/apache/cordova-lib/pull/144

 Add --save option to 'cordova platform remove'
 --

 Key: CB-8237
 URL: https://issues.apache.org/jira/browse/CB-8237
 Project: Apache Cordova
  Issue Type: Bug
  Components: CLI, CordovaLib
Reporter: Omar Mefire
Priority: Minor

 running 'cordova platform remove platform --save' will not only remove the 
 specified platform from the project, it will also remove the corresponding 
 engine from config.xml 



--
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-8238) Add --save option to 'cordova platform update'

2015-01-08 Thread Omar Mefire (JIRA)

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

Omar Mefire edited comment on CB-8238 at 1/9/15 6:51 AM:
-

Here are the associated pull requests I sent regarding these :
https://github.com/apache/cordova-cli/pull/203
https://github.com/apache/cordova-lib/pull/144


was (Author: omefire):
Here are the associated pull requests:
https://github.com/apache/cordova-cli/pull/203
https://github.com/apache/cordova-lib/pull/144

 Add --save option to 'cordova platform update'
 --

 Key: CB-8238
 URL: https://issues.apache.org/jira/browse/CB-8238
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CLI, CordovaLib
Reporter: Omar Mefire
Priority: Minor

 Add --save option to 'cordova platform update' so that in addition to 
 updating to the latest pinned version, it also saves the latest pinned 
 version to config.xml



--
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-8237) Add --save option to 'cordova platform remove'

2015-01-08 Thread Omar Mefire (JIRA)

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

Omar Mefire edited comment on CB-8237 at 1/9/15 6:51 AM:
-

Here are the associated pull requests I sent regarding these :
https://github.com/apache/cordova-cli/pull/203
https://github.com/apache/cordova-lib/pull/144


was (Author: omefire):
Here are the associated pull requests:
https://github.com/apache/cordova-cli/pull/203
https://github.com/apache/cordova-lib/pull/144

 Add --save option to 'cordova platform remove'
 --

 Key: CB-8237
 URL: https://issues.apache.org/jira/browse/CB-8237
 Project: Apache Cordova
  Issue Type: Bug
  Components: CLI, CordovaLib
Reporter: Omar Mefire
Priority: Minor

 running 'cordova platform remove platform --save' will not only remove the 
 specified platform from the project, it will also remove the corresponding 
 engine from config.xml 



--
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-6340) Adding rebroadcast capabilities to remote notification registration

2015-01-08 Thread Jon Scott (JIRA)

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

Jon Scott commented on CB-6340:
---

This has introduced the issue [CB-8084] for apps which do not wish to use push 
notifications.


 Adding rebroadcast capabilities to remote notification registration
 ---

 Key: CB-6340
 URL: https://issues.apache.org/jira/browse/CB-6340
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Reporter: Shazron Abdullah
Assignee: Shazron Abdullah
 Fix For: 3.5.0


 See https://github.com/apache/cordova-ios/pull/94



--
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-8153) Cordova Browserify based prepare should still create a plugin metadata file.

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

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

CB-8153 generate cordova_plugins.json for browserify based projects


 Cordova Browserify based prepare should still create a plugin metadata file.
 

 Key: CB-8153
 URL: https://issues.apache.org/jira/browse/CB-8153
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CordovaLib
Reporter: Michal Mocny
Assignee: Steve Gill
Priority: Minor

 If we move away from cordova_plugins.js and onto browserify concat for plugin 
 js modules, it would still be useful to retain some plugin metadata file.
 Hopefully it can be as simple as a json file with { pluginId: pluginVersion } 
 or something like that.
 Being able to quickly figure out which plugins a given app was built with has 
 come up as useful in the past, even if only for informational purposes!



--
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-8227) Add --save option to 'cordova platform add'

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8227:


GitHub user omefire opened a pull request:

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

CB-8227 CB8237 CB-8238 Add --save option to 'cordova platform add', 
'cordova platform remove' and 'cordova platform update'

CB-8227 CB8237 CB-8238
Add --save option to 'cordova platform add',
 'cordova platform remove' and 'cordova platform update'

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

$ git pull https://github.com/MSOpenTech/cordova-lib CB-8227_CB-8237_CB-8238

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

https://github.com/apache/cordova-lib/pull/144.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 #144


commit 150925d4776ddde29ec9ea0239da832ae91f5d5a
Author: Omar Mefire ommen...@microsoft.com
Date:   2015-01-02T05:15:21Z

CB-8227 CB8237 CB-8238 Add --save option to 'cordova platform add',
'cordova platform remove' and 'cordova platform update'




 Add --save option to 'cordova platform add'
 ---

 Key: CB-8227
 URL: https://issues.apache.org/jira/browse/CB-8227
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI, CordovaLib
Reporter: Omar Mefire
   Original Estimate: 48h
  Remaining Estimate: 48h

 When run with the --save flag, the 'platform add' command will not only add 
 the specified platforms, but it will also save them to config.xml.
 - When running this command, the pinned CLI version will be used if no 
 version is specified.
 - config.xml will be ovewritten if similar engine has already been specified 
 in config.xml



--
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-8227) Add --save option to 'cordova platform add'

2015-01-08 Thread Omar Mefire (JIRA)

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

Omar Mefire commented on CB-8227:
-

Here are the associated pull requests I sent regarding these :
https://github.com/apache/cordova-cli/pull/203
https://github.com/apache/cordova-lib/pull/144

 Add --save option to 'cordova platform add'
 ---

 Key: CB-8227
 URL: https://issues.apache.org/jira/browse/CB-8227
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI, CordovaLib
Reporter: Omar Mefire
   Original Estimate: 48h
  Remaining Estimate: 48h

 When run with the --save flag, the 'platform add' command will not only add 
 the specified platforms, but it will also save them to config.xml.
 - When running this command, the pinned CLI version will be used if no 
 version is specified.
 - config.xml will be ovewritten if similar engine has already been specified 
 in config.xml



--
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-8153) Cordova Browserify based prepare should still create a plugin metadata file.

2015-01-08 Thread Steve Gill (JIRA)

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

Steve Gill commented on CB-8153:


I did module.exports.metadata = {pluginid:pluginversion} and then at the end 
did module.exports = module.exports.metadata;

 Cordova Browserify based prepare should still create a plugin metadata file.
 

 Key: CB-8153
 URL: https://issues.apache.org/jira/browse/CB-8153
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CordovaLib
Reporter: Michal Mocny
Assignee: Steve Gill
Priority: Minor

 If we move away from cordova_plugins.js and onto browserify concat for plugin 
 js modules, it would still be useful to retain some plugin metadata file.
 Hopefully it can be as simple as a json file with { pluginId: pluginVersion } 
 or something like that.
 Being able to quickly figure out which plugins a given app was built with has 
 come up as useful in the past, even if only for informational purposes!



--
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-8153) Cordova Browserify based prepare should still create a plugin metadata file.

2015-01-08 Thread Steve Gill (JIRA)

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

Steve Gill closed CB-8153.
--
Resolution: Fixed

 Cordova Browserify based prepare should still create a plugin metadata file.
 

 Key: CB-8153
 URL: https://issues.apache.org/jira/browse/CB-8153
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CordovaLib
Reporter: Michal Mocny
Assignee: Steve Gill
Priority: Minor

 If we move away from cordova_plugins.js and onto browserify concat for plugin 
 js modules, it would still be useful to retain some plugin metadata file.
 Hopefully it can be as simple as a json file with { pluginId: pluginVersion } 
 or something like that.
 Being able to quickly figure out which plugins a given app was built with has 
 come up as useful in the past, even if only for informational purposes!



--
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-8227) Add --save option to 'cordova platform add'

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8227:


GitHub user omefire opened a pull request:

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

CB-8227 CB-8237 CB-8238 Add --save option to 'cordova platform add', 
'cordova platform remove' and 'cordova platform update'

CB-8227 CB-8237 CB-8238 Add --save option to 'cordova platform add', 
'cordova platform remove' and 'cordova platform update'

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

$ git pull https://github.com/MSOpenTech/cordova-cli CB-8227_CB-8237_CB-8238

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

https://github.com/apache/cordova-cli/pull/203.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 #203


commit 871b07086815e8a65606f8f80cb1955c235fec9b
Author: Omar Mefire ommen...@microsoft.com
Date:   2015-01-02T22:02:07Z

CB-8227 CB-8237 CB-8238 Add --save option to 'cordova platform add',
'cordova platform remove' and 'cordova platform update'




 Add --save option to 'cordova platform add'
 ---

 Key: CB-8227
 URL: https://issues.apache.org/jira/browse/CB-8227
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI, CordovaLib
Reporter: Omar Mefire
   Original Estimate: 48h
  Remaining Estimate: 48h

 When run with the --save flag, the 'platform add' command will not only add 
 the specified platforms, but it will also save them to config.xml.
 - When running this command, the pinned CLI version will be used if no 
 version is specified.
 - config.xml will be ovewritten if similar engine has already been specified 
 in config.xml



--
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-8036) Cannot update to 3.7.0

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

Commit 6ef9077a7c7664545110d9ca1ac7a32be5e99404 in cordova-ios's branch 
refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-ios.git;h=6ef9077 ]

CB-8036 Don't exclude bin/node_modules from npm pack (via .gitignore)


 Cannot update to 3.7.0
 --

 Key: CB-8036
 URL: https://issues.apache.org/jira/browse/CB-8036
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.7.0
 Environment: OS X Maverics (10.9.5) with XCode 6
Reporter: Hirbod

 Hi,
 before 3.7.0 I could update without any problems from 3.5.0 to 3.6.3
 I tried to update from 3.6.3 to 3.7.0 but now I receive this error:
 cordova platform update ios
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'shelljs'
 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 
 (/Users/Hirbod/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update:21: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 Function.Module.runMain (module.js:497:10)
 Error: 
 /Users/Hirbod/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update: 
 Command failed with exit code 8
 at ChildProcess.whenDone 
 (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
 at ChildProcess.emit (events.js:98:17)
 at maybeClose (child_process.js:756:16)
 at Process.ChildProcess._handle.onexit (child_process.js:823:5)
 I tried to reinstall shelljs locally and globally but I can't figure out this 
 bug.
 Update for Android to version 3.6.4 worked without any problems.
 Of course I've updated phonegap and cordova before (like described in the CLI 
 Docs on phonegap.com)



--
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-8277) platform update isn't working

2015-01-08 Thread Andrew Grieve (JIRA)

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

Andrew Grieve resolved CB-8277.
---
Resolution: Duplicate

Definitely a dupe!

 platform update isn't working
 -

 Key: CB-8277
 URL: https://issues.apache.org/jira/browse/CB-8277
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.7.0
Reporter: Josh Soref

 Trying to install facebook-plugin:
 {quote}
 $ cordova plugin add ~/Cordova/phonegap-facebook-plugin  --variable 
 APP_ID=616451688482285 --variable APP_NAME=hybrid-app 
 Installing com.phonegap.plugins.facebookconnect for android
 Installing com.phonegap.plugins.facebookconnect for blackberry10
 Installing com.phonegap.plugins.facebookconnect for ios
 Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin 
 doesn't support this project's cordova version. cordova: 3.4.0, failed 
 version requirement: =3.5.0
 ...
 Plugin doesn't support this project's cordova version. cordova: 3.4.0, failed 
 version requirement: =3.5.0
 {quote}
 ok, so let's update ios:
 {quote}
 $ cordova platform update ios
 {quote}
 {quote}
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'shelljs'
 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 
 (~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update:21: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 Function.Module.runMain (module.js:497:10)
 Error: ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update: Command 
 failed with exit code 8
 at ChildProcess.whenDone (cordova-lib/src/cordova/superspawn.js:135:23)
 at ChildProcess.EventEmitter.emit (events.js:98:17)
 at maybeClose (child_process.js:735:16)
 at Process.ChildProcess._handle.onexit (child_process.js:802:5)
 {quote}
 shelljs is listed in the package.json:
 {quote}
 $ grep shelljs 
 ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/package.json 
 shelljs: ^0.2.6,
 {quote}
 but it isn't included:
 {quote}
 $ find ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package -name shelljs|wc -l
0
 {quote}



--
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-8239) Add support for git urls to 'cordova platform add'

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8239:


Github user omefire commented on the pull request:

https://github.com/apache/cordova-lib/pull/141#issuecomment-69271082
  
@hstaudacher, I've added the remaining scenarios.

I've copied over some of the changes you made in this branch and merged 
them with mine.
I'd be grateful if you could review these changes:

- 
https://github.com/MSOpenTech/cordova-lib/commit/c1135323c71e2f698e1a9f6fbcbf8d33274b1ff8
- 
https://github.com/MSOpenTech/cordova-lib/commit/5d4e0e15b09a9cba60e2b5ee423ff528f40c398f
- 
https://github.com/MSOpenTech/cordova-lib/commit/a8bdc8f7f87294ed8e984728efef7b9f86e9ad8b
- 
https://github.com/MSOpenTech/cordova-lib/commit/c99eca2bb2712ffaa9a398a2ec48ed59091c072a




 Add support for git urls to 'cordova platform add'
 --

 Key: CB-8239
 URL: https://issues.apache.org/jira/browse/CB-8239
 Project: Apache Cordova
  Issue Type: New Feature
  Components: CLI, CordovaLib
Reporter: Omar Mefire

 Allow the following scenarios:
 - users can issue 'cordova platform add 
 https://github.com/apache/cordova-android.git' and the git repo will be 
 cloned and used.
 - users can issue 'cordova platform add 
 android@https://github.com/apache/cordova-android.git' and the git repo will 
 be cloned and used.
 - users can issue 'cordova platform add android' and if their config.xml file 
 contains: 'engine id='android' 
 version='https://github.com/apache/cordova-android.git' /, then the git repo 
 pointed to by config.xml will be cloned and used.



--
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-8275) Issue updating index.html at runtime‏

2015-01-08 Thread Francesco Negri (JIRA)
Francesco Negri created CB-8275:
---

 Summary: Issue updating index.html at runtime‏ 
 Key: CB-8275
 URL: https://issues.apache.org/jira/browse/CB-8275
 Project: Apache Cordova
  Issue Type: Bug
  Components: WP8
Affects Versions: 3.5.0
 Environment: Visual Studio Community 2013 with Tools for Apache 
Cordova CTP3.0 
Reporter: Francesco Negri
Assignee: Jesse MacFadyen
Priority: Critical


We'd like to report some issues we are facing developing a Cordova app with 
Visual Studio Community 2013 adding new code lines in index.html file at 
runtime in Windows Phone 8.1. It seems that only HTML tags are correctly read 
and executed, instead JS (included in a script tag or directly in the element 
tag e.g. using onclick event) is not executed. We ran the same project on both 
the Android emulator and  physical device and it worked perfectly. Does anybody 
know wether it's a compatibility issue or something else? Thank you for your 
attention and help.



The code is:


INDEX.HTML:




 !DOCTYPE html

html

head

meta charset=utf-8 /

titleTester/title




link href=css/index.css rel=stylesheet /

/head

body

input type=button id=test value=Prova x Emulatore wp /

!-- Cordova reference, this is added to your app when it's built. --

script src=cordova.js/script

script src=scripts/platformOverrides.js/script

script src=scripts/jquery-2.1.1.min.js/script

script id=last_script src=scripts/index.js/script

/body

/html




INDEX.JS:





(function () {

use strict;







document.addEventListener( 'deviceready', onDeviceReady.bind( this ), false 
);

var logOb;

function onDeviceReady() {

navigator.notification.alert('ciao');

// Handle the Cordova pause and resume events

document.addEventListener( 'pause', onPause.bind( this ), false );

document.addEventListener('resume', onResume.bind(this), false);

document.getElementById('test').addEventListener('click', function () {

var el1 = 'input type=button id=Prova value=Ciao/',

el2 = 'script 
type=text/javascriptdocument.getElementById(\'Prova\').addEventListener(\'click\',
 function(){navigator.notification.alert(\'Ciao sono il bottone\')}, 
false);/script';

$('#test').after(el1);

$('#last_script').after(el2);

}, false);

// TODO: Cordova has been loaded. Perform any initialization that 
requires Cordova here.

};
function onResume() { };
function onPause() { };

} )();


The TrialCode Team.



--
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-8080) After migrating to 3.6.3 from 3.4.0, Appium (Android) tests fail because of open dialog

2015-01-08 Thread Andrea Tino (JIRA)

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

Andrea Tino commented on CB-8080:
-

The same issue was created in ChromeDriver because actually the problem occurs 
in combination with it: 
https://code.google.com/p/chromium/issues/detail?id=436800.

 After migrating to 3.6.3 from 3.4.0, Appium (Android) tests fail because of 
 open dialog
 ---

 Key: CB-8080
 URL: https://issues.apache.org/jira/browse/CB-8080
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CordovaJS
Affects Versions: 3.6.3
 Environment: Basic Appium test on Android webview based app. The test 
 on Appium works until the app issues a `window.location.reload()` or a 
 `window.location.href = 'something'`.
Reporter: Andrea Tino
  Labels: javascript
 Attachments: MyApp-debug.apk


 After upgrading to Cordova 3.6.3 from Cordova 3.4.0; my Appium tests cannot 
 go on because of a strange error. The error can be reproed very easily by 
 creating a basic web-view based app on Android which issues a 
 {{window.location.reload()}} after a while that the test starts.
 I could assess that the problem is one particular file: {{cordova.js}} which 
 becomes part of the js files in my app when I build it with Cordova. My app 
 loads only one javascript file: {{cordova.js}}, I removed all other 
 dependencies to other js files. When that file is in my app (even though 
 {{index.html}} does not use any function defined in there), my tests fails. 
 If I remove the dependencies to that file, tests go ok!
 The problem is that when my app issues a {{window.location.reload()}}; my 
 test fail with this error message:
 {code}
 info: [debug] Responding to client with error: 
 {status:26,value:{message:A modal dialog was open, blocking this 
 operation,origValue:unexpected alert open\n (Session info: webview=)\n 
 (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 
 x86_64)},sessionId:965ba51e54f682559e5b8378095bc3d4}
 {code}
 *Test*
 The APK to repro this is in attachments. It is possible to run a simple 
 Appium test to repro the problem:
 {code}
 [Test]
 public void SimpleTest()
 {
 this.appPackage = com.myorg.myapp;
 this.appActivity = myapp;
 BeforeAll();
 Thread.Sleep(3000);
 var submitAddressButton = 
 driver.FindElementByClassName(testClass);
 submitAddressButton.Click();
 Thread.Sleep(3000);
 submitAddressButton = driver.FindElementByClassName(testClass);
 Expect(submitAddressButton, Is.Not.Null);
 }
 {code}
 *Important*
 The fact that a dialog is reported is actually very strange. After inspecting 
 a lot I could verify that no native/webview dialog is being shown on my app. 
 In fact I cannot see any dialog and if I try to dismiss this ghost dialog 
 using Appium and WebDriver APIs, the command fail as no dialog can be found.
 *Notes*
 Consider that the problem is not in the APIs I use in my test (C# dotnet 
 driver for Appium). Everything happens on my Appium server running on a Mac.



--
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-8274) window.requestFileSystem not working

2015-01-08 Thread kanthimathinathan (JIRA)
kanthimathinathan created CB-8274:
-

 Summary: window.requestFileSystem not working
 Key: CB-8274
 URL: https://issues.apache.org/jira/browse/CB-8274
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: Cordova project
Reporter: kanthimathinathan


we are developing cordova project using cordova 4.1.2 version, when we create 
android project using command line interface, window.requestfilesystem   
not working, we have checked plunging added correctly, we don't know where the 
things went wrong.



--
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-8274) window.requestFileSystem not working

2015-01-08 Thread kanthimathinathan (JIRA)

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

kanthimathinathan commented on CB-8274:
---

we are testing using nexus tab. 

 window.requestFileSystem not working
 

 Key: CB-8274
 URL: https://issues.apache.org/jira/browse/CB-8274
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: Cordova project
Reporter: kanthimathinathan

 we are developing cordova project using cordova 4.1.2 version, when we create 
 android project using command line interface, window.requestfilesystem   
 not working, we have checked plunging added correctly, we don't know where 
 the things went wrong.



--
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-8234) IOS Phonegap camera plugin is broken on IOS 8 and above.

2015-01-08 Thread pvagare (JIRA)

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

pvagare commented on CB-8234:
-

Thanks for reply.

I am getting error on console log which I mentioned earlier.
I have updated plugin to latest version and I didn't modified any piece of 
code. 

So Please look at the issue.

 IOS Phonegap camera plugin is broken on IOS 8 and above.
 

 Key: CB-8234
 URL: https://issues.apache.org/jira/browse/CB-8234
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Camera
Reporter: pvagare

 I get following error while I am taking the photo from iPhone camera.
 Snapshotting a view that has not been rendered results in an empty snapshot. 
 Ensure your view has been rendered at least once before snapshotting or 
 snapshot after screen updates.
 My platform details.  IOS 8.1.2, cordova 3.5
 Please update the camera plugin as early as possible. 



--
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-5797) Enable usage of Passbook functionality using inAppBrowser

2015-01-08 Thread JIRA

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

Patrick Dürsteler commented on CB-5797:
---

The problem even exist if we open a webpage with a passbook link on it in the 
inappbowser on iOS for example: https://q.pass.is/Amqm9SN7yzAB
It closes without opening the passbook app.

 

 Enable usage of Passbook functionality using inAppBrowser
 -

 Key: CB-5797
 URL: https://issues.apache.org/jira/browse/CB-5797
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugin InAppBrowser
 Environment: iOS 6+ devices
Reporter: Dzenan

 Currently while using inAppBrowser plugin we can't implement adding passes 
 from the UIWebView.
 Would it be possible for inAppBrowser to address these changes, in order for 
 users of inAppBrowser plugin to be able to download passes on their iOS 6+ 
 devices.
 https://developer.apple.com/library/ios/technotes/tn2302/_index.html#//apple_ref/doc/uid/DTS40013009-CH1-DISTRIBUTING_PASSES-I_M_USING_A_UIWEBVIEW_IN_MY_APP_AND_IT_DOES_NOT_AUTOMATICALLY_SUPPORT_ADDING_PASSES_TO_PASSBOOK___WHAT_SHOULD_I_DO_



--
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-8095) upload method on windows doesn't support progress events correctly

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8095:


Github user vladimir-kotikov commented on the pull request:


https://github.com/apache/cordova-plugin-file-transfer/pull/53#issuecomment-69181362
  
@purplecabbage Done


 upload method on windows doesn't support progress events correctly
 --

 Key: CB-8095
 URL: https://issues.apache.org/jira/browse/CB-8095
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin File Transfer
Reporter: Vladimir Kotikov
  Labels: file-transfer, windows

 On windows FileTrasfer doesn't support {{progress}} events for upload 
 operation properly since internal implementation uses XHR which doesn't 
 provide all information, necessary to fire correct progress events.
 Possible solution here is to replace XHR with {{BackgroundUploader}} class 
 which itself supports progress notification in more convenient way and can 
 provide all necessary data for progress events for FileTransfer.



--
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-8269) Cordova application crashes on android 2.3.4

2015-01-08 Thread Joe Bowser (JIRA)

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

Joe Bowser commented on CB-8269:


Were they running HTC Sense? We might have an old HTC Evo that would be running 
a similar version of HTC Sense.  Each vendor creates their own build of 
Android, and each of the WebViews work slightly different, so if it crashes on 
an HTC, it may not crash on a Nexus S running 2.3.4 stock (which is what we 
primarily test on, when we do test 2.3.4).

 Cordova application crashes on android 2.3.4
 

 Key: CB-8269
 URL: https://issues.apache.org/jira/browse/CB-8269
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: Cordova 3.5.1  HTC(android 2.3.4)  Build with Android 
 4.3
Reporter: dukai
  Labels: Android

 When we run the app with cordova 3.5.1 and a old Android device(2.3.6  
 2.3.4), sometime the app crashes, but we are fine with cordova 3.1 before. We 
 find the below log:
 01-06 20:28:29.354 I/DEBUG   (  128): signal 11 (SIGSEGV), code 1 
 (SEGV_MAPERR), fault addr b0603554
 01-06 20:28:29.354 I/DEBUG   (  128):  r0 48649c71  r1 48649c71  r2 b0603549  
 r3 4afaef70
 01-06 20:28:29.354 I/DEBUG   (  128):  r4 48b06035  r5 a86b6c7d  r6 457f1604  
 r7 0060
 01-06 20:28:29.354 I/DEBUG   (  128):  r8 48b00021  r9 48b06021  10 a8800e90  
 fp 457f1644
 01-06 20:28:29.354 I/DEBUG   (  128):  ip 48b0602d  sp 457f1618  lr 4ae074dc  
 pc 4ae07508  cpsr 3010
 01-06 20:28:29.354 I/DEBUG   (  128):  d0  0042e5d80042e5d4  d1  
 0302e12fff1c
 01-06 20:28:29.354 I/DEBUG   (  128):  d2  1a02e151000c  d3  
 e590001fe593
 01-06 20:28:29.354 I/DEBUG   (  128):  d4  e59fc014e5918017  d5  
 e59fc010e12fff1c
 01-06 20:28:29.354 I/DEBUG   (  128):  d6  0304e12fff1c  d7  
 0289
 01-06 20:28:29.354 I/DEBUG   (  128):  d8  41d52af53b4eebc8  d9  
 41d52af53b521efb
 01-06 20:28:29.354 I/DEBUG   (  128):  d10 408f4000  d11 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d12   d13 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d14   d15 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d16 48b0604d48b0604d  d17 
 41f0
 01-06 20:28:29.354 I/DEBUG   (  128):  d18 41d52af53b40  d19 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d20   d21 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d22 3ff0  d23 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d24   d25 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d26   d27 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d28   d29 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  d30 3ff0  d31 
 
 01-06 20:28:29.354 I/DEBUG   (  128):  scr 2013
 01-06 20:28:29.354 I/DEBUG   (  128): 
 01-06 20:28:29.424 I/DEBUG   (  128):  #00  pc 4ae07508  
 01-06 20:28:29.424 I/DEBUG   (  128):  #01  lr 4ae074dc  unknown
 01-06 20:28:29.424 I/DEBUG   (  128): 
 01-06 20:28:29.424 I/DEBUG   (  128): code around pc:
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074e8 e59a4044 e1520004 1a3f 
 e5113001 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074f8 e5932013 e59ac0dc e152000c 
 0a3a 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae07508 e592200b e3120001 0a37 
 e151 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae07518 0a02 e592200b e1520004 
 1a32 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae07528 e593100b e59ac018 e151000c 
 1aea 
 01-06 20:28:29.424 I/DEBUG   (  128): 
 01-06 20:28:29.424 I/DEBUG   (  128): code around lr:
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074bc e351009e 2a05 e52d0004 
 e5981017 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074cc e591100b e5911073 e591200b 
 e12fff32 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074dc e52d0004 e1a01000 e5912007 
 e59a4044 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074ec e1520004 1a3f e5113001 
 e5932013 
 01-06 20:28:29.424 I/DEBUG   (  128): 4ae074fc e59ac0dc e152000c 0a3a 
 e592200b 
 01-06 20:28:29.424 I/DEBUG   (  128): 
 01-06 20:28:29.424 I/DEBUG   (  128): stack:
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15d8  a86b6c7d  
 /system/lib/libwebcore.so
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15dc  457f1604  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15e0    
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15e4  48b26254  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15e8  48b26254  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15ec  48b261e1  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15f0  48b05bc1  
 01-06 20:28:29.424 I/DEBUG   (  128): 457f15f4  48b0029d  
 01-06 20:28:29.424 I/DEBUG   (  

[jira] [Updated] (CB-8252) Prep core plugins for CSP by removing eval()s (Android only)

2015-01-08 Thread Jason Chase (JIRA)

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

Jason Chase updated CB-8252:

Summary: Prep core plugins for CSP by removing eval()s (Android only)  
(was: Prep core plugins for CSP by removing eval()s)

 Prep core plugins for CSP by removing eval()s (Android only)
 

 Key: CB-8252
 URL: https://issues.apache.org/jira/browse/CB-8252
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugins
Affects Versions: Master
Reporter: Jason Chase
Assignee: Jason Chase

 In preparation for CSP, remove any native code in the core plugins that is 
 using inline javascript/eval()s.



--
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-8278) plugins fail due to missing variables when readding platforms

2015-01-08 Thread Josh Soref (JIRA)
Josh Soref created CB-8278:
--

 Summary: plugins fail due to missing variables when readding 
platforms
 Key: CB-8278
 URL: https://issues.apache.org/jira/browse/CB-8278
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugman
Reporter: Josh Soref


List platforms:
{quote}
$ cordova platforms
Installed platforms: android 3.4.0, blackberry10 3.5.0, ios 3.4.0
Available platforms: amazon-fireos, browser, firefoxos
{quote}

Update android
{quote}
$ cordova platform update android
Android project is now at version 3.6.4
If you updated from a pre-3.2.0 version and use an IDE, we now require that you 
import the CordovaLib library project.
{quote}

Add plugin (partially)
{quote}
$ cordova plugin add ~/Cordova/phonegap-facebook-plugin  --variable 
APP_ID=616451688482285 --variable APP_NAME=hybrid-app 
Installing com.phonegap.plugins.facebookconnect for android
Installing com.phonegap.plugins.facebookconnect for blackberry10
Installing com.phonegap.plugins.facebookconnect for ios
Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin 
doesn't support this project's cordova version. cordova: 3.4.0, failed version 
requirement: =3.5.0
...
{quote}

Remove iOS
{quote}
$ cordova platform rm ios
{quote}

Add iOS
{quote}
$ cordova platform add ios
Creating ios project...
Installing com.phonegap.plugins.facebookconnect for ios
Failed to install 'com.phonegap.plugins.facebookconnect':Error: Variable(s) 
missing: APP_ID, APP_NAME
at cordova-lib/src/plugman/install.js:304:23
at _fulfilled (cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (cordova-lib/node_modules/q/q.js:749:13)
at cordova-lib/node_modules/q/q.js:557:44
at flush (cordova-lib/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
Error: Variable(s) missing: APP_ID, APP_NAME
at cordova-lib/src/plugman/install.js:304:23
at _fulfilled (cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (cordova-lib/node_modules/q/q.js:749:13)
at cordova-lib/node_modules/q/q.js:557:44
at flush (cordova-lib/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
{quote}



--
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-8252) Prep core plugins for CSP by removing eval()s (Android only)

2015-01-08 Thread Jason Chase (JIRA)

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

Jason Chase updated CB-8252:

Description: 
In preparation for CSP, remove any native Android code in the core plugins that 
is using inline javascript/eval()s.

Other platforms with native code (i.e. iOS) are out of scope for now.

  was:In preparation for CSP, remove any native code in the core plugins that 
is using inline javascript/eval()s.


 Prep core plugins for CSP by removing eval()s (Android only)
 

 Key: CB-8252
 URL: https://issues.apache.org/jira/browse/CB-8252
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugins
Affects Versions: Master
Reporter: Jason Chase
Assignee: Jason Chase

 In preparation for CSP, remove any native Android code in the core plugins 
 that is using inline javascript/eval()s.
 Other platforms with native code (i.e. iOS) are out of scope for now.



--
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-8080) After migrating to 3.6.3 from 3.4.0, Appium (Android) tests fail because of open dialog

2015-01-08 Thread Andrew Grieve (JIRA)

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

Andrew Grieve commented on CB-8080:
---

I've never used WebDriver, so I really don't know a solution without investing 
a bunch of time. But, the JS uses prompt() to get the security code from the 
native side. WebView routes prompt() calls to the registered WebChromeClient 
instance, which in Cordova's case is 
https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/CordovaChromeClient.java.
 

Could be ChromeDriver is intercepting prompt() via JS, or it could be that it's 
intercepting them via inserting a custom WebChromeClient. Might be easiest to 
tell by logging the value of window.prompt, and see if it looks like function() 
{ [native code] } or not.



 After migrating to 3.6.3 from 3.4.0, Appium (Android) tests fail because of 
 open dialog
 ---

 Key: CB-8080
 URL: https://issues.apache.org/jira/browse/CB-8080
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CordovaJS
Affects Versions: 3.6.3
 Environment: Basic Appium test on Android webview based app. The test 
 on Appium works until the app issues a `window.location.reload()` or a 
 `window.location.href = 'something'`.
Reporter: Andrea Tino
  Labels: javascript
 Attachments: MyApp-debug.apk


 After upgrading to Cordova 3.6.3 from Cordova 3.4.0; my Appium tests cannot 
 go on because of a strange error. The error can be reproed very easily by 
 creating a basic web-view based app on Android which issues a 
 {{window.location.reload()}} after a while that the test starts.
 I could assess that the problem is one particular file: {{cordova.js}} which 
 becomes part of the js files in my app when I build it with Cordova. My app 
 loads only one javascript file: {{cordova.js}}, I removed all other 
 dependencies to other js files. When that file is in my app (even though 
 {{index.html}} does not use any function defined in there), my tests fails. 
 If I remove the dependencies to that file, tests go ok!
 The problem is that when my app issues a {{window.location.reload()}}; my 
 test fail with this error message:
 {code}
 info: [debug] Responding to client with error: 
 {status:26,value:{message:A modal dialog was open, blocking this 
 operation,origValue:unexpected alert open\n (Session info: webview=)\n 
 (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 
 x86_64)},sessionId:965ba51e54f682559e5b8378095bc3d4}
 {code}
 *Test*
 The APK to repro this is in attachments. It is possible to run a simple 
 Appium test to repro the problem:
 {code}
 [Test]
 public void SimpleTest()
 {
 this.appPackage = com.myorg.myapp;
 this.appActivity = myapp;
 BeforeAll();
 Thread.Sleep(3000);
 var submitAddressButton = 
 driver.FindElementByClassName(testClass);
 submitAddressButton.Click();
 Thread.Sleep(3000);
 submitAddressButton = driver.FindElementByClassName(testClass);
 Expect(submitAddressButton, Is.Not.Null);
 }
 {code}
 *Important*
 The fact that a dialog is reported is actually very strange. After inspecting 
 a lot I could verify that no native/webview dialog is being shown on my app. 
 In fact I cannot see any dialog and if I try to dismiss this ghost dialog 
 using Appium and WebDriver APIs, the command fail as no dialog can be found.
 *Notes*
 Consider that the problem is not in the APIs I use in my test (C# dotnet 
 driver for Appium). Everything happens on my Appium server running on a Mac.



--
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-8080) After migrating to 3.6.3 from 3.4.0, Appium (Android) tests fail because of open dialog

2015-01-08 Thread Andrea Tino (JIRA)

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

Andrea Tino commented on CB-8080:
-

Thank you for replying Andrew. Can you please describe your thinking in a more 
detailed way? If I understood correctly, your feeling is that automation 
commands issued by {{ChromeDriver}} are not being passed to Cordova's 
WebChromeClient; so this would mean some automation commands are not reaching 
the webview right? 

If you suggest to disable the security {{prompt()}} in case ChromeDriver is 
issuing commands, I might agree but this would open to potential threats right? 
I would also like to confirm that automation commands are not reaching the 
webview: can you suggest me, in the code, a fast way to log commands sent to 
the webview? Maybe you already have a system for this.

 After migrating to 3.6.3 from 3.4.0, Appium (Android) tests fail because of 
 open dialog
 ---

 Key: CB-8080
 URL: https://issues.apache.org/jira/browse/CB-8080
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CordovaJS
Affects Versions: 3.6.3
 Environment: Basic Appium test on Android webview based app. The test 
 on Appium works until the app issues a `window.location.reload()` or a 
 `window.location.href = 'something'`.
Reporter: Andrea Tino
  Labels: javascript
 Attachments: MyApp-debug.apk


 After upgrading to Cordova 3.6.3 from Cordova 3.4.0; my Appium tests cannot 
 go on because of a strange error. The error can be reproed very easily by 
 creating a basic web-view based app on Android which issues a 
 {{window.location.reload()}} after a while that the test starts.
 I could assess that the problem is one particular file: {{cordova.js}} which 
 becomes part of the js files in my app when I build it with Cordova. My app 
 loads only one javascript file: {{cordova.js}}, I removed all other 
 dependencies to other js files. When that file is in my app (even though 
 {{index.html}} does not use any function defined in there), my tests fails. 
 If I remove the dependencies to that file, tests go ok!
 The problem is that when my app issues a {{window.location.reload()}}; my 
 test fail with this error message:
 {code}
 info: [debug] Responding to client with error: 
 {status:26,value:{message:A modal dialog was open, blocking this 
 operation,origValue:unexpected alert open\n (Session info: webview=)\n 
 (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 
 x86_64)},sessionId:965ba51e54f682559e5b8378095bc3d4}
 {code}
 *Test*
 The APK to repro this is in attachments. It is possible to run a simple 
 Appium test to repro the problem:
 {code}
 [Test]
 public void SimpleTest()
 {
 this.appPackage = com.myorg.myapp;
 this.appActivity = myapp;
 BeforeAll();
 Thread.Sleep(3000);
 var submitAddressButton = 
 driver.FindElementByClassName(testClass);
 submitAddressButton.Click();
 Thread.Sleep(3000);
 submitAddressButton = driver.FindElementByClassName(testClass);
 Expect(submitAddressButton, Is.Not.Null);
 }
 {code}
 *Important*
 The fact that a dialog is reported is actually very strange. After inspecting 
 a lot I could verify that no native/webview dialog is being shown on my app. 
 In fact I cannot see any dialog and if I try to dismiss this ghost dialog 
 using Appium and WebDriver APIs, the command fail as no dialog can be found.
 *Notes*
 Consider that the problem is not in the APIs I use in my test (C# dotnet 
 driver for Appium). Everything happens on my Appium server running on a Mac.



--
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-8080) After migrating to 3.6.3 from 3.4.0, Appium (Android) tests fail because of open dialog

2015-01-08 Thread Andrew Grieve (JIRA)

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

Andrew Grieve commented on CB-8080:
---

Sounds like ChromeDriver is not passing calls through to Cordova's 
WebChromeClient. If there's a way to detect running within the context of 
ChromeDriver, we could perhaps just disable the security prompt() check in that 
case.

 After migrating to 3.6.3 from 3.4.0, Appium (Android) tests fail because of 
 open dialog
 ---

 Key: CB-8080
 URL: https://issues.apache.org/jira/browse/CB-8080
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android, CordovaJS
Affects Versions: 3.6.3
 Environment: Basic Appium test on Android webview based app. The test 
 on Appium works until the app issues a `window.location.reload()` or a 
 `window.location.href = 'something'`.
Reporter: Andrea Tino
  Labels: javascript
 Attachments: MyApp-debug.apk


 After upgrading to Cordova 3.6.3 from Cordova 3.4.0; my Appium tests cannot 
 go on because of a strange error. The error can be reproed very easily by 
 creating a basic web-view based app on Android which issues a 
 {{window.location.reload()}} after a while that the test starts.
 I could assess that the problem is one particular file: {{cordova.js}} which 
 becomes part of the js files in my app when I build it with Cordova. My app 
 loads only one javascript file: {{cordova.js}}, I removed all other 
 dependencies to other js files. When that file is in my app (even though 
 {{index.html}} does not use any function defined in there), my tests fails. 
 If I remove the dependencies to that file, tests go ok!
 The problem is that when my app issues a {{window.location.reload()}}; my 
 test fail with this error message:
 {code}
 info: [debug] Responding to client with error: 
 {status:26,value:{message:A modal dialog was open, blocking this 
 operation,origValue:unexpected alert open\n (Session info: webview=)\n 
 (Driver info: chromedriver=2.10.267521,platform=Windows NT 6.3 
 x86_64)},sessionId:965ba51e54f682559e5b8378095bc3d4}
 {code}
 *Test*
 The APK to repro this is in attachments. It is possible to run a simple 
 Appium test to repro the problem:
 {code}
 [Test]
 public void SimpleTest()
 {
 this.appPackage = com.myorg.myapp;
 this.appActivity = myapp;
 BeforeAll();
 Thread.Sleep(3000);
 var submitAddressButton = 
 driver.FindElementByClassName(testClass);
 submitAddressButton.Click();
 Thread.Sleep(3000);
 submitAddressButton = driver.FindElementByClassName(testClass);
 Expect(submitAddressButton, Is.Not.Null);
 }
 {code}
 *Important*
 The fact that a dialog is reported is actually very strange. After inspecting 
 a lot I could verify that no native/webview dialog is being shown on my app. 
 In fact I cannot see any dialog and if I try to dismiss this ghost dialog 
 using Appium and WebDriver APIs, the command fail as no dialog can be found.
 *Notes*
 Consider that the problem is not in the APIs I use in my test (C# dotnet 
 driver for Appium). Everything happens on my Appium server running on a Mac.



--
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-8043) Orientation preference's value set to anything but landscape or portrait doesn't work.

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8043:


Github user MMrko commented on the pull request:

https://github.com/apache/cordova-lib/pull/128#issuecomment-69196226
  
Rebased on master (0f5dbafface487c5738f294e47520d8b2381134d). I squashed 
the changes into 3 commits:

6ef506ebd890bf3eca79f8bb034ee9e2ede1c948 Base parser  helper related 
changes
2652a190457d79f988d3f6e5f678e490d7a55b39 Fixes to `firefoxos_parser.js`
179a3b2cf256890b163c2f3f7a63a9b41dcc09b8 Changes to the platform parsers 
(closes #128)


 Orientation preference's value set to anything but landscape or portrait 
 doesn't work.
 --

 Key: CB-8043
 URL: https://issues.apache.org/jira/browse/CB-8043
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
Reporter: Rémi Couturier

 cordova-cli: 4.1.2
 cordova-android: 3.6.4
 mac: osx yosemite
 In config.xml, setting the orientation preference's value to anything but 
 landscape or portrait doesn't work. Complete list of possible value: 
 http://developer.android.com/guide/topics/manifest/activity-element.html#screen
 For example when setting the value to userLandscape and building the app 
 (cordova build android), I'm getting this message: Unknown value for 
 orientation preference: userLandscape.



--
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-8277) platform update isn't working

2015-01-08 Thread Josh Soref (JIRA)
Josh Soref created CB-8277:
--

 Summary: platform update isn't working
 Key: CB-8277
 URL: https://issues.apache.org/jira/browse/CB-8277
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.7.0
Reporter: Josh Soref


Trying to install facebook-plugin:

{quote}
$ cordova plugin add ~/Cordova/phonegap-facebook-plugin  --variable 
APP_ID=616451688482285 --variable APP_NAME=hybrid-app 
Installing com.phonegap.plugins.facebookconnect for android
Installing com.phonegap.plugins.facebookconnect for blackberry10
Installing com.phonegap.plugins.facebookconnect for ios
Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin 
doesn't support this project's cordova version. cordova: 3.4.0, failed version 
requirement: =3.5.0
...
Plugin doesn't support this project's cordova version. cordova: 3.4.0, failed 
version requirement: =3.5.0
{quote}

ok, so let's update ios:

{quote}
$ cordova platform update ios
{quote}

{quote}
module.js:340
throw err;
  ^
Error: Cannot find module 'shelljs'
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 
(~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update:21: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 Function.Module.runMain (module.js:497:10)
Error: ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update: Command 
failed with exit code 8
at ChildProcess.whenDone (cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)
{quote}

shelljs is listed in the package.json:
{quote}
$ grep shelljs ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/package.json 
shelljs: ^0.2.6,
{quote}

but it isn't included:

{quote}
$ find ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package -name shelljs|wc -l
   0
{quote}



--
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-8276) platform name is buried in output

2015-01-08 Thread Josh Soref (JIRA)
Josh Soref created CB-8276:
--

 Summary: platform name is buried in output
 Key: CB-8276
 URL: https://issues.apache.org/jira/browse/CB-8276
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugman
Reporter: Josh Soref


So, I have a project, with some platforms:

{quote}
$ cordova platforms
{quote}

{quote}
Installed platforms: android 3.4.0, blackberry10 3.5.0, ios 3.4.0
Available platforms: amazon-fireos, browser, firefoxos
{quote}

And there's a bug CB-8218 which suggested installing the facebook plugin:

{quote}
$ cordova plugin add ~/Cordova/phonegap-facebook-plugin  --variable 
APP_ID=616451688482285 --variable APP_NAME=hybrid-app \[14:17:00]
{quote}

{quote}
Installing com.phonegap.plugins.facebookconnect for android
Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin 
doesn't support this project's cordova version. cordova: 3.4.0, failed version 
requirement: =3.5.0
at checkEngines (cordova-lib/src/plugman/install.js:116:29)
at _fulfilled (cordova-lib/node_modules/q/q.js:787:54)
at self.promiseDispatch.done (cordova-lib/node_modules/q/q.js:816:30)
at Promise.promise.promiseDispatch (cordova-lib/node_modules/q/q.js:749:13)
at cordova-lib/node_modules/q/q.js:557:44
at flush (cordova-lib/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:415:13)
Plugin doesn't support this project's cordova version. cordova: 3.4.0, failed 
version requirement: =3.5.0
{quote}

_this project_ doesn't mean anything to me, the user. It might benefit from a 
path. It probably would benefit from repeating the name of the cordova 
platform, since really, the last line is the line I want to read.

Either that, or the stack trace should be eaten, because if all I saw was:
{quote}
Installing com.phonegap.plugins.facebookconnect for android
Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin 
doesn't support this project's cordova version. cordova: 3.4.0, failed version 
requirement: =3.5.0
{quote}

I might be able to figure out that *android* is the important piece of 
information.

Also, It would really help if the error explained how to fix the problem

i.e.
{quote}
cordova platform update android
{quote}



--
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-8244) android: Make plugin add --link create symlinks for source-file, lib-file, etc

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

Commit 676d8d6b9f48b074d62cc5bed3e0b17cc61c3d0a in cordova-lib's branch 
refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=676d8d6 ]

CB-8244 Pass options object to platform handlers in plugman (commit attempt #2)


 android: Make plugin add --link create symlinks for source-file, lib-file, etc
 --

 Key: CB-8244
 URL: https://issues.apache.org/jira/browse/CB-8244
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CordovaLib
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor

 Both Android Studio and Gradle play nicely with symlinks. By symlinking the 
 actual files, you can edit .java files in the IDE and not need to copy them 
 back to the plugin source location!
 Adding this feature just to Android right now, as that's all I'm testing with.



--
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-8244) android: Make plugin add --link create symlinks for source-file, lib-file, etc

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

Commit 60aa96965b28118a67248d207114fef414d0159b in cordova-lib's branch 
refs/heads/master from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-lib.git;h=60aa969 ]

CB-8244 android: Have `plugin add --link` create symlinks for `source-file`, 
`framework`, etc (commit attempt #2)

Makes editing Java files in Android Studio edit the original .java
files. No more copying changes back!


 android: Make plugin add --link create symlinks for source-file, lib-file, etc
 --

 Key: CB-8244
 URL: https://issues.apache.org/jira/browse/CB-8244
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CordovaLib
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor

 Both Android Studio and Gradle play nicely with symlinks. By symlinking the 
 actual files, you can edit .java files in the IDE and not need to copy them 
 back to the plugin source location!
 Adding this feature just to Android right now, as that's all I'm testing with.



--
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-8279) VIsual Studio Crashes When Importing Plugin to Cordova Project

2015-01-08 Thread Tom ashley (JIRA)
Tom ashley created CB-8279:
--

 Summary: VIsual Studio Crashes When Importing Plugin to Cordova 
Project
 Key: CB-8279
 URL: https://issues.apache.org/jira/browse/CB-8279
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugins
Affects Versions: 3.5.0
 Environment: Windows 8.1, Visual Studio 2013 and Visual Studio 2015 
Preview with Apache Cordova successfully installed in VS2013 and installed by 
default in VS2015 Preview.
Reporter: Tom ashley
Priority: Critical


I've tried to import git packages into Cordova for VIsual Studio in both VS2013 
 VS2015 and it it crashes VS every time. Here's a screenshot: 
http://screencast.com/t/kLxeLC6G and here's the full error that is generated 
which happens whether you use the remote or local import option and also using 
the URL of the GIT as suggested on this particular plugin page 
https://github.com/songz/cordova-plugin-opentok (Exact same thing.. Blank info, 
VS crash but installing the plugins from the Core list works.):

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe
Problem Signature 02: 14.0.22310.1
Problem Signature 03: 546094b0
Problem Signature 04: mscorlib
Problem Signature 05: 4.5.27.0
Problem Signature 06: 545ca51f
Problem Signature 07: 48dd
Problem Signature 08: 27
Problem Signature 09: System.ArgumentNullException
OS Version: 6.3.9600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: a10f
Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069

I've tried adding the plugin to the VS project from the command line but it 
says it isn't a proper Cordova project. I've also tried using the Local 
option in VS and it doesn't work. You can easily verify this for free by 
installing VS2015 Preview and trying to import your plugin to a project (Right 
click config.xml - Design Mode - Plugins.

I've tried everything I can think of. This is the best way to dev and test 
Cordova apps but without your plugin my first Cordova app will never exist.



--
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-8279) VIsual Studio Crashes When Importing Plugin to Cordova Project

2015-01-08 Thread Tom ashley (JIRA)

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

Tom ashley edited comment on CB-8279 at 1/8/15 8:18 PM:


I've also tried updating Web Essentials in VS2013 but that didn't work either. 
Also not mentioned is that VS2013 that is being used is SP4 (As it should be).


was (Author: synthetisoft):
I've also tried updating Web Essentials in VS2013 but that didn't work either.

 VIsual Studio Crashes When Importing Plugin to Cordova Project
 --

 Key: CB-8279
 URL: https://issues.apache.org/jira/browse/CB-8279
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugins
Affects Versions: 3.5.0
 Environment: Windows 8.1, Visual Studio 2013 and Visual Studio 2015 
 Preview with Apache Cordova successfully installed in VS2013 and installed by 
 default in VS2015 Preview.
Reporter: Tom ashley
Priority: Critical
  Labels: github-import

 I've tried to import git packages into Cordova for VIsual Studio in both 
 VS2013  VS2015 and it it crashes VS every time. Here's a screenshot: 
 http://screencast.com/t/kLxeLC6G and here's the full error that is generated 
 which happens whether you use the remote or local import option and also 
 using the URL of the GIT as suggested on this particular plugin page 
 https://github.com/songz/cordova-plugin-opentok (Exact same thing.. Blank 
 info, VS crash but installing the plugins from the Core list works.):
 Problem signature:
 Problem Event Name: CLR20r3
 Problem Signature 01: devenv.exe
 Problem Signature 02: 14.0.22310.1
 Problem Signature 03: 546094b0
 Problem Signature 04: mscorlib
 Problem Signature 05: 4.5.27.0
 Problem Signature 06: 545ca51f
 Problem Signature 07: 48dd
 Problem Signature 08: 27
 Problem Signature 09: System.ArgumentNullException
 OS Version: 6.3.9600.2.0.0.256.48
 Locale ID: 1033
 Additional Information 1: 5861
 Additional Information 2: 5861822e1919d7c014bbb064c64908b2
 Additional Information 3: a10f
 Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069
 I've tried adding the plugin to the VS project from the command line but it 
 says it isn't a proper Cordova project. I've also tried using the Local 
 option in VS and it doesn't work. You can easily verify this for free by 
 installing VS2015 Preview and trying to import your plugin to a project 
 (Right click config.xml - Design Mode - Plugins.
 I've tried everything I can think of. This is the best way to dev and test 
 Cordova apps but without importing plugins It's useless in many situations.



--
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-8255) Android gradle builds should be configurable via gradle properties instead of custom environment variables

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

Commit c3610aa43cc0baba7bd088f83a917537628139f3 in cordova-android's branch 
refs/heads/4.0.x from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-android.git;h=c3610aa ]

CB-8255 Use properties rather than environment variables for gradle settings


 Android gradle builds should be configurable via gradle properties instead of 
 custom environment variables
 --

 Key: CB-8255
 URL: https://issues.apache.org/jira/browse/CB-8255
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor

 Gradle has excellent support for build properties, as explained here:
 http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
 Our use of environment variables isn't great, mostly because in Java, 
 environment variables are immutable, and so can't be changed via 
 build-extras.gradle. There needs to be a way to make IDE builds use the same 
 settings as command-line builds, and switching to use gradle properties is a 
 good step towards this (which can be set via environment variables anyways!)



--
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-8255) Android gradle builds should be configurable via gradle properties instead of custom environment variables

2015-01-08 Thread Andrew Grieve (JIRA)

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

Andrew Grieve resolved CB-8255.
---
Resolution: Fixed

Fixed in 3.7.0-dev

 Android gradle builds should be configurable via gradle properties instead of 
 custom environment variables
 --

 Key: CB-8255
 URL: https://issues.apache.org/jira/browse/CB-8255
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor

 Gradle has excellent support for build properties, as explained here:
 http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
 Our use of environment variables isn't great, mostly because in Java, 
 environment variables are immutable, and so can't be changed via 
 build-extras.gradle. There needs to be a way to make IDE builds use the same 
 settings as command-line builds, and switching to use gradle properties is a 
 good step towards this (which can be set via environment variables anyways!)



--
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-8277) platform update isn't working

2015-01-08 Thread Edna Morales (JIRA)

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

Edna Morales commented on CB-8277:
--

I think this is a duplicate of CB-8036

 platform update isn't working
 -

 Key: CB-8277
 URL: https://issues.apache.org/jira/browse/CB-8277
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.7.0
Reporter: Josh Soref

 Trying to install facebook-plugin:
 {quote}
 $ cordova plugin add ~/Cordova/phonegap-facebook-plugin  --variable 
 APP_ID=616451688482285 --variable APP_NAME=hybrid-app 
 Installing com.phonegap.plugins.facebookconnect for android
 Installing com.phonegap.plugins.facebookconnect for blackberry10
 Installing com.phonegap.plugins.facebookconnect for ios
 Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin 
 doesn't support this project's cordova version. cordova: 3.4.0, failed 
 version requirement: =3.5.0
 ...
 Plugin doesn't support this project's cordova version. cordova: 3.4.0, failed 
 version requirement: =3.5.0
 {quote}
 ok, so let's update ios:
 {quote}
 $ cordova platform update ios
 {quote}
 {quote}
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'shelljs'
 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 
 (~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update:21: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 Function.Module.runMain (module.js:497:10)
 Error: ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update: Command 
 failed with exit code 8
 at ChildProcess.whenDone (cordova-lib/src/cordova/superspawn.js:135:23)
 at ChildProcess.EventEmitter.emit (events.js:98:17)
 at maybeClose (child_process.js:735:16)
 at Process.ChildProcess._handle.onexit (child_process.js:802:5)
 {quote}
 shelljs is listed in the package.json:
 {quote}
 $ grep shelljs 
 ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/package.json 
 shelljs: ^0.2.6,
 {quote}
 but it isn't included:
 {quote}
 $ find ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package -name shelljs|wc -l
0
 {quote}



--
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-8280) splashscreen.show() auto-hides unexpectedly after ~1 second

2015-01-08 Thread Andrew Grieve (JIRA)
Andrew Grieve created CB-8280:
-

 Summary: splashscreen.show() auto-hides unexpectedly after ~1 
second
 Key: CB-8280
 URL: https://issues.apache.org/jira/browse/CB-8280
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin SplashScreen
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor


as hinted to by [~fujunwei], on 4.0.x branch splashscreen doesn't stay showing. 
in mobilespec manual test.



--
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-8280) splashscreen.show() auto-hides unexpectedly after ~1 second

2015-01-08 Thread Andrew Grieve (JIRA)

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

Andrew Grieve commented on CB-8280:
---

Looks like the issue is that it's only showing for `SplashScreenDelay`, even 
when explicitly shown by .show(). Likely affects SplashScreen@master as well.

 splashscreen.show() auto-hides unexpectedly after ~1 second
 ---

 Key: CB-8280
 URL: https://issues.apache.org/jira/browse/CB-8280
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin SplashScreen
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor

 as hinted to by [~fujunwei], on 4.0.x branch splashscreen doesn't stay 
 showing. in mobilespec manual test.



--
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-8279) VIsual Studio Crashes When Importing Plugin to Cordova Project

2015-01-08 Thread Tom ashley (JIRA)

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

Tom ashley commented on CB-8279:


I was able to import a plugin from GitHub (Auth0) in VS successfully. The 
problem seems to be in the parsing of certain plugins like one I'm really 
trying to install which is the latest version of OpenTok for Cordova. The 
latest version is only on GitHub so I'm stuck with this crashing.

 VIsual Studio Crashes When Importing Plugin to Cordova Project
 --

 Key: CB-8279
 URL: https://issues.apache.org/jira/browse/CB-8279
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugins
Affects Versions: 3.5.0
 Environment: Windows 8.1, Visual Studio 2013 and Visual Studio 2015 
 Preview with Apache Cordova successfully installed in VS2013 and installed by 
 default in VS2015 Preview.
Reporter: Tom ashley
Priority: Critical
  Labels: github-import

 I've tried to import git packages into Cordova for VIsual Studio in both 
 VS2013  VS2015 and it it crashes VS every time. Here's a screenshot: 
 http://screencast.com/t/kLxeLC6G and here's the full error that is generated 
 which happens whether you use the remote or local import option and also 
 using the URL of the GIT as suggested on this particular plugin page 
 https://github.com/songz/cordova-plugin-opentok (Exact same thing.. Blank 
 info, VS crash but installing the plugins from the Core list works.):
 Problem signature:
 Problem Event Name: CLR20r3
 Problem Signature 01: devenv.exe
 Problem Signature 02: 14.0.22310.1
 Problem Signature 03: 546094b0
 Problem Signature 04: mscorlib
 Problem Signature 05: 4.5.27.0
 Problem Signature 06: 545ca51f
 Problem Signature 07: 48dd
 Problem Signature 08: 27
 Problem Signature 09: System.ArgumentNullException
 OS Version: 6.3.9600.2.0.0.256.48
 Locale ID: 1033
 Additional Information 1: 5861
 Additional Information 2: 5861822e1919d7c014bbb064c64908b2
 Additional Information 3: a10f
 Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069
 I've tried adding the plugin to the VS project from the command line but it 
 says it isn't a proper Cordova project. I've also tried using the Local 
 option in VS and it doesn't work. You can easily verify this for free by 
 installing VS2015 Preview and trying to import your plugin to a project 
 (Right click config.xml - Design Mode - Plugins.
 I've tried everything I can think of. This is the best way to dev and test 
 Cordova apps but without importing plugins It's useless in many situations.



--
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-8277) platform update isn't working

2015-01-08 Thread Edna Morales (JIRA)

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

Edna Morales commented on CB-8277:
--

I believe the issue is that the node_modules directory isn't in the cordova-ios 
package. It is present in the git repo but if you download the package from the 
registry, that directory isn't there

 platform update isn't working
 -

 Key: CB-8277
 URL: https://issues.apache.org/jira/browse/CB-8277
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Affects Versions: 3.7.0
Reporter: Josh Soref

 Trying to install facebook-plugin:
 {quote}
 $ cordova plugin add ~/Cordova/phonegap-facebook-plugin  --variable 
 APP_ID=616451688482285 --variable APP_NAME=hybrid-app 
 Installing com.phonegap.plugins.facebookconnect for android
 Installing com.phonegap.plugins.facebookconnect for blackberry10
 Installing com.phonegap.plugins.facebookconnect for ios
 Failed to install 'com.phonegap.plugins.facebookconnect':CordovaError: Plugin 
 doesn't support this project's cordova version. cordova: 3.4.0, failed 
 version requirement: =3.5.0
 ...
 Plugin doesn't support this project's cordova version. cordova: 3.4.0, failed 
 version requirement: =3.5.0
 {quote}
 ok, so let's update ios:
 {quote}
 $ cordova platform update ios
 {quote}
 {quote}
 module.js:340
 throw err;
   ^
 Error: Cannot find module 'shelljs'
 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 
 (~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update:21: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 Function.Module.runMain (module.js:497:10)
 Error: ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/bin/update: Command 
 failed with exit code 8
 at ChildProcess.whenDone (cordova-lib/src/cordova/superspawn.js:135:23)
 at ChildProcess.EventEmitter.emit (events.js:98:17)
 at maybeClose (child_process.js:735:16)
 at Process.ChildProcess._handle.onexit (child_process.js:802:5)
 {quote}
 shelljs is listed in the package.json:
 {quote}
 $ grep shelljs 
 ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package/package.json 
 shelljs: ^0.2.6,
 {quote}
 but it isn't included:
 {quote}
 $ find ~/.cordova/lib/npm_cache/cordova-ios/3.7.0/package -name shelljs|wc -l
0
 {quote}



--
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-8279) VIsual Studio Crashes When Importing Plugin to Cordova Project

2015-01-08 Thread Tom ashley (JIRA)

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

Tom ashley commented on CB-8279:


I've also tried updating Web Essentials in VS2013 but that didn't work either.

 VIsual Studio Crashes When Importing Plugin to Cordova Project
 --

 Key: CB-8279
 URL: https://issues.apache.org/jira/browse/CB-8279
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugins
Affects Versions: 3.5.0
 Environment: Windows 8.1, Visual Studio 2013 and Visual Studio 2015 
 Preview with Apache Cordova successfully installed in VS2013 and installed by 
 default in VS2015 Preview.
Reporter: Tom ashley
Priority: Critical
  Labels: github-import

 I've tried to import git packages into Cordova for VIsual Studio in both 
 VS2013  VS2015 and it it crashes VS every time. Here's a screenshot: 
 http://screencast.com/t/kLxeLC6G and here's the full error that is generated 
 which happens whether you use the remote or local import option and also 
 using the URL of the GIT as suggested on this particular plugin page 
 https://github.com/songz/cordova-plugin-opentok (Exact same thing.. Blank 
 info, VS crash but installing the plugins from the Core list works.):
 Problem signature:
 Problem Event Name: CLR20r3
 Problem Signature 01: devenv.exe
 Problem Signature 02: 14.0.22310.1
 Problem Signature 03: 546094b0
 Problem Signature 04: mscorlib
 Problem Signature 05: 4.5.27.0
 Problem Signature 06: 545ca51f
 Problem Signature 07: 48dd
 Problem Signature 08: 27
 Problem Signature 09: System.ArgumentNullException
 OS Version: 6.3.9600.2.0.0.256.48
 Locale ID: 1033
 Additional Information 1: 5861
 Additional Information 2: 5861822e1919d7c014bbb064c64908b2
 Additional Information 3: a10f
 Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069
 I've tried adding the plugin to the VS project from the command line but it 
 says it isn't a proper Cordova project. I've also tried using the Local 
 option in VS and it doesn't work. You can easily verify this for free by 
 installing VS2015 Preview and trying to import your plugin to a project 
 (Right click config.xml - Design Mode - Plugins.
 I've tried everything I can think of. This is the best way to dev and test 
 Cordova apps but without importing plugins It's useless in many situations.



--
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-8252) Prep core plugins for CSP by removing eval()s (Android only)

2015-01-08 Thread Jason Chase (JIRA)

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

Jason Chase reassigned CB-8252:
---

Assignee: Andrew Grieve  (was: Jason Chase)

For review of pull request.

 Prep core plugins for CSP by removing eval()s (Android only)
 

 Key: CB-8252
 URL: https://issues.apache.org/jira/browse/CB-8252
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugins
Affects Versions: Master
Reporter: Jason Chase
Assignee: Andrew Grieve

 In preparation for CSP, remove any native Android code in the core plugins 
 that is using inline javascript/eval()s.  Other platforms with native code 
 (i.e. iOS) are out of scope for now.
 Found only the media plugin (org.apache.cordova.media) that was using inline 
 javascript (to send status updates).



--
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-8255) Android gradle builds should be configurable via gradle properties instead of custom environment variables

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

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

CB-8255 Use properties rather than environment variables for gradle settings


 Android gradle builds should be configurable via gradle properties instead of 
 custom environment variables
 --

 Key: CB-8255
 URL: https://issues.apache.org/jira/browse/CB-8255
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor

 Gradle has excellent support for build properties, as explained here:
 http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
 Our use of environment variables isn't great, mostly because in Java, 
 environment variables are immutable, and so can't be changed via 
 build-extras.gradle. There needs to be a way to make IDE builds use the same 
 settings as command-line builds, and switching to use gradle properties is a 
 good step towards this (which can be set via environment variables anyways!)



--
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-8244) android: Make plugin add --link create symlinks for source-file, lib-file, etc

2015-01-08 Thread Andrew Grieve (JIRA)

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

Andrew Grieve commented on CB-8244:
---

Re-committed after doing it on branch and confirming AppVeyor / Travis status. 
Neat stuff!

Did also go through downloading a windows VM and confirmed it works just the 
same on Windows, except you need to be in admin mode to do the actual link (but 
then editing afterwards works fine as a normal user)

 android: Make plugin add --link create symlinks for source-file, lib-file, etc
 --

 Key: CB-8244
 URL: https://issues.apache.org/jira/browse/CB-8244
 Project: Apache Cordova
  Issue Type: Improvement
  Components: CordovaLib
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor

 Both Android Studio and Gradle play nicely with symlinks. By symlinking the 
 actual files, you can edit .java files in the IDE and not need to copy them 
 back to the plugin source location!
 Adding this feature just to Android right now, as that's all I'm testing with.



--
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-6462) Support Orientation global preference

2015-01-08 Thread Shazron Abdullah (JIRA)

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

Shazron Abdullah resolved CB-6462.
--
Resolution: Fixed

 Support Orientation global preference
 ---

 Key: CB-6462
 URL: https://issues.apache.org/jira/browse/CB-6462
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Reporter: Shazron Abdullah
Assignee: Shazron Abdullah

 See CB-6182
 For Orientation, this requires a change in the Info.plist but we could read 
 the preference, and override the reading of the values here: 
 https://github.com/apache/cordova-ios/blob/217b3a52af828b0cc88111bcda7f7b862ad1549d/CordovaLib/Classes/CDVViewController.m#L78
 ... however it might be too confusing for the user, if there are two places 
 for the values to be set – but it could just be a documentation issue.



--
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-6462) Support Orientation global preference

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

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

CB-8043 CB-6462 CB-6105 Refactor orientation preference support (close #128)

- add support for ios, wp8 and firefoxos
- add support for specifying a custom value for a platform-specific orientation
- invalid global orientation preference value now defaults to value 'default'
- close #128


 Support Orientation global preference
 ---

 Key: CB-6462
 URL: https://issues.apache.org/jira/browse/CB-6462
 Project: Apache Cordova
  Issue Type: Bug
  Components: iOS
Reporter: Shazron Abdullah
Assignee: Shazron Abdullah

 See CB-6182
 For Orientation, this requires a change in the Info.plist but we could read 
 the preference, and override the reading of the values here: 
 https://github.com/apache/cordova-ios/blob/217b3a52af828b0cc88111bcda7f7b862ad1549d/CordovaLib/Classes/CDVViewController.m#L78
 ... however it might be too confusing for the user, if there are two places 
 for the values to be set – but it could just be a documentation issue.



--
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-8043) Orientation preference's value set to anything but landscape or portrait doesn't work.

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8043:


Github user asfgit closed the pull request at:

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


 Orientation preference's value set to anything but landscape or portrait 
 doesn't work.
 --

 Key: CB-8043
 URL: https://issues.apache.org/jira/browse/CB-8043
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
Reporter: Rémi Couturier

 cordova-cli: 4.1.2
 cordova-android: 3.6.4
 mac: osx yosemite
 In config.xml, setting the orientation preference's value to anything but 
 landscape or portrait doesn't work. Complete list of possible value: 
 http://developer.android.com/guide/topics/manifest/activity-element.html#screen
 For example when setting the value to userLandscape and building the app 
 (cordova build android), I'm getting this message: Unknown value for 
 orientation preference: userLandscape.



--
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-6105) Cordova CLI orientation preference does nothing on iOS

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

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

CB-8043 CB-6462 CB-6105 Refactor orientation preference support (close #128)

- add support for ios, wp8 and firefoxos
- add support for specifying a custom value for a platform-specific orientation
- invalid global orientation preference value now defaults to value 'default'
- close #128


 Cordova CLI orientation preference does nothing on iOS
 

 Key: CB-6105
 URL: https://issues.apache.org/jira/browse/CB-6105
 Project: Apache Cordova
  Issue Type: Bug
  Components: CLI
Affects Versions: 3.4.0
 Environment: iOS
Reporter: Michal Mocny

 There is a multi-platform app config preference for orientation, documented 
 here: 
 http://cordova.apache.org/docs/en/edge/config_ref_index.md.html#The%20config.xml%20File_global_preferences
 CLI's android_parser.js specifically looks for this tag and updates 
 AndroidManifest, but ios_parser.js does not.  I think it should be updating 
 the UISupportedInterfaceOrientations array in the app's plist.
 (Also, generally the way we do orientations is pretty poor and could do with 
 an overhaul, alas..)



--
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-8043) Orientation preference's value set to anything but landscape or portrait doesn't work.

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

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

CB-8043 CB-6462 CB-6105 Refactor orientation preference support (close #128)

- add support for ios, wp8 and firefoxos
- add support for specifying a custom value for a platform-specific orientation
- invalid global orientation preference value now defaults to value 'default'
- close #128


 Orientation preference's value set to anything but landscape or portrait 
 doesn't work.
 --

 Key: CB-8043
 URL: https://issues.apache.org/jira/browse/CB-8043
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Android
Reporter: Rémi Couturier

 cordova-cli: 4.1.2
 cordova-android: 3.6.4
 mac: osx yosemite
 In config.xml, setting the orientation preference's value to anything but 
 landscape or portrait doesn't work. Complete list of possible value: 
 http://developer.android.com/guide/topics/manifest/activity-element.html#screen
 For example when setting the value to userLandscape and building the app 
 (cordova build android), I'm getting this message: Unknown value for 
 orientation preference: userLandscape.



--
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-8279) VIsual Studio Crashes When Importing Plugin to Cordova Project

2015-01-08 Thread Tom ashley (JIRA)

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

Tom ashley updated CB-8279:
---
Description: 
I've tried to import git packages into Cordova for VIsual Studio in both VS2013 
 VS2015 and it it crashes VS every time. Here's a screenshot: 
http://screencast.com/t/kLxeLC6G and here's the full error that is generated 
which happens whether you use the remote or local import option and also using 
the URL of the GIT as suggested on this particular plugin page 
https://github.com/songz/cordova-plugin-opentok (Exact same thing.. Blank info, 
VS crash but installing the plugins from the Core list works.):

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe
Problem Signature 02: 14.0.22310.1
Problem Signature 03: 546094b0
Problem Signature 04: mscorlib
Problem Signature 05: 4.5.27.0
Problem Signature 06: 545ca51f
Problem Signature 07: 48dd
Problem Signature 08: 27
Problem Signature 09: System.ArgumentNullException
OS Version: 6.3.9600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: a10f
Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069

I've tried adding the plugin to the VS project from the command line but it 
says it isn't a proper Cordova project. I've also tried using the Local 
option in VS and it doesn't work. You can easily verify this for free by 
installing VS2015 Preview and trying to import your plugin to a project (Right 
click config.xml - Design Mode - Plugins.

I've tried everything I can think of. This is the best way to dev and test 
Cordova apps but without importing plugins It's useless in many situations.

  was:
I've tried to import git packages into Cordova for VIsual Studio in both VS2013 
 VS2015 and it it crashes VS every time. Here's a screenshot: 
http://screencast.com/t/kLxeLC6G and here's the full error that is generated 
which happens whether you use the remote or local import option and also using 
the URL of the GIT as suggested on this particular plugin page 
https://github.com/songz/cordova-plugin-opentok (Exact same thing.. Blank info, 
VS crash but installing the plugins from the Core list works.):

Problem signature:
Problem Event Name: CLR20r3
Problem Signature 01: devenv.exe
Problem Signature 02: 14.0.22310.1
Problem Signature 03: 546094b0
Problem Signature 04: mscorlib
Problem Signature 05: 4.5.27.0
Problem Signature 06: 545ca51f
Problem Signature 07: 48dd
Problem Signature 08: 27
Problem Signature 09: System.ArgumentNullException
OS Version: 6.3.9600.2.0.0.256.48
Locale ID: 1033
Additional Information 1: 5861
Additional Information 2: 5861822e1919d7c014bbb064c64908b2
Additional Information 3: a10f
Additional Information 4: a10ff7d2bb2516fdc753f9c34fc3b069

I've tried adding the plugin to the VS project from the command line but it 
says it isn't a proper Cordova project. I've also tried using the Local 
option in VS and it doesn't work. You can easily verify this for free by 
installing VS2015 Preview and trying to import your plugin to a project (Right 
click config.xml - Design Mode - Plugins.

I've tried everything I can think of. This is the best way to dev and test 
Cordova apps but without your plugin my first Cordova app will never exist.


 VIsual Studio Crashes When Importing Plugin to Cordova Project
 --

 Key: CB-8279
 URL: https://issues.apache.org/jira/browse/CB-8279
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugins
Affects Versions: 3.5.0
 Environment: Windows 8.1, Visual Studio 2013 and Visual Studio 2015 
 Preview with Apache Cordova successfully installed in VS2013 and installed by 
 default in VS2015 Preview.
Reporter: Tom ashley
Priority: Critical
  Labels: github-import

 I've tried to import git packages into Cordova for VIsual Studio in both 
 VS2013  VS2015 and it it crashes VS every time. Here's a screenshot: 
 http://screencast.com/t/kLxeLC6G and here's the full error that is generated 
 which happens whether you use the remote or local import option and also 
 using the URL of the GIT as suggested on this particular plugin page 
 https://github.com/songz/cordova-plugin-opentok (Exact same thing.. Blank 
 info, VS crash but installing the plugins from the Core list works.):
 Problem signature:
 Problem Event Name: CLR20r3
 Problem Signature 01: devenv.exe
 Problem Signature 02: 14.0.22310.1
 Problem Signature 03: 546094b0
 Problem Signature 04: mscorlib
 Problem Signature 05: 4.5.27.0
 Problem Signature 06: 545ca51f
 Problem Signature 07: 48dd
 Problem Signature 08: 27
 Problem Signature 09: System.ArgumentNullException
 OS Version: 6.3.9600.2.0.0.256.48
 Locale ID: 1033
 Additional Information 1: 5861
 Additional Information 2: 

[jira] [Commented] (CB-8252) Prep core plugins for CSP by removing eval()s (Android only)

2015-01-08 Thread ASF GitHub Bot (JIRA)

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

ASF GitHub Bot commented on CB-8252:


GitHub user jpchase opened a pull request:

https://github.com/apache/cordova-plugin-media/pull/41

CB-8252 Fire audio events from native via message channel

- Add startup logic to initialize a message channel for native - Javascript
- Applies only to android and amazon-fireos (as this reuses the android 
native code)
- Change audio status events to send via plugin message channel, instead
using eval() (i.e. webView.sendJavascript())

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

$ git pull https://github.com/jpchase/cordova-plugin-media CB-8252

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

https://github.com/apache/cordova-plugin-media/pull/41.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 #41


commit c3880f377f3c7737f3d3282701c8e0e6f8109c68
Author: Jason Chase jasonpch...@gmail.com
Date:   2015-01-08T20:04:51Z

CB-8252 Fire audio events from native via message channel
- Add startup logic to initialize a message channel for native - Javascript
- Applies only to android and amazon-fireos (as this reuses the android 
native code)
- Change audio status events to send via plugin message channel, instead
using eval() (i.e. webView.sendJavascript())




 Prep core plugins for CSP by removing eval()s (Android only)
 

 Key: CB-8252
 URL: https://issues.apache.org/jira/browse/CB-8252
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugins
Affects Versions: Master
Reporter: Jason Chase
Assignee: Jason Chase

 In preparation for CSP, remove any native Android code in the core plugins 
 that is using inline javascript/eval()s.
 Other platforms with native code (i.e. iOS) are out of scope for now.



--
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-8252) Prep core plugins for CSP by removing eval()s (Android only)

2015-01-08 Thread Jason Chase (JIRA)

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

Jason Chase updated CB-8252:

Description: 
In preparation for CSP, remove any native Android code in the core plugins that 
is using inline javascript/eval()s.  Other platforms with native code (i.e. 
iOS) are out of scope for now.

Found only the media plugin (org.apache.cordova.media) that was using inline 
javascript (to send status updates).

  was:
In preparation for CSP, remove any native Android code in the core plugins that 
is using inline javascript/eval()s.

Other platforms with native code (i.e. iOS) are out of scope for now.


 Prep core plugins for CSP by removing eval()s (Android only)
 

 Key: CB-8252
 URL: https://issues.apache.org/jira/browse/CB-8252
 Project: Apache Cordova
  Issue Type: Improvement
  Components: Plugins
Affects Versions: Master
Reporter: Jason Chase
Assignee: Jason Chase

 In preparation for CSP, remove any native Android code in the core plugins 
 that is using inline javascript/eval()s.  Other platforms with native code 
 (i.e. iOS) are out of scope for now.
 Found only the media plugin (org.apache.cordova.media) that was using inline 
 javascript (to send status updates).



--
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-8255) Android gradle builds should be configurable via gradle properties instead of custom environment variables

2015-01-08 Thread ASF subversion and git services (JIRA)

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

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

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

CB-8255 Document gradle properties (they replace environment variables)


 Android gradle builds should be configurable via gradle properties instead of 
 custom environment variables
 --

 Key: CB-8255
 URL: https://issues.apache.org/jira/browse/CB-8255
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
Reporter: Andrew Grieve
Assignee: Andrew Grieve
Priority: Minor

 Gradle has excellent support for build properties, as explained here:
 http://www.gradle.org/docs/current/userguide/tutorial_this_and_that.html
 Our use of environment variables isn't great, mostly because in Java, 
 environment variables are immutable, and so can't be changed via 
 build-extras.gradle. There needs to be a way to make IDE builds use the same 
 settings as command-line builds, and switching to use gradle properties is a 
 good step towards this (which can be set via environment variables anyways!)



--
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