[jira] [Commented] (CB-9976) Updating to cordovaLib 5.4.0 breaks ios installed plugins

2016-02-12 Thread Vladimir Kotikov (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9976?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144294#comment-15144294
 ] 

Vladimir Kotikov commented on CB-9976:
--

[~tl274n], Android issue has been reported in CB-10138. The fix is in master 
already and will be available in next cordova-android release

> Updating to cordovaLib 5.4.0 breaks ios installed plugins
> -
>
> Key: CB-9976
> URL: https://issues.apache.org/jira/browse/CB-9976
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Reporter: Steve Gill
>Assignee: Vladimir Kotikov
> Fix For: 5.4.1
>
>
> cordova_plugins.js doesn't get created for ios when updating from an older 
> cli to a newer cli. 
> Have to remove and add plugins manually to get plugins working again.
> Reproduce (need to use npm < 3):
> npm install -g cordova@5.3.3
> cordova create helloWorld
> cd helloWorld
> cordova platform add ios
> cordova plugin add cordova-plugin-device
> cordova prepare (helloWorld/platforms/ios/www/cordova_plugins.js is created)
> npm install -g cordova@5.4.0
> cordova prepare (helloWorld/platforms/ios/www/cordova_plugins.js doesn't 
> exist)
> `helloWorld/platforms/ios/ios.json` is also incorrect in the updated version. 



--
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-10592) cordova additionally quotes platform specific arguments when used programmatically

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144385#comment-15144385
 ] 

ASF GitHub Bot commented on CB-10592:
-

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

https://github.com/apache/cordova-lib/pull/386#discussion_r52726089
  
--- Diff: cordova-lib/src/cordova/util.js ---
@@ -297,7 +297,7 @@ function ensurePlatformOptionsCompatible 
(platformOptions) {
 }).map(function (arg) {
 return opts[arg] === true ?
 '--' + arg :
-'--' + arg + '="' + opts[arg].toString() + '"';
+'--' + arg + '=' + opts[arg].toString();
--- End diff --

Why are we passing string CLI arguments in a programmatic API? If this is 
because we're using `cordova.raw`, then can we refactor to not use it?


> cordova additionally quotes platform specific arguments when used 
> programmatically
> --
>
> Key: CB-10592
> URL: https://issues.apache.org/jira/browse/CB-10592
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.0.0
> Environment: Cordova@6.0.0, OS X or *nix machine
>Reporter: Vladimir Kotikov
>Assignee: Vladimir Kotikov
>
> Some platform-specific arguments (such as {{--gradleArg}}) is additionally 
> quoted, when options passed to {{cordova.raw}} API using old format. Though 
> this is not a problem on Windows, because the command processor on handles 
> such arguments correctly, on OS X this leads to unexpected failures.
> For example running 
> {noformat}
> cordova.raw.build({
> platforms: [android],
> options: ["--gradleArg=--no-daemon"]
> })
> {noformat}
> causes gradle build failure with following message {{Task '"--no-daemon"' not 
> found in root project 'android'.}}



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

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



[jira] [Closed] (CB-10397) Implement Appium tests for Camera plugin

2016-02-12 Thread Alexander Sorokin (JIRA)

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

Alexander Sorokin closed CB-10397.
--
Resolution: Fixed

> Implement Appium tests for Camera plugin
> 
>
> Key: CB-10397
> URL: https://issues.apache.org/jira/browse/CB-10397
> Project: Apache Cordova
>  Issue Type: Task
>  Components: Medic, Plugin Camera
>Reporter: Alexander Sorokin
>Assignee: Alexander Sorokin
>




--
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-10397) Implement Appium tests for Camera plugin

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144505#comment-15144505
 ] 

ASF GitHub Bot commented on CB-10397:
-

Github user asfgit closed the pull request at:

https://github.com/apache/cordova-plugin-camera/pull/156


> Implement Appium tests for Camera plugin
> 
>
> Key: CB-10397
> URL: https://issues.apache.org/jira/browse/CB-10397
> Project: Apache Cordova
>  Issue Type: Task
>  Components: Medic, Plugin Camera
>Reporter: Alexander Sorokin
>Assignee: Alexander Sorokin
>




--
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-10397) Implement Appium tests for Camera plugin

2016-02-12 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10397?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144503#comment-15144503
 ] 

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

Commit a060fb36f38b5dcf9daab64bbbfcda0b1646a817 in cordova-plugin-camera's 
branch refs/heads/master from [~alsorokin]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-plugin-camera.git;h=a060fb3 
]

CB-10397 Added Appium tests


> Implement Appium tests for Camera plugin
> 
>
> Key: CB-10397
> URL: https://issues.apache.org/jira/browse/CB-10397
> Project: Apache Cordova
>  Issue Type: Task
>  Components: Medic, Plugin Camera
>Reporter: Alexander Sorokin
>Assignee: Alexander Sorokin
>




--
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-9393) Embedded use case is undocumented for Cordova-Android 4.0.x

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144477#comment-15144477
 ] 

ASF GitHub Bot commented on CB-9393:


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

https://github.com/apache/cordova-docs/pull/498#discussion_r52730825
  
--- Diff: www/docs/en/dev/guide/platforms/android/webview.md ---
@@ -29,106 +29,73 @@ components can communicate with each other, see 
Application Plugins.
 If you're unfamiliar with Android, you should first familiarize
 yourself with the [Android Platform Guide](index.html) and have the latest 
Android
 SDK installed before you attempt the more unusual development option
-of embedding a WebView.  Starting with Cordova 1.9, the Android
-platform relies on a `CordovaWebView` component, which builds on a
-legacy `CordovaActivity` component that pre-dates the 1.9 release.
+of embedding a WebView.  Starting with Cordova 4.0, the Android
+platform relies on a `SystemWebView` component.
 
 1. To follow these instructions, make sure you have the latest Cordova
distribution. Download it from
[cordova.apache.org](http://cordova.apache.org) and unzip its
Android package.
 
-1. Navigate to the Android package's `/framework` directory and run
-   `ant jar`. It creates the Cordova `.jar` file, formed as
-   `/framework/cordova-x.x.x.jar`.
+1. Create a project in Android Studio
 
-1. Copy the `.jar` file into the Android project's `/libs` directory.
+1. Copy the framework directory into your project's root directory and 
name it
+CordovaLib
+
+1. Add that project as a library project to your main project.
 
 1. Add the following to the application's `/res/xml/main.xml` file,
with the `layout_height`, `layout_width` and `id` modified to suit
the application:
 
-
 
-1. Modify the activity so that it implements the `CordovaInterface`.
-   It should implement the included methods.  You may wish to copy
-   them from `/framework/src/org/apache/cordova/CordovaActivity.java`,
-   or else implement them on your own.  The following code fragment
-   shows a basic application that relies on the interface. Note how
-   the referenced view id matches the `id` attribute specified in the
-   XML fragment shown above:
-
-public class CordovaViewTestActivity extends Activity implements 
CordovaInterface {
-CordovaWebView cwv;
-/* Called when the activity is first created. */
-@Override
-public void onCreate(Bundle savedInstanceState) {
-super.onCreate(savedInstanceState);
-setContentView(R.layout.main);
-cwv = (CordovaWebView) findViewById(R.id.tutorialView);
-Config.init(this);
-cwv.loadUrl(Config.getStartUrl());
-}
+1. Add the following code to setup your Activity so that you have an 
interface
 
-1. If the application needs to use the camera, implement the
-   following:
+private CordovaInterfaceImpl iface = new 
CordovaInterfaceImpl(this);
+
+1. Add the following to intialize the WebView
+
+//Set up the webview
+ConfigXmlParser parser = new ConfigXmlParser();
+parser.parse(this);
+
+SystemWebView webView = (SystemWebView) 
findViewById(R.id.WebViewComponent);
+webInterface = new CordovaWebViewImpl(new 
SystemWebViewEngine(webView));
+webInterface.init(iface, parser.getPluginEntries(), 
parser.getPreferences());
+
+loadUrl(parser.getLaunchUrl());
+
+
+1. Copy the application's HTML and JavaScript files to the Android
+   project's `app/src/main/assets/www` directory.
+
+1. Copy the `config.xml` file from `/framework/res/xml` to the
--- End diff --

There is no config.xml on /framework/res/xml. I've found two, one on 
test/res/xml and another on /bin/templates/project/res/xml, I suppose the good 
one is the one on bin, right?


> Embedded use case is undocumented for Cordova-Android 4.0.x
> ---
>
> Key: CB-9393
> URL: https://issues.apache.org/jira/browse/CB-9393
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 4.0.1
>Reporter: Joe Bowser
>Assignee: Joe Bowser
> Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the 

[jira] [Commented] (CB-9393) Embedded use case is undocumented for Cordova-Android 4.0.x

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144470#comment-15144470
 ] 

ASF GitHub Bot commented on CB-9393:


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

https://github.com/apache/cordova-docs/pull/498#discussion_r52730740
  
--- Diff: www/docs/en/dev/guide/platforms/android/webview.md ---
@@ -29,106 +29,73 @@ components can communicate with each other, see 
Application Plugins.
 If you're unfamiliar with Android, you should first familiarize
 yourself with the [Android Platform Guide](index.html) and have the latest 
Android
 SDK installed before you attempt the more unusual development option
-of embedding a WebView.  Starting with Cordova 1.9, the Android
-platform relies on a `CordovaWebView` component, which builds on a
-legacy `CordovaActivity` component that pre-dates the 1.9 release.
+of embedding a WebView.  Starting with Cordova 4.0, the Android
+platform relies on a `SystemWebView` component.
 
 1. To follow these instructions, make sure you have the latest Cordova
distribution. Download it from
[cordova.apache.org](http://cordova.apache.org) and unzip its
Android package.
 
-1. Navigate to the Android package's `/framework` directory and run
-   `ant jar`. It creates the Cordova `.jar` file, formed as
-   `/framework/cordova-x.x.x.jar`.
+1. Create a project in Android Studio
 
-1. Copy the `.jar` file into the Android project's `/libs` directory.
+1. Copy the framework directory into your project's root directory and 
name it
+CordovaLib
+
+1. Add that project as a library project to your main project.
 
 1. Add the following to the application's `/res/xml/main.xml` file,
with the `layout_height`, `layout_width` and `id` modified to suit
the application:
 
- Embedded use case is undocumented for Cordova-Android 4.0.x
> ---
>
> Key: CB-9393
> URL: https://issues.apache.org/jira/browse/CB-9393
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 4.0.1
>Reporter: Joe Bowser
>Assignee: Joe Bowser
> Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the meantime document all the workarounds for getting an 
> embedded webview in Android Studio to actually work.



--
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-9393) Embedded use case is undocumented for Cordova-Android 4.0.x

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144471#comment-15144471
 ] 

ASF GitHub Bot commented on CB-9393:


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

https://github.com/apache/cordova-docs/pull/498#discussion_r52730759
  
--- Diff: www/docs/en/dev/guide/platforms/android/webview.md ---
@@ -29,106 +29,73 @@ components can communicate with each other, see 
Application Plugins.
 If you're unfamiliar with Android, you should first familiarize
 yourself with the [Android Platform Guide](index.html) and have the latest 
Android
 SDK installed before you attempt the more unusual development option
-of embedding a WebView.  Starting with Cordova 1.9, the Android
-platform relies on a `CordovaWebView` component, which builds on a
-legacy `CordovaActivity` component that pre-dates the 1.9 release.
+of embedding a WebView.  Starting with Cordova 4.0, the Android
+platform relies on a `SystemWebView` component.
 
 1. To follow these instructions, make sure you have the latest Cordova
distribution. Download it from
[cordova.apache.org](http://cordova.apache.org) and unzip its
Android package.
 
-1. Navigate to the Android package's `/framework` directory and run
-   `ant jar`. It creates the Cordova `.jar` file, formed as
-   `/framework/cordova-x.x.x.jar`.
+1. Create a project in Android Studio
 
-1. Copy the `.jar` file into the Android project's `/libs` directory.
+1. Copy the framework directory into your project's root directory and 
name it
+CordovaLib
+
+1. Add that project as a library project to your main project.
 
 1. Add the following to the application's `/res/xml/main.xml` file,
with the `layout_height`, `layout_width` and `id` modified to suit
the application:
 
-
 
-1. Modify the activity so that it implements the `CordovaInterface`.
-   It should implement the included methods.  You may wish to copy
-   them from `/framework/src/org/apache/cordova/CordovaActivity.java`,
-   or else implement them on your own.  The following code fragment
-   shows a basic application that relies on the interface. Note how
-   the referenced view id matches the `id` attribute specified in the
-   XML fragment shown above:
-
-public class CordovaViewTestActivity extends Activity implements 
CordovaInterface {
-CordovaWebView cwv;
-/* Called when the activity is first created. */
-@Override
-public void onCreate(Bundle savedInstanceState) {
-super.onCreate(savedInstanceState);
-setContentView(R.layout.main);
-cwv = (CordovaWebView) findViewById(R.id.tutorialView);
-Config.init(this);
-cwv.loadUrl(Config.getStartUrl());
-}
+1. Add the following code to setup your Activity so that you have an 
interface
 
-1. If the application needs to use the camera, implement the
-   following:
+private CordovaInterfaceImpl iface = new 
CordovaInterfaceImpl(this);
+
+1. Add the following to intialize the WebView
+
+//Set up the webview
+ConfigXmlParser parser = new ConfigXmlParser();
+parser.parse(this);
+
+SystemWebView webView = (SystemWebView) 
findViewById(R.id.WebViewComponent);
--- End diff --

you used the tutorialView id, not WebViewComponent


> Embedded use case is undocumented for Cordova-Android 4.0.x
> ---
>
> Key: CB-9393
> URL: https://issues.apache.org/jira/browse/CB-9393
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 4.0.1
>Reporter: Joe Bowser
>Assignee: Joe Bowser
> Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the meantime document all the workarounds for getting an 
> embedded webview in Android Studio to actually work.



--
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-9393) Embedded use case is undocumented for Cordova-Android 4.0.x

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144467#comment-15144467
 ] 

ASF GitHub Bot commented on CB-9393:


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

https://github.com/apache/cordova-docs/pull/498#discussion_r52730725
  
--- Diff: www/docs/en/dev/guide/platforms/android/webview.md ---
@@ -29,106 +29,73 @@ components can communicate with each other, see 
Application Plugins.
 If you're unfamiliar with Android, you should first familiarize
 yourself with the [Android Platform Guide](index.html) and have the latest 
Android
 SDK installed before you attempt the more unusual development option
-of embedding a WebView.  Starting with Cordova 1.9, the Android
-platform relies on a `CordovaWebView` component, which builds on a
-legacy `CordovaActivity` component that pre-dates the 1.9 release.
+of embedding a WebView.  Starting with Cordova 4.0, the Android
+platform relies on a `SystemWebView` component.
 
 1. To follow these instructions, make sure you have the latest Cordova
distribution. Download it from
[cordova.apache.org](http://cordova.apache.org) and unzip its
--- End diff --

It's hard to find where to download it. Maybe the link should point to dist 
page https://dist.apache.org/repos/dist/release/cordova/platforms/ or github 
releases page https://github.com/apache/cordova-android/releases


> Embedded use case is undocumented for Cordova-Android 4.0.x
> ---
>
> Key: CB-9393
> URL: https://issues.apache.org/jira/browse/CB-9393
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 4.0.1
>Reporter: Joe Bowser
>Assignee: Joe Bowser
> Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the meantime document all the workarounds for getting an 
> embedded webview in Android Studio to actually work.



--
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-9393) Embedded use case is undocumented for Cordova-Android 4.0.x

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144472#comment-15144472
 ] 

ASF GitHub Bot commented on CB-9393:


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

https://github.com/apache/cordova-docs/pull/498#discussion_r52730771
  
--- Diff: www/docs/en/dev/guide/platforms/android/webview.md ---
@@ -29,106 +29,73 @@ components can communicate with each other, see 
Application Plugins.
 If you're unfamiliar with Android, you should first familiarize
 yourself with the [Android Platform Guide](index.html) and have the latest 
Android
 SDK installed before you attempt the more unusual development option
-of embedding a WebView.  Starting with Cordova 1.9, the Android
-platform relies on a `CordovaWebView` component, which builds on a
-legacy `CordovaActivity` component that pre-dates the 1.9 release.
+of embedding a WebView.  Starting with Cordova 4.0, the Android
+platform relies on a `SystemWebView` component.
 
 1. To follow these instructions, make sure you have the latest Cordova
distribution. Download it from
[cordova.apache.org](http://cordova.apache.org) and unzip its
Android package.
 
-1. Navigate to the Android package's `/framework` directory and run
-   `ant jar`. It creates the Cordova `.jar` file, formed as
-   `/framework/cordova-x.x.x.jar`.
+1. Create a project in Android Studio
 
-1. Copy the `.jar` file into the Android project's `/libs` directory.
+1. Copy the framework directory into your project's root directory and 
name it
+CordovaLib
+
+1. Add that project as a library project to your main project.
 
 1. Add the following to the application's `/res/xml/main.xml` file,
with the `layout_height`, `layout_width` and `id` modified to suit
the application:
 
-
 
-1. Modify the activity so that it implements the `CordovaInterface`.
-   It should implement the included methods.  You may wish to copy
-   them from `/framework/src/org/apache/cordova/CordovaActivity.java`,
-   or else implement them on your own.  The following code fragment
-   shows a basic application that relies on the interface. Note how
-   the referenced view id matches the `id` attribute specified in the
-   XML fragment shown above:
-
-public class CordovaViewTestActivity extends Activity implements 
CordovaInterface {
-CordovaWebView cwv;
-/* Called when the activity is first created. */
-@Override
-public void onCreate(Bundle savedInstanceState) {
-super.onCreate(savedInstanceState);
-setContentView(R.layout.main);
-cwv = (CordovaWebView) findViewById(R.id.tutorialView);
-Config.init(this);
-cwv.loadUrl(Config.getStartUrl());
-}
+1. Add the following code to setup your Activity so that you have an 
interface
 
-1. If the application needs to use the camera, implement the
-   following:
+private CordovaInterfaceImpl iface = new 
CordovaInterfaceImpl(this);
+
+1. Add the following to intialize the WebView
+
+//Set up the webview
+ConfigXmlParser parser = new ConfigXmlParser();
+parser.parse(this);
+
+SystemWebView webView = (SystemWebView) 
findViewById(R.id.WebViewComponent);
+webInterface = new CordovaWebViewImpl(new 
SystemWebViewEngine(webView));
--- End diff --

Youd didn't create the webInterface variable before.


> Embedded use case is undocumented for Cordova-Android 4.0.x
> ---
>
> Key: CB-9393
> URL: https://issues.apache.org/jira/browse/CB-9393
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 4.0.1
>Reporter: Joe Bowser
>Assignee: Joe Bowser
> Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the meantime document all the workarounds for getting an 
> embedded webview in Android Studio to actually work.



--
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-9393) Embedded use case is undocumented for Cordova-Android 4.0.x

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144475#comment-15144475
 ] 

