[jira] [Commented] (CB-13647) Incomplete plugin restoration
[ https://issues.apache.org/jira/browse/CB-13647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16283046#comment-16283046 ] Joe Bowser commented on CB-13647: - [~goffioul] Actually, first of all, what version of cordova-common is currently installed? This might be a duplicate. > Incomplete plugin restoration > - > > Key: CB-13647 > URL: https://issues.apache.org/jira/browse/CB-13647 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser > > I'm having a problem with plugin restoration since cordova-android 7.0.0, > when plugins use a mix of config-file and edit-config on the same file (e.g. > AndroidManifest.xml) and only edit-config uses the real path to the file. > I've tried both cordova-cli 6.5.0 and 7.1.0 with the same result. > 1) Create a new corodva project and enter top-level direcotyr > 2) Create subfolder to contain a local plugin: mkdir -p > localplugins/testplugin1 > 3) Create the following files to define the local plugin: > - plugin.xml (adds an attribute to and a category to > ) > {code} > > http://apache.org/cordova/ns/plugins/1.0; > id="com.example.testplugin1" version="1.0.0"> > Test Plugin 1 > > parent="/manifest/application/activity/intent-filter"> > > > target="/manifest/application" mode="merge"> > > > > > {code} > - package.json > {code} > { > "name": "com.example.testplugin1", > "version": "1.0.0" > } > {code} > 4) Add android platform: cordova platform add android@7.0.0 --save > 5) Add local plugin: cordova plugin add localplugins/testplugin1 --save > At this point, if you check > platforms/android/app/src/main/AndroidManifest.xml, it'll contain the 2 > changes defined in the plugin. > Now attempt to use platform/plugin restoration with thw following: > {code} > cordova platform rm android > cordova prepare android > {code} > If you check again AndroidManifest.xml, it will only contain one of the > changes defined in the plugin (the attribute to ). The other > change is missing. > If you use the real path to AndroidManifest.xml for the definition of > , then the problem does not occur. BUT, the problem can also > occur when changes to AndroidManifest.xml are coming from multiple plugins, > including the standard cordova plugin, most of which do not use the real path > to AndroidManifest.xml yet. > The problem can affect other files too. For instance I experienced incomplete > restoration of plugins trying to register themselves in res/xml/config.xml. > Only one plugin, out of 7, was using the real path > app/src/main/res/xml/config.xml and I ended up with only one plugin defined > in res/xml/config.xml, causing the application to fail to start. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lorcan Lai updated CB-13639: Labels: cors fetch (was: cross-origin fetch) > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cors, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16283008#comment-16283008 ] Lorcan Lai commented on CB-13639: - Thank you for [~Sujan12]'s answer. As you said,I needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} This can be solved. But what I don't understand is, # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side. # I had no problem using Ajax or XMLHttpRequest APIs,why? > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cross-origin, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Issue Comment Deleted] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lorcan Lai updated CB-13639: Comment: was deleted (was: Thank you for [~Sujan12]'s answer. As you said,I needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} This can be solved. But what I don't understand is, # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),Why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side Settings. # I had no problem using Ajax or XMLHttpRequest APIs,why?) > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cross-origin, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Issue Comment Deleted] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Lorcan Lai updated CB-13639: Comment: was deleted (was: Thank you for [~Sujan12]'s answer. As you said,I needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} That can be solved. But what I don't understand is: # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),Why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side Settings. # I had no problem using Ajax or XMLHttpRequest APIs,why?) > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cross-origin, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16283000#comment-16283000 ] Lorcan Lai commented on CB-13639: - Thank you for [~Sujan12]'s answer. As you said,I needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} This can be solved. But what I don't understand is, # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),Why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side Settings. # I had no problem using Ajax or XMLHttpRequest APIs,why? > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cross-origin, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282978#comment-16282978 ] Lorcan Lai edited comment on CB-13639 at 12/8/17 3:29 AM: -- Thank you for [~Sujan12]'s answer. As you said,I needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} That can be solved. But what I don't understand is: # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),Why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side Settings. # I had no problem using Ajax or XMLHttpRequest APIs,why? was (Author: laishuliang): Thank you for [~Sujan12]'s answer. As you said,i needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} That can be solved. But what I don't understand is: # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),Why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side Settings. # I had no problem using Ajax or XMLHttpRequest APIs,why? > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cross-origin, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282978#comment-16282978 ] Lorcan Lai edited comment on CB-13639 at 12/8/17 3:28 AM: -- Thank you for [~Sujan12]'s answer. As you said,i needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} That can be solved. But what I don't understand is: # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),Why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side Settings. # I had no problem using Ajax or XMLHttpRequest APIs,why? was (Author: laishuliang): Thank you for [~Jan Piotrowski (Sujan)]'s answer. As you said,i needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} That can be solved. But what I don't understand is: # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),Why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side Settings. #I had no problem using Ajax or XMLHttpRequest APIs,why? > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cross-origin, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282978#comment-16282978 ] Lorcan Lai commented on CB-13639: - Thank you for [~Jan Piotrowski (Sujan)]'s answer. As you said,i needs to add the following header to its response on server-side? {code:java} Access-Control-Allow-Origin: * {code} That can be solved. But what I don't understand is: # cordova uses the file:// protocol(Phonegap wiki says:"The cross-domain security policy does not affect PhoneGap applications. Since the html files are called by webkit with the file:// protocol, the security policy does not apply."),Why did this happen,and I must to set CORS config on server-side?In some cases,because of the security policy, we can't change this part of the server-side Settings. #I had no problem using Ajax or XMLHttpRequest APIs,why? > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cross-origin, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13647) Incomplete plugin restoration
[ https://issues.apache.org/jira/browse/CB-13647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282944#comment-16282944 ] Joe Bowser commented on CB-13647: - [~goffioul] This seems more like a theoretical problem than a real one. Does this actually occur on real plugins, or only on error data that you're generating. Which core plugins does this actually happen with? > Incomplete plugin restoration > - > > Key: CB-13647 > URL: https://issues.apache.org/jira/browse/CB-13647 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser >Priority: Critical > > I'm having a problem with plugin restoration since cordova-android 7.0.0, > when plugins use a mix of config-file and edit-config on the same file (e.g. > AndroidManifest.xml) and only edit-config uses the real path to the file. > I've tried both cordova-cli 6.5.0 and 7.1.0 with the same result. > 1) Create a new corodva project and enter top-level direcotyr > 2) Create subfolder to contain a local plugin: mkdir -p > localplugins/testplugin1 > 3) Create the following files to define the local plugin: > - plugin.xml (adds an attribute to and a category to > ) > {code} > > http://apache.org/cordova/ns/plugins/1.0; > id="com.example.testplugin1" version="1.0.0"> > Test Plugin 1 > > parent="/manifest/application/activity/intent-filter"> > > > target="/manifest/application" mode="merge"> > > > > > {code} > - package.json > {code} > { > "name": "com.example.testplugin1", > "version": "1.0.0" > } > {code} > 4) Add android platform: cordova platform add android@7.0.0 --save > 5) Add local plugin: cordova plugin add localplugins/testplugin1 --save > At this point, if you check > platforms/android/app/src/main/AndroidManifest.xml, it'll contain the 2 > changes defined in the plugin. > Now attempt to use platform/plugin restoration with thw following: > {code} > cordova platform rm android > cordova prepare android > {code} > If you check again AndroidManifest.xml, it will only contain one of the > changes defined in the plugin (the attribute to ). The other > change is missing. > If you use the real path to AndroidManifest.xml for the definition of > , then the problem does not occur. BUT, the problem can also > occur when changes to AndroidManifest.xml are coming from multiple plugins, > including the standard cordova plugin, most of which do not use the real path > to AndroidManifest.xml yet. > The problem can affect other files too. For instance I experienced incomplete > restoration of plugins trying to register themselves in res/xml/config.xml. > Only one plugin, out of 7, was using the real path > app/src/main/res/xml/config.xml and I ended up with only one plugin defined > in res/xml/config.xml, causing the application to fail to start. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13647) Incomplete plugin restoration
[ https://issues.apache.org/jira/browse/CB-13647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Joe Bowser updated CB-13647: Priority: Major (was: Critical) > Incomplete plugin restoration > - > > Key: CB-13647 > URL: https://issues.apache.org/jira/browse/CB-13647 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser > > I'm having a problem with plugin restoration since cordova-android 7.0.0, > when plugins use a mix of config-file and edit-config on the same file (e.g. > AndroidManifest.xml) and only edit-config uses the real path to the file. > I've tried both cordova-cli 6.5.0 and 7.1.0 with the same result. > 1) Create a new corodva project and enter top-level direcotyr > 2) Create subfolder to contain a local plugin: mkdir -p > localplugins/testplugin1 > 3) Create the following files to define the local plugin: > - plugin.xml (adds an attribute to and a category to > ) > {code} > > http://apache.org/cordova/ns/plugins/1.0; > id="com.example.testplugin1" version="1.0.0"> > Test Plugin 1 > > parent="/manifest/application/activity/intent-filter"> > > > target="/manifest/application" mode="merge"> > > > > > {code} > - package.json > {code} > { > "name": "com.example.testplugin1", > "version": "1.0.0" > } > {code} > 4) Add android platform: cordova platform add android@7.0.0 --save > 5) Add local plugin: cordova plugin add localplugins/testplugin1 --save > At this point, if you check > platforms/android/app/src/main/AndroidManifest.xml, it'll contain the 2 > changes defined in the plugin. > Now attempt to use platform/plugin restoration with thw following: > {code} > cordova platform rm android > cordova prepare android > {code} > If you check again AndroidManifest.xml, it will only contain one of the > changes defined in the plugin (the attribute to ). The other > change is missing. > If you use the real path to AndroidManifest.xml for the definition of > , then the problem does not occur. BUT, the problem can also > occur when changes to AndroidManifest.xml are coming from multiple plugins, > including the standard cordova plugin, most of which do not use the real path > to AndroidManifest.xml yet. > The problem can affect other files too. For instance I experienced incomplete > restoration of plugins trying to register themselves in res/xml/config.xml. > Only one plugin, out of 7, was using the real path > app/src/main/res/xml/config.xml and I ended up with only one plugin defined > in res/xml/config.xml, causing the application to fail to start. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13647) Incomplete plugin restoration
[ https://issues.apache.org/jira/browse/CB-13647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282828#comment-16282828 ] Michael Goffioul commented on CB-13647: --- I understand the problem with edit-config is known and documented. The problem is when mixing config-file/edit-config with new and legacy paths. And it doesn't have to include edit-config. For instance, if you change the plugin.xml with the following (notice how the 2 config-file target the same file, but with different paths): {code} http://apache.org/cordova/ns/plugins/1.0; id="com.example.testplugin1" version="1.0.0"> Test Plugin 1 {code} If you add the plugin with "cordova plugin add localplugins/testplugin1", then only 1 of the changes is applied (note that it does not even involve plugin restoration anymore). > Incomplete plugin restoration > - > > Key: CB-13647 > URL: https://issues.apache.org/jira/browse/CB-13647 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser >Priority: Critical > > I'm having a problem with plugin restoration since cordova-android 7.0.0, > when plugins use a mix of config-file and edit-config on the same file (e.g. > AndroidManifest.xml) and only edit-config uses the real path to the file. > I've tried both cordova-cli 6.5.0 and 7.1.0 with the same result. > 1) Create a new corodva project and enter top-level direcotyr > 2) Create subfolder to contain a local plugin: mkdir -p > localplugins/testplugin1 > 3) Create the following files to define the local plugin: > - plugin.xml (adds an attribute to and a category to > ) > {code} > > http://apache.org/cordova/ns/plugins/1.0; > id="com.example.testplugin1" version="1.0.0"> > Test Plugin 1 > > parent="/manifest/application/activity/intent-filter"> > > > target="/manifest/application" mode="merge"> > > > > > {code} > - package.json > {code} > { > "name": "com.example.testplugin1", > "version": "1.0.0" > } > {code} > 4) Add android platform: cordova platform add android@7.0.0 --save > 5) Add local plugin: cordova plugin add localplugins/testplugin1 --save > At this point, if you check > platforms/android/app/src/main/AndroidManifest.xml, it'll contain the 2 > changes defined in the plugin. > Now attempt to use platform/plugin restoration with thw following: > {code} > cordova platform rm android > cordova prepare android > {code} > If you check again AndroidManifest.xml, it will only contain one of the > changes defined in the plugin (the attribute to ). The other > change is missing. > If you use the real path to AndroidManifest.xml for the definition of > , then the problem does not occur. BUT, the problem can also > occur when changes to AndroidManifest.xml are coming from multiple plugins, > including the standard cordova plugin, most of which do not use the real path > to AndroidManifest.xml yet. > The problem can affect other files too. For instance I experienced incomplete > restoration of plugins trying to register themselves in res/xml/config.xml. > Only one plugin, out of 7, was using the real path > app/src/main/res/xml/config.xml and I ended up with only one plugin defined > in res/xml/config.xml, causing the application to fail to start. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282917#comment-16282917 ] ASF subversion and git services commented on CB-12762: -- Commit ae0120ca6121e0501c406ee767931a01298e1198 in cordova-app-hello-world's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-app-hello-world.git;h=ae0120c ] [CB-12762] point package.json repo items to github instead of apache mirrors site > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282926#comment-16282926 ] ASF subversion and git services commented on CB-12762: -- Commit 28ea6af9ecc6bd0574efa0d46a4df5c3bb980339 in cordova-registry's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-registry.git;h=28ea6af ] [CB-12762] point package.json repo items to github instead of apache mirrors site > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282832#comment-16282832 ] ASF GitHub Bot commented on CB-13641: - IndieSW commented on issue #245: CB-13641: (windows) support transparent splash screen background color. URL: https://github.com/apache/cordova-windows/pull/245#issuecomment-350140167 Added variable to track transparent background configuration as you suggested. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282927#comment-16282927 ] ASF subversion and git services commented on CB-12762: -- Commit f93a41f8911caafc2891247c9ede3537c9e69651 in cordova-tizen's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-tizen.git;h=f93a41f ] [CB-12762] point package.json repo to github instead of apache > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282930#comment-16282930 ] ASF subversion and git services commented on CB-12762: -- Commit 90782e94e0d4cf618d7bccef87be7215f33e851f in cordova-webos's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-webos.git;h=90782e9 ] [CB-12762] point package.json repo to github > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282921#comment-16282921 ] ASF subversion and git services commented on CB-12762: -- Commit 8dc6b93ed73d36fae679c783c49909ad8e8e1b42 in cordova-firefoxos's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-firefoxos.git;h=8dc6b93 ] [CB-12762] point package.json repo items to github instead of apache mirrors site > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Resolved] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jesse MacFadyen resolved CB-12762. -- Resolution: Fixed > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282931#comment-16282931 ] ASF subversion and git services commented on CB-12762: -- Commit 92775855fd4d1dacf1a0841de61c62061329fc69 in cordova-wp8's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-wp8.git;h=9277585 ] [CB-12762] point package.json repo to github > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282928#comment-16282928 ] ASF subversion and git services commented on CB-12762: -- Commit 658aac2f9066ae3a98a858e142504519b40c6165 in cordova-ubuntu's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-ubuntu.git;h=658aac2 ] [CB-12762] point package.json repo to github instead of apache > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282920#comment-16282920 ] ASF subversion and git services commented on CB-12762: -- Commit f865b35e6578b229ca9819443820ac2c4efe8bc6 in cordova-blackberry's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-blackberry.git;h=f865b35 ] [CB-12762] point package.json repo items to github instead of apache mirrors site > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282913#comment-16282913 ] ASF subversion and git services commented on CB-12762: -- Commit ebc5bc6405367216ff466d00ad322530472c3444 in cordova-amazon-fireos's branch refs/heads/master from [~purplecabbage] [ https://gitbox.apache.org/repos/asf?p=cordova-amazon-fireos.git;h=ebc5bc6 ] [CB-12762] point package.json repo items to github instead of apache mirrors site > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282909#comment-16282909 ] ASF GitHub Bot commented on CB-12762: - purplecabbage closed pull request #89: CB-12762 : pointed package.json repo items to github mirrors instead … URL: https://github.com/apache/cordova-plugman/pull/89 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/package.json b/package.json index 228b7ee..2683140 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "version": "1.5.2-dev", "repository": { "type": "git", -"url": "git://git-wip-us.apache.org/repos/asf/cordova-plugman.git" +"url": "https://github.com/apache/cordova-plugman; }, "bugs": { "url": "https://issues.apache.org/jira/browse/CB;, This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12762) Point package.json repo items to github mirrors
[ https://issues.apache.org/jira/browse/CB-12762?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282910#comment-16282910 ] ASF subversion and git services commented on CB-12762: -- Commit e4f5f85973c058c063badf551444556f2216c673 in cordova-plugman's branch refs/heads/master from [~auso] [ https://gitbox.apache.org/repos/asf?p=cordova-plugman.git;h=e4f5f85 ] CB-12762 : pointed package.json repo items to github mirrors instead of apache repos site (#89) > Point package.json repo items to github mirrors > --- > > Key: CB-12762 > URL: https://issues.apache.org/jira/browse/CB-12762 > Project: Apache Cordova > Issue Type: Bug > Components: AllComponents >Reporter: Jesse MacFadyen >Assignee: Audrey So > > Proposal is here: > https://github.com/cordova/cordova-discuss/issues/67 -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282827#comment-16282827 ] ASF GitHub Bot commented on CB-13641: - IndieSW opened a new pull request #245: CB-13641: (windows) support transparent splash screen background color. URL: https://github.com/apache/cordova-windows/pull/245 ### Platforms affected windows ### What does this PR do? adds support for transparent splash screen background color. ### What testing has been done on this change? built app with forked/updated repository and manually tested splash screen background color with RGB and 'transparent' values. ### Checklist - [x] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB- is the JIRA ID & "android" is the platform affected. - [x] Added automated test coverage as appropriate for this change. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13647) Incomplete plugin restoration
[ https://issues.apache.org/jira/browse/CB-13647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282790#comment-16282790 ] Joe Bowser commented on CB-13647: - The edit-config issue is known and none of the core plugins use edit-config on Android. We haven't experienced any issues when testing plugin addition with the existing plugins. AFAIK: We're not going to be adding a work-around for edit-config and these paths will have to be changed for 7.0.0 > Incomplete plugin restoration > - > > Key: CB-13647 > URL: https://issues.apache.org/jira/browse/CB-13647 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser >Priority: Critical > > I'm having a problem with plugin restoration since cordova-android 7.0.0, > when plugins use a mix of config-file and edit-config on the same file (e.g. > AndroidManifest.xml) and only edit-config uses the real path to the file. > I've tried both cordova-cli 6.5.0 and 7.1.0 with the same result. > 1) Create a new corodva project and enter top-level direcotyr > 2) Create subfolder to contain a local plugin: mkdir -p > localplugins/testplugin1 > 3) Create the following files to define the local plugin: > - plugin.xml (adds an attribute to and a category to > ) > {code} > > http://apache.org/cordova/ns/plugins/1.0; > id="com.example.testplugin1" version="1.0.0"> > Test Plugin 1 > > parent="/manifest/application/activity/intent-filter"> > > > target="/manifest/application" mode="merge"> > > > > > {code} > - package.json > {code} > { > "name": "com.example.testplugin1", > "version": "1.0.0" > } > {code} > 4) Add android platform: cordova platform add android@7.0.0 --save > 5) Add local plugin: cordova plugin add localplugins/testplugin1 --save > At this point, if you check > platforms/android/app/src/main/AndroidManifest.xml, it'll contain the 2 > changes defined in the plugin. > Now attempt to use platform/plugin restoration with thw following: > {code} > cordova platform rm android > cordova prepare android > {code} > If you check again AndroidManifest.xml, it will only contain one of the > changes defined in the plugin (the attribute to ). The other > change is missing. > If you use the real path to AndroidManifest.xml for the definition of > , then the problem does not occur. BUT, the problem can also > occur when changes to AndroidManifest.xml are coming from multiple plugins, > including the standard cordova plugin, most of which do not use the real path > to AndroidManifest.xml yet. > The problem can affect other files too. For instance I experienced incomplete > restoration of plugins trying to register themselves in res/xml/config.xml. > Only one plugin, out of 7, was using the real path > app/src/main/res/xml/config.xml and I ended up with only one plugin defined > in res/xml/config.xml, causing the application to fail to start. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13646) Unable to compile native code (android.useDeprecated.Ndk not supported anymore)
[ https://issues.apache.org/jira/browse/CB-13646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282774#comment-16282774 ] Michael Goffioul commented on CB-13646: --- Another workaround is to disable the automatic native code build step by setting the jni.srcDirs to an empty list: {code} android.sourceSets.main { jni.srcDirs = [] } {code} > Unable to compile native code (android.useDeprecated.Ndk not supported > anymore) > --- > > Key: CB-13646 > URL: https://issues.apache.org/jira/browse/CB-13646 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser >Priority: Critical > > A cordova project that contains native/jni code fails to compile, because > android.useDeprecatedNdk is not supported anymore. > Steps to reproduce: > 1) create a new cordova project > 2) add android platform > 3) mkdir platforms/android/app/src/main/jni > 4) touch platforms/android/app/src/main/jni/Android.mk > 5) cordova build android > It fails with the following error: > {code} > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':app:compileDebugNdk'. > > Error: Flag android.useDeprecatedNdk is no longer supported and will be > > removed in the next version of Android Studio. Please switch to a > > supported build system. > Consider using CMake or ndk-build integration. For more information, go to: >https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile >To get started, you can use the sample ndk-build script the Android >plugin generated for you at: > .../testnative/platforms/android/app/build/intermediates/ndk/debug/Android.mk > Alternatively, you can use the experimental plugin: >https://developer.android.com/r/tools/experimental-plugin.html > To continue using the deprecated NDK compile for another 60 days, set > android.deprecatedNdkCompileLease=1512654767567 in gradle.properties > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282741#comment-16282741 ] ASF GitHub Bot commented on CB-13641: - IndieSW commented on issue #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244#issuecomment-350130559 Closing for update. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282742#comment-16282742 ] ASF GitHub Bot commented on CB-13641: - IndieSW closed pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244 This is a PR merged from a forked repository. As GitHub hides the original diff on merge, it is displayed below for the sake of provenance: As this is a foreign pull request (from a fork), the diff is supplied below (as it won't show otherwise due to GitHub magic): diff --git a/cordova-js-src/splashscreen.js b/cordova-js-src/splashscreen.js index 99b60d9f..90a63f6d 100644 --- a/cordova-js-src/splashscreen.js +++ b/cordova-js-src/splashscreen.js @@ -69,18 +69,21 @@ function readPreferencesFromCfg(cfg, manifest) { splashImageSrc = schema + ':///' + manifest.getSplashScreenImagePath().replace(/\\/g, '/'); bgColor = cfg.getPreferenceValue('SplashScreenBackgroundColor') || bgColor; -bgColor = bgColor.replace('0x', '#').replace('0X', '#'); -if (bgColor.length > 7) { -// Remove aplha -bgColor = bgColor.slice(0, 1) + bgColor.slice(3, bgColor.length); -} +bgColor = bgColor.toLowerCase().replace('0x', '#'); + +if (bgColor !== 'transparent') { +if (bgColor.length > 7) { +// Remove aplha +bgColor = bgColor.slice(0, 1) + bgColor.slice(3, bgColor.length); +} -titleBgColor = { -a: 255, -r: parseInt(bgColor.slice(1, 3), 16), -g: parseInt(bgColor.slice(3, 5), 16), -b: parseInt(bgColor.slice(5, 7), 16) -}; +titleBgColor = { +a: 255, +r: parseInt(bgColor.slice(1, 3), 16), +g: parseInt(bgColor.slice(3, 5), 16), +b: parseInt(bgColor.slice(5, 7), 16) +}; +} autoHideSplashScreen = readBoolFromCfg('AutoHideSplashScreen', autoHideSplashScreen, cfg); splashScreenDelay = cfg.getPreferenceValue('SplashScreenDelay') || splashScreenDelay; @@ -212,7 +215,7 @@ function exitFullScreen() { // Make title bg color match splashscreen bg color function colorizeTitleBar() { var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); -if (isWin10UWP) { +if (isWin10UWP && (typeof titleBgColor !== 'undefined')) { titleInitialBgColor = appView.titleBar.backgroundColor; appView.titleBar.backgroundColor = titleBgColor; @@ -223,7 +226,7 @@ function colorizeTitleBar() { // Revert title bg color function revertTitleBarColor() { var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); -if (isWin10UWP) { +if (isWin10UWP && (typeof titleInitialBgColor !== 'undefined')) { appView.titleBar.backgroundColor = titleInitialBgColor; appView.titleBar.buttonBackgroundColor = titleInitialBgColor; } diff --git a/template/www/cordova.js b/template/www/cordova.js index 778efd23..cc528797 100644 --- a/template/www/cordova.js +++ b/template/www/cordova.js @@ -1905,18 +1905,21 @@ splashImageSrc = schema + ':///' + manifest.getSplashScreenImagePath().replace(/\\/g, '/'); bgColor = cfg.getPreferenceValue('SplashScreenBackgroundColor') || bgColor; -bgColor = bgColor.replace('0x', '#').replace('0X', '#'); -if (bgColor.length > 7) { -// Remove aplha -bgColor = bgColor.slice(0, 1) + bgColor.slice(3, bgColor.length); -} +bgColor = bgColor.toLowerCase().replace('0x', '#'); -titleBgColor = { -a: 255, -r: parseInt(bgColor.slice(1, 3), 16), -g: parseInt(bgColor.slice(3, 5), 16), -b: parseInt(bgColor.slice(5, 7), 16) -}; +if (bgColor !== 'transparent') { +if (bgColor.length > 7) { +// Remove aplha +bgColor = bgColor.slice(0, 1) + bgColor.slice(3, bgColor.length); +} + +titleBgColor = { +a: 255, +r: parseInt(bgColor.slice(1, 3), 16), +g: parseInt(bgColor.slice(3, 5), 16), +b: parseInt(bgColor.slice(5, 7), 16) +}; +} autoHideSplashScreen = readBoolFromCfg('AutoHideSplashScreen', autoHideSplashScreen, cfg); splashScreenDelay = cfg.getPreferenceValue('SplashScreenDelay') || splashScreenDelay; @@ -2048,7 +2051,7 @@ // Make title bg color match splashscreen bg color function colorizeTitleBar () {
[jira] [Commented] (CB-11440) iOS: Remove default: disabled NSAppTransportSecurity - soon required by Apple
[ https://issues.apache.org/jira/browse/CB-11440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282732#comment-16282732 ] Tony Leung commented on CB-11440: - Remove the wildcard in config.xml and put in my own rules doesn't make NSAllowsArbitraryLoads set to false too. How can we set the NSAllowsArbitraryLoads to false in Cordova? > iOS: Remove default: disabled NSAppTransportSecurity - soon required by Apple > -- > > Key: CB-11440 > URL: https://issues.apache.org/jira/browse/CB-11440 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-ios > Environment: cordova-ios 4.1.1 >Reporter: Michael Schmidt >Assignee: Shazron Abdullah >Priority: Blocker > Labels: backlog, iOS, triaged > Fix For: cordova-ios@5.0.0 > > > iOS platform by default disables https: > {code} > NSAppTransportSecurity > > NSAllowsArbitraryLoads > > > {code} > Apple soon requires HTTPS: > "Apple mandates App Store apps support ATS security protocol by 2017" > http://appleinsider.com/articles/16/06/14/apple-mandates-app-store-apps-support-ats-security-protocol-by-2017 > --> remove this default from cordova ios platform -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-13647) Incomplete plugin restoration
Michael Goffioul created CB-13647: - Summary: Incomplete plugin restoration Key: CB-13647 URL: https://issues.apache.org/jira/browse/CB-13647 Project: Apache Cordova Issue Type: Bug Components: cordova-android Affects Versions: 7.0.0 Reporter: Michael Goffioul Assignee: Joe Bowser Priority: Critical I'm having a problem with plugin restoration since cordova-android 7.0.0, when plugins use a mix of config-file and edit-config on the same file (e.g. AndroidManifest.xml) and only edit-config uses the real path to the file. I've tried both cordova-cli 6.5.0 and 7.1.0 with the same result. 1) Create a new corodva project and enter top-level direcotyr 2) Create subfolder to contain a local plugin: mkdir -p localplugins/testplugin1 3) Create the following files to define the local plugin: - plugin.xml (adds an attribute to and a category to ) {code} http://apache.org/cordova/ns/plugins/1.0; id="com.example.testplugin1" version="1.0.0"> Test Plugin 1 {code} - package.json {code} { "name": "com.example.testplugin1", "version": "1.0.0" } {code} 4) Add android platform: cordova platform add android@7.0.0 --save 5) Add local plugin: cordova plugin add localplugins/testplugin1 --save At this point, if you check platforms/android/app/src/main/AndroidManifest.xml, it'll contain the 2 changes defined in the plugin. Now attempt to use platform/plugin restoration with thw following: {code} cordova platform rm android cordova prepare android {code} If you check again AndroidManifest.xml, it will only contain one of the changes defined in the plugin (the attribute to ). The other change is missing. If you use the real path to AndroidManifest.xml for the definition of , then the problem does not occur. BUT, the problem can also occur when changes to AndroidManifest.xml are coming from multiple plugins, including the standard cordova plugin, most of which do not use the real path to AndroidManifest.xml yet. The problem can affect other files too. For instance I experienced incomplete restoration of plugins trying to register themselves in res/xml/config.xml. Only one plugin, out of 7, was using the real path app/src/main/res/xml/config.xml and I ended up with only one plugin defined in res/xml/config.xml, causing the application to fail to start. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13293) already fetched platforms shouldn't call fetch code
[ https://issues.apache.org/jira/browse/CB-13293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282377#comment-16282377 ] ASF GitHub Bot commented on CB-13293: - purplecabbage commented on a change in pull request #605: CB-13293 : if fetch has been called already, no need to fetch again URL: https://github.com/apache/cordova-lib/pull/605#discussion_r155618105 ## File path: src/cordova/platform/addHelper.js ## @@ -292,7 +292,9 @@ function getVersionFromConfigFile (platform, cfg) { function downloadPlatform (projectRoot, platform, version, opts) { var target = version ? (platform + '@' + version) : platform; return Q().then(function () { -if (opts.fetch) { +var platformPath = path.join(projectRoot, 'platforms', platform); +var platformAlreadyAdded = fs.existsSync(platformPath); +if ((opts.fetch) && (!platformAlreadyAdded || platformAlreadyAdded === undefined || platformAlreadyAdded === null)) { Review comment: If platformAlreadyAdded is undefined or null the first condition will be truthy so there is no point in adding the additional tests. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > already fetched platforms shouldn't call fetch code > --- > > Key: CB-13293 > URL: https://issues.apache.org/jira/browse/CB-13293 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-lib >Reporter: Steve Gill >Assignee: Audrey So > Labels: tools-next > Fix For: cordova@7.1.0 > > > adding a platform that has already been added/fetched will still call > cordova-fetch before realizing the platform is already installed. Need to > check if platform is added first. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13293) already fetched platforms shouldn't call fetch code
[ https://issues.apache.org/jira/browse/CB-13293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282506#comment-16282506 ] ASF GitHub Bot commented on CB-13293: - audreyso commented on a change in pull request #605: CB-13293 : if fetch has been called already, no need to fetch again URL: https://github.com/apache/cordova-lib/pull/605#discussion_r155637074 ## File path: src/cordova/platform/addHelper.js ## @@ -292,7 +292,9 @@ function getVersionFromConfigFile (platform, cfg) { function downloadPlatform (projectRoot, platform, version, opts) { var target = version ? (platform + '@' + version) : platform; return Q().then(function () { -if (opts.fetch) { +var platformPath = path.join(projectRoot, 'platforms', platform); +var platformAlreadyAdded = fs.existsSync(platformPath); +if ((opts.fetch) && (!platformAlreadyAdded || platformAlreadyAdded === undefined || platformAlreadyAdded === null)) { Review comment: Okay. Thank you! I will remove it. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > already fetched platforms shouldn't call fetch code > --- > > Key: CB-13293 > URL: https://issues.apache.org/jira/browse/CB-13293 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-lib >Reporter: Steve Gill >Assignee: Audrey So > Labels: tools-next > Fix For: cordova@7.1.0 > > > adding a platform that has already been added/fetched will still call > cordova-fetch before realizing the platform is already installed. Need to > check if platform is added first. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13056) Remove non platform-API platforms
[ https://issues.apache.org/jira/browse/CB-13056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282384#comment-16282384 ] ASF GitHub Bot commented on CB-13056: - purplecabbage commented on issue #588: CB-13056 : Removed parsers & platformApi polyfill for webos, blackberry, & ubuntu URL: https://github.com/apache/cordova-lib/pull/588#issuecomment-350070874 This needs a cleanup to resolve conflicts, but we should get this in after that. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Remove non platform-API platforms > - > > Key: CB-13056 > URL: https://issues.apache.org/jira/browse/CB-13056 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-lib >Reporter: Steve Gill >Assignee: Audrey So > Labels: tools-next > Fix For: cordova-8 > > > In the next major version of cordova, we should drop all platforms that > haven't updated to platformAPI > This includes older browser platforms, webos, blackberry and ubuntu > We can remove the parsers for these files + the platformAPI polyfill and any > other files that these platforms use -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282190#comment-16282190 ] ASF GitHub Bot commented on CB-13641: - janpio commented on a change in pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244#discussion_r155587124 ## File path: cordova-js-src/splashscreen.js ## @@ -212,7 +215,7 @@ function exitFullScreen() { // Make title bg color match splashscreen bg color function colorizeTitleBar() { var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); -if (isWin10UWP) { +if (isWin10UWP && (typeof titleBgColor !== 'undefined')) { Review comment: First I thought you could just check if bgColor == 'transparent`, but that doesn't exist here. `isTitleBgTransparent` would be a solution and probably more readable, also makes the special case explicit. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282127#comment-16282127 ] ASF GitHub Bot commented on CB-13641: - IndieSW commented on a change in pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244#discussion_r155576718 ## File path: cordova-js-src/splashscreen.js ## @@ -212,7 +215,7 @@ function exitFullScreen() { // Make title bg color match splashscreen bg color function colorizeTitleBar() { var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); -if (isWin10UWP) { +if (isWin10UWP && (typeof titleBgColor !== 'undefined')) { Review comment: That's a reasonable point. Both `titleBgColor` and `titleInitialBgColor` are set in one place and used in one place. Adding a variable to track whether or not `bgColor` is transparent seemed like too much. Thoughts? This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282097#comment-16282097 ] ASF GitHub Bot commented on CB-13641: - IndieSW commented on a change in pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244#discussion_r155570174 ## File path: cordova-js-src/splashscreen.js ## @@ -69,18 +69,21 @@ function readPreferencesFromCfg(cfg, manifest) { splashImageSrc = schema + ':///' + manifest.getSplashScreenImagePath().replace(/\\/g, '/'); bgColor = cfg.getPreferenceValue('SplashScreenBackgroundColor') || bgColor; -bgColor = bgColor.replace('0x', '#').replace('0X', '#'); -if (bgColor.length > 7) { -// Remove aplha -bgColor = bgColor.slice(0, 1) + bgColor.slice(3, bgColor.length); -} +bgColor = bgColor.toLowerCase().replace('0x', '#'); Review comment: I had to force the case of bgColor to compare it to 'transparent' so I combined it with the replacement of '0x' and '0X'. bgColor is used as CSS color value which I believe is case-insensitive. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282098#comment-16282098 ] ASF GitHub Bot commented on CB-13641: - IndieSW commented on a change in pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244#discussion_r155570284 ## File path: cordova-js-src/splashscreen.js ## @@ -69,18 +69,21 @@ function readPreferencesFromCfg(cfg, manifest) { splashImageSrc = schema + ':///' + manifest.getSplashScreenImagePath().replace(/\\/g, '/'); bgColor = cfg.getPreferenceValue('SplashScreenBackgroundColor') || bgColor; -bgColor = bgColor.replace('0x', '#').replace('0X', '#'); -if (bgColor.length > 7) { -// Remove aplha -bgColor = bgColor.slice(0, 1) + bgColor.slice(3, bgColor.length); -} +bgColor = bgColor.toLowerCase().replace('0x', '#'); + +if (bgColor !== 'transparent') { +if (bgColor.length > 7) { +// Remove aplha Review comment: :) This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13646) Unable to compile native code (android.useDeprecated.Ndk not supported anymore)
[ https://issues.apache.org/jira/browse/CB-13646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282091#comment-16282091 ] Michael Goffioul commented on CB-13646: --- One possible workaround is to user gradleArg to override the property set by GradleBuilder: {code} cordova build android -- --gradleArg=-Pandroid.useDeprecatedNdk=false {code} > Unable to compile native code (android.useDeprecated.Ndk not supported > anymore) > --- > > Key: CB-13646 > URL: https://issues.apache.org/jira/browse/CB-13646 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Michael Goffioul >Assignee: Joe Bowser >Priority: Critical > > A cordova project that contains native/jni code fails to compile, because > android.useDeprecatedNdk is not supported anymore. > Steps to reproduce: > 1) create a new cordova project > 2) add android platform > 3) mkdir platforms/android/app/src/main/jni > 4) touch platforms/android/app/src/main/jni/Android.mk > 5) cordova build android > It fails with the following error: > {code} > FAILURE: Build failed with an exception. > * What went wrong: > Execution failed for task ':app:compileDebugNdk'. > > Error: Flag android.useDeprecatedNdk is no longer supported and will be > > removed in the next version of Android Studio. Please switch to a > > supported build system. > Consider using CMake or ndk-build integration. For more information, go to: >https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile >To get started, you can use the sample ndk-build script the Android >plugin generated for you at: > .../testnative/platforms/android/app/build/intermediates/ndk/debug/Android.mk > Alternatively, you can use the experimental plugin: >https://developer.android.com/r/tools/experimental-plugin.html > To continue using the deprecated NDK compile for another 60 days, set > android.deprecatedNdkCompileLease=1512654767567 in gradle.properties > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282052#comment-16282052 ] ASF GitHub Bot commented on CB-13641: - janpio commented on a change in pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244#discussion_r155562627 ## File path: cordova-js-src/splashscreen.js ## @@ -212,7 +215,7 @@ function exitFullScreen() { // Make title bg color match splashscreen bg color function colorizeTitleBar() { var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); -if (isWin10UWP) { +if (isWin10UWP && (typeof titleBgColor !== 'undefined')) { Review comment: no nicer way to do this but then to check for undefined? took some time to understand what is going on here, especially with the `titleInitialBgColor ` that depends on this one This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282043#comment-16282043 ] ASF GitHub Bot commented on CB-13641: - janpio commented on a change in pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244#discussion_r155560984 ## File path: cordova-js-src/splashscreen.js ## @@ -69,18 +69,21 @@ function readPreferencesFromCfg(cfg, manifest) { splashImageSrc = schema + ':///' + manifest.getSplashScreenImagePath().replace(/\\/g, '/'); bgColor = cfg.getPreferenceValue('SplashScreenBackgroundColor') || bgColor; -bgColor = bgColor.replace('0x', '#').replace('0X', '#'); -if (bgColor.length > 7) { -// Remove aplha -bgColor = bgColor.slice(0, 1) + bgColor.slice(3, bgColor.length); -} +bgColor = bgColor.toLowerCase().replace('0x', '#'); Review comment: This unrelated change doesn't add the possibility of other bugs? This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282044#comment-16282044 ] ASF GitHub Bot commented on CB-13641: - janpio commented on a change in pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244#discussion_r155561058 ## File path: cordova-js-src/splashscreen.js ## @@ -69,18 +69,21 @@ function readPreferencesFromCfg(cfg, manifest) { splashImageSrc = schema + ':///' + manifest.getSplashScreenImagePath().replace(/\\/g, '/'); bgColor = cfg.getPreferenceValue('SplashScreenBackgroundColor') || bgColor; -bgColor = bgColor.replace('0x', '#').replace('0X', '#'); -if (bgColor.length > 7) { -// Remove aplha -bgColor = bgColor.slice(0, 1) + bgColor.slice(3, bgColor.length); -} +bgColor = bgColor.toLowerCase().replace('0x', '#'); + +if (bgColor !== 'transparent') { +if (bgColor.length > 7) { +// Remove aplha Review comment: maybe fix that typo while you're at it ;) This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282023#comment-16282023 ] Terence Bandoian commented on CB-13641: --- Pull request opened. Please let me know if you see any problems. > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13641) Splash screen on Windows does not allow for transparent background color.
[ https://issues.apache.org/jira/browse/CB-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16282017#comment-16282017 ] ASF GitHub Bot commented on CB-13641: - IndieSW opened a new pull request #244: CB-13641: (windows) allow for transparent splash screen background co… URL: https://github.com/apache/cordova-windows/pull/244 …lor. ### Platforms affected windows ### What does this PR do? allows for configuration of transparent splash screen background color. ### What testing has been done on this change? built app with forked/updated repository and manually tested splash screen background color configuration with RGB and 'transparent' values. ### Checklist - [x ] [Reported an issue](http://cordova.apache.org/contribute/issues.html) in the JIRA database - [ x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file paths", where CB- is the JIRA ID & "android" is the platform affected. - [ x] Added automated test coverage as appropriate for this change. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Splash screen on Windows does not allow for transparent background color. > - > > Key: CB-13641 > URL: https://issues.apache.org/jira/browse/CB-13641 > Project: Apache Cordova > Issue Type: Improvement > Components: cordova-windows >Affects Versions: cordova@7.0.0 > Environment: Windows 10. >Reporter: Terence Bandoian >Priority: Trivial > Labels: newbie > Fix For: Master > > > The splash screen background color defaults to #464646. In splashscreen.js, > the background color is expected to be a hex value and values longer than > seven characters are spliced to remove the alpha channel. The configured > value could be checked for the value 'transparent' and, in that case, not > spliced. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281902#comment-16281902 ] Jan Piotrowski (Sujan) edited comment on CB-13643 at 12/7/17 2:20 PM: -- Location of that folder should only have been changed with cordova-android 7.0.0, not before. was (Author: sujan12): Location of that folder should only have been changed with cordova-android 7.0.0, not before. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281902#comment-16281902 ] Jan Piotrowski (Sujan) commented on CB-13643: - Location of that folder should only have been changed with cordova-android 7.0.0, not before. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281893#comment-16281893 ] Marcos Almeida Jr commented on CB-13643: Ah ok, res folder now is under app/src/main. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281891#comment-16281891 ] Marcos Almeida Jr commented on CB-13643: [~Sujan12] I notice that removing one signal plugin, build succeeds on this test projects, BUT I still cannot see res files at android platform folder res > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync:
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281875#comment-16281875 ] Jan Piotrowski (Sujan) commented on CB-13643: - You should report this to the `onesignal-cordova-plugin` repo then. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Comment Edited] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281875#comment-16281875 ] Jan Piotrowski (Sujan) edited comment on CB-13643 at 12/7/17 1:59 PM: -- You should report this to the `onesignal-cordova-plugin` repo then: https://github.com/OneSignal/OneSignal-Cordova-SDK was (Author: sujan12): You should report this to the `onesignal-cordova-plugin` repo then. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying
[jira] [Created] (CB-13646) Unable to compile native code (android.useDeprecated.Ndk not supported anymore)
Michael Goffioul created CB-13646: - Summary: Unable to compile native code (android.useDeprecated.Ndk not supported anymore) Key: CB-13646 URL: https://issues.apache.org/jira/browse/CB-13646 Project: Apache Cordova Issue Type: Bug Components: cordova-android Affects Versions: 7.0.0 Reporter: Michael Goffioul Assignee: Joe Bowser Priority: Critical A cordova project that contains native/jni code fails to compile, because android.useDeprecatedNdk is not supported anymore. Steps to reproduce: 1) create a new cordova project 2) add android platform 3) mkdir platforms/android/app/src/main/jni 4) touch platforms/android/app/src/main/jni/Android.mk 5) cordova build android It fails with the following error: {code} FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:compileDebugNdk'. > Error: Flag android.useDeprecatedNdk is no longer supported and will be > removed in the next version of Android Studio. Please switch to a supported > build system. Consider using CMake or ndk-build integration. For more information, go to: https://d.android.com/r/studio-ui/add-native-code.html#ndkCompile To get started, you can use the sample ndk-build script the Android plugin generated for you at: .../testnative/platforms/android/app/build/intermediates/ndk/debug/Android.mk Alternatively, you can use the experimental plugin: https://developer.android.com/r/tools/experimental-plugin.html To continue using the deprecated NDK compile for another 60 days, set android.deprecatedNdkCompileLease=1512654767567 in gradle.properties {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281869#comment-16281869 ] Marcos Almeida Jr commented on CB-13643: [~Sujan12] I created a project with cordova create. I'm getting a similar error, but at another file. Here is the test repo: https://github.com/junalmeida/cordova-test {noformat} $ cordova build android Android Studio project detected ANDROID_HOME=D:\android-sdk JAVA_HOME=C:\Program Files\java\jdk1.8.0_131 studio Subproject Path: CordovaLib Subproject Path: app publishNonDefault is deprecated and has no effect anymore. All variants are now published. Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence. java.lang.IllegalStateException: compileSdkVersion is not specified. at com.google.common.base.Preconditions.checkState(Preconditions.java:456) at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:590) at com.android.build.gradle.BasePlugin.lambda$null$3(BasePlugin.java:555) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81) at com.android.build.gradle.BasePlugin.lambda$createTasks$4(BasePlugin.java:551) at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:91) at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:80) at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42) at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230) at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149) at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58) at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:324) at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:234) at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140) at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy28.afterEvaluate(Unknown Source) at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:75) at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:69) at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:33) at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:103) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:49) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:651) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:133) at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35) at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:62) at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38) at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:246) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:165) at
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281843#comment-16281843 ] Marcos Almeida Jr commented on CB-13643: Other thing I notice is that with 6.1.0, i can see resource files like icons and splash images is being written to android/res folder. With 6.5.0 and 7.0.0 the res folder is not being generated at all. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281839#comment-16281839 ] Jan Piotrowski (Sujan) commented on CB-13643: - Thanks for the update, this points to totally different problems. Can you please try to recreate the problem with a new project started with `cordova create` and upload the result to a Github repo? Only add the relevant plugins. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to >
[jira] [Updated] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Piotrowski (Sujan) updated CB-13643: Summary: Cannot build: Cannot write /res/xml/config.xml (was: Cannot build cordova-android@7.0.0, cannot write config.xml) > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Updated] (CB-13643) Cannot build cordova-android@7.0.0, cannot write config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Piotrowski (Sujan) updated CB-13643: Affects Version/s: 6.5.0 > Cannot build cordova-android@7.0.0, cannot write config.xml > --- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Commented] (CB-13643) Cannot build cordova-android@7.0.0, cannot write config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281832#comment-16281832 ] Marcos Almeida Jr commented on CB-13643: Just to let you know, I'm facing this problem with 6.5.0 too. Only 6.1.0 works. > Cannot build cordova-android@7.0.0, cannot write config.xml > --- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Commented] (CB-13643) Cannot build cordova-android@7.0.0, cannot write config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281791#comment-16281791 ] Jan Piotrowski (Sujan) commented on CB-13643: - If this is actually causing the project using only this plugin to have problem, then it seems so. Create an issue and report the broken behaviour please. Note that above I only wrote "probably". This plugin seems to use the `config-file` tag, which was not mentioned in the announcement blog post. So it might as well be just fine. I don't know. cordova-android 7.0.0 is a big rewrite, indicated by the increase of the MAJOR version number. Breaking things is not too big a surprise. > Cannot build cordova-android@7.0.0, cannot write config.xml > --- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova
[jira] [Commented] (CB-13643) Cannot build cordova-android@7.0.0, cannot write config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281787#comment-16281787 ] Marcos Almeida Jr commented on CB-13643: Hi [~Sujan12] I was reading the plugin.xml of latest cordova-plugin-device, which is a very basic plugin to use, and I noticed the following: {noformat} http://apache.org/cordova/ns/plugins/1.0; xmlns:rim="http://www.blackberry.com/ns/widgets; xmlns:android="http://schemas.android.com/apk/res/android; id="cordova-plugin-device" version="1.1.7"> Device ... {noformat} Is that reasonable that such breaking change affects a plugin sponsored by cordova project? > Cannot build cordova-android@7.0.0, cannot write config.xml > --- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running
[jira] [Created] (CB-13645) Geolocation plugin issue when using getCurrentPosition when watchPosition has failed
Filippo Possenti created CB-13645: - Summary: Geolocation plugin issue when using getCurrentPosition when watchPosition has failed Key: CB-13645 URL: https://issues.apache.org/jira/browse/CB-13645 Project: Apache Cordova Issue Type: Bug Components: cordova-plugin-geolocation Affects Versions: 3.0.0, 2.2.0 Environment: Android 7.0 custom ROM on a test Nexus 4, but believed to exist on other devices. Reporter: Filippo Possenti 1. Turn off geolocation services on the phone through the settings 2. start the app 3. setup a watch using navigator.geolocation.watchPosition 4. call navigator.geolocation.getCurrentPosition 5. observe that it will fail, which is correct 6. without terminating the app, turn on geolocation services on the phone through the settings 7. wait a bit and call again navigator.geolocation.getCurrentPosition 8. observe that it will fail, which is no longer correct 9. clear a watch using navigator.geolocation.clearWatch 10. wait a bit and call again navigator.geolocation.getCurrentPosition 11. observe that this time it will succeed The expected behaviour was for the call to navigator.geolocation.getCurrentPosition to succeed (steps 7 and 8). -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13637) Unable to handle local plugins properly
[ https://issues.apache.org/jira/browse/CB-13637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Michael Goffioul updated CB-13637: -- Component/s: cordova-lib > Unable to handle local plugins properly > --- > > Key: CB-13637 > URL: https://issues.apache.org/jira/browse/CB-13637 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli, cordova-lib >Reporter: Michael Goffioul > > 1) create a new cordova project > 2) inside the project directory, create folder "localplugins/testplugin" > containing the file: > - package.json > {code} > { > "name": "com.example.cordova.plugin", > "version": "1.0.0" > } > {code} > - plugin.xml > {code} > > http://apache.org/cordova/ns/plugins/1.0; > id="com.example.cordova.plugin" version="1.0.0"> > Test Plugin > > > > > > > {code} > 3) add android patform: cordova platform add android > 4) prepare android: cordova prepare android > At this point, both package.json and config.xml contain a reference to the > plugin using "file:localplugins/testplugin". The problem is that it's > impossible to use the same plugin reference in both files, and still having > plugin restoration and/or "npm install" to work. > If I delete platforms/ and plugins/ subdir (these are typically not under git > revision control) and run "cordova prepare android" to restore the platforms > and the plugins, it fails with error: > {code} > Discovered plugin "com.example.cordova.plugin" in config.xml. Adding it to > the project > Failed to restore plugin "com.example.cordova.plugin" from config.xml. You > might need to try adding it again. Error: Failed to fetch plugin > file:localplugins/testplugin via registry. > Probably this is either a connection problem, or plugin spec is incorrect. > Check your connection and plugin name/version/URL. > Failed to get absolute path to installed module > {code} > If I edit package.json and config.xml, and remove the prefix "file:" in the > plugin spec, then restoration works ok. But then, it's "npm install" that > fails. > What works is to use the "file:" prefix in package.json and not use it in > "config.xml". But that's not possible as preparation will make sure both are > identical. -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13636) Plugins not for Android fail to install for Android
[ https://issues.apache.org/jira/browse/CB-13636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281737#comment-16281737 ] Gianluca Pinoci commented on CB-13636: -- Same for me, as I'm using cordova-sqlite-storage too. Just tried on a new starter project, and the android platform is adding and building as expected. Thanks for sharing your findings Tom. > Plugins not for Android fail to install for Android > --- > > Key: CB-13636 > URL: https://issues.apache.org/jira/browse/CB-13636 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Tom Bell >Assignee: Joe Bowser > Attachments: cordova-commons.png > > > I am trying to update my project to 7.0.0 for cordova-android, however we > have some plugins that are failing to install when re-installing the android > platform. > {code} > Installing "zestia-cordova-plugin-activity" for android > Failed to install 'zestia-cordova-plugin-activity': Error: ENOENT: no such > file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > at Object.fs.openSync (fs.js:646:18) > at Object.fs.readFileSync (fs.js:551:33) > at Object.parseElementtreeSync > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27) > at new AndroidManifest > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidManifest.js:29:20) > at AndroidProject.getPackageName > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidProject.js:99:12) > at Api.addPlugin > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/Api.js:223:57) > at handleInstall > (/Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:594:10) > at > /Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:357:28 > at _fulfilled > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:816:30) > Error: ENOENT: no such file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > {code} > This specific plugin only has configuration for iOS platforms. Do I need to > change something in the plugins I've written internally? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10
[ https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281647#comment-16281647 ] Jan Piotrowski (Sujan) commented on CB-13644: - Thanks for the clarification and investigation. You can install the cordova-windows platform directly from git if you want to test if this solves your problemt. > [Windows] "Element not found" exception thrown when launching Windows 8.1 app > on Windows 10 > --- > > Key: CB-13644 > URL: https://issues.apache.org/jira/browse/CB-13644 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Environment: Windows 10, build 15063. > Windows 8.1 app build. > Cordova 7.1.0 > Cordova-windows 5.0.0 > Visual Studio 2015. >Reporter: Maarten Manders >Assignee: Jesse MacFadyen >Priority: Critical > Labels: cordova-windows@4.5.0 > > The following exception is thrown when launching a Windows 8.1 app on Windows > 10: > {code:javascript} > Exception is about to be caught by JavaScript library code at line 2083, > column 9 in ms-appx://com.test/www/cordova.js > 0x80070490 - JavaScript runtime error: Element not found. > {code} > This occurs due to the addition made in > https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to > account for the use case described above. > I believe this to be the solution: > {code:javascript} > // Make title bg color match splashscreen bg color > function colorizeTitleBar() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > titleInitialBgColor = appView.titleBar.backgroundColor; > appView.titleBar.backgroundColor = titleBgColor; > appView.titleBar.buttonBackgroundColor = titleBgColor; > } > } > // Revert title bg color > function revertTitleBarColor() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > appView.titleBar.backgroundColor = titleInitialBgColor; > appView.titleBar.buttonBackgroundColor = titleInitialBgColor; > } > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13636) Plugins not for Android fail to install for Android
[ https://issues.apache.org/jira/browse/CB-13636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281642#comment-16281642 ] Tom Bell commented on CB-13636: --- I've opened up an issue on the repo for cordova-sqlite-storage to see if they are going to update to work with android@7.0.0, as the dir structure has changed. This issue can be closed as far as the issues I were having are plugin related. > Plugins not for Android fail to install for Android > --- > > Key: CB-13636 > URL: https://issues.apache.org/jira/browse/CB-13636 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Tom Bell >Assignee: Joe Bowser > Attachments: cordova-commons.png > > > I am trying to update my project to 7.0.0 for cordova-android, however we > have some plugins that are failing to install when re-installing the android > platform. > {code} > Installing "zestia-cordova-plugin-activity" for android > Failed to install 'zestia-cordova-plugin-activity': Error: ENOENT: no such > file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > at Object.fs.openSync (fs.js:646:18) > at Object.fs.readFileSync (fs.js:551:33) > at Object.parseElementtreeSync > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27) > at new AndroidManifest > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidManifest.js:29:20) > at AndroidProject.getPackageName > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidProject.js:99:12) > at Api.addPlugin > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/Api.js:223:57) > at handleInstall > (/Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:594:10) > at > /Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:357:28 > at _fulfilled > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:816:30) > Error: ENOENT: no such file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > {code} > This specific plugin only has configuration for iOS platforms. Do I need to > change something in the plugins I've written internally? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Closed] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10
[ https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maarten Manders closed CB-13644. Resolution: Duplicate Issue has already been resolved, but not yet incorporated in a release. > [Windows] "Element not found" exception thrown when launching Windows 8.1 app > on Windows 10 > --- > > Key: CB-13644 > URL: https://issues.apache.org/jira/browse/CB-13644 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Environment: Windows 10, build 15063. > Windows 8.1 app build. > Cordova 7.1.0 > Cordova-windows 5.0.0 > Visual Studio 2015. >Reporter: Maarten Manders >Assignee: Jesse MacFadyen >Priority: Critical > Labels: cordova-windows@4.5.0 > > The following exception is thrown when launching a Windows 8.1 app on Windows > 10: > {code:javascript} > Exception is about to be caught by JavaScript library code at line 2083, > column 9 in ms-appx://com.test/www/cordova.js > 0x80070490 - JavaScript runtime error: Element not found. > {code} > This occurs due to the addition made in > https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to > account for the use case described above. > I believe this to be the solution: > {code:javascript} > // Make title bg color match splashscreen bg color > function colorizeTitleBar() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > titleInitialBgColor = appView.titleBar.backgroundColor; > appView.titleBar.backgroundColor = titleBgColor; > appView.titleBar.buttonBackgroundColor = titleBgColor; > } > } > // Revert title bg color > function revertTitleBarColor() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > appView.titleBar.backgroundColor = titleInitialBgColor; > appView.titleBar.buttonBackgroundColor = titleInitialBgColor; > } > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Comment Edited] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10
[ https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281620#comment-16281620 ] Maarten Manders edited comment on CB-13644 at 12/7/17 10:20 AM: The use case mentioned in the title: "when launching a Windows 8.1 app on Windows 10". Will do. Apparently a duplicate of https://issues.apache.org/jira/browse/CB-12784 was (Author: mac89): The use case mentioned in the title: "when launching a Windows 8.1 app on Windows 10". Will do. > [Windows] "Element not found" exception thrown when launching Windows 8.1 app > on Windows 10 > --- > > Key: CB-13644 > URL: https://issues.apache.org/jira/browse/CB-13644 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Environment: Windows 10, build 15063. > Windows 8.1 app build. > Cordova 7.1.0 > Cordova-windows 5.0.0 > Visual Studio 2015. >Reporter: Maarten Manders >Assignee: Jesse MacFadyen >Priority: Critical > Labels: cordova-windows@4.5.0 > > The following exception is thrown when launching a Windows 8.1 app on Windows > 10: > {code:javascript} > Exception is about to be caught by JavaScript library code at line 2083, > column 9 in ms-appx://com.test/www/cordova.js > 0x80070490 - JavaScript runtime error: Element not found. > {code} > This occurs due to the addition made in > https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to > account for the use case described above. > I believe this to be the solution: > {code:javascript} > // Make title bg color match splashscreen bg color > function colorizeTitleBar() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > titleInitialBgColor = appView.titleBar.backgroundColor; > appView.titleBar.backgroundColor = titleBgColor; > appView.titleBar.buttonBackgroundColor = titleBgColor; > } > } > // Revert title bg color > function revertTitleBarColor() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > appView.titleBar.backgroundColor = titleInitialBgColor; > appView.titleBar.buttonBackgroundColor = titleInitialBgColor; > } > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10
[ https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281620#comment-16281620 ] Maarten Manders commented on CB-13644: -- The use case mentioned in the title: "when launching a Windows 8.1 app on Windows 10". Will do. > [Windows] "Element not found" exception thrown when launching Windows 8.1 app > on Windows 10 > --- > > Key: CB-13644 > URL: https://issues.apache.org/jira/browse/CB-13644 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Environment: Windows 10, build 15063. > Windows 8.1 app build. > Cordova 7.1.0 > Cordova-windows 5.0.0 > Visual Studio 2015. >Reporter: Maarten Manders >Assignee: Jesse MacFadyen >Priority: Critical > Labels: cordova-windows@4.5.0 > > The following exception is thrown when launching a Windows 8.1 app on Windows > 10: > {code:javascript} > Exception is about to be caught by JavaScript library code at line 2083, > column 9 in ms-appx://com.test/www/cordova.js > 0x80070490 - JavaScript runtime error: Element not found. > {code} > This occurs due to the addition made in > https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to > account for the use case described above. > I believe this to be the solution: > {code:javascript} > // Make title bg color match splashscreen bg color > function colorizeTitleBar() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > titleInitialBgColor = appView.titleBar.backgroundColor; > appView.titleBar.backgroundColor = titleBgColor; > appView.titleBar.buttonBackgroundColor = titleBgColor; > } > } > // Revert title bg color > function revertTitleBarColor() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > appView.titleBar.backgroundColor = titleInitialBgColor; > appView.titleBar.buttonBackgroundColor = titleInitialBgColor; > } > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13636) Plugins not for Android fail to install for Android
[ https://issues.apache.org/jira/browse/CB-13636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281619#comment-16281619 ] Tom Bell commented on CB-13636: --- After more debugging, there is a `platform/android/libs` directory, and that is causing it to think it's an Eclipse project. A plugin I am using `cordova-sqlite-storage` is putting some stuff there. > Plugins not for Android fail to install for Android > --- > > Key: CB-13636 > URL: https://issues.apache.org/jira/browse/CB-13636 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Tom Bell >Assignee: Joe Bowser > Attachments: cordova-commons.png > > > I am trying to update my project to 7.0.0 for cordova-android, however we > have some plugins that are failing to install when re-installing the android > platform. > {code} > Installing "zestia-cordova-plugin-activity" for android > Failed to install 'zestia-cordova-plugin-activity': Error: ENOENT: no such > file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > at Object.fs.openSync (fs.js:646:18) > at Object.fs.readFileSync (fs.js:551:33) > at Object.parseElementtreeSync > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27) > at new AndroidManifest > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidManifest.js:29:20) > at AndroidProject.getPackageName > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidProject.js:99:12) > at Api.addPlugin > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/Api.js:223:57) > at handleInstall > (/Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:594:10) > at > /Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:357:28 > at _fulfilled > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:816:30) > Error: ENOENT: no such file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > {code} > This specific plugin only has configuration for iOS platforms. Do I need to > change something in the plugins I've written internally? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13636) Plugins not for Android fail to install for Android
[ https://issues.apache.org/jira/browse/CB-13636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281609#comment-16281609 ] Tom Bell commented on CB-13636: --- I added some debugging to AndroidStudio.js to check the bools, and I get: {code} DEBUG isEclipse true DEBUG isAS true DEBUG isEclipse true DEBUG isAS true DEBUG isEclipse true DEBUG isAS true {code} So, it's incorrectly detecting an Eclipse project? > Plugins not for Android fail to install for Android > --- > > Key: CB-13636 > URL: https://issues.apache.org/jira/browse/CB-13636 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Tom Bell >Assignee: Joe Bowser > Attachments: cordova-commons.png > > > I am trying to update my project to 7.0.0 for cordova-android, however we > have some plugins that are failing to install when re-installing the android > platform. > {code} > Installing "zestia-cordova-plugin-activity" for android > Failed to install 'zestia-cordova-plugin-activity': Error: ENOENT: no such > file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > at Object.fs.openSync (fs.js:646:18) > at Object.fs.readFileSync (fs.js:551:33) > at Object.parseElementtreeSync > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27) > at new AndroidManifest > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidManifest.js:29:20) > at AndroidProject.getPackageName > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidProject.js:99:12) > at Api.addPlugin > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/Api.js:223:57) > at handleInstall > (/Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:594:10) > at > /Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:357:28 > at _fulfilled > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:816:30) > Error: ENOENT: no such file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > {code} > This specific plugin only has configuration for iOS platforms. Do I need to > change something in the plugins I've written internally? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13636) Plugins not for Android fail to install for Android
[ https://issues.apache.org/jira/browse/CB-13636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281590#comment-16281590 ] Tom Bell commented on CB-13636: --- I've installed cordova-common@2.2.0 globally and locally, and the issue still occurs. This is definitely not an issue with cordova-commons, but an issue with it correctly detecting if the Android project is an Android Studio project. > Plugins not for Android fail to install for Android > --- > > Key: CB-13636 > URL: https://issues.apache.org/jira/browse/CB-13636 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Tom Bell >Assignee: Joe Bowser > Attachments: cordova-commons.png > > > I am trying to update my project to 7.0.0 for cordova-android, however we > have some plugins that are failing to install when re-installing the android > platform. > {code} > Installing "zestia-cordova-plugin-activity" for android > Failed to install 'zestia-cordova-plugin-activity': Error: ENOENT: no such > file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > at Object.fs.openSync (fs.js:646:18) > at Object.fs.readFileSync (fs.js:551:33) > at Object.parseElementtreeSync > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27) > at new AndroidManifest > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidManifest.js:29:20) > at AndroidProject.getPackageName > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidProject.js:99:12) > at Api.addPlugin > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/Api.js:223:57) > at handleInstall > (/Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:594:10) > at > /Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:357:28 > at _fulfilled > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:816:30) > Error: ENOENT: no such file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > {code} > This specific plugin only has configuration for iOS platforms. Do I need to > change something in the plugins I've written internally? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13636) Plugins not for Android fail to install for Android
[ https://issues.apache.org/jira/browse/CB-13636?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281585#comment-16281585 ] Tom Bell commented on CB-13636: --- Once again, I do not believe this is an issue with cordova-common, as the stacktrace shows. The code being called is in cordova-android. > Plugins not for Android fail to install for Android > --- > > Key: CB-13636 > URL: https://issues.apache.org/jira/browse/CB-13636 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0 >Reporter: Tom Bell >Assignee: Joe Bowser > Attachments: cordova-commons.png > > > I am trying to update my project to 7.0.0 for cordova-android, however we > have some plugins that are failing to install when re-installing the android > platform. > {code} > Installing "zestia-cordova-plugin-activity" for android > Failed to install 'zestia-cordova-plugin-activity': Error: ENOENT: no such > file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > at Object.fs.openSync (fs.js:646:18) > at Object.fs.readFileSync (fs.js:551:33) > at Object.parseElementtreeSync > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27) > at new AndroidManifest > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidManifest.js:29:20) > at AndroidProject.getPackageName > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/lib/AndroidProject.js:99:12) > at Api.addPlugin > (/Users/tombell/Code/capsule-mobile/platforms/android/cordova/Api.js:223:57) > at handleInstall > (/Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:594:10) > at > /Users/tombell/Code/capsule-mobile/node_modules/cordova-lib/src/plugman/install.js:357:28 > at _fulfilled > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:787:54) > at self.promiseDispatch.done > (/Users/tombell/Code/capsule-mobile/node_modules/q/q.js:816:30) > Error: ENOENT: no such file or directory, open > '/Users/tombell/Code/capsule-mobile/platforms/android/AndroidManifest.xml' > {code} > This specific plugin only has configuration for iOS platforms. Do I need to > change something in the plugins I've written internally? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13639) The fetch request has a cross-origin problem
[ https://issues.apache.org/jira/browse/CB-13639?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281570#comment-16281570 ] Jan Piotrowski (Sujan) commented on CB-13639: - That is unfortunately not something you can influence afaik. Some types of requests trigger CORS security like this one. Why not just add the required header? > The fetch request has a cross-origin problem > > > Key: CB-13639 > URL: https://issues.apache.org/jira/browse/CB-13639 > Project: Apache Cordova > Issue Type: Bug > Environment: # cordova6/cordova7 > # 华为(HUAWEI)畅享5S Android5.1.1 >Reporter: Lorcan Lai > Labels: cross-origin, fetch > > I used [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to > request a service,report "...cross-origin..." problem. And then I try to use > Ajax or XMLHttpRequest to request the same service,there's no problem. > a part of the content in my config.xml, > {code:xml} > > http://*/*; /> > https://*/*; /> > > {code} > Cordova is not good for the fetch request? -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10
[ https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281568#comment-16281568 ] Jan Piotrowski (Sujan) commented on CB-13644: - > The check isn't sufficient to account for the use case described above. What exactly does this refer to? Which use case? > I believe this to be the solution: > ... Great you already have a solution! Just edit the file on Github, it will create a fork of the repo where you can just commit your changes, then create a Pull Request to the original repo. Fill the pull request template (which will connect it to this issue) and people will have a look. Thanks. > [Windows] "Element not found" exception thrown when launching Windows 8.1 app > on Windows 10 > --- > > Key: CB-13644 > URL: https://issues.apache.org/jira/browse/CB-13644 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Environment: Windows 10, build 15063. > Windows 8.1 app build. > Cordova 7.1.0 > Cordova-windows 5.0.0 > Visual Studio 2015. >Reporter: Maarten Manders >Assignee: Jesse MacFadyen >Priority: Critical > Labels: cordova-windows@4.5.0 > > The following exception is thrown when launching a Windows 8.1 app on Windows > 10: > {code:javascript} > Exception is about to be caught by JavaScript library code at line 2083, > column 9 in ms-appx://com.test/www/cordova.js > 0x80070490 - JavaScript runtime error: Element not found. > {code} > This occurs due to the addition made in > https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to > account for the use case described above. > I believe this to be the solution: > {code:javascript} > // Make title bg color match splashscreen bg color > function colorizeTitleBar() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > titleInitialBgColor = appView.titleBar.backgroundColor; > appView.titleBar.backgroundColor = titleBgColor; > appView.titleBar.buttonBackgroundColor = titleBgColor; > } > } > // Revert title bg color > function revertTitleBarColor() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > appView.titleBar.backgroundColor = titleInitialBgColor; > appView.titleBar.buttonBackgroundColor = titleInitialBgColor; > } > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13193) Setting orientation to landscape might turn UI upside down if already in landscape
[ https://issues.apache.org/jira/browse/CB-13193?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281562#comment-16281562 ] ASF GitHub Bot commented on CB-13193: - fortunes-technology opened a new pull request #25: CB-13193: (ios) Fixed Lock iOS Landscape Orientation turn up-sidedown URL: https://github.com/apache/cordova-plugin-screen-orientation/pull/25 ### Platforms affected iOS ### What does this PR do? In iOS, the Landscape have opposite orientation. Meaning if you do below when you are in landscape orientation, then you will notice the screen flips to opposite landscape orientation. screen.orientation.lock(screen.orientation.type); ### What testing has been done on this change? Manual testing on iPhone has been done. This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Setting orientation to landscape might turn UI upside down if already in > landscape > -- > > Key: CB-13193 > URL: https://issues.apache.org/jira/browse/CB-13193 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-plugin-screen-orientation >Reporter: Jonathan Herdt >Assignee: Vishal Mishra > > Steps to reproduce: > # Set up an app to lock its orientation to 'landscape' at startup via > `screen.orientation.lock('landscape')` > # Set device to landscape-left (home button on left side) > # Start app > # Observe UI turning upside down > Desired behavior: Rotation is locked but UI does not turn upside down -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12844) Escape backslashes when creating a PBXShellScriptBuildPhase
[ https://issues.apache.org/jira/browse/CB-12844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281529#comment-16281529 ] ASF GitHub Bot commented on CB-12844: - SPLUMEJI commented on a change in pull request #2: CB-12844 Update pbxProject.js URL: https://github.com/apache/cordova-node-xcode/pull/2#discussion_r155463225 ## File path: lib/pbxProject.js ## @@ -1546,7 +1546,7 @@ function pbxShellScriptBuildPhaseObj(obj, options, phaseName) { obj.inputPaths = options.inputPaths || []; obj.outputPaths = options.outputPaths || []; obj.shellPath = options.shellPath; -obj.shellScript = '"' + options.shellScript.replace(/"/g, '\\"') + '"'; +obj.shellScript = '"' + options.shellScript.replace(/\\/g, '') + '"'; Review comment: https://github.com/apache/cordova-node-xcode/commit/3d5657ef3bbd5dd281def559fd85cee667637b9b#diff-35bc421794193e73d972308b4f2f3598 This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Escape backslashes when creating a PBXShellScriptBuildPhase > --- > > Key: CB-12844 > URL: https://issues.apache.org/jira/browse/CB-12844 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-node-xcode >Affects Versions: 7.0.0, 6.4.0, 6.5.0 > Environment: MacOS 10.12.4 > Xcode 8.3.2 (8E2002) > Cordova 6.5.0 > node-xcode 0.9.0 >Reporter: Nicholas Rawlings >Assignee: Anis Kadri >Priority: Minor > > Hooks can use the `node-xcode` package, which was contributed to the Cordova > project about a month ago, to modify an Xcode project. When using > `pbxProject.addBuildPhase()` to add a new "Run Script" phase, backslashes in > the passed script are not properly escaped. Unescaped backslashes can break > the expected behavior of the shell script and result in a malformed *.pbxproj > file. > The solution should be as simple as modifying the > `pbxShellScriptBuildPhaseObj()` function to replace unescaped backslashes > with escaped ones in the same way that double quote characters are handled: > ```javascript > function pbxShellScriptBuildPhaseObj(obj, options, phaseName) { > obj.name = '"' + phaseName + '"'; > obj.inputPaths = options.inputPaths || []; > obj.outputPaths = options.outputPaths || []; > obj.shellPath = options.shellPath; > obj.shellScript = '"' + options.shellScript.replace(/"/g, > '\\"').replace(/\\/g, '') + '"'; > return obj; > } > ``` -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-12844) Escape backslashes when creating a PBXShellScriptBuildPhase
[ https://issues.apache.org/jira/browse/CB-12844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281528#comment-16281528 ] ASF GitHub Bot commented on CB-12844: - SPLUMEJI commented on a change in pull request #2: CB-12844 Update pbxProject.js URL: https://github.com/apache/cordova-node-xcode/pull/2#discussion_r155463216 ## File path: lib/pbxProject.js ## @@ -1546,7 +1546,7 @@ function pbxShellScriptBuildPhaseObj(obj, options, phaseName) { obj.inputPaths = options.inputPaths || []; obj.outputPaths = options.outputPaths || []; obj.shellPath = options.shellPath; -obj.shellScript = '"' + options.shellScript.replace(/"/g, '\\"') + '"'; +obj.shellScript = '"' + options.shellScript.replace(/\\/g, '') + '"'; Review comment: https://github.com/apache/cordova-node-xcode/commit/3d5657ef3bbd5dd281def559fd85cee667637b9b#diff-35bc421794193e73d972308b4f2f3598 This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > Escape backslashes when creating a PBXShellScriptBuildPhase > --- > > Key: CB-12844 > URL: https://issues.apache.org/jira/browse/CB-12844 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-node-xcode >Affects Versions: 7.0.0, 6.4.0, 6.5.0 > Environment: MacOS 10.12.4 > Xcode 8.3.2 (8E2002) > Cordova 6.5.0 > node-xcode 0.9.0 >Reporter: Nicholas Rawlings >Assignee: Anis Kadri >Priority: Minor > > Hooks can use the `node-xcode` package, which was contributed to the Cordova > project about a month ago, to modify an Xcode project. When using > `pbxProject.addBuildPhase()` to add a new "Run Script" phase, backslashes in > the passed script are not properly escaped. Unescaped backslashes can break > the expected behavior of the shell script and result in a malformed *.pbxproj > file. > The solution should be as simple as modifying the > `pbxShellScriptBuildPhaseObj()` function to replace unescaped backslashes > with escaped ones in the same way that double quote characters are handled: > ```javascript > function pbxShellScriptBuildPhaseObj(obj, options, phaseName) { > obj.name = '"' + phaseName + '"'; > obj.inputPaths = options.inputPaths || []; > obj.outputPaths = options.outputPaths || []; > obj.shellPath = options.shellPath; > obj.shellScript = '"' + options.shellScript.replace(/"/g, > '\\"').replace(/\\/g, '') + '"'; > return obj; > } > ``` -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Updated] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10
[ https://issues.apache.org/jira/browse/CB-13644?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Maarten Manders updated CB-13644: - Labels: cordova-windows@4.5.0 (was: ) > [Windows] "Element not found" exception thrown when launching Windows 8.1 app > on Windows 10 > --- > > Key: CB-13644 > URL: https://issues.apache.org/jira/browse/CB-13644 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-windows > Environment: Windows 10, build 15063. > Windows 8.1 app build. > Cordova 7.1.0 > Cordova-windows 5.0.0 > Visual Studio 2015. >Reporter: Maarten Manders >Assignee: Jesse MacFadyen >Priority: Critical > Labels: cordova-windows@4.5.0 > > The following exception is thrown when launching a Windows 8.1 app on Windows > 10: > {code:javascript} > Exception is about to be caught by JavaScript library code at line 2083, > column 9 in ms-appx://com.test/www/cordova.js > 0x80070490 - JavaScript runtime error: Element not found. > {code} > This occurs due to the addition made in > https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to > account for the use case described above. > I believe this to be the solution: > {code:javascript} > // Make title bg color match splashscreen bg color > function colorizeTitleBar() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > titleInitialBgColor = appView.titleBar.backgroundColor; > appView.titleBar.backgroundColor = titleBgColor; > appView.titleBar.buttonBackgroundColor = titleBgColor; > } > } > // Revert title bg color > function revertTitleBarColor() { > var appView = > Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); > if (appView.titleBar && (isWin10UWP || isWp10)) { > appView.titleBar.backgroundColor = titleInitialBgColor; > appView.titleBar.buttonBackgroundColor = titleInitialBgColor; > } > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Created] (CB-13644) [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10
Maarten Manders created CB-13644: Summary: [Windows] "Element not found" exception thrown when launching Windows 8.1 app on Windows 10 Key: CB-13644 URL: https://issues.apache.org/jira/browse/CB-13644 Project: Apache Cordova Issue Type: Bug Components: cordova-windows Environment: Windows 10, build 15063. Windows 8.1 app build. Cordova 7.1.0 Cordova-windows 5.0.0 Visual Studio 2015. Reporter: Maarten Manders Assignee: Jesse MacFadyen Priority: Critical The following exception is thrown when launching a Windows 8.1 app on Windows 10: {code:javascript} Exception is about to be caught by JavaScript library code at line 2083, column 9 in ms-appx://com.test/www/cordova.js 0x80070490 - JavaScript runtime error: Element not found. {code} This occurs due to the addition made in https://issues.apache.org/jira/browse/CB-12238. The check isn't sufficient to account for the use case described above. I believe this to be the solution: {code:javascript} // Make title bg color match splashscreen bg color function colorizeTitleBar() { var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); if (appView.titleBar && (isWin10UWP || isWp10)) { titleInitialBgColor = appView.titleBar.backgroundColor; appView.titleBar.backgroundColor = titleBgColor; appView.titleBar.buttonBackgroundColor = titleBgColor; } } // Revert title bg color function revertTitleBarColor() { var appView = Windows.UI.ViewManagement.ApplicationView.getForCurrentView(); if (appView.titleBar && (isWin10UWP || isWp10)) { appView.titleBar.backgroundColor = titleInitialBgColor; appView.titleBar.buttonBackgroundColor = titleInitialBgColor; } } {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029) - To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org
[jira] [Commented] (CB-13638) [Ionic + Cordova + Gradle + Android + Jenkins on Windows] Build failed with the pipe is being closed
[ https://issues.apache.org/jira/browse/CB-13638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281470#comment-16281470 ] Anatoly Shirokov commented on CB-13638: --- The problem was with Jenkins/Gradle Daemon. The following command disable Gradle Daemon: {noformat} ionic cordova build android --prod --release -- -- --gradleArg=--no-daemon {noformat} > [Ionic + Cordova + Gradle + Android + Jenkins on Windows] Build failed with > the pipe is being closed > > > Key: CB-13638 > URL: https://issues.apache.org/jira/browse/CB-13638 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli, cordova-windows, Ionic >Affects Versions: cordova@7.1.0 > Environment: > PATH=C:\android\sdk\platform-tools;C:\android\sdk\tools;C:\android\sdk\tools\bin;C:\nodejs\npmroot;C:\nodejs;C:\Program > Files\Java\jdk1.8.0_151\bin;C:\Windows\system32;C:\Windows > jenkins: 2.73.3 > java version "1.8.0_151" > node v8.9.1 > npm 5.5.1 > cordova 7.1.0 > ionic info: > {{cli packages: (C:\nodejs\npmroot\node_modules) > @ionic/cli-utils : 1.19.0 > ionic (Ionic CLI) : 3.19.0 > global packages: > cordova (Cordova CLI) : 7.1.0 > > local packages: > @ionic/app-scripts : 3.1.2 > Cordova Platforms : none > Ionic Framework: ionic-angular 3.9.2 > System: > Android SDK Tools : 26.1.1 > Node : v8.9.1 > npm : 5.5.1 > OS: Windows 8.1 > Environment Variables: > ANDROID_HOME : C:\android\sdk}} >Reporter: Anatoly Shirokov >Assignee: Jesse MacFadyen >Priority: Blocker > Labels: CI, android, build, gradle, ionic, jenkins, windows > > I try to build ionic project under Jenkings on Windows. Suppose > nodejs/npm/cordova/ionic installed (how to install ionic/cordova > https://ionicframework.com/docs/intro/installation/ ). I created the jenkins > item with free configuration and run the following windows batch: > {code} > set ANDROID_HOME=C:\android\sdk > set NODEJS_HOME=C:\nodejs > set NPM_HOME=%NODEJS_HOME%\npmroot > set CI=true > set PATH=%SystemRoot%\system32;%SystemRoot% > set PATH=%JAVA_HOME%\bin;%PATH% > set PATH=%NODEJS_HOME%;%PATH% > set PATH=%NPM_HOME%;%PATH% > set > PATH=%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;%ANDROID_HOME%\tools\bin;%PATH% > set BUILD_DIR=%WORKSPACE%\..\builds\%BUILD_ID%\build > mkdir %BUILD_DIR% > cd %BUILD_DIR% > call ionic start latest sidemenu > cd latest > call npm install > call ionic cordova plugin add cordova-plugin-file-transfer > call ionic cordova plugin add cordova-sqlite-storage > call ionic cordova plugin add cordova-plugin-advanced-http > call ionic cordova plugin add ionic-plugin-deeplinks --variable > URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable > DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/ > call ionic cordova plugin add cordova-plugin-pin-dialog > call ionic cordova plugin add cordova-plugin-crosswalk-webview > call ionic cordova platform add android > rem also I tried to set android.aaptOptions.useNewCruncher=true in > build-extras.gradle but it does not help > rem echo android.aaptOptions.useNewCruncher=true > >platforms\android\build-extras.gradle > rem also I tried to set cdvBuildToolsVersion with different build-tools, it > does not help > rem echo cdvBuildToolsVersion=25 >platforms\android\gradle.properties > call ionic cordova build android --prod --release -- --gradleArg=--info > {code} > but the build failed from time to time with: > {code} > * What went wrong: > Execution failed for task ':mergeArmv7ReleaseResources'. > > Error: java.util.concurrent.ExecutionException: java.io.IOException: The > > pipe is being closed > * Try: > Run with --stacktrace option to get the stack trace. Run with --debug option > to get more log output. > BUILD FAILED > Total time: 4.296 secs > Stopped 0 worker daemon(s). > Received result Failure[value=org.gradle.initialization.ReportedException: > org.gradle.internal.exceptions.LocationAwareException: Execution failed for > task ':mergeArmv7ReleaseResources'.] from daemon DaemonInfo{pid=8240, > address=[cef53d36-8cae-4993-8efb-7f9a4d217241 port:52098, > addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], state=Idle, > lastBusy=1512517318653, > context=DefaultDaemonContext[uid=2d744783-e87e-4dae-b50a-728ff0821338,javaHome=C:\Program > > Files\Java\jdk1.8.0_151,daemonRegistryDir=C:\Windows\System32\config\systemprofile\.gradle\daemon,pid=8240,idleTimeout=1080,daemonOpts=-Xmx2048m,-Dfile.encoding=windows-1251,-Duser.country=US,-Duser.language=en,-Duser.variant]} > (build should be done). > Error: cmd: Command failed with exit code 1 Error output: > Note: Some input files use or override a deprecated API. > Note: Recompile
[jira] [Closed] (CB-13638) [Ionic + Cordova + Gradle + Android + Jenkins on Windows] Build failed with the pipe is being closed
[ https://issues.apache.org/jira/browse/CB-13638?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Anatoly Shirokov closed CB-13638. - Resolution: Won't Fix > [Ionic + Cordova + Gradle + Android + Jenkins on Windows] Build failed with > the pipe is being closed > > > Key: CB-13638 > URL: https://issues.apache.org/jira/browse/CB-13638 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-cli, cordova-windows, Ionic >Affects Versions: cordova@7.1.0 > Environment: > PATH=C:\android\sdk\platform-tools;C:\android\sdk\tools;C:\android\sdk\tools\bin;C:\nodejs\npmroot;C:\nodejs;C:\Program > Files\Java\jdk1.8.0_151\bin;C:\Windows\system32;C:\Windows > jenkins: 2.73.3 > java version "1.8.0_151" > node v8.9.1 > npm 5.5.1 > cordova 7.1.0 > ionic info: > {{cli packages: (C:\nodejs\npmroot\node_modules) > @ionic/cli-utils : 1.19.0 > ionic (Ionic CLI) : 3.19.0 > global packages: > cordova (Cordova CLI) : 7.1.0 > > local packages: > @ionic/app-scripts : 3.1.2 > Cordova Platforms : none > Ionic Framework: ionic-angular 3.9.2 > System: > Android SDK Tools : 26.1.1 > Node : v8.9.1 > npm : 5.5.1 > OS: Windows 8.1 > Environment Variables: > ANDROID_HOME : C:\android\sdk}} >Reporter: Anatoly Shirokov >Assignee: Jesse MacFadyen >Priority: Blocker > Labels: CI, android, build, gradle, ionic, jenkins, windows > > I try to build ionic project under Jenkings on Windows. Suppose > nodejs/npm/cordova/ionic installed (how to install ionic/cordova > https://ionicframework.com/docs/intro/installation/ ). I created the jenkins > item with free configuration and run the following windows batch: > {code} > set ANDROID_HOME=C:\android\sdk > set NODEJS_HOME=C:\nodejs > set NPM_HOME=%NODEJS_HOME%\npmroot > set CI=true > set PATH=%SystemRoot%\system32;%SystemRoot% > set PATH=%JAVA_HOME%\bin;%PATH% > set PATH=%NODEJS_HOME%;%PATH% > set PATH=%NPM_HOME%;%PATH% > set > PATH=%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools;%ANDROID_HOME%\tools\bin;%PATH% > set BUILD_DIR=%WORKSPACE%\..\builds\%BUILD_ID%\build > mkdir %BUILD_DIR% > cd %BUILD_DIR% > call ionic start latest sidemenu > cd latest > call npm install > call ionic cordova plugin add cordova-plugin-file-transfer > call ionic cordova plugin add cordova-sqlite-storage > call ionic cordova plugin add cordova-plugin-advanced-http > call ionic cordova plugin add ionic-plugin-deeplinks --variable > URL_SCHEME=myapp --variable DEEPLINK_SCHEME=https --variable > DEEPLINK_HOST=example.com --variable ANDROID_PATH_PREFIX=/ > call ionic cordova plugin add cordova-plugin-pin-dialog > call ionic cordova plugin add cordova-plugin-crosswalk-webview > call ionic cordova platform add android > rem also I tried to set android.aaptOptions.useNewCruncher=true in > build-extras.gradle but it does not help > rem echo android.aaptOptions.useNewCruncher=true > >platforms\android\build-extras.gradle > rem also I tried to set cdvBuildToolsVersion with different build-tools, it > does not help > rem echo cdvBuildToolsVersion=25 >platforms\android\gradle.properties > call ionic cordova build android --prod --release -- --gradleArg=--info > {code} > but the build failed from time to time with: > {code} > * What went wrong: > Execution failed for task ':mergeArmv7ReleaseResources'. > > Error: java.util.concurrent.ExecutionException: java.io.IOException: The > > pipe is being closed > * Try: > Run with --stacktrace option to get the stack trace. Run with --debug option > to get more log output. > BUILD FAILED > Total time: 4.296 secs > Stopped 0 worker daemon(s). > Received result Failure[value=org.gradle.initialization.ReportedException: > org.gradle.internal.exceptions.LocationAwareException: Execution failed for > task ':mergeArmv7ReleaseResources'.] from daemon DaemonInfo{pid=8240, > address=[cef53d36-8cae-4993-8efb-7f9a4d217241 port:52098, > addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], state=Idle, > lastBusy=1512517318653, > context=DefaultDaemonContext[uid=2d744783-e87e-4dae-b50a-728ff0821338,javaHome=C:\Program > > Files\Java\jdk1.8.0_151,daemonRegistryDir=C:\Windows\System32\config\systemprofile\.gradle\daemon,pid=8240,idleTimeout=1080,daemonOpts=-Xmx2048m,-Dfile.encoding=windows-1251,-Duser.country=US,-Duser.language=en,-Duser.variant]} > (build should be done). > Error: cmd: Command failed with exit code 1 Error output: > Note: Some input files use or override a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Note: Some input files use or override a deprecated API. > Note: Recompile with -Xlint:deprecation for details. > Thread(png-cruncher_6): The pipe is being closed >