ASF GitHub Bot commented on CB-9393:


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

https://github.com/apache/cordova-docs/pull/498#discussion_r52730805
  
--- Diff: www/docs/en/dev/guide/platforms/android/webview.md ---
@@ -29,106 +29,73 @@ components can communicate with each other, see 
Application Plugins.
 If you're unfamiliar with Android, you should first familiarize
 yourself with the [Android Platform Guide](index.html) and have the latest 
Android
 SDK installed before you attempt the more unusual development option
-of embedding a WebView.  Starting with Cordova 1.9, the Android
-platform relies on a `CordovaWebView` component, which builds on a
-legacy `CordovaActivity` component that pre-dates the 1.9 release.
+of embedding a WebView.  Starting with Cordova 4.0, the Android
+platform relies on a `SystemWebView` component.
 
 1. To follow these instructions, make sure you have the latest Cordova
distribution. Download it from
[cordova.apache.org](http://cordova.apache.org) and unzip its
Android package.
 
-1. Navigate to the Android package's `/framework` directory and run
-   `ant jar`. It creates the Cordova `.jar` file, formed as
-   `/framework/cordova-x.x.x.jar`.
+1. Create a project in Android Studio
 
-1. Copy the `.jar` file into the Android project's `/libs` directory.
+1. Copy the framework directory into your project's root directory and 
name it
+CordovaLib
+
+1. Add that project as a library project to your main project.
 
 1. Add the following to the application's `/res/xml/main.xml` file,
with the `layout_height`, `layout_width` and `id` modified to suit
the application:
 
-
 
-1. Modify the activity so that it implements the `CordovaInterface`.
-   It should implement the included methods.  You may wish to copy
-   them from `/framework/src/org/apache/cordova/CordovaActivity.java`,
-   or else implement them on your own.  The following code fragment
-   shows a basic application that relies on the interface. Note how
-   the referenced view id matches the `id` attribute specified in the
-   XML fragment shown above:
-
-public class CordovaViewTestActivity extends Activity implements 
CordovaInterface {
-CordovaWebView cwv;
-/* Called when the activity is first created. */
-@Override
-public void onCreate(Bundle savedInstanceState) {
-super.onCreate(savedInstanceState);
-setContentView(R.layout.main);
-cwv = (CordovaWebView) findViewById(R.id.tutorialView);
-Config.init(this);
-cwv.loadUrl(Config.getStartUrl());
-}
+1. Add the following code to setup your Activity so that you have an 
interface
 
-1. If the application needs to use the camera, implement the
-   following:
+private CordovaInterfaceImpl iface = new 
CordovaInterfaceImpl(this);
+
+1. Add the following to intialize the WebView
+
+//Set up the webview
+ConfigXmlParser parser = new ConfigXmlParser();
+parser.parse(this);
+
+SystemWebView webView = (SystemWebView) 
findViewById(R.id.WebViewComponent);
+webInterface = new CordovaWebViewImpl(new 
SystemWebViewEngine(webView));
+webInterface.init(iface, parser.getPluginEntries(), 
parser.getPreferences());
+
+loadUrl(parser.getLaunchUrl());
+
+
+1. Copy the application's HTML and JavaScript files to the Android
--- End diff --

where do we get the cordova.js? There is one on 
/bin/templates/project/assets/


> Embedded use case is undocumented for Cordova-Android 4.0.x
> ---
>
> Key: CB-9393
> URL: https://issues.apache.org/jira/browse/CB-9393
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 4.0.1
>Reporter: Joe Bowser
>Assignee: Joe Bowser
> Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the meantime document all the workarounds for getting an 
> embedded webview in Android Studio to actually work.



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


[jira] [Commented] (CB-9393) Embedded use case is undocumented for Cordova-Android 4.0.x

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144473#comment-15144473
 ] 

ASF GitHub Bot commented on CB-9393:


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

https://github.com/apache/cordova-docs/pull/498#discussion_r52730788
  
--- Diff: www/docs/en/dev/guide/platforms/android/webview.md ---
@@ -29,106 +29,73 @@ components can communicate with each other, see 
Application Plugins.
 If you're unfamiliar with Android, you should first familiarize
 yourself with the [Android Platform Guide](index.html) and have the latest 
Android
 SDK installed before you attempt the more unusual development option
-of embedding a WebView.  Starting with Cordova 1.9, the Android
-platform relies on a `CordovaWebView` component, which builds on a
-legacy `CordovaActivity` component that pre-dates the 1.9 release.
+of embedding a WebView.  Starting with Cordova 4.0, the Android
+platform relies on a `SystemWebView` component.
 
 1. To follow these instructions, make sure you have the latest Cordova
distribution. Download it from
[cordova.apache.org](http://cordova.apache.org) and unzip its
Android package.
 
-1. Navigate to the Android package's `/framework` directory and run
-   `ant jar`. It creates the Cordova `.jar` file, formed as
-   `/framework/cordova-x.x.x.jar`.
+1. Create a project in Android Studio
 
-1. Copy the `.jar` file into the Android project's `/libs` directory.
+1. Copy the framework directory into your project's root directory and 
name it
+CordovaLib
+
+1. Add that project as a library project to your main project.
 
 1. Add the following to the application's `/res/xml/main.xml` file,
with the `layout_height`, `layout_width` and `id` modified to suit
the application:
 
-
 
-1. Modify the activity so that it implements the `CordovaInterface`.
-   It should implement the included methods.  You may wish to copy
-   them from `/framework/src/org/apache/cordova/CordovaActivity.java`,
-   or else implement them on your own.  The following code fragment
-   shows a basic application that relies on the interface. Note how
-   the referenced view id matches the `id` attribute specified in the
-   XML fragment shown above:
-
-public class CordovaViewTestActivity extends Activity implements 
CordovaInterface {
-CordovaWebView cwv;
-/* Called when the activity is first created. */
-@Override
-public void onCreate(Bundle savedInstanceState) {
-super.onCreate(savedInstanceState);
-setContentView(R.layout.main);
-cwv = (CordovaWebView) findViewById(R.id.tutorialView);
-Config.init(this);
-cwv.loadUrl(Config.getStartUrl());
-}
+1. Add the following code to setup your Activity so that you have an 
interface
 
-1. If the application needs to use the camera, implement the
-   following:
+private CordovaInterfaceImpl iface = new 
CordovaInterfaceImpl(this);
+
+1. Add the following to intialize the WebView
+
+//Set up the webview
+ConfigXmlParser parser = new ConfigXmlParser();
+parser.parse(this);
+
+SystemWebView webView = (SystemWebView) 
findViewById(R.id.WebViewComponent);
+webInterface = new CordovaWebViewImpl(new 
SystemWebViewEngine(webView));
+webInterface.init(iface, parser.getPluginEntries(), 
parser.getPreferences());
+
+loadUrl(parser.getLaunchUrl());
--- End diff --

I think it should be webView.loadUrl(parser.getLaunchUrl());


> Embedded use case is undocumented for Cordova-Android 4.0.x
> ---
>
> Key: CB-9393
> URL: https://issues.apache.org/jira/browse/CB-9393
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 4.0.1
>Reporter: Joe Bowser
>Assignee: Joe Bowser
> Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the meantime document all the workarounds for getting an 
> embedded webview in Android Studio to actually work.



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

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

[jira] [Created] (CB-10600) 'cordova run android --release' does not use signed and zip-aligned version of APK

2016-02-12 Thread Eric Gopak (JIRA)
Eric Gopak created CB-10600:
---

 Summary: 'cordova run android --release' does not use signed and 
zip-aligned version of APK
 Key: CB-10600
 URL: https://issues.apache.org/jira/browse/CB-10600
 Project: Apache Cordova
  Issue Type: Bug
  Components: Android
 Environment: Tested on Windows 8.1 with Cordova CLI 6.0.0 (and Ionic 
CLI 1.7.14)
Reporter: Eric Gopak


Running command `cordova run android --release` builds the app successfully, 
both unsigned and signed/zip-aligned versions. However, it then tries to use 
the unsigned version of the APK. Here are the last lines of the output:
.
BUILD SUCCESSFUL

Total time: 31.35 secs
Built the following apk(s):

C:/X/platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk
C:/X/platforms/android/build/outputs/apk/android-armv7-release.apk
Using apk: 
C:/X/platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk
ERROR running one or more of the platforms: Failed to install apk to device: 
pkg: /data/local/tmp/android-armv7-release-unsigned.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
You may not have the required environment or OS to run this project

It has worked before I updated Cordova with 'npm install -g cordova'.

I specify signing properties in a file 'release-signing.properties', which I 
copy to platforms/android/ folder. During the run/build I get prompted for the 
password, just as it has always been.

I believe it is just a problem of choosing the wrong APK from the list of built 
APKs (Cordova probably chooses the one that comes earlier lexicographically)



--
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-10396) Implement test runner for Appium tests for core plugins

2016-02-12 Thread Alexander Sorokin (JIRA)

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

Alexander Sorokin closed CB-10396.
--
Resolution: Fixed

> Implement test runner for Appium tests for core plugins
> ---
>
> Key: CB-10396
> URL: https://issues.apache.org/jira/browse/CB-10396
> Project: Apache Cordova
>  Issue Type: Task
>  Components: Medic
>Reporter: Alexander Sorokin
>Assignee: Alexander Sorokin
>
> Implement test runner in form of medic command.
> Test runned should be able to start appium server and run appium tests 
> located in core plugins repos on both Android/iOS devices and emulators.



--
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-9753) index out of bounds on requestFileSystem

2016-02-12 Thread Thillaiganesh Chan (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144502#comment-15144502
 ] 

Thillaiganesh Chan commented on CB-9753:


This is a valid request, issue will be triggered when there is a request for 
Persistent file and the same is not found in the device. Shall create a pull 
request to modify > to >=.

> index out of bounds on requestFileSystem
> 
>
> Key: CB-9753
> URL: https://issues.apache.org/jira/browse/CB-9753
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin File
> Environment: cordova 5.3.3
> cordova ios 3.9.1
> cordova-plugin-file 2.0.0
> iOS
>Reporter: Denis Babineau
>  Labels: Triaged, easyfix, iOS
>
> CDVFile.m's requestFileSystem: incorrectly checks the bounds of an array:
> if (type > self.fileSystems.count) {
> should read:
> if (type >= self.fileSystems.count) {



--
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-10598) Unable to run javascript in Cordova iOS project on simulator

2016-02-12 Thread jcesarmobile (JIRA)

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

jcesarmobile closed CB-10598.
-
Resolution: Not A Problem

Your app has a Content-Security-Policy meta tag.

You should learn how to configure it. Right now it doesn't allow inline 
javascript, and you are calling testLoad() inline.

Add 'unsafe-inline' to default-src, or remove the Content-Security-Policy meta 
tag (not recommended), or learn how to code without inline javascript

> Unable to run javascript in Cordova iOS project on simulator
> 
>
> Key: CB-10598
> URL: https://issues.apache.org/jira/browse/CB-10598
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaJS, iOS
>Affects Versions: 5.4.1
> Environment: Mac OSX El Capitan, Xcode v7.2
>Reporter: Sumit Soman
>
> I created a cordova project, added the iOS platform and built the project. 
> After that I opened the .xcodeproj in Xcode, built it and the homepage showed 
> the sample app homescreen. I then created another js file with the following 
> content in the Staging/js folder
> function testLoad(){
> alert("Loaded!");
> }
> In index.html, I added
>  
> and called the function
> 
> However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova 
> 5.4.1.



--
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-10592) cordova additionally quotes platform specific arguments when used programmatically

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144487#comment-15144487
 ] 

ASF GitHub Bot commented on CB-10592:
-

Github user vladimir-kotikov commented on a diff in the pull request:

https://github.com/apache/cordova-lib/pull/386#discussion_r52731347
  
--- Diff: cordova-lib/src/cordova/util.js ---
@@ -297,7 +297,7 @@ function ensurePlatformOptionsCompatible 
(platformOptions) {
 }).map(function (arg) {
 return opts[arg] === true ?
 '--' + arg :
-'--' + arg + '="' + opts[arg].toString() + '"';
+'--' + arg + '=' + opts[arg].toString();
--- End diff --

If you're talking about this usage
```javascript
cordova.raw.build({
platforms: ["android"],
options: ["--debug", "--gradleArg=--no-daemon"]
})
```
i think we shouldn't do that but still need to maintain this scenario for 
compatibility.


> cordova additionally quotes platform specific arguments when used 
> programmatically
> --
>
> Key: CB-10592
> URL: https://issues.apache.org/jira/browse/CB-10592
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.0.0
> Environment: Cordova@6.0.0, OS X or *nix machine
>Reporter: Vladimir Kotikov
>Assignee: Vladimir Kotikov
>
> Some platform-specific arguments (such as {{--gradleArg}}) is additionally 
> quoted, when options passed to {{cordova.raw}} API using old format. Though 
> this is not a problem on Windows, because the command processor on handles 
> such arguments correctly, on OS X this leads to unexpected failures.
> For example running 
> {noformat}
> cordova.raw.build({
> platforms: [android],
> options: ["--gradleArg=--no-daemon"]
> })
> {noformat}
> causes gradle build failure with following message {{Task '"--no-daemon"' not 
> found in root project 'android'.}}



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

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



[jira] [Commented] (CB-10590) Known security vulnerabilities in dependencies of current version of express: qs@0.4.x and connect@1.x

2016-02-12 Thread Patrick Mueller (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10590?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144541#comment-15144541
 ] 

Patrick Mueller commented on CB-10590:
--

Thanks for the report!

While I don't have time to work on this now, I'm willing to take a PR/patch.

Patcher may want to look at adding qs/connect - the affected packages - 
directly as top-level packages, which express would then pick up (maybe, if 
allowed for in it's package deps semvers).  May be easier at upgrading express, 
which is currently at 2.5 - not sure how easy upgrading to something more 
modern would be.

> Known security vulnerabilities in dependencies of current version of express: 
> qs@0.4.x and connect@1.x
> --
>
> Key: CB-10590
> URL: https://issues.apache.org/jira/browse/CB-10590
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: weinre
>Reporter: Spencer A Claxton
>Assignee: Patrick Mueller
>
> There are known security vulnerabilities in dependencies of current version 
> of express: qs@0.4.x and connect@1.x. See 
> https://nodesecurity.io/advisories/qs_dos_extended_event_loop_blocking and 
> https://nodesecurity.io/advisories/methodOverride_Middleware_Reflected_Cross-Site_Scripting
>  for more detail. Can we bump express so that these vulnerabilities go away?



--
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-9393) Embedded use case is undocumented for Cordova-Android 4.0.x

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144469#comment-15144469
 ] 

ASF GitHub Bot commented on CB-9393:


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

https://github.com/apache/cordova-docs/pull/498#discussion_r52730738
  
--- Diff: www/docs/en/dev/guide/platforms/android/webview.md ---
@@ -29,106 +29,73 @@ components can communicate with each other, see 
Application Plugins.
 If you're unfamiliar with Android, you should first familiarize
 yourself with the [Android Platform Guide](index.html) and have the latest 
Android
 SDK installed before you attempt the more unusual development option
-of embedding a WebView.  Starting with Cordova 1.9, the Android
-platform relies on a `CordovaWebView` component, which builds on a
-legacy `CordovaActivity` component that pre-dates the 1.9 release.
+of embedding a WebView.  Starting with Cordova 4.0, the Android
+platform relies on a `SystemWebView` component.
 
 1. To follow these instructions, make sure you have the latest Cordova
distribution. Download it from
[cordova.apache.org](http://cordova.apache.org) and unzip its
Android package.
 
-1. Navigate to the Android package's `/framework` directory and run
-   `ant jar`. It creates the Cordova `.jar` file, formed as
-   `/framework/cordova-x.x.x.jar`.
+1. Create a project in Android Studio
 
-1. Copy the `.jar` file into the Android project's `/libs` directory.
+1. Copy the framework directory into your project's root directory and 
name it
+CordovaLib
+
+1. Add that project as a library project to your main project.
--- End diff --

maybe explain how to do it. I'm familiar with Android, but not so much with 
Android Studio and I didn't know how to do it. 


> Embedded use case is undocumented for Cordova-Android 4.0.x
> ---
>
> Key: CB-9393
> URL: https://issues.apache.org/jira/browse/CB-9393
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 4.0.1
>Reporter: Joe Bowser
>Assignee: Joe Bowser
> Fix For: 5.0.0
>
>
> We broke the embedded webview use case for Android 4.0.x. and it's currently 
> difficult to embed a webview without some gradle editing.  We should probably 
> work on getting the Embedded WebView use case to work out of the box for 
> Gradle, and in the meantime document all the workarounds for getting an 
> embedded webview in Android Studio to actually work.



--
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-10396) Implement test runner for Appium tests for core plugins

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144501#comment-15144501
 ] 

ASF GitHub Bot commented on CB-10396:
-

Github user asfgit closed the pull request at:

https://github.com/apache/cordova-medic/pull/70


> Implement test runner for Appium tests for core plugins
> ---
>
> Key: CB-10396
> URL: https://issues.apache.org/jira/browse/CB-10396
> Project: Apache Cordova
>  Issue Type: Task
>  Components: Medic
>Reporter: Alexander Sorokin
>Assignee: Alexander Sorokin
>
> Implement test runner in form of medic command.
> Test runned should be able to start appium server and run appium tests 
> located in core plugins repos on both Android/iOS devices and emulators.



--
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-10396) Implement test runner for Appium tests for core plugins

2016-02-12 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144499#comment-15144499
 ] 

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

Commit ddcbd637cc9d9fca2a4ee4102d7050d755e4f1e8 in cordova-medic's branch 
refs/heads/master from [~alsorokin]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-medic.git;h=ddcbd63 ]

CB-10396 Implemented Appium test runner


> Implement test runner for Appium tests for core plugins
> ---
>
> Key: CB-10396
> URL: https://issues.apache.org/jira/browse/CB-10396
> Project: Apache Cordova
>  Issue Type: Task
>  Components: Medic
>Reporter: Alexander Sorokin
>Assignee: Alexander Sorokin
>
> Implement test runner in form of medic command.
> Test runned should be able to start appium server and run appium tests 
> located in core plugins repos on both Android/iOS devices and emulators.



--
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-10305) Gray bar appears in the wrong place on iOS

2016-02-12 Thread Jacob Weber (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144842#comment-15144842
 ] 

Jacob Weber commented on CB-10305:
--

Still seeing one issue with the new version, where the gray bar appears at the 
BOTTOM of the browser window. Happens occasionally, and only when the browser 
is opened in portrait mode. iPad running iOS 7.0.3.

> Gray bar appears in the wrong place on iOS
> --
>
> Key: CB-10305
> URL: https://issues.apache.org/jira/browse/CB-10305
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin InAppBrowser
>Affects Versions: 3.9.0
>Reporter: Jacob Weber
>Assignee: jcesarmobile
>  Labels: Triaged, iOS
> Attachments: CordovaTest.zip, image.png, screen-1.png, screen-2.png, 
> screen-3.png
>
>
> I'm seeing several issues on iOS with the gray semi-transparent overlay that 
> appears behind the status bar, when the InAppBrowser window is open.
> On Mac OS 10.11.2, create a project as follows (or use the attached 
> CordovaTest project):
> {code}
> cordova --version   # prints 5.3.3
> cordova create CordovaTest com.jacobweber.cordovatest CordovaTest
> cd CordovaTest
> cordova platform add ios
> cordova plugin add cordova-plugin-inappbrowser
> platforms/ios/cordova/version   # prints 3.9.2
> {code}
> Edit {{platforms/ios/www/js/index.js}}, and add the following code at the end 
> of {{onDeviceReady}}:
> {code}
> setTimeout(function(){
>   window.open("https://www.google.com;, "_blank");
> }, 1000);
> {code}
> In Xcode, go to General > Deployment Info > iPad > Device Orientation, and 
> check all boxes.
> h4. Issue 1:
> * Open the Xcode project on Mac OS 10.11.2 using Xcode 7.2.
> * Launch on iPad Air simulator with iOS 9.2.
> * Launch in portrait, and wait for the window to open. Rotate to landscape. 
> The gray status bar doesn't extend all the way to the right. See screen-1.png.
> h4. Issue 2:
> * Open the Xcode project on Mac OS 10.10 using Xcode 6.2 (since El Capitan 
> can't launch an iOS 7 simulator).
> * Launch on iPad Air simulator with iOS 7.1.
> * Launch in landscape, and wait for the window to open. The gray status bar 
> appears on the left side. Rotate to portrait. The gray status bar is still on 
> the left. See screen-2.png.
> h4. Issue 3:
> * Keep the iOS 7.1 simulator open. Launch a second time in landscape, and 
> wait for the window to open. Some of the time, the gray status bar appears 
> vertically in the middle of the screen. See screen-3.png.



--
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-10305) Gray bar appears in the wrong place on iOS

2016-02-12 Thread Jacob Weber (JIRA)

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

Jacob Weber updated CB-10305:
-
Attachment: image.png

> Gray bar appears in the wrong place on iOS
> --
>
> Key: CB-10305
> URL: https://issues.apache.org/jira/browse/CB-10305
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin InAppBrowser
>Affects Versions: 3.9.0
>Reporter: Jacob Weber
>Assignee: jcesarmobile
>  Labels: Triaged, iOS
> Attachments: CordovaTest.zip, image.png, screen-1.png, screen-2.png, 
> screen-3.png
>
>
> I'm seeing several issues on iOS with the gray semi-transparent overlay that 
> appears behind the status bar, when the InAppBrowser window is open.
> On Mac OS 10.11.2, create a project as follows (or use the attached 
> CordovaTest project):
> {code}
> cordova --version   # prints 5.3.3
> cordova create CordovaTest com.jacobweber.cordovatest CordovaTest
> cd CordovaTest
> cordova platform add ios
> cordova plugin add cordova-plugin-inappbrowser
> platforms/ios/cordova/version   # prints 3.9.2
> {code}
> Edit {{platforms/ios/www/js/index.js}}, and add the following code at the end 
> of {{onDeviceReady}}:
> {code}
> setTimeout(function(){
>   window.open("https://www.google.com;, "_blank");
> }, 1000);
> {code}
> In Xcode, go to General > Deployment Info > iPad > Device Orientation, and 
> check all boxes.
> h4. Issue 1:
> * Open the Xcode project on Mac OS 10.11.2 using Xcode 7.2.
> * Launch on iPad Air simulator with iOS 9.2.
> * Launch in portrait, and wait for the window to open. Rotate to landscape. 
> The gray status bar doesn't extend all the way to the right. See screen-1.png.
> h4. Issue 2:
> * Open the Xcode project on Mac OS 10.10 using Xcode 6.2 (since El Capitan 
> can't launch an iOS 7 simulator).
> * Launch on iPad Air simulator with iOS 7.1.
> * Launch in landscape, and wait for the window to open. The gray status bar 
> appears on the left side. Rotate to portrait. The gray status bar is still on 
> the left. See screen-2.png.
> h4. Issue 3:
> * Keep the iOS 7.1 simulator open. Launch a second time in landscape, and 
> wait for the window to open. Some of the time, the gray status bar appears 
> vertically in the middle of the screen. See screen-3.png.



--
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-10386) Use of NDK is not supported with cordova-android 5.1

2016-02-12 Thread Nikhil Khandelwal (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144895#comment-15144895
 ] 

Nikhil Khandelwal commented on CB-10386:


[~antoine_] You should not need to add this as I made the change in cordova 
Android 5.1.0 release to include a fix for this.

> Use of NDK is not supported with cordova-android 5.1
> 
>
> Key: CB-10386
> URL: https://issues.apache.org/jira/browse/CB-10386
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Reporter: Nikhil Khandelwal
>
> REPRO:
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a plugin that depends on NDK e.g.:
> λ cordova plugin add cordova-plugin-crosswalk-webview
> 4. Build cordova:
> λ cordova build android
> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
> embedded
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Error: NDK integration is deprecated in the current plugin.  Consider 
> > trying the new experimental plugin.  For details, see 
> > http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  
> > Set "android.useDeprecatedNdk=true" in gradle.properties to continue using 
> > the current NDK integration.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED
> Total time: 8.628 secs
> ERROR building one of the platforms: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"



--
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-10433) Timeout when tests don't run

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144907#comment-15144907
 ] 

ASF GitHub Bot commented on CB-10433:
-

Github user riknoll commented on the pull request:

https://github.com/apache/cordova-medic/pull/76#issuecomment-183422034
  
I updated the error message based on @nikhilkh's feedback. I also pushed 
the emulator retry logic to this branch (which was a bad idea) and now I need 
to split up this PR. I'm going to merge in the first two commits of this PR if 
it looks good and open another for the Android retry stuff. @nikhilkh can you 
take a quick look at e6afb23 to see if the error message update is okay?


> Timeout when tests don't run
> 
>
> Key: CB-10433
> URL: https://issues.apache.org/jira/browse/CB-10433
> Project: Apache Cordova
>  Issue Type: Test
>  Components: mobile-spec
>Reporter: Sarangan Rajamanickam
>Assignee: Richard B Knoll
>  Labels: found-by-ci, ios, triaged, windows-store-8.1, wp8.1
>
> During the Apache CI Build, there are several instances where mobilespec 
> tests don't run for whatever reason and the logging message we see is 
> misleading, we should fix it.
> Some of the links are:
> 1. https://ci.apache.org/builders/cordova-ios/builds/1534
> 2. https://ci.apache.org/builders/cordova-ios/builds/1543
> 3. https://ci.apache.org/builders/cordova-ios/builds/1553
> 4. https://ci.apache.org/builders/cordova-ios/builds/1570
> 5. https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1402
> Noticed this error majority of the times in iOS. But, today (01/25) happened 
> in WP8.1 also. 
> ==
> Content for logs:
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] 
> code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }



--
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-10594) geolocation.spec.10 crashes Windows Phone 8.1

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144848#comment-15144848
 ] 

ASF GitHub Bot commented on CB-10594:
-

Github user daserge commented on the pull request:


https://github.com/apache/cordova-plugin-geolocation/pull/69#issuecomment-183411853
  
@dblotsky, @sarangan12, I've updated the PR, please take a look.


> geolocation.spec.10 crashes Windows Phone 8.1
> -
>
> Key: CB-10594
> URL: https://issues.apache.org/jira/browse/CB-10594
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Geolocation
>Reporter: Sergey Shakhnazarov
>Assignee: Sergey Shakhnazarov
>  Labels: test
>
> 0x80004004 - JavaScript runtime error: Operation aborted



--
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-10574) MobileSpec can't get results for WP8.1 Builds

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144850#comment-15144850
 ] 

ASF GitHub Bot commented on CB-10574:
-

Github user daserge commented on the pull request:


https://github.com/apache/cordova-plugin-geolocation/pull/70#issuecomment-183411928
  
Update the PR #69 


> MobileSpec can't get results for WP8.1 Builds
> -
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
>  Issue Type: Test
> Environment: Windows
>Reporter: Omar Mefire
>Assignee: Sarangan Rajamanickam
>Priority: Critical
>  Labels: found-by-ci, wp8.1
>
> Log 1: 
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ==
>   CordovaApp.Phone -> 
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> 
> Log 2:
> ---
> ERROR running one or more of the platforms: Unexpected error from 
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows 
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code 
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a 
> phone is connected and powered on. You may have previously installed the app 
> with an earlier version of cordova-windows. Ensure the app is uninstalled 
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to 
> emulator
> ==
> Log 3: 
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> ---
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000



--
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-10411) Error in file.spec.129 of cordova-plugin-file

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144892#comment-15144892
 ] 

ASF GitHub Bot commented on CB-10411:
-

Github user nikhilkh commented on the pull request:


https://github.com/apache/cordova-plugin-file/pull/163#issuecomment-183419692
  
LGTM


> Error in file.spec.129 of cordova-plugin-file
> -
>
> Key: CB-10411
> URL: https://issues.apache.org/jira/browse/CB-10411
> Project: Apache Cordova
>  Issue Type: Test
>  Components: Plugin File
>Reporter: Sarangan Rajamanickam
>Assignee: Sergey Shakhnazarov
>Priority: Minor
>  Labels: android, found-by-ci, triaged
>
> Link: 
> https://ci.apache.org/builders/cordova-android-win/builds/1401/steps/getting-test-results/logs/stdio
> cordova-plugin-file-tests.tests >> File API cross-file-system copy and move 
> file.spec.129 cordova.file.*Directory are set
> Expected 'object' to be 'string'.
> Error: Expected 'object' to be 'string'.
> at stack 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1455:17)
> at buildExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1425:14)
> at Spec.Env.expectationResultFactory 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:572:18)
> at Spec.addExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:321:34)
> at Expectation.addExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:516:21)
> at Expectation.toBe 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1379:12)
> at Object. 
> (file:///android_asset/www/plugins/cordova-plugin-file-tests/tests.js:3332:67)
> at attemptSync 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1741:24)
> at QueueRunner.run 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1729:9)
> at 
> file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1753:16
> at 
> file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1697:9
> Expected null to match /\/$/, 'Path should end with a slash'.
> Error: Expected null to match /\/$/, 'Path should end with a 
> slash'.
> at stack 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1455:17)
> at buildExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1425:14)
> at Spec.Env.expectationResultFactory 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:572:18)
> at Spec.addExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:321:34)
> at Expectation.addExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:516:21)
> at Expectation.toMatch 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1379:12)
> at Object. 
> (file:///android_asset/www/plugins/cordova-plugin-file-tests/tests.js::60)
> at attemptSync 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1741:24)
> at QueueRunner.run 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1729:9)
> at 
> file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1753:16
> Expected 'object' to be 'string'.
> Error: Expected 'object' to be 'string'.
> at stack 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1455:17)
> at buildExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1425:14)
> at Spec.Env.expectationResultFactory 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:572:18)
> at Spec.addExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:321:34)
> at Expectation.addExpectationResult 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:516:21)
> at Expectation.toBe 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1379:12)
> at Object. 
> (file:///android_asset/www/plugins/cordova-plugin-file-tests/tests.js:3332:67)
> at attemptSync 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1741:24)
> at QueueRunner.run 
> (file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1729:9)
> at 
> file:///android_asset/www/cdvtests/jasmine-2.2.0/jasmine.js:1753:16
> Expected null to match /\/$/, 'Path should end with a slash'.
> Error: 

[jira] [Commented] (CB-10386) Use of NDK is not supported with cordova-android 5.1

2016-02-12 Thread Antoine (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144909#comment-15144909
 ] 

Antoine commented on CB-10386:
--

I had to and I got the last android release (5.1.0).
If you need more information feel free to ask.


> Use of NDK is not supported with cordova-android 5.1
> 
>
> Key: CB-10386
> URL: https://issues.apache.org/jira/browse/CB-10386
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Reporter: Nikhil Khandelwal
>
> REPRO:
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a plugin that depends on NDK e.g.:
> λ cordova plugin add cordova-plugin-crosswalk-webview
> 4. Build cordova:
> λ cordova build android
> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
> embedded
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Error: NDK integration is deprecated in the current plugin.  Consider 
> > trying the new experimental plugin.  For details, see 
> > http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  
> > Set "android.useDeprecatedNdk=true" in gradle.properties to continue using 
> > the current NDK integration.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED
> Total time: 8.628 secs
> ERROR building one of the platforms: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"



--
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-9347) You can no longer stack alerts in cordova-plugin-dialogs - commit #ee3b02b3 has caused this

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144711#comment-15144711
 ] 

ASF GitHub Bot commented on CB-9347:


Github user tony-- commented on the pull request:


https://github.com/apache/cordova-plugin-dialogs/pull/54#issuecomment-183376049
  
@jcesarmobile - thanks for explaining `presentAlertcontroller,` I see it 
now.
Thanks in advance for the phonegap-plugin-barcodescanner PR!


> You can no longer stack alerts in cordova-plugin-dialogs - commit #ee3b02b3 
> has caused this
> ---
>
> Key: CB-9347
> URL: https://issues.apache.org/jira/browse/CB-9347
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Dialogs
>Affects Versions: 1.1.0
> Environment: Mac OS X Yosemite 10.10.4; XCode 6.4 iOS
>Reporter: Kelvin Dart
>Assignee: jcesarmobile
>Priority: Critical
>
> Previously in cordova-plugin-dialogs, you could stack alerts in Cordova like 
> follows:
> {code}
> navigator.notification.alert('Notification 1', function () {}, 'Title 1');
> navigator.notification.alert('Notification 2', function () {}, 'Title 2');
> {code}
> And it would show 'Notification 2' then 'Notification 1'.
> Now you cannot, in commit: #ee3b02b3c78debe608263d847f7ac69bda1bfca0, there 
> was quite a large overhaul in {{showDialogWithMessage}} in 
> {{CDVNotification.m}}; this commit seems to add some code for iOS 8.3+ which 
> uses {{UIAlertController}} instead of the old {{UIAlertView}}. The problem is 
> here - unfortunately I do not know Obj-C too well in order to debug it.
> If you revert to a cordova-plugin-dialogs version prior to this, the stacked 
> notifications work fine.
> I have created a small test harness which you can download 
> [here|https://www.dropbox.com/s/62hdp3gjp2924er/CDVDialogsNotificationBug.zip?dl=0].
> Please could you implement the old behaviour as this has cause some aspects 
> of my app to break - thanks!
> N.b. I have tagged the version as 1.1.0 as it would not allow me to tag 1.1.1.



--
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-10574) MobileSpec can't get results for WP8.1 Builds

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144746#comment-15144746
 ] 

ASF GitHub Bot commented on CB-10574:
-

Github user daserge commented on the pull request:


https://github.com/apache/cordova-plugin-geolocation/pull/70#issuecomment-183385836
  
The geolocation plugin has several issues:

1. `geolocation.js->getCurrentPosition` and `geolocation.js->watchPosition` 
both don't immediately return `timerId`/`watchId` therefore the tests 
`watchPosition method->error callback->geolocation.spec.7`, `watchPosition 
method->error callback->geolocation.spec.10` and `success 
callback->geolocation.spec.8` get their errorWatch/successWatch(es) mixed.

2. On Windows after Geolocator had some of the event handlers attached we 
can't set any of its properties like `desiredAccuracy`, `reportInterval` or 
`movementThreshold` as this causes "0x80004004 - JavaScript runtime error: 
Operation aborted".

Related SO question: 
http://stackoverflow.com/questions/13720945/is-it-possible-to-change-desiredaccuracy-reportinterval-of-geolocator-in-posit

3. Manual test for `addWatch` doesn't clear the previous `watchId` so it's 
causing the issues on Windows.

I will update my PR soon with these issues addressed.


> MobileSpec can't get results for WP8.1 Builds
> -
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
>  Issue Type: Test
> Environment: Windows
>Reporter: Omar Mefire
>Assignee: Sarangan Rajamanickam
>Priority: Critical
>  Labels: found-by-ci, wp8.1
>
> Log 1: 
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ==
>   CordovaApp.Phone -> 
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> 
> Log 2:
> ---
> ERROR running one or more of the platforms: Unexpected error from 
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows 
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code 
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a 
> phone is connected and powered on. You may have previously installed the app 
> with an earlier version of cordova-windows. Ensure the app is uninstalled 
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to 
> emulator
> ==
> Log 3: 
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> ---
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000



--
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-10598) Unable to run javascript in Cordova iOS project on simulator

2016-02-12 Thread Sumit Soman (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144760#comment-15144760
 ] 

Sumit Soman commented on CB-10598:
--

I removed the inline call to change the javascript to window.onload=function 
myFunction(){alert("Test");} but the popup still does not display. As far as 
the content security policy tag is concerned, it already has 'unsafe-inline':

https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; 
media-src *">

Could you please specify where I'm going wrong.

> Unable to run javascript in Cordova iOS project on simulator
> 
>
> Key: CB-10598
> URL: https://issues.apache.org/jira/browse/CB-10598
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaJS, iOS
>Affects Versions: 5.4.1
> Environment: Mac OSX El Capitan, Xcode v7.2
>Reporter: Sumit Soman
>
> I created a cordova project, added the iOS platform and built the project. 
> After that I opened the .xcodeproj in Xcode, built it and the homepage showed 
> the sample app homescreen. I then created another js file with the following 
> content in the Staging/js folder
> function testLoad(){
> alert("Loaded!");
> }
> In index.html, I added
>  
> and called the function
> 
> However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova 
> 5.4.1.



--
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-10386) Use of NDK is not supported with cordova-android 5.1

2016-02-12 Thread Nikhil Khandelwal (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144933#comment-15144933
 ] 

Nikhil Khandelwal edited comment on CB-10386 at 2/12/16 5:41 PM:
-

Looks like you are doing the latter (invoking it via Android Studio) and our 
build scripts do not get invoked then.


was (Author: nikhilkh):
Looks like you are doing the later (invoking it via Android Studio) and our 
build scripts do not get invoked then.

> Use of NDK is not supported with cordova-android 5.1
> 
>
> Key: CB-10386
> URL: https://issues.apache.org/jira/browse/CB-10386
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Reporter: Nikhil Khandelwal
>
> REPRO:
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a plugin that depends on NDK e.g.:
> λ cordova plugin add cordova-plugin-crosswalk-webview
> 4. Build cordova:
> λ cordova build android
> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
> embedded
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Error: NDK integration is deprecated in the current plugin.  Consider 
> > trying the new experimental plugin.  For details, see 
> > http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  
> > Set "android.useDeprecatedNdk=true" in gradle.properties to continue using 
> > the current NDK integration.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED
> Total time: 8.628 secs
> ERROR building one of the platforms: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"



--
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-10386) Use of NDK is not supported with cordova-android 5.1

2016-02-12 Thread Nikhil Khandelwal (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144933#comment-15144933
 ] 

Nikhil Khandelwal commented on CB-10386:


Looks like you are doing the later (invoking it via Android Studio) and our 
build scripts do not get invoked then.

> Use of NDK is not supported with cordova-android 5.1
> 
>
> Key: CB-10386
> URL: https://issues.apache.org/jira/browse/CB-10386
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Reporter: Nikhil Khandelwal
>
> REPRO:
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a plugin that depends on NDK e.g.:
> λ cordova plugin add cordova-plugin-crosswalk-webview
> 4. Build cordova:
> λ cordova build android
> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
> embedded
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Error: NDK integration is deprecated in the current plugin.  Consider 
> > trying the new experimental plugin.  For details, see 
> > http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  
> > Set "android.useDeprecatedNdk=true" in gradle.properties to continue using 
> > the current NDK integration.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED
> Total time: 8.628 secs
> ERROR building one of the platforms: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"



--
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-10510) medic-run doesn't check to make sure the emulator started

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144947#comment-15144947
 ] 

ASF GitHub Bot commented on CB-10510:
-

Github user riknoll commented on the pull request:

https://github.com/apache/cordova-android/pull/258#issuecomment-183427884
  
@dblotsky @nikhilkh please review


> medic-run doesn't check to make sure the emulator started
> -
>
> Key: CB-10510
> URL: https://issues.apache.org/jira/browse/CB-10510
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Medic
> Environment: Windows, Android emulator
>Reporter: Richard B Knoll
>Assignee: Richard B Knoll
>  Labels: android, found-by-ci
>
> Medic doesn't check to see if the emulator actually starts when invoking 
> {{cordova run android}}. Instead, it starts polling cordova-vm immediately. 
> This might also be considered a bug in cordova-android's run script, which 
> just seems to hang if the emulator doesn't start. Example build is here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/running-tests/logs/stdio
> And adb logs are here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/gathering-logs/logs/stdio
> 
> Log:
> C:\Users\buildbot\slaves\apache\cordova-android-win\mobilespec>node  
> C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-cli\bin\cordova 
> run --emulator android -- --gradle 
> ANDROID_HOME=C:\Android\android-sdk
> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
> No emulator specified, defaulting to Galaxy_Nexus
> Waiting for emulator...
> WARNING: init: Missing WGL extension WGL_ARB_make_current_read
> emulator: warning: opening audio output failed
> emulator: emulator window was out of view and was recentered
> emulator: UpdateChecker: skipped version check
> Booting up emulator (this may take a 
> while)query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> ..query failed for mobilespec_results { [Error: connect 
> ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> ...query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> ...didn't get test 
> results: timed out
> program finished with exit code 1
> elapsedTime=1150.659000



--
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-10510) medic-run doesn't check to make sure the emulator started

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144962#comment-15144962
 ] 

ASF GitHub Bot commented on CB-10510:
-

Github user nikhilkh commented on the pull request:

https://github.com/apache/cordova-android/pull/258#issuecomment-183431397
  
LGTM


> medic-run doesn't check to make sure the emulator started
> -
>
> Key: CB-10510
> URL: https://issues.apache.org/jira/browse/CB-10510
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Medic
> Environment: Windows, Android emulator
>Reporter: Richard B Knoll
>Assignee: Richard B Knoll
>  Labels: android, found-by-ci
>
> Medic doesn't check to see if the emulator actually starts when invoking 
> {{cordova run android}}. Instead, it starts polling cordova-vm immediately. 
> This might also be considered a bug in cordova-android's run script, which 
> just seems to hang if the emulator doesn't start. Example build is here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/running-tests/logs/stdio
> And adb logs are here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/gathering-logs/logs/stdio
> 
> Log:
> C:\Users\buildbot\slaves\apache\cordova-android-win\mobilespec>node  
> C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-cli\bin\cordova 
> run --emulator android -- --gradle 
> ANDROID_HOME=C:\Android\android-sdk
> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
> No emulator specified, defaulting to Galaxy_Nexus
> Waiting for emulator...
> WARNING: init: Missing WGL extension WGL_ARB_make_current_read
> emulator: warning: opening audio output failed
> emulator: emulator window was out of view and was recentered
> emulator: UpdateChecker: skipped version check
> Booting up emulator (this may take a 
> while)query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> ..query failed for mobilespec_results { [Error: connect 
> ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> ...query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> ...didn't get test 
> results: timed out
> program finished with exit code 1
> elapsedTime=1150.659000



--
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-10386) Use of NDK is not supported with cordova-android 5.1

2016-02-12 Thread Tobias Bocanegra (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144972#comment-15144972
 ] 

Tobias Bocanegra commented on CB-10386:
---

wouldn't it be better to create a {{gradle.properties}} file instead of just 
adding the build arguments? this way it also works OOTB with android studio.

> Use of NDK is not supported with cordova-android 5.1
> 
>
> Key: CB-10386
> URL: https://issues.apache.org/jira/browse/CB-10386
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Reporter: Nikhil Khandelwal
>
> REPRO:
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a plugin that depends on NDK e.g.:
> λ cordova plugin add cordova-plugin-crosswalk-webview
> 4. Build cordova:
> λ cordova build android
> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
> embedded
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Error: NDK integration is deprecated in the current plugin.  Consider 
> > trying the new experimental plugin.  For details, see 
> > http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  
> > Set "android.useDeprecatedNdk=true" in gradle.properties to continue using 
> > the current NDK integration.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED
> Total time: 8.628 secs
> ERROR building one of the platforms: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"



--
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-10433) Timeout when tests don't run

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144970#comment-15144970
 ] 

ASF GitHub Bot commented on CB-10433:
-

Github user nikhilkh commented on the pull request:

https://github.com/apache/cordova-medic/pull/76#issuecomment-183432634
  
LGTM


> Timeout when tests don't run
> 
>
> Key: CB-10433
> URL: https://issues.apache.org/jira/browse/CB-10433
> Project: Apache Cordova
>  Issue Type: Test
>  Components: mobile-spec
>Reporter: Sarangan Rajamanickam
>Assignee: Richard B Knoll
>  Labels: found-by-ci, ios, triaged, windows-store-8.1, wp8.1
>
> During the Apache CI Build, there are several instances where mobilespec 
> tests don't run for whatever reason and the logging message we see is 
> misleading, we should fix it.
> Some of the links are:
> 1. https://ci.apache.org/builders/cordova-ios/builds/1534
> 2. https://ci.apache.org/builders/cordova-ios/builds/1543
> 3. https://ci.apache.org/builders/cordova-ios/builds/1553
> 4. https://ci.apache.org/builders/cordova-ios/builds/1570
> 5. https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1402
> Noticed this error majority of the times in iOS. But, today (01/25) happened 
> in WP8.1 also. 
> ==
> Content for logs:
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] 
> code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }



--
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-10386) Use of NDK is not supported with cordova-android 5.1

2016-02-12 Thread Richard B Knoll (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145003#comment-15145003
 ] 

Richard B Knoll commented on CB-10386:
--

This choice was discussed on the mailing list. Thread is here: 
http://markmail.org/message/wpeus6el34dsxcv5

> Use of NDK is not supported with cordova-android 5.1
> 
>
> Key: CB-10386
> URL: https://issues.apache.org/jira/browse/CB-10386
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Reporter: Nikhil Khandelwal
>
> REPRO:
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a plugin that depends on NDK e.g.:
> λ cordova plugin add cordova-plugin-crosswalk-webview
> 4. Build cordova:
> λ cordova build android
> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
> embedded
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Error: NDK integration is deprecated in the current plugin.  Consider 
> > trying the new experimental plugin.  For details, see 
> > http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  
> > Set "android.useDeprecatedNdk=true" in gradle.properties to continue using 
> > the current NDK integration.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED
> Total time: 8.628 secs
> ERROR building one of the platforms: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"



--
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-10601) App cordova-osx refused

2016-02-12 Thread Tobias Bocanegra (JIRA)

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

Tobias Bocanegra updated CB-10601:
--
Priority: Minor  (was: Major)

> App cordova-osx refused
> ---
>
> Key: CB-10601
> URL: https://issues.apache.org/jira/browse/CB-10601
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: OSX
>Reporter: cyril souti
>Assignee: Tobias Bocanegra
>Priority: Minor
>
> I've published a cordova application based on cordova-osx but it refused due 
> to :
> The user interface is not consistent with the OS X Human Interface Guidelines.
> We have found that when the user closes the main application window there is 
> no menu item to re-open it. The app should implement a Window menu that lists 
> the main window so it can be reopened, or provide similar functionality in 
> another menu item. OS X Human Interface Guidelines, state that "The menu bar 
> [a]lways contains [a] Window menu".
> Alternatively, if the application is a single-window app, it might be 
> appropriate to save data and quit the app when the main window is closed. 
> For information on managing windows in Mac OS X, please review the following 
> sections in Apple Human Interface Guidelines:
> * The Menu Bar and Its Menus
> * The Window Menu
> * The File Menu
> * Clicking in the Dock
> * Window Behavior
> It accepted with ios.



--
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-10594) geolocation.spec.10 crashes Windows Phone 8.1

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145005#comment-15145005
 ] 

ASF GitHub Bot commented on CB-10594:
-

Github user sarangan12 commented on the pull request:


https://github.com/apache/cordova-plugin-geolocation/pull/69#issuecomment-183439690
  
@daserge I am not sure if removing the event listeners is a good idea. From 
the user perspective, there is no reason for him to have only one event 
listener. All of this boils down to one issue, reusing the 'loc' variable. With 
the restriction that you cannot modify the properties when there are event 
listeners on it, I do not see a good point in reusing it (in ensurelocator 
function) I have created another PR to address that issue: 
https://github.com/apache/cordova-plugin-geolocation/pull/70


> geolocation.spec.10 crashes Windows Phone 8.1
> -
>
> Key: CB-10594
> URL: https://issues.apache.org/jira/browse/CB-10594
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Geolocation
>Reporter: Sergey Shakhnazarov
>Assignee: Sergey Shakhnazarov
>  Labels: test
>
> 0x80004004 - JavaScript runtime error: Operation aborted



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145007#comment-15145007
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user omefire commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183440163
  
Missing preference: ```osx_CFBundleIdentifier```


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10574) MobileSpec can't get results for WP8.1 Builds

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145010#comment-15145010
 ] 

ASF GitHub Bot commented on CB-10574:
-

Github user sarangan12 commented on the pull request:


https://github.com/apache/cordova-plugin-geolocation/pull/70#issuecomment-183441405
  
@dblotsky 'ensureLocator' need not necessarily mean than the 'loc' has to 
be singleton. It can simply mean that the "Geolocation access has been allowed 
by the user" (Refer one of the error scenarios in ensureLocator function). 

But, I do agree it would be great if we could reuse the value. 
Unfortunately, there is no clean solution in this case. You can either create a 
new object or remove the existing listeners and use the old object. I think 
removing the existing listeners is not a good option (since an application can 
start watching at two different places and want to keep both event listeners 
alive). 


> MobileSpec can't get results for WP8.1 Builds
> -
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
>  Issue Type: Test
> Environment: Windows
>Reporter: Omar Mefire
>Assignee: Sarangan Rajamanickam
>Priority: Critical
>  Labels: found-by-ci, wp8.1
>
> Log 1: 
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ==
>   CordovaApp.Phone -> 
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> 
> Log 2:
> ---
> ERROR running one or more of the platforms: Unexpected error from 
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows 
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code 
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a 
> phone is connected and powered on. You may have previously installed the app 
> with an earlier version of cordova-windows. Ensure the app is uninstalled 
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to 
> emulator
> ==
> Log 3: 
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> ---
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145011#comment-15145011
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user tripodsan commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183441915
  
> Missing preference: `osx_CFBundleIdentifier`

where?


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145023#comment-15145023
 ] 

ASF GitHub Bot commented on CB-10521:
-

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

https://github.com/apache/cordova-docs/pull/496#discussion_r52779563
  
--- Diff: www/docs/en/dev/config_ref/index.md ---
@@ -320,8 +330,8 @@ platform. See [Icons and Splash Screens](images.html) 
for more information.
 
Attributes(type) | Description
- | 
-   name(string) | *Required*  Allowed values: android-package, 
ios-package, onload.  ==iOS== ==Android==  'ios-package' and 
'android-package' are used to specify the name of the package (as specified by 
the 'value' attribute) to be used to initialize the plugin code, while 'onload' 
is used to specify whether the corresponding plugin (as specified in the 
'value' attribute) is to be instantiated when the controller is initialized.
-   value(string or boolean) | *Required*  ==iOS== ==Android==  
Specifies the name of the package to be used to initialize the plugin code 
(when the 'name' attribute is android-package or ios-package), specifies the 
name of the plugin to be loaded during controller initialization (when 'name' 
attribute is set to 'onload').
+   name(string) | *Required*  Allowed values: android-package, 
ios-package, onload.  ==iOS== ==OS X== ==Android==  'ios-package' and 
'android-package' are used to specify the name of the package (as specified by 
the 'value' attribute) to be used to initialize the plugin code, while 'onload' 
is used to specify whether the corresponding plugin (as specified in the 
'value' attribute) is to be instantiated when the controller is initialized.
--- End diff --

Missing: ```osx-package```: 

https://github.com/apache/cordova-osx/blob/80c0c6fb970c26acaa3abf62200154a30dc634d0/CordovaLib/CordovaLib/Classes/Commands/CDVConfigParser.m#L77


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10386) Use of NDK is not supported with cordova-android 5.1

2016-02-12 Thread Richard B Knoll (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144925#comment-15144925
 ] 

Richard B Knoll commented on CB-10386:
--

[~Titoine] were you building with the {{cordova build}} command or invoking 
gradle directly (maybe via Android Studio)?

> Use of NDK is not supported with cordova-android 5.1
> 
>
> Key: CB-10386
> URL: https://issues.apache.org/jira/browse/CB-10386
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Reporter: Nikhil Khandelwal
>
> REPRO:
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a plugin that depends on NDK e.g.:
> λ cordova plugin add cordova-plugin-crosswalk-webview
> 4. Build cordova:
> λ cordova build android
> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
> embedded
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Error: NDK integration is deprecated in the current plugin.  Consider 
> > trying the new experimental plugin.  For details, see 
> > http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  
> > Set "android.useDeprecatedNdk=true" in gradle.properties to continue using 
> > the current NDK integration.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED
> Total time: 8.628 secs
> ERROR building one of the platforms: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"



--
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-10601) App cordova-osx refused

2016-02-12 Thread cyril souti (JIRA)
cyril souti created CB-10601:


 Summary: App cordova-osx refused
 Key: CB-10601
 URL: https://issues.apache.org/jira/browse/CB-10601
 Project: Apache Cordova
  Issue Type: Bug
  Components: OSX
Reporter: cyril souti
Assignee: Tobias Bocanegra


I've published a cordova application based on cordova-osx but it refused due to 
:

The user interface is not consistent with the OS X Human Interface Guidelines.

We have found that when the user closes the main application window there is no 
menu item to re-open it. The app should implement a Window menu that lists the 
main window so it can be reopened, or provide similar functionality in another 
menu item. OS X Human Interface Guidelines, state that "The menu bar [a]lways 
contains [a] Window menu".

Alternatively, if the application is a single-window app, it might be 
appropriate to save data and quit the app when the main window is closed. 

For information on managing windows in Mac OS X, please review the following 
sections in Apple Human Interface Guidelines:

* The Menu Bar and Its Menus
* The Window Menu
* The File Menu
* Clicking in the Dock
* Window Behavior

It accepted with ios.



--
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-10594) geolocation.spec.10 crashes Windows Phone 8.1

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10594?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145017#comment-15145017
 ] 

ASF GitHub Bot commented on CB-10594:
-

Github user daserge commented on the pull request:


https://github.com/apache/cordova-plugin-geolocation/pull/69#issuecomment-183442760
  
@sarangan12, listeners are removed and then subsribed again.


> geolocation.spec.10 crashes Windows Phone 8.1
> -
>
> Key: CB-10594
> URL: https://issues.apache.org/jira/browse/CB-10594
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Geolocation
>Reporter: Sergey Shakhnazarov
>Assignee: Sergey Shakhnazarov
>  Labels: test
>
> 0x80004004 - JavaScript runtime error: Operation aborted



--
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-10574) MobileSpec can't get results for WP8.1 Builds

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145022#comment-15145022
 ] 

ASF GitHub Bot commented on CB-10574:
-

Github user daserge commented on the pull request:


https://github.com/apache/cordova-plugin-geolocation/pull/70#issuecomment-183443464
  
@sarangan12, what happens with loc object properties being set in a call to 
`watchLocation` when `ensureLocator` is called?
watchLocation first calls getLocation method and it calls `ensureLocator` 
before it's execution - woun't the loc properties be lost in this case?


> MobileSpec can't get results for WP8.1 Builds
> -
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
>  Issue Type: Test
> Environment: Windows
>Reporter: Omar Mefire
>Assignee: Sarangan Rajamanickam
>Priority: Critical
>  Labels: found-by-ci, wp8.1
>
> Log 1: 
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ==
>   CordovaApp.Phone -> 
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> 
> Log 2:
> ---
> ERROR running one or more of the platforms: Unexpected error from 
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows 
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code 
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a 
> phone is connected and powered on. You may have previously installed the app 
> with an earlier version of cordova-windows. Ensure the app is uninstalled 
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to 
> emulator
> ==
> Log 3: 
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> ---
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144984#comment-15144984
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user riknoll commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183434984
  
I like how you put the version in the platform tag. It makes it clear 
without cluttering up the description by specifying the versions for several 
platforms. @rakatyal we should add something about versions to the styleguide, 
I think that it's a valid concern.


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144993#comment-15144993
 ] 

ASF GitHub Bot commented on CB-10521:
-

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

https://github.com/apache/cordova-docs/pull/496#discussion_r52777046
  
--- Diff: www/docs/en/dev/config_ref/index.md ---
@@ -58,7 +58,7 @@ platform. See [Icons and Splash Screens](images.html) for 
more information.
id(string) | *Required*  Specifies the app's reverse-domain 
identifier, and the `version` its full version number expressed in 
major/minor/patch notation.
version(string) | *Required*  Full version number expressed in 
major/minor/patch notation.
versionCode(string) | ==Android==  Alternative version for 
Android. For further details, see [Android 
versioning](http://developer.android.com/tools/publishing/versioning.html)
-   CFBundleVersion(string) |  ==iOS==  Alternative version for iOS. 
For further details, see [iOS 
versioning](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102364).
+   CFBundleVersion(string) |  ==iOS== ==OS X==  Alternative version 
for iOS and OS X. For further details, see [iOS 
versioning](https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-102364).
--- End diff --

'OS X' => 'OSX'


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15144998#comment-15144998
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user omefire commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183437736
  
@tripodsan Good Idea on adding OSX platform to the docs


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10601) App cordova-osx refused

2016-02-12 Thread Tobias Bocanegra (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10601?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145004#comment-15145004
 ] 

Tobias Bocanegra commented on CB-10601:
---

At the current state, OSX platform main purpose is to provide a runtime for 
Kiosk like applications. They usually run fullscreen.
But I agree that we could improve the behaviour to follow the guidelines for 
single-window apps.

feel free to provide a patch :-)

> App cordova-osx refused
> ---
>
> Key: CB-10601
> URL: https://issues.apache.org/jira/browse/CB-10601
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: OSX
>Reporter: cyril souti
>Assignee: Tobias Bocanegra
>Priority: Minor
>
> I've published a cordova application based on cordova-osx but it refused due 
> to :
> The user interface is not consistent with the OS X Human Interface Guidelines.
> We have found that when the user closes the main application window there is 
> no menu item to re-open it. The app should implement a Window menu that lists 
> the main window so it can be reopened, or provide similar functionality in 
> another menu item. OS X Human Interface Guidelines, state that "The menu bar 
> [a]lways contains [a] Window menu".
> Alternatively, if the application is a single-window app, it might be 
> appropriate to save data and quit the app when the main window is closed. 
> For information on managing windows in Mac OS X, please review the following 
> sections in Apple Human Interface Guidelines:
> * The Menu Bar and Its Menus
> * The Window Menu
> * The File Menu
> * Clicking in the Dock
> * Window Behavior
> It accepted with ios.



--
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-10433) Timeout when tests don't run

2016-02-12 Thread Richard B Knoll (JIRA)

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

Richard B Knoll closed CB-10433.

Resolution: Fixed

> Timeout when tests don't run
> 
>
> Key: CB-10433
> URL: https://issues.apache.org/jira/browse/CB-10433
> Project: Apache Cordova
>  Issue Type: Test
>  Components: mobile-spec
>Reporter: Sarangan Rajamanickam
>Assignee: Richard B Knoll
>  Labels: found-by-ci, ios, triaged, windows-store-8.1, wp8.1
>
> During the Apache CI Build, there are several instances where mobilespec 
> tests don't run for whatever reason and the logging message we see is 
> misleading, we should fix it.
> Some of the links are:
> 1. https://ci.apache.org/builders/cordova-ios/builds/1534
> 2. https://ci.apache.org/builders/cordova-ios/builds/1543
> 3. https://ci.apache.org/builders/cordova-ios/builds/1553
> 4. https://ci.apache.org/builders/cordova-ios/builds/1570
> 5. https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1402
> Noticed this error majority of the times in iOS. But, today (01/25) happened 
> in WP8.1 also. 
> ==
> Content for logs:
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] 
> code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }



--
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-10518) Cordova reports error events with incorrect log level

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145078#comment-15145078
 ] 

ASF GitHub Bot commented on CB-10518:
-

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

https://github.com/apache/cordova-lib/pull/383#discussion_r52782786
  
--- Diff: cordova-lib/src/cordova/compile.js ---
@@ -40,7 +40,7 @@ module.exports = function compile(options) {
 }).then(function() {
 return hooksRunner.fire('after_compile', options);
 }, function(error) {
-events.emit('log', 'ERROR building one of the platforms: ' + error 
+ '\nYou may not have the required environment or OS to build this project');
+events.emit('warn', 'ERROR building one of the platforms: ' + 
error + '\nYou may not have the required environment or OS to build this 
project');
--- End diff --

Also when should one use `events.emit('error', ...)` For all errors now we 
are using warning - this is confusing.


> Cordova reports error events with incorrect log level
> -
>
> Key: CB-10518
> URL: https://issues.apache.org/jira/browse/CB-10518
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.0.0
>Reporter: Vladimir Kotikov
>Priority: Minor
>  Labels: triaged
>
> In case of fatal errors {{cordova run}} and {{cordova emulate}} methods emit 
> error messages using {{log}} event. This code probably should be changed to 
> use 'warn' level. (We can't use 'error' here due to its special meaning in 
> Node: https://nodejs.org/api/events.html#events_error_events)
> There is also other places, where 'log' events is used incorrectly:
> cordova-lib\src\cordova\targets.js:events.emit('log', 'An unexpected 
> error has occured');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'error while 
> generating cordova.js');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'Error 
> running platform version script');



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145087#comment-15145087
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user tripodsan commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183452254
  
but where is this documented? I can't even find where the 
ios_CFBundleIdentifier would be documented.
but there seems to be a mismatch in the osx parser: 
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/metadata/osx_parser.js#L71

I created CB-10603 to investigate.


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10386) Use of NDK is not supported with cordova-android 5.1

2016-02-12 Thread Nikhil Khandelwal (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145125#comment-15145125
 ] 

Nikhil Khandelwal commented on CB-10386:


I think adding a `gradle.properties` might be a good idea - We probably need to 
do that when android platform gets added.

> Use of NDK is not supported with cordova-android 5.1
> 
>
> Key: CB-10386
> URL: https://issues.apache.org/jira/browse/CB-10386
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Reporter: Nikhil Khandelwal
>
> REPRO:
> 1. Create a cordova project
> 2. Add android platform
> 3. Add a plugin that depends on NDK e.g.:
> λ cordova plugin add cordova-plugin-crosswalk-webview
> 4. Build cordova:
> λ cordova build android
> ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
> JAVA_HOME=C:\Program Files\java\jdk1.8.0_60
> embedded
> FAILURE: Build failed with an exception.
> * Where:
> Build file 'D:\apps\app\platforms\android\build.gradle' line: 185
> * What went wrong:
> A problem occurred evaluating root project 'android'.
> > Error: NDK integration is deprecated in the current plugin.  Consider 
> > trying the new experimental plugin.  For details, see 
> > http://tools.android.com/tech-docs/new-build-system/gradle-experimental.  
> > Set "android.useDeprecatedNdk=true" in gradle.properties to continue using 
> > the current NDK integration.
> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or 
> --debug option to get more log output.
> BUILD FAILED
> Total time: 8.628 secs
> ERROR building one of the platforms: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"
> You may not have the required environment or OS to build this project
> Error: Error code 1 for command: cmd with args: 
> /s,/c,"d:\apps\app\platforms\android\gradlew cdvBuildDebug -b 
> d:\apps\app\platforms\android\build.gradle -Dorg.gradle.daemon=true"



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145034#comment-15145034
 ] 

ASF GitHub Bot commented on CB-10521:
-

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

https://github.com/apache/cordova-docs/pull/496#discussion_r52780134
  
--- Diff: www/docs/en/dev/config_ref/index.md ---
@@ -320,8 +330,8 @@ platform. See [Icons and Splash Screens](images.html) 
for more information.
 
Attributes(type) | Description
- | 
-   name(string) | *Required*  Allowed values: android-package, 
ios-package, onload.  ==iOS== ==Android==  'ios-package' and 
'android-package' are used to specify the name of the package (as specified by 
the 'value' attribute) to be used to initialize the plugin code, while 'onload' 
is used to specify whether the corresponding plugin (as specified in the 
'value' attribute) is to be instantiated when the controller is initialized.
-   value(string or boolean) | *Required*  ==iOS== ==Android==  
Specifies the name of the package to be used to initialize the plugin code 
(when the 'name' attribute is android-package or ios-package), specifies the 
name of the plugin to be loaded during controller initialization (when 'name' 
attribute is set to 'onload').
+   name(string) | *Required*  Allowed values: android-package, 
ios-package, onload.  ==iOS== ==OS X== ==Android==  'ios-package' and 
'android-package' are used to specify the name of the package (as specified by 
the 'value' attribute) to be used to initialize the plugin code, while 'onload' 
is used to specify whether the corresponding plugin (as specified in the 
'value' attribute) is to be instantiated when the controller is initialized.
--- End diff --

yeah, both work: 
https://github.com/apache/cordova-osx/blob/80c0c6fb970c26acaa3abf62200154a30dc634d0/CordovaLib/CordovaLib/Classes/Commands/CDVConfigParser.m#L77,
 but I add it anyways.


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145041#comment-15145041
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user omefire commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183446590
  
>> Missing preference: osx_CFBundleIdentifier
> where?

Here: 
https://github.com/apache/cordova-osx/blob/cbfa7a531bb2a0a0e39fda14edaaff0e4a146b63/bin/templates/scripts/cordova/lib/prepare.js#L131


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10602) Deprecate the use of `ios-package` for OSX features.

2016-02-12 Thread Tobias Bocanegra (JIRA)
Tobias Bocanegra created CB-10602:
-

 Summary: Deprecate the use of `ios-package` for OSX features.
 Key: CB-10602
 URL: https://issues.apache.org/jira/browse/CB-10602
 Project: Apache Cordova
  Issue Type: Bug
  Components: OSX
Reporter: Tobias Bocanegra
Assignee: Tobias Bocanegra


the current config parser allows to use of {{osx-package}} and {{ios-package}} 
for plugin configurations:

https://github.com/apache/cordova-osx/blob/80c0c6fb970c26acaa3abf62200154a30dc634d0/CordovaLib/CordovaLib/Classes/Commands/CDVConfigParser.m#L77

In order to be more consistent and potentially avoid conflicts, we should only 
allow {{osx-package}}



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145040#comment-15145040
 ] 

ASF GitHub Bot commented on CB-10521:
-

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

https://github.com/apache/cordova-docs/pull/496#discussion_r52780798
  
--- Diff: www/docs/en/dev/config_ref/index.md ---
@@ -320,8 +330,8 @@ platform. See [Icons and Splash Screens](images.html) 
for more information.
 
Attributes(type) | Description
- | 
-   name(string) | *Required*  Allowed values: android-package, 
ios-package, onload.  ==iOS== ==Android==  'ios-package' and 
'android-package' are used to specify the name of the package (as specified by 
the 'value' attribute) to be used to initialize the plugin code, while 'onload' 
is used to specify whether the corresponding plugin (as specified in the 
'value' attribute) is to be instantiated when the controller is initialized.
-   value(string or boolean) | *Required*  ==iOS== ==Android==  
Specifies the name of the package to be used to initialize the plugin code 
(when the 'name' attribute is android-package or ios-package), specifies the 
name of the plugin to be loaded during controller initialization (when 'name' 
attribute is set to 'onload').
+   name(string) | *Required*  Allowed values: android-package, 
ios-package, onload.  ==iOS== ==OS X== ==Android==  'ios-package' and 
'android-package' are used to specify the name of the package (as specified by 
the 'value' attribute) to be used to initialize the plugin code, while 'onload' 
is used to specify whether the corresponding plugin (as specified in the 
'value' attribute) is to be instantiated when the controller is initialized.
--- End diff --

thinking of this...maybe we should be more strict. and only allow 
`osx-package` in the future. created CB-10602


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10433) Timeout when tests don't run

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145052#comment-15145052
 ] 

ASF GitHub Bot commented on CB-10433:
-

Github user asfgit closed the pull request at:

https://github.com/apache/cordova-medic/pull/76


> Timeout when tests don't run
> 
>
> Key: CB-10433
> URL: https://issues.apache.org/jira/browse/CB-10433
> Project: Apache Cordova
>  Issue Type: Test
>  Components: mobile-spec
>Reporter: Sarangan Rajamanickam
>Assignee: Richard B Knoll
>  Labels: found-by-ci, ios, triaged, windows-store-8.1, wp8.1
>
> During the Apache CI Build, there are several instances where mobilespec 
> tests don't run for whatever reason and the logging message we see is 
> misleading, we should fix it.
> Some of the links are:
> 1. https://ci.apache.org/builders/cordova-ios/builds/1534
> 2. https://ci.apache.org/builders/cordova-ios/builds/1543
> 3. https://ci.apache.org/builders/cordova-ios/builds/1553
> 4. https://ci.apache.org/builders/cordova-ios/builds/1570
> 5. https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1402
> Noticed this error majority of the times in iOS. But, today (01/25) happened 
> in WP8.1 also. 
> ==
> Content for logs:
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] 
> code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }



--
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-10433) Timeout when tests don't run

2016-02-12 Thread ASF subversion and git services (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10433?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145051#comment-15145051
 ] 

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

Commit 94554b93afb6721da6051bee520ea9fce72c0b3c in cordova-medic's branch 
refs/heads/master from riknoll
[ https://git-wip-us.apache.org/repos/asf?p=cordova-medic.git;h=94554b9 ]

CB-10433: Removing the ETIMEDOUT errors in medic-run. This closes #76

Also clarifying that no mobilespec results probably means crash


> Timeout when tests don't run
> 
>
> Key: CB-10433
> URL: https://issues.apache.org/jira/browse/CB-10433
> Project: Apache Cordova
>  Issue Type: Test
>  Components: mobile-spec
>Reporter: Sarangan Rajamanickam
>Assignee: Richard B Knoll
>  Labels: found-by-ci, ios, triaged, windows-store-8.1, wp8.1
>
> During the Apache CI Build, there are several instances where mobilespec 
> tests don't run for whatever reason and the logging message we see is 
> misleading, we should fix it.
> Some of the links are:
> 1. https://ci.apache.org/builders/cordova-ios/builds/1534
> 2. https://ci.apache.org/builders/cordova-ios/builds/1543
> 3. https://ci.apache.org/builders/cordova-ios/builds/1553
> 4. https://ci.apache.org/builders/cordova-ios/builds/1570
> 5. https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1402
> Noticed this error majority of the times in iOS. But, today (01/25) happened 
> in WP8.1 also. 
> ==
> Content for logs:
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { [Error: connect ETIMEDOUT] 
> code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> .query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }



--
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-10522) Event binding in Hello World is misleading

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145053#comment-15145053
 ] 

ASF GitHub Bot commented on CB-10522:
-

Github user sarangan12 commented on the pull request:


https://github.com/apache/cordova-app-hello-world/pull/15#issuecomment-183448308
  
@axemclion Can you check now?


> Event binding in Hello World is misleading
> --
>
> Key: CB-10522
> URL: https://issues.apache.org/jira/browse/CB-10522
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: App Hello World
>Reporter: Richard B Knoll
>Assignee: Sarangan Rajamanickam
>Priority: Minor
>  Labels: triaged
>
> It is our recommendation that you bind to all of the Cordova events 
> ({{pause}}, {{resume}}, etc.) in your {{deviceready}} callback so as to 
> ensure that cordova.js and all your plugins are done being loaded. This is 
> mentioned in the events guide [in the 
> documentation|http://cordova.apache.org/docs/en/latest/cordova/events/events.pause.html]
> However, we include a {{bindEvents}} method in the template which implies 
> that all event binding should happen there. We should probably just remove 
> {{bindEvents}} altogether and add the event listener for {{deviceready}} in 
> the {{initialize}} method since the other events we mention seem to be out of 
> date. We should also add a comment explaining where Cordova related events 
> should be bound to.



--
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-10518) Cordova reports error events with incorrect log level

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145066#comment-15145066
 ] 

ASF GitHub Bot commented on CB-10518:
-

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

https://github.com/apache/cordova-lib/pull/383#discussion_r52782123
  
--- Diff: cordova-lib/src/cordova/create.js ---
@@ -191,8 +191,8 @@ function create(dir, optionalId, optionalName, cfg) {
 
 return remoteLoad.gitClone(gitURL, branch).fail(
 function(err) {
-events.emit('verbose', err);
-return Q.reject('Failed to retrieve '+ 
cfg.lib.www.url + ' using git.');
+events.emit('warn', err.message);
+return Q.reject(new CordovaError('Failed to 
retrieve '+ cfg.lib.www.url + ' using git.'));
--- End diff --

Should the `err.message` be appended to new CordovaError or the original 
`err` be passed as inner error?


> Cordova reports error events with incorrect log level
> -
>
> Key: CB-10518
> URL: https://issues.apache.org/jira/browse/CB-10518
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.0.0
>Reporter: Vladimir Kotikov
>Priority: Minor
>  Labels: triaged
>
> In case of fatal errors {{cordova run}} and {{cordova emulate}} methods emit 
> error messages using {{log}} event. This code probably should be changed to 
> use 'warn' level. (We can't use 'error' here due to its special meaning in 
> Node: https://nodejs.org/api/events.html#events_error_events)
> There is also other places, where 'log' events is used incorrectly:
> cordova-lib\src\cordova\targets.js:events.emit('log', 'An unexpected 
> error has occured');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'error while 
> generating cordova.js');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'Error 
> running platform version script');



--
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-10518) Cordova reports error events with incorrect log level

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145072#comment-15145072
 ] 

ASF GitHub Bot commented on CB-10518:
-

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

https://github.com/apache/cordova-lib/pull/383#discussion_r52782454
  
--- Diff: cordova-lib/src/cordova/compile.js ---
@@ -40,7 +40,7 @@ module.exports = function compile(options) {
 }).then(function() {
 return hooksRunner.fire('after_compile', options);
 }, function(error) {
-events.emit('log', 'ERROR building one of the platforms: ' + error 
+ '\nYou may not have the required environment or OS to build this project');
+events.emit('warn', 'ERROR building one of the platforms: ' + 
error + '\nYou may not have the required environment or OS to build this 
project');
--- End diff --

So what's the guidance for error handling? We should emit a warning with 
detailed error message and then reject the promise with the actual error? I 
notice below you sometimes create a CordovaError to reject the promise. It will 
be great if we can come up with consistent set of guidelines for this.


> Cordova reports error events with incorrect log level
> -
>
> Key: CB-10518
> URL: https://issues.apache.org/jira/browse/CB-10518
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.0.0
>Reporter: Vladimir Kotikov
>Priority: Minor
>  Labels: triaged
>
> In case of fatal errors {{cordova run}} and {{cordova emulate}} methods emit 
> error messages using {{log}} event. This code probably should be changed to 
> use 'warn' level. (We can't use 'error' here due to its special meaning in 
> Node: https://nodejs.org/api/events.html#events_error_events)
> There is also other places, where 'log' events is used incorrectly:
> cordova-lib\src\cordova\targets.js:events.emit('log', 'An unexpected 
> error has occured');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'error while 
> generating cordova.js');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'Error 
> running platform version script');



--
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-10510) medic-run doesn't check to make sure the emulator started

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145074#comment-15145074
 ] 

ASF GitHub Bot commented on CB-10510:
-

GitHub user riknoll opened a pull request:

https://github.com/apache/cordova-medic/pull/77

CB-10510: Retry starting the Android emulator if it hangs on boot

This PR relies on https://github.com/apache/cordova-android/pull/258 being 
merged.

Adds logic to retry starting the Android emulator if it hangs on boot. Also 
has the side effects of changing medic-kill so that it can be required and so 
that it does not kill ADB when the killing Android tasks. Killing ADB causes 
issues with restarting the emulator and I don't think there was any reason to 
kill it in the first place.

@dblotsky @nikhilkh please review. This was split off of #76 

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

$ git pull https://github.com/MSOpenTech/cordova-medic CB-10510

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

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


commit 6a18c1eb5b3c71be6583ccb9187963975878569b
Author: riknoll 
Date:   2016-02-11T22:39:53Z

CB-10510: Retry starting the Android emulator if it hangs on boot




> medic-run doesn't check to make sure the emulator started
> -
>
> Key: CB-10510
> URL: https://issues.apache.org/jira/browse/CB-10510
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Medic
> Environment: Windows, Android emulator
>Reporter: Richard B Knoll
>Assignee: Richard B Knoll
>  Labels: android, found-by-ci
>
> Medic doesn't check to see if the emulator actually starts when invoking 
> {{cordova run android}}. Instead, it starts polling cordova-vm immediately. 
> This might also be considered a bug in cordova-android's run script, which 
> just seems to hang if the emulator doesn't start. Example build is here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/running-tests/logs/stdio
> And adb logs are here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/gathering-logs/logs/stdio
> 
> Log:
> C:\Users\buildbot\slaves\apache\cordova-android-win\mobilespec>node  
> C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-cli\bin\cordova 
> run --emulator android -- --gradle 
> ANDROID_HOME=C:\Android\android-sdk
> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
> No emulator specified, defaulting to Galaxy_Nexus
> Waiting for emulator...
> WARNING: init: Missing WGL extension WGL_ARB_make_current_read
> emulator: warning: opening audio output failed
> emulator: emulator window was out of view and was recentered
> emulator: UpdateChecker: skipped version check
> Booting up emulator (this may take a 
> while)query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> ..query failed for mobilespec_results { [Error: connect 
> ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> ...query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> ...didn't get test 
> results: timed out
> program finished with exit code 1
> elapsedTime=1150.659000



--
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-10518) Cordova reports error events with incorrect log level

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145075#comment-15145075
 ] 

ASF GitHub Bot commented on CB-10518:
-

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

https://github.com/apache/cordova-lib/pull/383#discussion_r52782573
  
--- Diff: cordova-lib/src/cordova/targets.js ---
@@ -25,9 +25,9 @@ var cordova_util = require('./util'),
 
 function handleError(error) {
 if (error.code === 'ENOENT') {
-events.emit('log', 'Platform does not support ' + this.script);
+events.emit('warn', 'Platform does not support ' + this.script);
 } else {
-events.emit('log', 'An unexpected error has occured');
+events.emit('warn', 'An unexpected error has occured while running 
' + this.script);
--- End diff --

Should we log the error code? It's often useful to have that.


> Cordova reports error events with incorrect log level
> -
>
> Key: CB-10518
> URL: https://issues.apache.org/jira/browse/CB-10518
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.0.0
>Reporter: Vladimir Kotikov
>Priority: Minor
>  Labels: triaged
>
> In case of fatal errors {{cordova run}} and {{cordova emulate}} methods emit 
> error messages using {{log}} event. This code probably should be changed to 
> use 'warn' level. (We can't use 'error' here due to its special meaning in 
> Node: https://nodejs.org/api/events.html#events_error_events)
> There is also other places, where 'log' events is used incorrectly:
> cordova-lib\src\cordova\targets.js:events.emit('log', 'An unexpected 
> error has occured');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'error while 
> generating cordova.js');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'Error 
> running platform version script');



--
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-10603) Cleanup use of ios_CFBundleIdentifier / osx_CFBundleIndentifier

2016-02-12 Thread Tobias Bocanegra (JIRA)
Tobias Bocanegra created CB-10603:
-

 Summary: Cleanup use of ios_CFBundleIdentifier / 
osx_CFBundleIndentifier
 Key: CB-10603
 URL: https://issues.apache.org/jira/browse/CB-10603
 Project: Apache Cordova
  Issue Type: Bug
  Components: OSX
Reporter: Tobias Bocanegra
Assignee: Tobias Bocanegra


There seems to be a mismatch with the use of ios_CFBundleIdentifier and 
osx_CFBundleIndentifier:

- 
https://github.com/apache/cordova-osx/blob/cbfa7a531bb2a0a0e39fda14edaaff0e4a146b63/bin/templates/scripts/cordova/lib/prepare.js#L131
- 
https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/cordova/metadata/osx_parser.js#L71



--
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-10598) Unable to run javascript in Cordova iOS project on simulator

2016-02-12 Thread jcesarmobile (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145118#comment-15145118
 ] 

jcesarmobile commented on CB-10598:
---

It has 'unsafe-inline' on style-src, not on default-src

> Unable to run javascript in Cordova iOS project on simulator
> 
>
> Key: CB-10598
> URL: https://issues.apache.org/jira/browse/CB-10598
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaJS, iOS
>Affects Versions: 5.4.1
> Environment: Mac OSX El Capitan, Xcode v7.2
>Reporter: Sumit Soman
>
> I created a cordova project, added the iOS platform and built the project. 
> After that I opened the .xcodeproj in Xcode, built it and the homepage showed 
> the sample app homescreen. I then created another js file with the following 
> content in the Staging/js folder
> function testLoad(){
> alert("Loaded!");
> }
> In index.html, I added
>  
> and called the function
> 
> However no alert appears! How to fix? I am using xCode 7.2.1 and Cordova 
> 5.4.1.



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145129#comment-15145129
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user omefire commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183457607
  
I don't think ios_CFBundleIdentifier is documented in the source code. You 
can find details about it here:
- 
https://developer.apple.com/library/ios/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
- 
http://salesforce.stackexchange.com/questions/31235/where-can-i-find-my-bundle-identifier-and-why-is-it-important


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145137#comment-15145137
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user tripodsan commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183458470
  
hmmm..ok...but then I don't understand your comment above:
> Missing preference: osx_CFBundleIdentifier



> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10604) resource-file tag in plugin.xml for cordova-windows generates incorrect link

2016-02-12 Thread James Dubee (JIRA)
James Dubee created CB-10604:


 Summary: resource-file tag in plugin.xml for cordova-windows 
generates incorrect link
 Key: CB-10604
 URL: https://issues.apache.org/jira/browse/CB-10604
 Project: Apache Cordova
  Issue Type: Bug
  Components: Windows
Reporter: James Dubee


When using the resource-file tag in plugin.xml for cordova-windows, the link 
tag generated in the .jsproj has the wrong value.

plugin.xml example:


.jsproj file content:




plugins/cordova-plugin-mfp-jsonstore/win/ARM/sqlite3.dll
Always

 

Wanted .jsproj content:


sqlite3.dll
Always

 





--
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-10138) plugin's metadata value not updating on Android

2016-02-12 Thread Ian Maffett (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145152#comment-15145152
 ] 

Ian Maffett commented on CB-10138:
--

It appears this issue affects other platforms (windows/iOS).  Should a separate 
issue be created for each one?  For iOS, you can apply the same fix to 
bin/templates/scripts/cordova/lib/plugman/Plugman.js

for Windows

template/cordova/Api.js  - again, the same fix as Android

> plugin's metadata value not updating on Android
> ---
>
> Key: CB-10138
> URL: https://issues.apache.org/jira/browse/CB-10138
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 5.1.0
> Environment: Operating System: OS X 10.11.1, Platform: Android, 
> Installed platforms: android 5.0.0, iOS 3.9.2, cordova-plugin-inappbrowser 
> 1.1.0, Cordova version: 5.4.1, Oauth version: ngCordova v0.1.20-alpha
>Reporter: Maikel
>Assignee: Vladimir Kotikov
>  Labels: android, ionic, triaged
>
> I am using ngcordova and ionic to develop my app.
> I have updated cordova to version 5.4.1 and now the authentication via oath 
> (in a inappbrowser window) in my app is not working anymore because the oauth 
> function is telling me that the inappbrowser plugin is not installed.
> On stack overflow I found also this about it (cordova plugin's metadata value 
> not updating), 
> http://stackoverflow.com/questions/33822123/cordova-plugins-metadata-value-not-updating
> "And by debuging in deep i came to know that var cordovaMetadata = 
> cordova.require("cordova/plugin_list").metadata; this code give empty array 
> and that is reason plugin isn't working."



--
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-10138) plugin's metadata value not updating on Android

2016-02-12 Thread Ian Maffett (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10138?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145157#comment-15145157
 ] 

Ian Maffett commented on CB-10138:
--

Also - happy to make these changes once my ICLA is verified

> plugin's metadata value not updating on Android
> ---
>
> Key: CB-10138
> URL: https://issues.apache.org/jira/browse/CB-10138
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Android
>Affects Versions: 5.1.0
> Environment: Operating System: OS X 10.11.1, Platform: Android, 
> Installed platforms: android 5.0.0, iOS 3.9.2, cordova-plugin-inappbrowser 
> 1.1.0, Cordova version: 5.4.1, Oauth version: ngCordova v0.1.20-alpha
>Reporter: Maikel
>Assignee: Vladimir Kotikov
>  Labels: android, ionic, triaged
>
> I am using ngcordova and ionic to develop my app.
> I have updated cordova to version 5.4.1 and now the authentication via oath 
> (in a inappbrowser window) in my app is not working anymore because the oauth 
> function is telling me that the inappbrowser plugin is not installed.
> On stack overflow I found also this about it (cordova plugin's metadata value 
> not updating), 
> http://stackoverflow.com/questions/33822123/cordova-plugins-metadata-value-not-updating
> "And by debuging in deep i came to know that var cordovaMetadata = 
> cordova.require("cordova/plugin_list").metadata; this code give empty array 
> and that is reason plugin isn't working."



--
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-10574) MobileSpec can't get results for WP8.1 Builds

2016-02-12 Thread Nikhil Khandelwal (JIRA)

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

Nikhil Khandelwal updated CB-10574:
---
Issue Type: Bug  (was: Test)

> MobileSpec can't get results for WP8.1 Builds
> -
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
>  Issue Type: Bug
> Environment: Windows
>Reporter: Omar Mefire
>Assignee: Sarangan Rajamanickam
>Priority: Critical
>  Labels: found-by-ci, wp8.1
>
> Log 1: 
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ==
>   CordovaApp.Phone -> 
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> 
> Log 2:
> ---
> ERROR running one or more of the platforms: Unexpected error from 
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows 
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code 
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a 
> phone is connected and powered on. You may have previously installed the app 
> with an earlier version of cordova-windows. Ensure the app is uninstalled 
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to 
> emulator
> ==
> Log 3: 
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> ---
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145167#comment-15145167
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user omefire commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183462965
  
> hmmm..ok...but then I don't understand your comment above:

> Missing preference: osx_CFBundleIdentifier

What I'm saying is that we should add it to the list of preferences, just 
like we've added ```DefaultVolumeStream```


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145169#comment-15145169
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user omefire commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183463432
  
But I'm realizing that there is a mistake in the current docs. we should:
- have two entries: osx_CFBundleIdentifier and ios_CFBundleIdentifier
- remove CFBundleIdentifier


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10604) resource-file tag in plugin.xml for cordova-windows generates incorrect link

2016-02-12 Thread James Dubee (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10604?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145170#comment-15145170
 ] 

James Dubee commented on CB-10604:
--

Proposed change:

Set link.text in addResourceFileToProject() in JsproManager.js to 
relPath.split('/').pop();.

> resource-file tag in plugin.xml for cordova-windows generates incorrect link
> 
>
> Key: CB-10604
> URL: https://issues.apache.org/jira/browse/CB-10604
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Windows
>Reporter: James Dubee
>
> When using the resource-file tag in plugin.xml for cordova-windows, the link 
> tag generated in the .jsproj has the wrong value.
> plugin.xml example:
>  device-target="win"  
> target="plugins/cordova-plugin-mfp-jsonstore/win/ARM/msvcr110.dll" 
> custom="true" arch="ARM" />
> .jsproj file content:
> 
>  Include="plugins/cordova-plugin-mfp-jsonstore/win/ARM/sqlite3.dll">
> 
> plugins/cordova-plugin-mfp-jsonstore/win/ARM/sqlite3.dll
> Always
> 
>  
> Wanted .jsproj content:
> 
>  Include="plugins/cordova-plugin-mfp-jsonstore/win/ARM/sqlite3.dll">
> sqlite3.dll
> Always
> 
>  



--
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-9347) You can no longer stack alerts in cordova-plugin-dialogs - commit #ee3b02b3 has caused this

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145187#comment-15145187
 ] 

ASF GitHub Bot commented on CB-9347:


Github user jcesarmobile commented on the pull request:


https://github.com/apache/cordova-plugin-dialogs/pull/54#issuecomment-183466583
  
I've just send the PR.
https://github.com/phonegap/phonegap-plugin-barcodescanner/pull/170




> You can no longer stack alerts in cordova-plugin-dialogs - commit #ee3b02b3 
> has caused this
> ---
>
> Key: CB-9347
> URL: https://issues.apache.org/jira/browse/CB-9347
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Dialogs
>Affects Versions: 1.1.0
> Environment: Mac OS X Yosemite 10.10.4; XCode 6.4 iOS
>Reporter: Kelvin Dart
>Assignee: jcesarmobile
>Priority: Critical
>
> Previously in cordova-plugin-dialogs, you could stack alerts in Cordova like 
> follows:
> {code}
> navigator.notification.alert('Notification 1', function () {}, 'Title 1');
> navigator.notification.alert('Notification 2', function () {}, 'Title 2');
> {code}
> And it would show 'Notification 2' then 'Notification 1'.
> Now you cannot, in commit: #ee3b02b3c78debe608263d847f7ac69bda1bfca0, there 
> was quite a large overhaul in {{showDialogWithMessage}} in 
> {{CDVNotification.m}}; this commit seems to add some code for iOS 8.3+ which 
> uses {{UIAlertController}} instead of the old {{UIAlertView}}. The problem is 
> here - unfortunately I do not know Obj-C too well in order to debug it.
> If you revert to a cordova-plugin-dialogs version prior to this, the stacked 
> notifications work fine.
> I have created a small test harness which you can download 
> [here|https://www.dropbox.com/s/62hdp3gjp2924er/CDVDialogsNotificationBug.zip?dl=0].
> Please could you implement the old behaviour as this has cause some aspects 
> of my app to break - thanks!
> N.b. I have tagged the version as 1.1.0 as it would not allow me to tag 1.1.1.



--
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-10521) Add OS X platform to docs

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145194#comment-15145194
 ] 

ASF GitHub Bot commented on CB-10521:
-

Github user tripodsan commented on the pull request:

https://github.com/apache/cordova-docs/pull/496#issuecomment-183467505
  
ah, right: here it's still correct:

http://cordova.apache.org/docs/en/5.4.0/config_ref/index.html#additional-versioning

I'll update the config in my PR


> Add OS X platform to docs
> -
>
> Key: CB-10521
> URL: https://issues.apache.org/jira/browse/CB-10521
> Project: Apache Cordova
>  Issue Type: Improvement
>  Components: Docs, OSX
>Affects Versions: Master
>Reporter: Tobias Bocanegra
>Assignee: Tobias Bocanegra
>
> With the upcoming initial release of OSX we also need to provide 
> documentation.



--
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-10595) Windows Store 8.1 builds finish with warning 'Expected undefined to be defined' on running mobilespec storage tests

2016-02-12 Thread Nikhil Khandelwal (JIRA)

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

Nikhil Khandelwal updated CB-10595:
---
Assignee: Sergey Shakhnazarov

> Windows Store 8.1 builds finish with warning 'Expected undefined to be 
> defined' on running mobilespec storage tests
> ---
>
> Key: CB-10595
> URL: https://issues.apache.org/jira/browse/CB-10595
> Project: Apache Cordova
>  Issue Type: Test
>Reporter: Raghav
>Assignee: Sergey Shakhnazarov
>  Labels: found-by-ci, windows-store-8.1
>
> Recent build links:
> https://ci.apache.org/builders/cordova-windows-store8.1/builds/1601
> https://ci.apache.org/builders/cordova-windows-store8.1/builds/1602
> Build Log:
> Getting test results for cordova-windows-store8.1-1601-buildbot-vm
> Results at 
> http://cordova-vm.apache.org:5984/_utils/document.html?mobilespec_results/cordova-windows-store8.1-1601-buildbot-vm__6.3.9600.16384__HP
>  Z420 Workstation
> Total failures: 1
> Failing tests:
> org.apache.cordova.mobilespec.tests.storage.tests >> Session Storage HTML 
> 5 Storage storage.spec.9 should exist
> Expected undefined to be defined.
> Error: Expected undefined to be defined.
>at stack 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:1455:11)
>at buildExpectationResult 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:1422:5)
>at expectationResultFactory 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:572:11)
>at Spec.prototype.addExpectationResult 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:321:5)
>at addExpectationResult 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:516:9)
>at Anonymous function 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:1379:7)
>at Anonymous function 
> (ms-appx://org.apache.mobilespec/www/plugins/org.apache.cordova.mobilespec.tests/tests/storage.tests.js:183:17)
>at attemptSync 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:1741:9)
>at QueueRunner.prototype.run 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:1729:9)
>at QueueRunner.prototype.execute 
> (ms-appx://org.apache.mobilespec/www/cdvtests/jasmine-2.2.0/jasmine.js:1714:5)
> program finished with exit code 0



--
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-10332) Improve Android Guide

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145201#comment-15145201
 ] 

ASF GitHub Bot commented on CB-10332:
-

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

https://github.com/apache/cordova-docs/pull/471#discussion_r52791195
  
--- Diff: www/docs/en/dev/guide/platforms/android/index.md ---
@@ -30,278 +30,676 @@ platform-centered shell tools or cross-platform 
Cordova CLI for
 development. For a comparison of the two development paths, see the
 [Overview](../../overview/index.html).  For details on the CLI, see [The 
Command-Line Interface](../../cli/index.html).
--- End diff --

Link should point to: 
http://localhost:3000/docs/en/dev/guide/overview/index.html#development-paths


> Improve Android Guide
> -
>
> Key: CB-10332
> URL: https://issues.apache.org/jira/browse/CB-10332
> Project: Apache Cordova
>  Issue Type: Task
>  Components: Docs
>Reporter: Raghav
>Assignee: Richard B Knoll
>  Labels: Docs-6.x
>
> We did a document scrub and found the following issues. Please feel free to 
> correct other things as well.
> - Android Platform Guide
> -- Install Cordova Shell tools is out of date
> -- Environment variable instructions for Windows are out of date
> -- Emulator section can just point to 
> http://developer.android.com/tools/devices/emulator.html
> -- Lots of duplicated content for create/build/deploy from CLI page
> -- Page keeps switching between CLI and platform-centric workflow
> - Android Shell Tool Guide
> -- Second paragraph is out of date
> -- Create/build/run/logging/clean should be clear that this is the 
> platform-centric workflow. Also duplicated in Android Platform guide
> -- Platform-centric workflow should probably just get its own explicit page
> -- Signing an app doesn't actually say how to sign an app. Gives arguments 
> for some mystery command
> --- Does this belong in our docs? We might just mention it and point to 
> Google's app signing instructions
> - Android WebViews
> -- Needs investigation if this is still supported.
> --- Step 1 is wrong (should be getting cordova-android by cloning or from npm)
> --- Step 3 needs to have instructions for adding jars to gradle
> --- Step 5 is out of date. CordovaActivity does not implement 
> CordovaInterface... Think they should be extending/modifying CordovaActivity. 
> Needs investigation
> --- Step 6 does not appear to be camera plugin specific
> --- Step 7 example is useless, it needs to be fleshed out
> - Android plugins
> -- Should be moved to plugin developer docs
> -- Need a reference for the classes that plugins have access to
> --- CordovaWebView, CallbackContext, CordovaPlugin, etc.
> --- Most already have javadoc
> -- Android Integration should be renamed and link to the Android classes it's 
> talking about
> -- Debugging Android plugins is out of date (mentions Eclipse and jars) and 
> should probably be fleshed out a bit
> - Android Configuration
> -- Should be a reference
> - Upgrading Android
> -- Ends at 4.0.0 (current is 4.1.1, soon to be 5.0.0)
> -- Needs to be reorganized in some way
> --- The instructions seem to be pretty much the same for versions 1.6.0 +
> -- Goes back to the phonegap days! Should probably only include Cordova 
> versions (1.5.0 +)
> -- Upgrade to 1.8.0 from 1.7.0 repeated twice
> -- Upgrade to 1.8.0 from 1.8.0 is a typo
> General guidelines:
> - While giving examples, keep them short. Do not repeat for all 
> plugins/platforms.
> - Remove all references to cordova plugin registry.
> - Remove Tizen references. The platform is deprecated 
> (http://markmail.org/message/hryg6sjswecpgndu)
> - Keep information up to date for the platforms, CLI and plugins



--
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-10574) MobileSpec can't get results for WP8.1 Builds

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145789#comment-15145789
 ] 

ASF GitHub Bot commented on CB-10574:
-

Github user sarangan12 commented on the pull request:


https://github.com/apache/cordova-plugin-geolocation/pull/70#issuecomment-183587579
  
@dblotsky Can you review and merge this PR?



> MobileSpec can't get results for WP8.1 Builds
> -
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
>  Issue Type: Bug
> Environment: Windows
>Reporter: Omar Mefire
>Assignee: Sarangan Rajamanickam
>Priority: Critical
>  Labels: found-by-ci, wp8.1
>
> Log 1: 
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ==
>   CordovaApp.Phone -> 
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> 
> Log 2:
> ---
> ERROR running one or more of the platforms: Unexpected error from 
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows 
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code 
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a 
> phone is connected and powered on. You may have previously installed the app 
> with an earlier version of cordova-windows. Ensure the app is uninstalled 
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to 
> emulator
> ==
> Log 3: 
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> ---
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000



--
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-10574) MobileSpec can't get results for WP8.1 Builds

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145787#comment-15145787
 ] 

ASF GitHub Bot commented on CB-10574:
-

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


https://github.com/apache/cordova-plugin-geolocation/pull/70#discussion_r52822803
  
--- Diff: src/windows/GeolocationProxy.js ---
@@ -181,10 +178,11 @@ module.exports = {
 callbacks = ids[clientId];
--- End diff --

Changed the declarations. I am not sure about adding an assertion or 
throwing an exception. Consider a scenario in which I press the "Stop watching" 
in mobilespec before "Start Watching". This is a valid scenario. I just don't 
want an assertion or exception in such a scenario. (as the reason is simply 
there is nothing to stop)


> MobileSpec can't get results for WP8.1 Builds
> -
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
>  Issue Type: Bug
> Environment: Windows
>Reporter: Omar Mefire
>Assignee: Sarangan Rajamanickam
>Priority: Critical
>  Labels: found-by-ci, wp8.1
>
> Log 1: 
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ==
>   CordovaApp.Phone -> 
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> 
> Log 2:
> ---
> ERROR running one or more of the platforms: Unexpected error from 
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows 
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code 
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a 
> phone is connected and powered on. You may have previously installed the app 
> with an earlier version of cordova-windows. Ensure the app is uninstalled 
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to 
> emulator
> ==
> Log 3: 
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> ---
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000



--
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-10574) MobileSpec can't get results for WP8.1 Builds

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145788#comment-15145788
 ] 

ASF GitHub Bot commented on CB-10574:
-

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


https://github.com/apache/cordova-plugin-geolocation/pull/70#discussion_r52822810
  
--- Diff: src/windows/GeolocationProxy.js ---
@@ -14,47 +14,43 @@
  * limitations under the License.
  */
 
-var PositionError = require('./PositionError'),
-ids = {},
-loc;
+var PositionError   = require('./PositionError');
+var ids = {};
--- End diff --

Done


> MobileSpec can't get results for WP8.1 Builds
> -
>
> Key: CB-10574
> URL: https://issues.apache.org/jira/browse/CB-10574
> Project: Apache Cordova
>  Issue Type: Bug
> Environment: Windows
>Reporter: Omar Mefire
>Assignee: Sarangan Rajamanickam
>Priority: Critical
>  Labels: found-by-ci, wp8.1
>
> Log 1: 
> (https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1524/steps/running-tests/logs/stdio)
> ==
>   CordovaApp.Phone -> 
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_AnyCPU_bundle_debug.appxupload
>   Your package has been successfully created.
> Deploying phone package to emulator:
> C:\Users\buildbot\slaves\apache\cordova-windows-phone8_1\mobilespec\platforms\windows\AppPackages\CordovaApp.Phone_0.0.1.0_debug_Test\CordovaApp.Phone_0.0.1.0_AnyCPU_debug.appxbundle
> Attempting to remove previously installed application...
> Deploying app package...
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1143.444000
> 
> Log 2:
> ---
> ERROR running one or more of the platforms: Unexpected error from 
> installation: C:\Program Files (x86)\Microsoft SDKs\Windows 
> Phone\v8.1\Tools\AppDeploy\AppDeployCmd.exe: Command failed with exit code 
> 2148734208 Error output:
> Error: Deployment failed because no Windows Phone was detected. Make sure a 
> phone is connected and powered on. You may have previously installed the app 
> with an earlier version of cordova-windows. Ensure the app is uninstalled 
> from the phone and then try to run again.
> You may not have the required environment or OS to run this project
> [MEDIC LOG Mon, 08 Feb 2016 16:39:10 GMT] no device found, so switching to 
> emulator
> ==
> Log 3: 
> https://ci.apache.org/builders/cordova-windows-phone8.1/builds/1506/steps/running-tests/logs/stdio
> ---
> Attempting to remove previously installed application...
> Deploying app package...
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> didn't get test results: timed out
> program finished with exit code 1
> elapsedTime=1142.741000



--
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-10540) Mobilespec failure: ENOENT, no such file or directory 'mobilespec/www/medic.json'

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145282#comment-15145282
 ] 

ASF GitHub Bot commented on CB-10540:
-

Github user dblotsky commented on the pull request:

https://github.com/apache/cordova-medic/pull/78#issuecomment-183484805
  
Nice catch!


> Mobilespec failure: ENOENT, no such file or directory 
> 'mobilespec/www/medic.json'
> -
>
> Key: CB-10540
> URL: https://issues.apache.org/jira/browse/CB-10540
> Project: Apache Cordova
>  Issue Type: Test
>  Components: mobile-spec
>Reporter: Omar Mefire
>Assignee: Raghav
>  Labels: Android, found-by-ci
>
> Link:
> https://ci.apache.org/builders/cordova-android-osx/builds/1692/steps/running-tests/logs/stdio
> ===
> [MEDIC LOG Thu, 04 Feb 2016 12:49:15 GMT] sha: 
> cordova-android-osx-1692-buildbot-vm
> [MEDIC LOG Thu, 04 Feb 2016 12:49:15 GMT] couchdb: 
> http://cordova-vm.apache.org:5984
> fs.js:500
>   return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
>  ^
> Error: ENOENT, no such file or directory 'mobilespec/www/medic.json'
> at Error (native)
> at Object.fs.openSync (fs.js:500:18)
> at Object.fs.writeFileSync (fs.js:1099:15)
> at createMedicJson 
> (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:86:8)
> at 
> /Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:356:9
> at Request. 
> (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:305:9)
> at Request.emit (events.js:107:17)
> at Request.onRequestResponse 
> (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/node_modules/request/request.js:1156:10)
> at ClientRequest.emit (events.js:107:17)
> at HTTPParser.parserOnIncomingClient [as onIncoming] 
> (_http_client.js:426:21)
> program finished with exit code 1
> elapsedTime=40.421384



--
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-10552) Pull all the plugin docs to Cordova

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145386#comment-15145386
 ] 

ASF GitHub Bot commented on CB-10552:
-

Github user sarangan12 commented on the pull request:

https://github.com/apache/cordova-docs/pull/493#issuecomment-183505615
  
@dblotsky Can you review and merge this PR?


> Pull all the plugin docs to Cordova
> ---
>
> Key: CB-10552
> URL: https://issues.apache.org/jira/browse/CB-10552
> Project: Apache Cordova
>  Issue Type: Task
>Reporter: Sarangan Rajamanickam
>Assignee: Sarangan Rajamanickam
>




--
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-10552) Pull all the plugin docs to Cordova

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145384#comment-15145384
 ] 

ASF GitHub Bot commented on CB-10552:
-

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

https://github.com/apache/cordova-docs/pull/493#discussion_r52804771
  
--- Diff: www/_layouts/docs.html ---
@@ -183,6 +183,21 @@ {{ page.toc_text }}
 
 {% endif %}
 
+
+{% if page.note_link and page.note_link_text %}
+
+
+
+
+
+{{ page.note }}
+
+{{ page.note_link_text }}
+
+
+
+{% endif %}
--- End diff --

Done


> Pull all the plugin docs to Cordova
> ---
>
> Key: CB-10552
> URL: https://issues.apache.org/jira/browse/CB-10552
> Project: Apache Cordova
>  Issue Type: Task
>Reporter: Sarangan Rajamanickam
>Assignee: Sarangan Rajamanickam
>




--
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-10518) Cordova reports error events with incorrect log level

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145238#comment-15145238
 ] 

ASF GitHub Bot commented on CB-10518:
-

Github user vladimir-kotikov commented on a diff in the pull request:

https://github.com/apache/cordova-lib/pull/383#discussion_r52794358
  
--- Diff: cordova-lib/src/cordova/targets.js ---
@@ -25,9 +25,9 @@ var cordova_util = require('./util'),
 
 function handleError(error) {
 if (error.code === 'ENOENT') {
-events.emit('log', 'Platform does not support ' + this.script);
+events.emit('warn', 'Platform does not support ' + this.script);
 } else {
-events.emit('log', 'An unexpected error has occured');
+events.emit('warn', 'An unexpected error has occured while running 
' + this.script);
--- End diff --

Agree. I'll update this


> Cordova reports error events with incorrect log level
> -
>
> Key: CB-10518
> URL: https://issues.apache.org/jira/browse/CB-10518
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.0.0
>Reporter: Vladimir Kotikov
>Priority: Minor
>  Labels: triaged
>
> In case of fatal errors {{cordova run}} and {{cordova emulate}} methods emit 
> error messages using {{log}} event. This code probably should be changed to 
> use 'warn' level. (We can't use 'error' here due to its special meaning in 
> Node: https://nodejs.org/api/events.html#events_error_events)
> There is also other places, where 'log' events is used incorrectly:
> cordova-lib\src\cordova\targets.js:events.emit('log', 'An unexpected 
> error has occured');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'error while 
> generating cordova.js');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'Error 
> running platform version script');



--
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-9347) You can no longer stack alerts in cordova-plugin-dialogs - commit #ee3b02b3 has caused this

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-9347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145297#comment-15145297
 ] 

ASF GitHub Bot commented on CB-9347:


Github user tony-- commented on the pull request:


https://github.com/apache/cordova-plugin-dialogs/pull/54#issuecomment-183488008
  
Thanks!  I cherry-picked it into a fork; we'll let you know if it worked 
for us ASAP.


> You can no longer stack alerts in cordova-plugin-dialogs - commit #ee3b02b3 
> has caused this
> ---
>
> Key: CB-9347
> URL: https://issues.apache.org/jira/browse/CB-9347
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Dialogs
>Affects Versions: 1.1.0
> Environment: Mac OS X Yosemite 10.10.4; XCode 6.4 iOS
>Reporter: Kelvin Dart
>Assignee: jcesarmobile
>Priority: Critical
>
> Previously in cordova-plugin-dialogs, you could stack alerts in Cordova like 
> follows:
> {code}
> navigator.notification.alert('Notification 1', function () {}, 'Title 1');
> navigator.notification.alert('Notification 2', function () {}, 'Title 2');
> {code}
> And it would show 'Notification 2' then 'Notification 1'.
> Now you cannot, in commit: #ee3b02b3c78debe608263d847f7ac69bda1bfca0, there 
> was quite a large overhaul in {{showDialogWithMessage}} in 
> {{CDVNotification.m}}; this commit seems to add some code for iOS 8.3+ which 
> uses {{UIAlertController}} instead of the old {{UIAlertView}}. The problem is 
> here - unfortunately I do not know Obj-C too well in order to debug it.
> If you revert to a cordova-plugin-dialogs version prior to this, the stacked 
> notifications work fine.
> I have created a small test harness which you can download 
> [here|https://www.dropbox.com/s/62hdp3gjp2924er/CDVDialogsNotificationBug.zip?dl=0].
> Please could you implement the old behaviour as this has cause some aspects 
> of my app to break - thanks!
> N.b. I have tagged the version as 1.1.0 as it would not allow me to tag 1.1.1.



--
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-10605) cordova-plugin-globalization deprecation warnings

2016-02-12 Thread Edna Morales (JIRA)
Edna Morales created CB-10605:
-

 Summary: cordova-plugin-globalization deprecation warnings
 Key: CB-10605
 URL: https://issues.apache.org/jira/browse/CB-10605
 Project: Apache Cordova
  Issue Type: Bug
  Components: Plugin Globalization
 Environment: iOS
Reporter: Edna Morales
Assignee: Edna Morales
Priority: Minor


 'NSSecondCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
NSCalendarUnitSecond instead

 'NSMinuteCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
NSCalendarUnitMinute instead

 'NSHourCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
NSCalendarUnitHour instead

 'NSDayCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
NSCalendarUnitDay instead

 'NSMonthCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
NSCalendarUnitMonth instead

 'NSYearCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
NSCalendarUnitYear instead



--
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-10510) medic-run doesn't check to make sure the emulator started

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145547#comment-15145547
 ] 

ASF GitHub Bot commented on CB-10510:
-

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

https://github.com/apache/cordova-medic/pull/77#discussion_r52812697
  
--- Diff: medic/medic-run.js ---
@@ -284,6 +289,73 @@ function tryConnect(couchdbURI, pendingNumberOfTries, 
callback) {
 });
 }
 
+/*
+ * Attempts to start the Android emulator by calling the emulator.js 
script in
+ * the Android platform directory of the app. If the emulator fails to 
boot, we
+ * retry a specified number of times.
+ *
+ * @param {string} appPath  An ABSOLUTE path to the app's project 
folder
+ * @param {number} numberOfTriesNumber of times to attempt to start 
the emulator
+ *
+ * @returns {promise}   A promise that resolves to the ID of the emulator 
or
+ *  null if it failed to start
+ */
+function startAndroidEmulator(appPath, numberOfTries) {
+// We need to get the emulator script from within the Android 
platforms folder
+var emuPath = path.join(appPath, "platforms", "android", "cordova", 
"lib", "emulator");
+var emulator = require(emuPath);
+
+var tryStart = function(numberTriesRemaining) {
+return emulator.start(null, ANDROID_EMU_START_TIMEOUT)
+.then(function(emulatorId) {
+if (emulatorId) {
+return emulatorId;
+} else if (numberTriesRemaining > 0) {
+// Emulator must have hung while booting, so we need to 
kill it
+medicKill(util.ANDROID);
+return tryStart(numberTriesRemaining - 1);
+} else {
+return null;
+}
+});
+};
+
+// Check if the emulator has already been started
+return emulator.list_started()
+.then(function(started) {
+if (started && started.length > 0) {
+return started[0];
+} else {
+return tryStart(numberOfTries);
+}
+});
+}
+
+/* Starts periodic polling to check for the mobilespec test results in 
CouchDB.
+ * After it finishes polling, it will terminate the process returning a 0 
if
+ * results were found or 1 if they were not.
+ *
+ * @param {string} couchdbURI   The URL for the couchdb instance
+ * @param {string} buildId  The build ID to query the coudchdb for
+ * @param {number} timeout  The amount of time in seconds to continue 
polling
+ */
+function startPollingForTestResults(couchdbURI, buildId, timeout) {
+// NOTE:
+//  timeout needs to be in milliseconds, but it's
+//  given in seconds, so we multiply by 1000
--- End diff --

Please move this comment down a line.


> medic-run doesn't check to make sure the emulator started
> -
>
> Key: CB-10510
> URL: https://issues.apache.org/jira/browse/CB-10510
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Medic
> Environment: Windows, Android emulator
>Reporter: Richard B Knoll
>Assignee: Richard B Knoll
>  Labels: android, found-by-ci
>
> Medic doesn't check to see if the emulator actually starts when invoking 
> {{cordova run android}}. Instead, it starts polling cordova-vm immediately. 
> This might also be considered a bug in cordova-android's run script, which 
> just seems to hang if the emulator doesn't start. Example build is here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/running-tests/logs/stdio
> And adb logs are here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/gathering-logs/logs/stdio
> 
> Log:
> C:\Users\buildbot\slaves\apache\cordova-android-win\mobilespec>node  
> C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-cli\bin\cordova 
> run --emulator android -- --gradle 
> ANDROID_HOME=C:\Android\android-sdk
> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
> No emulator specified, defaulting to Galaxy_Nexus
> Waiting for emulator...
> WARNING: init: Missing WGL extension WGL_ARB_make_current_read
> emulator: warning: opening audio output failed
> emulator: emulator window was out of view and was recentered
> emulator: UpdateChecker: skipped version check
> Booting up emulator (this may take a 
> while)query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: 

[jira] [Commented] (CB-10518) Cordova reports error events with incorrect log level

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145236#comment-15145236
 ] 

ASF GitHub Bot commented on CB-10518:
-

Github user vladimir-kotikov commented on a diff in the pull request:

https://github.com/apache/cordova-lib/pull/383#discussion_r52794281
  
--- Diff: cordova-lib/src/cordova/run.js ---
@@ -44,7 +44,7 @@ module.exports = function run(options) {
 }).then(function() {
 return hooksRunner.fire('after_run', options);
 }, function(error) {
-events.emit('log', 'ERROR running one or more of the platforms: ' 
+ error + '\nYou may not have the required environment or OS to run this 
project');
+events.emit('warn', 'ERROR running one or more of the platforms: ' 
+ error + '\nYou may not have the required environment or OS to run this 
project');
--- End diff --

As in the first comment I'm not sure if we should emit this here because it 
is not consistent and not very informative. Maybe rethrow with this message. 
@nikhilkh, what do you think?


> Cordova reports error events with incorrect log level
> -
>
> Key: CB-10518
> URL: https://issues.apache.org/jira/browse/CB-10518
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: CordovaLib
>Affects Versions: 6.0.0
>Reporter: Vladimir Kotikov
>Priority: Minor
>  Labels: triaged
>
> In case of fatal errors {{cordova run}} and {{cordova emulate}} methods emit 
> error messages using {{log}} event. This code probably should be changed to 
> use 'warn' level. (We can't use 'error' here due to its special meaning in 
> Node: https://nodejs.org/api/events.html#events_error_events)
> There is also other places, where 'log' events is used incorrectly:
> cordova-lib\src\cordova\targets.js:events.emit('log', 'An unexpected 
> error has occured');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'error while 
> generating cordova.js');
> cordova-lib\src\plugman\browserify.js:events.emit('log', 'Error 
> running platform version script');



--
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-10552) Pull all the plugin docs to Cordova

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145385#comment-15145385
 ] 

ASF GitHub Bot commented on CB-10552:
-

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

https://github.com/apache/cordova-docs/pull/493#discussion_r52804789
  
--- Diff: tools/bin/fetch_docs.js ---
@@ -0,0 +1,144 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+"use strict";
+
+var fs= require("fs");
+var fse   = require("fs-extra");
+var https = require("https");
+var path  = require("path");
+var child_process = require("child_process");
+var yaml  = require("js-yaml");
+
+// constants
+var DEFAULT_REPO_PATH = "README.md";
+
+function generateFrontMatter (useDirectSrcURI, filePath, name, version) {
+var obj = {};
+
+if(useDirectSrcURI) {
+filePath= 
filePath.replace("https://raw.githubusercontent.com/;, "");
+var filePathSplit   = filePath.split("/");
+name= filePathSplit[0] + "/" + filePathSplit[1];
+version = filePathSplit[2];
+filePath= filePathSplit.slice(3).join("/");
+}
+
+obj.edit_link   = getRepoURIForFrontMatter(name, version, 
filePath);
+obj.note_link   = "https://github.com/; + name + "/releases";
+obj.note= "This documentation is for the " + version + 
" version of the " + name + ".";
+obj.note_link_text  = "Visit Github for other versions.";
--- End diff --

Done


> Pull all the plugin docs to Cordova
> ---
>
> Key: CB-10552
> URL: https://issues.apache.org/jira/browse/CB-10552
> Project: Apache Cordova
>  Issue Type: Task
>Reporter: Sarangan Rajamanickam
>Assignee: Sarangan Rajamanickam
>




--
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-10540) Mobilespec failure: ENOENT, no such file or directory 'mobilespec/www/medic.json'

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145242#comment-15145242
 ] 

ASF GitHub Bot commented on CB-10540:
-

GitHub user rakatyal opened a pull request:

https://github.com/apache/cordova-medic/pull/78

CB-10540: Changing request call to non-streaming version



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

$ git pull https://github.com/MSOpenTech/cordova-medic CB-10540

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

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


commit cb2c7d530fa7994732c878b540e2e6383a80c8d4
Author: Raghav Katyal 
Date:   2016-02-12T20:27:23Z

CB-10540: Changing request call to non-streaming version




> Mobilespec failure: ENOENT, no such file or directory 
> 'mobilespec/www/medic.json'
> -
>
> Key: CB-10540
> URL: https://issues.apache.org/jira/browse/CB-10540
> Project: Apache Cordova
>  Issue Type: Test
>  Components: mobile-spec
>Reporter: Omar Mefire
>Assignee: Raghav
>  Labels: Android, found-by-ci
>
> Link:
> https://ci.apache.org/builders/cordova-android-osx/builds/1692/steps/running-tests/logs/stdio
> ===
> [MEDIC LOG Thu, 04 Feb 2016 12:49:15 GMT] sha: 
> cordova-android-osx-1692-buildbot-vm
> [MEDIC LOG Thu, 04 Feb 2016 12:49:15 GMT] couchdb: 
> http://cordova-vm.apache.org:5984
> fs.js:500
>   return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
>  ^
> Error: ENOENT, no such file or directory 'mobilespec/www/medic.json'
> at Error (native)
> at Object.fs.openSync (fs.js:500:18)
> at Object.fs.writeFileSync (fs.js:1099:15)
> at createMedicJson 
> (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:86:8)
> at 
> /Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:356:9
> at Request. 
> (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/medic/medic-run.js:305:9)
> at Request.emit (events.js:107:17)
> at Request.onRequestResponse 
> (/Users/buildbot/slaves/apache/cordova-android-osx/cordova-medic/node_modules/request/request.js:1156:10)
> at ClientRequest.emit (events.js:107:17)
> at HTTPParser.parserOnIncomingClient [as onIncoming] 
> (_http_client.js:426:21)
> program finished with exit code 1
> elapsedTime=40.421384



--
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-10592) cordova additionally quotes platform specific arguments when used programmatically

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10592?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145243#comment-15145243
 ] 

ASF GitHub Bot commented on CB-10592:
-

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

https://github.com/apache/cordova-lib/pull/386#discussion_r52794591
  
--- Diff: cordova-lib/src/cordova/util.js ---
@@ -297,7 +297,7 @@ function ensurePlatformOptionsCompatible 
(platformOptions) {
 }).map(function (arg) {
 return opts[arg] === true ?
 '--' + arg :
-'--' + arg + '="' + opts[arg].toString() + '"';
+'--' + arg + '=' + opts[arg].toString();
--- End diff --

Alright, fair enough. Do you think we can deprecate this usage in the 
future though? It's a really awkward (and also insecure) API.


> cordova additionally quotes platform specific arguments when used 
> programmatically
> --
>
> Key: CB-10592
> URL: https://issues.apache.org/jira/browse/CB-10592
> Project: Apache Cordova
>  Issue Type: Bug
>Affects Versions: 6.0.0
> Environment: Cordova@6.0.0, OS X or *nix machine
>Reporter: Vladimir Kotikov
>Assignee: Vladimir Kotikov
>
> Some platform-specific arguments (such as {{--gradleArg}}) is additionally 
> quoted, when options passed to {{cordova.raw}} API using old format. Though 
> this is not a problem on Windows, because the command processor on handles 
> such arguments correctly, on OS X this leads to unexpected failures.
> For example running 
> {noformat}
> cordova.raw.build({
> platforms: [android],
> options: ["--gradleArg=--no-daemon"]
> })
> {noformat}
> causes gradle build failure with following message {{Task '"--no-daemon"' not 
> found in root project 'android'.}}



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

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



[jira] [Commented] (CB-10552) Pull all the plugin docs to Cordova

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10552?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145383#comment-15145383
 ] 

ASF GitHub Bot commented on CB-10552:
-

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

https://github.com/apache/cordova-docs/pull/493#discussion_r52804754
  
--- Diff: tools/bin/fetch_docs.js ---
@@ -0,0 +1,144 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License.  You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied.  See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+"use strict";
+
+var fs= require("fs");
+var fse   = require("fs-extra");
+var https = require("https");
+var path  = require("path");
+var child_process = require("child_process");
+var yaml  = require("js-yaml");
+
+// constants
+var DEFAULT_REPO_PATH = "README.md";
+
+function generateFrontMatter (useDirectSrcURI, filePath, name, version) {
+var obj = {};
+
+if(useDirectSrcURI) {
+filePath= 
filePath.replace("https://raw.githubusercontent.com/;, "");
+var filePathSplit   = filePath.split("/");
+name= filePathSplit[0] + "/" + filePathSplit[1];
+version = filePathSplit[2];
+filePath= filePathSplit.slice(3).join("/");
+}
--- End diff --

Done


> Pull all the plugin docs to Cordova
> ---
>
> Key: CB-10552
> URL: https://issues.apache.org/jira/browse/CB-10552
> Project: Apache Cordova
>  Issue Type: Task
>Reporter: Sarangan Rajamanickam
>Assignee: Sarangan Rajamanickam
>




--
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-10605) cordova-plugin-globalization deprecation warnings

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10605?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145521#comment-15145521
 ] 

ASF GitHub Bot commented on CB-10605:
-

GitHub user eymorale opened a pull request:

https://github.com/apache/cordova-plugin-globalization/pull/44

CB-10605 fix deprecation warnings



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

$ git pull https://github.com/eymorale/cordova-plugin-globalization CB-10605

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

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


commit af733e4a762f431760a6fcd59bf16f72ae5fe178
Author: Edna Morales 
Date:   2016-02-12T23:15:14Z

CB-10605 fix deprecation warnings




> cordova-plugin-globalization deprecation warnings
> -
>
> Key: CB-10605
> URL: https://issues.apache.org/jira/browse/CB-10605
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Plugin Globalization
> Environment: iOS
>Reporter: Edna Morales
>Assignee: Edna Morales
>Priority: Minor
>
>  'NSSecondCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
> NSCalendarUnitSecond instead
>  'NSMinuteCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
> NSCalendarUnitMinute instead
>  'NSHourCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
> NSCalendarUnitHour instead
>  'NSDayCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
> NSCalendarUnitDay instead
>  'NSMonthCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
> NSCalendarUnitMonth instead
>  'NSYearCalendarUnit' is deprecated: first deprecated in iOS 8.0 - Use 
> NSCalendarUnitYear instead



--
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-10510) medic-run doesn't check to make sure the emulator started

2016-02-12 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/CB-10510?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15145258#comment-15145258
 ] 

ASF GitHub Bot commented on CB-10510:
-

Github user dblotsky commented on the pull request:

https://github.com/apache/cordova-android/pull/258#issuecomment-183480745
  
LGTM.


> medic-run doesn't check to make sure the emulator started
> -
>
> Key: CB-10510
> URL: https://issues.apache.org/jira/browse/CB-10510
> Project: Apache Cordova
>  Issue Type: Bug
>  Components: Medic
> Environment: Windows, Android emulator
>Reporter: Richard B Knoll
>Assignee: Richard B Knoll
>  Labels: android, found-by-ci
>
> Medic doesn't check to see if the emulator actually starts when invoking 
> {{cordova run android}}. Instead, it starts polling cordova-vm immediately. 
> This might also be considered a bug in cordova-android's run script, which 
> just seems to hang if the emulator doesn't start. Example build is here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/running-tests/logs/stdio
> And adb logs are here:
> https://ci.apache.org/builders/cordova-android-win/builds/1488/steps/gathering-logs/logs/stdio
> 
> Log:
> C:\Users\buildbot\slaves\apache\cordova-android-win\mobilespec>node  
> C:\Users\buildbot\slaves\apache\cordova-android-win\cordova-cli\bin\cordova 
> run --emulator android -- --gradle 
> ANDROID_HOME=C:\Android\android-sdk
> JAVA_HOME=C:\Program Files (x86)\Java\jdk1.7.0_55
> No emulator specified, defaulting to Galaxy_Nexus
> Waiting for emulator...
> WARNING: init: Missing WGL extension WGL_ARB_make_current_read
> emulator: warning: opening audio output failed
> emulator: emulator window was out of view and was recentered
> emulator: UpdateChecker: skipped version check
> Booting up emulator (this may take a 
> while)query failed for 
> mobilespec_results { [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 
> 'ETIMEDOUT', syscall: 'connect' }
> .query failed for mobilespec_results { 
> [Error: connect ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 
> 'connect' }
> ..query failed for mobilespec_results { [Error: connect 
> ETIMEDOUT] code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> ...query
>  failed for mobilespec_results { [Error: connect ETIMEDOUT] code: 
> 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect' }
> ...didn't get test 
> results: timed out
> program finished with exit code 1
> elapsedTime=1150.659000



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



  1   2   >