RE: Adding ability to add any platform on any OS
Send a PR for this: https://github.com/apache/cordova-ios/pull/126 Could anyone pls. review? --- Best regards, Vladimir -Original Message- From: Vladimir Kotikov (Akvelon) [mailto:v-vlk...@microsoft.com] Sent: Tuesday, 20 January, 2015 18:32 To: dev@cordova.apache.org Subject: RE: Adding ability to add any platform on any OS I'll rebase it and send PR tomorrow. I'll need to ensure that `--list` option integrated and working. --- Best regards, Vladimir -Original Message- From: Nikhil Khandelwal [mailto:nikhi...@microsoft.com] Sent: Monday, 19 January, 2015 23:13 To: dev@cordova.apache.org Subject: RE: Adding ability to add any platform on any OS I believe this is the JIRA that tracks the work: https://issues.apache.org/jira/browse/CB-8197 It looks like Vladimir has done most of the work: https://github.com/MSOpenTech/cordova-ios/compare/CB-8197 - it probably needs to be re-sync'd and sent out as a PR. Thanks, Nikhil -Original Message- From: agri...@google.com [mailto:agri...@google.com] On Behalf Of Andrew Grieve Sent: Monday, January 19, 2015 8:59 AM To: dev Subject: Re: Adding ability to add any platform on any OS Wondering if there's been progress for rewriting ios scripts in node? Is there a JIRA for it? On Fri, Nov 7, 2014 at 9:42 AM, Marcel Kinard cmarc...@gmail.com wrote: Exactly. On Nov 5, 2014, at 6:44 PM, Andrew Grieve agri...@chromium.org wrote: That's my understanding. Don't do check_reqs until the start of an operation that depends on the reqs (e.g. a build) - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
Reviewed! All minor comments. Great job! Let me know when you've addressed them and I'll pull it in (unless anyone else wants to have a look). On Wed, Jan 21, 2015 at 9:31 AM, Vladimir Kotikov (Akvelon) v-vlk...@microsoft.com wrote: Send a PR for this: https://github.com/apache/cordova-ios/pull/126 Could anyone pls. review? --- Best regards, Vladimir -Original Message- From: Vladimir Kotikov (Akvelon) [mailto:v-vlk...@microsoft.com] Sent: Tuesday, 20 January, 2015 18:32 To: dev@cordova.apache.org Subject: RE: Adding ability to add any platform on any OS I'll rebase it and send PR tomorrow. I'll need to ensure that `--list` option integrated and working. --- Best regards, Vladimir -Original Message- From: Nikhil Khandelwal [mailto:nikhi...@microsoft.com] Sent: Monday, 19 January, 2015 23:13 To: dev@cordova.apache.org Subject: RE: Adding ability to add any platform on any OS I believe this is the JIRA that tracks the work: https://issues.apache.org/jira/browse/CB-8197 It looks like Vladimir has done most of the work: https://github.com/MSOpenTech/cordova-ios/compare/CB-8197 - it probably needs to be re-sync'd and sent out as a PR. Thanks, Nikhil -Original Message- From: agri...@google.com [mailto:agri...@google.com] On Behalf Of Andrew Grieve Sent: Monday, January 19, 2015 8:59 AM To: dev Subject: Re: Adding ability to add any platform on any OS Wondering if there's been progress for rewriting ios scripts in node? Is there a JIRA for it? On Fri, Nov 7, 2014 at 9:42 AM, Marcel Kinard cmarc...@gmail.com wrote: Exactly. On Nov 5, 2014, at 6:44 PM, Andrew Grieve agri...@chromium.org wrote: That's my understanding. Don't do check_reqs until the start of an operation that depends on the reqs (e.g. a build) - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
RE: Adding ability to add any platform on any OS
I'll rebase it and send PR tomorrow. I'll need to ensure that `--list` option integrated and working. --- Best regards, Vladimir -Original Message- From: Nikhil Khandelwal [mailto:nikhi...@microsoft.com] Sent: Monday, 19 January, 2015 23:13 To: dev@cordova.apache.org Subject: RE: Adding ability to add any platform on any OS I believe this is the JIRA that tracks the work: https://issues.apache.org/jira/browse/CB-8197 It looks like Vladimir has done most of the work: https://github.com/MSOpenTech/cordova-ios/compare/CB-8197 - it probably needs to be re-sync'd and sent out as a PR. Thanks, Nikhil -Original Message- From: agri...@google.com [mailto:agri...@google.com] On Behalf Of Andrew Grieve Sent: Monday, January 19, 2015 8:59 AM To: dev Subject: Re: Adding ability to add any platform on any OS Wondering if there's been progress for rewriting ios scripts in node? Is there a JIRA for it? On Fri, Nov 7, 2014 at 9:42 AM, Marcel Kinard cmarc...@gmail.com wrote: Exactly. On Nov 5, 2014, at 6:44 PM, Andrew Grieve agri...@chromium.org wrote: That's my understanding. Don't do check_reqs until the start of an operation that depends on the reqs (e.g. a build) - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
Wondering if there's been progress for rewriting ios scripts in node? Is there a JIRA for it? On Fri, Nov 7, 2014 at 9:42 AM, Marcel Kinard cmarc...@gmail.com wrote: Exactly. On Nov 5, 2014, at 6:44 PM, Andrew Grieve agri...@chromium.org wrote: That's my understanding. Don't do check_reqs until the start of an operation that depends on the reqs (e.g. a build) - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
RE: Adding ability to add any platform on any OS
I believe this is the JIRA that tracks the work: https://issues.apache.org/jira/browse/CB-8197 It looks like Vladimir has done most of the work: https://github.com/MSOpenTech/cordova-ios/compare/CB-8197 - it probably needs to be re-sync'd and sent out as a PR. Thanks, Nikhil -Original Message- From: agri...@google.com [mailto:agri...@google.com] On Behalf Of Andrew Grieve Sent: Monday, January 19, 2015 8:59 AM To: dev Subject: Re: Adding ability to add any platform on any OS Wondering if there's been progress for rewriting ios scripts in node? Is there a JIRA for it? On Fri, Nov 7, 2014 at 9:42 AM, Marcel Kinard cmarc...@gmail.com wrote: Exactly. On Nov 5, 2014, at 6:44 PM, Andrew Grieve agri...@chromium.org wrote: That's my understanding. Don't do check_reqs until the start of an operation that depends on the reqs (e.g. a build) - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
Exactly. On Nov 5, 2014, at 6:44 PM, Andrew Grieve agri...@chromium.org wrote: That's my understanding. Don't do check_reqs until the start of an operation that depends on the reqs (e.g. a build) - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
RE: Adding ability to add any platform on any OS
Could we postpone the check-reqs script to prepare instead on when adding it? This way, all platforms can at least be added on all OSes. One benefit I see of adding iOS on windows for example would be the ability to use remote build agents that just push the source code to a remote machine or a VM. -Original Message- From: Marcel Kinard [mailto:cmarc...@gmail.com] Sent: Thursday, October 23, 2014 1:29 PM To: dev@cordova.apache.org Subject: Re: Adding ability to add any platform on any OS Edna will tackle converting the iOS create script from bash to node.js. On Oct 21, 2014, at 8:55 PM, Carlos Santana csantan...@gmail.com wrote: We can start by small wins by making CLI a bit smarter, if the user do cordova build the cordova project might have multiple platforms and some of them it can't compile, the same for cordova run, printing a message and skipping the step would be a good improvement. for cordova create, I agree with Andrew ios should be easy to write in nodejs and be able to run the create command in a non OSX. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
That's my understanding. Don't do check_reqs until the start of an operation that depends on the reqs (e.g. a build) On Wed, Nov 5, 2014 at 2:37 PM, Parashuram Narasimhan (MS OPEN TECH) panar...@microsoft.com wrote: Could we postpone the check-reqs script to prepare instead on when adding it? This way, all platforms can at least be added on all OSes. One benefit I see of adding iOS on windows for example would be the ability to use remote build agents that just push the source code to a remote machine or a VM. -Original Message- From: Marcel Kinard [mailto:cmarc...@gmail.com] Sent: Thursday, October 23, 2014 1:29 PM To: dev@cordova.apache.org Subject: Re: Adding ability to add any platform on any OS Edna will tackle converting the iOS create script from bash to node.js. On Oct 21, 2014, at 8:55 PM, Carlos Santana csantan...@gmail.com wrote: We can start by small wins by making CLI a bit smarter, if the user do cordova build the cordova project might have multiple platforms and some of them it can't compile, the same for cordova run, printing a message and skipping the step would be a good improvement. for cordova create, I agree with Andrew ios should be easy to write in nodejs and be able to run the create command in a non OSX. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
Edna will tackle converting the iOS create script from bash to node.js. On Oct 21, 2014, at 8:55 PM, Carlos Santana csantan...@gmail.com wrote: We can start by small wins by making CLI a bit smarter, if the user do cordova build the cordova project might have multiple platforms and some of them it can't compile, the same for cordova run, printing a message and skipping the step would be a good improvement. for cordova create, I agree with Andrew ios should be easy to write in nodejs and be able to run the create command in a non OSX. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
We can start by small wins by making CLI a bit smarter, if the user do cordova build the cordova project might have multiple platforms and some of them it can't compile, the same for cordova run, printing a message and skipping the step would be a good improvement. for cordova create, I agree with Andrew ios should be easy to write in nodejs and be able to run the create command in a non OSX. On Mon, Oct 20, 2014 at 1:39 PM, Andrew Grieve agri...@chromium.org wrote: Another thing preventing this for iOS: https://issues.apache.org/jira/browse/CB-7311 https://github.com/alunny/node-xcode/pull/30 On Mon, Oct 20, 2014 at 1:34 PM, Andrew Grieve agri...@chromium.org wrote: I'd really like it to be the case as well that our tools be cross-platform except where they can't be. One hurtle here is that iOS's create script is written in bash. It wouldn't be hard to convert to node using another platform as a template though. On Sun, Oct 19, 2014 at 8:32 PM, Edna Y Morales eymor...@us.ibm.com wrote: Thanks for the feedback everyone. I'm not seeing anything in the scripts that require an environment to be set up other than compile and run, which check the environment requirements. Maybe user added hooks would cause issues. Adding a plugin seems to copy files into the project's platforms and add references in XML files or keys in the plist file if necessary. But perhaps I am missing something here? If it is not ideal to change the workflow then maybe the suggested --force flag could be an alternative? Thanks, Edna Morales [image: Inactive hide details for Gorkem Ercan ---10/18/2014 11:46:21 AM---On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasim]Gorkem Ercan ---10/18/2014 11:46:21 AM---On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasimhan (MS OPEN TECH) wrote: From: Gorkem Ercan gorkem.er...@gmail.com To: dev@cordova.apache.org dev@cordova.apache.org Date: 10/18/2014 11:46 AM Subject: Re: Adding ability to add any platform on any OS -- On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasimhan (MS OPEN TECH) wrote: What about saving and restoring platforms? Cordova platforms will not be checked in, but we could do a cordova platform save. When I now do a cordova platform restore on my Mac machine, will is try to restore the Windows platform also and fail ? cordova restore platforms will not be able to restore windows on a Mac, it basically delegates to cordova add which will fail. Unfortunately, it will stop platform restoration after first failed platform which I think should not be the case [1]. I think the ultimate goal with cordova restore is to make it part of the prepare cycle and remove plugins and platforms folders. In such a setting restoring platforms that we can not cater on a host OS will probably cause more harm. I can see some cases where this could be a useful feature but I do not think they are part of the main flow. Perhaps a --force flag can be added for this one? [1] https://issues.apache.org/jira/browse/CB-7820 -- Gorkem -Original Message- From: Josh Soref [mailto:jso...@blackberry.com jso...@blackberry.com ] Sent: Friday, October 17, 2014 2:15 PM To: Jesse; dev@cordova.apache.org Subject: Re: Adding ability to add any platform on any OS cordova serve could still benefit from it... Although I haven't looked into it too much. Sent from my BlackBerry 10 smartphone. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org -- Carlos Santana csantan...@gmail.com
Re: Adding ability to add any platform on any OS
I'd really like it to be the case as well that our tools be cross-platform except where they can't be. One hurtle here is that iOS's create script is written in bash. It wouldn't be hard to convert to node using another platform as a template though. On Sun, Oct 19, 2014 at 8:32 PM, Edna Y Morales eymor...@us.ibm.com wrote: Thanks for the feedback everyone. I'm not seeing anything in the scripts that require an environment to be set up other than compile and run, which check the environment requirements. Maybe user added hooks would cause issues. Adding a plugin seems to copy files into the project's platforms and add references in XML files or keys in the plist file if necessary. But perhaps I am missing something here? If it is not ideal to change the workflow then maybe the suggested --force flag could be an alternative? Thanks, Edna Morales [image: Inactive hide details for Gorkem Ercan ---10/18/2014 11:46:21 AM---On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasim]Gorkem Ercan ---10/18/2014 11:46:21 AM---On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasimhan (MS OPEN TECH) wrote: From: Gorkem Ercan gorkem.er...@gmail.com To: dev@cordova.apache.org dev@cordova.apache.org Date: 10/18/2014 11:46 AM Subject: Re: Adding ability to add any platform on any OS -- On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasimhan (MS OPEN TECH) wrote: What about saving and restoring platforms? Cordova platforms will not be checked in, but we could do a cordova platform save. When I now do a cordova platform restore on my Mac machine, will is try to restore the Windows platform also and fail ? cordova restore platforms will not be able to restore windows on a Mac, it basically delegates to cordova add which will fail. Unfortunately, it will stop platform restoration after first failed platform which I think should not be the case [1]. I think the ultimate goal with cordova restore is to make it part of the prepare cycle and remove plugins and platforms folders. In such a setting restoring platforms that we can not cater on a host OS will probably cause more harm. I can see some cases where this could be a useful feature but I do not think they are part of the main flow. Perhaps a --force flag can be added for this one? [1] https://issues.apache.org/jira/browse/CB-7820 -- Gorkem -Original Message- From: Josh Soref [mailto:jso...@blackberry.com jso...@blackberry.com] Sent: Friday, October 17, 2014 2:15 PM To: Jesse; dev@cordova.apache.org Subject: Re: Adding ability to add any platform on any OS cordova serve could still benefit from it... Although I haven't looked into it too much. Sent from my BlackBerry 10 smartphone. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
Another thing preventing this for iOS: https://issues.apache.org/jira/browse/CB-7311 https://github.com/alunny/node-xcode/pull/30 On Mon, Oct 20, 2014 at 1:34 PM, Andrew Grieve agri...@chromium.org wrote: I'd really like it to be the case as well that our tools be cross-platform except where they can't be. One hurtle here is that iOS's create script is written in bash. It wouldn't be hard to convert to node using another platform as a template though. On Sun, Oct 19, 2014 at 8:32 PM, Edna Y Morales eymor...@us.ibm.com wrote: Thanks for the feedback everyone. I'm not seeing anything in the scripts that require an environment to be set up other than compile and run, which check the environment requirements. Maybe user added hooks would cause issues. Adding a plugin seems to copy files into the project's platforms and add references in XML files or keys in the plist file if necessary. But perhaps I am missing something here? If it is not ideal to change the workflow then maybe the suggested --force flag could be an alternative? Thanks, Edna Morales [image: Inactive hide details for Gorkem Ercan ---10/18/2014 11:46:21 AM---On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasim]Gorkem Ercan ---10/18/2014 11:46:21 AM---On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasimhan (MS OPEN TECH) wrote: From: Gorkem Ercan gorkem.er...@gmail.com To: dev@cordova.apache.org dev@cordova.apache.org Date: 10/18/2014 11:46 AM Subject: Re: Adding ability to add any platform on any OS -- On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasimhan (MS OPEN TECH) wrote: What about saving and restoring platforms? Cordova platforms will not be checked in, but we could do a cordova platform save. When I now do a cordova platform restore on my Mac machine, will is try to restore the Windows platform also and fail ? cordova restore platforms will not be able to restore windows on a Mac, it basically delegates to cordova add which will fail. Unfortunately, it will stop platform restoration after first failed platform which I think should not be the case [1]. I think the ultimate goal with cordova restore is to make it part of the prepare cycle and remove plugins and platforms folders. In such a setting restoring platforms that we can not cater on a host OS will probably cause more harm. I can see some cases where this could be a useful feature but I do not think they are part of the main flow. Perhaps a --force flag can be added for this one? [1] https://issues.apache.org/jira/browse/CB-7820 -- Gorkem -Original Message- From: Josh Soref [mailto:jso...@blackberry.com jso...@blackberry.com] Sent: Friday, October 17, 2014 2:15 PM To: Jesse; dev@cordova.apache.org Subject: Re: Adding ability to add any platform on any OS cordova serve could still benefit from it... Although I haven't looked into it too much. Sent from my BlackBerry 10 smartphone. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
Thanks for the feedback everyone. I'm not seeing anything in the scripts that require an environment to be set up other than compile and run, which check the environment requirements. Maybe user added hooks would cause issues. Adding a plugin seems to copy files into the project's platforms and add references in XML files or keys in the plist file if necessary. But perhaps I am missing something here? If it is not ideal to change the workflow then maybe the suggested --force flag could be an alternative? Thanks, Edna Morales From: Gorkem Ercan gorkem.er...@gmail.com To: dev@cordova.apache.org dev@cordova.apache.org Date: 10/18/2014 11:46 AM Subject:Re: Adding ability to add any platform on any OS On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasimhan (MS OPEN TECH) wrote: What about saving and restoring platforms? Cordova platforms will not be checked in, but we could do a cordova platform save. When I now do a cordova platform restore on my Mac machine, will is try to restore the Windows platform also and fail ? cordova restore platforms will not be able to restore windows on a Mac, it basically delegates to cordova add which will fail. Unfortunately, it will stop platform restoration after first failed platform which I think should not be the case [1]. I think the ultimate goal with cordova restore is to make it part of the prepare cycle and remove plugins and platforms folders. In such a setting restoring platforms that we can not cater on a host OS will probably cause more harm. I can see some cases where this could be a useful feature but I do not think they are part of the main flow. Perhaps a --force flag can be added for this one? [1] https://issues.apache.org/jira/browse/CB-7820 -- Gorkem -Original Message- From: Josh Soref [mailto:jso...@blackberry.com] Sent: Friday, October 17, 2014 2:15 PM To: Jesse; dev@cordova.apache.org Subject: Re: Adding ability to add any platform on any OS cordova serve could still benefit from it... Although I haven't looked into it too much. Sent from my BlackBerry 10 smartphone. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
RE: Adding ability to add any platform on any OS
What about saving and restoring platforms? Cordova platforms will not be checked in, but we could do a cordova platform save. When I now do a cordova platform restore on my Mac machine, will is try to restore the Windows platform also and fail ? -Original Message- From: Josh Soref [mailto:jso...@blackberry.com] Sent: Friday, October 17, 2014 2:15 PM To: Jesse; dev@cordova.apache.org Subject: Re: Adding ability to add any platform on any OS cordova serve could still benefit from it... Although I haven't looked into it too much. Sent from my BlackBerry 10 smartphone. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
On Sat, Oct 18, 2014 at 06:22:12AM +, Parashuram Narasimhan (MS OPEN TECH) wrote: What about saving and restoring platforms? Cordova platforms will not be checked in, but we could do a cordova platform save. When I now do a cordova platform restore on my Mac machine, will is try to restore the Windows platform also and fail ? cordova restore platforms will not be able to restore windows on a Mac, it basically delegates to cordova add which will fail. Unfortunately, it will stop platform restoration after first failed platform which I think should not be the case [1]. I think the ultimate goal with cordova restore is to make it part of the prepare cycle and remove plugins and platforms folders. In such a setting restoring platforms that we can not cater on a host OS will probably cause more harm. I can see some cases where this could be a useful feature but I do not think they are part of the main flow. Perhaps a --force flag can be added for this one? [1] https://issues.apache.org/jira/browse/CB-7820 -- Gorkem -Original Message- From: Josh Soref [mailto:jso...@blackberry.com] Sent: Friday, October 17, 2014 2:15 PM To: Jesse; dev@cordova.apache.org Subject: Re: Adding ability to add any platform on any OS cordova serve could still benefit from it... Although I haven't looked into it too much. Sent from my BlackBerry 10 smartphone. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org
Re: Adding ability to add any platform on any OS
I don't see a ton of value in this, but I do see a lot of risk. Platform scripts + hooks are called for any changes to plugins (add/rm) so you are going to have multiple points of failure. Who does this feature help? @purplecabbage risingj.com On Fri, Oct 17, 2014 at 1:09 PM, Edna Y Morales eymor...@us.ibm.com wrote: Hi all, I'm working on allowing the CLI to add any platform regardless of whether the OS supports it. Basically you would add the platform, get a warning stating that you won't be able to build for that platform, and then just throw an error when an attempt to build is made. While looking into this, I've noticed that there are checks in multiple places that are preventing this. The first one is the check in cordova-lib that verifies the OS supports the platform. I am changing that to give a warning to the user instead of throwing an error. Then the check_reqs script for individual platforms is called both in the create script and the build script. I'm wondering if the check is required in the create script, when it's just going to get called again in the build script. My plan is to remove the check from the create script if there is nothing in there that requires a platform specific environment. Any comments or feedback would be appreciated. Thanks, Edna Morales
Re: Adding ability to add any platform on any OS
Well the idea is that you should be able to add a platform to your project even if you can't build it. So that you can have multiple developers on different OS's working on the same project using SCM. That way, for example, you can add the Windows platform on OSX and just have another developer on a Windows machine build it. Thanks, Edna Morales From: Jesse purplecabb...@gmail.com To: dev@cordova.apache.org dev@cordova.apache.org Date: 10/17/2014 04:31 PM Subject:Re: Adding ability to add any platform on any OS I don't see a ton of value in this, but I do see a lot of risk. Platform scripts + hooks are called for any changes to plugins (add/rm) so you are going to have multiple points of failure. Who does this feature help? @purplecabbage risingj.com On Fri, Oct 17, 2014 at 1:09 PM, Edna Y Morales eymor...@us.ibm.com wrote: Hi all, I'm working on allowing the CLI to add any platform regardless of whether the OS supports it. Basically you would add the platform, get a warning stating that you won't be able to build for that platform, and then just throw an error when an attempt to build is made. While looking into this, I've noticed that there are checks in multiple places that are preventing this. The first one is the check in cordova-lib that verifies the OS supports the platform. I am changing that to give a warning to the user instead of throwing an error. Then the check_reqs script for individual platforms is called both in the create script and the build script. I'm wondering if the check is required in the create script, when it's just going to get called again in the build script. My plan is to remove the check from the create script if there is nothing in there that requires a platform specific environment. Any comments or feedback would be appreciated. Thanks, Edna Morales
Re: Adding ability to add any platform on any OS
Cross platform developers with remote build systems. I'm currently doing work on a mac, but I spent a bit of my time w/ a Windows machine, and a bit w/ a Linux machine. I often have shared file systems (smb:, or .git, or whatever). It's moderately annoying that I have to be on my mac in order to do some manipulation, and on an ubuntu box to do some manipulation, and on a windows box to do some manipulation. Ok, I take that back, if I had to do that, I'd be pissed. On 10/17/14, 4:30 PM, Jesse purplecabb...@gmail.com wrote: I don't see a ton of value in this, but I do see a lot of risk. Platform scripts + hooks are called for any changes to plugins (add/rm) so you are going to have multiple points of failure. Who does this feature help? @purplecabbage risingj.com On Fri, Oct 17, 2014 at 1:09 PM, Edna Y Morales eymor...@us.ibm.com wrote: Hi all, I'm working on allowing the CLI to add any platform regardless of whether the OS supports it. Basically you would add the platform, get a warning stating that you won't be able to build for that platform, and then just throw an error when an attempt to build is made. While looking into this, I've noticed that there are checks in multiple places that are preventing this. The first one is the check in cordova-lib that verifies the OS supports the platform. I am changing that to give a warning to the user instead of throwing an error. Then the check_reqs script for individual platforms is called both in the create script and the build script. I'm wondering if the check is required in the create script, when it's just going to get called again in the build script. My plan is to remove the check from the create script if there is nothing in there that requires a platform specific environment. Any comments or feedback would be appreciated. Thanks, Edna Morales
Re: Adding ability to add any platform on any OS
Well, if platforms are a build artifact, then they would not be in version control anyway. In my opinion, the feature is not worth the risk of the changes it requires. @purplecabbage risingj.com On Fri, Oct 17, 2014 at 1:45 PM, Josh Soref jso...@blackberry.com wrote: Cross platform developers with remote build systems. I'm currently doing work on a mac, but I spent a bit of my time w/ a Windows machine, and a bit w/ a Linux machine. I often have shared file systems (smb:, or .git, or whatever). It's moderately annoying that I have to be on my mac in order to do some manipulation, and on an ubuntu box to do some manipulation, and on a windows box to do some manipulation. Ok, I take that back, if I had to do that, I'd be pissed. On 10/17/14, 4:30 PM, Jesse purplecabb...@gmail.com wrote: I don't see a ton of value in this, but I do see a lot of risk. Platform scripts + hooks are called for any changes to plugins (add/rm) so you are going to have multiple points of failure. Who does this feature help? @purplecabbage risingj.com On Fri, Oct 17, 2014 at 1:09 PM, Edna Y Morales eymor...@us.ibm.com wrote: Hi all, I'm working on allowing the CLI to add any platform regardless of whether the OS supports it. Basically you would add the platform, get a warning stating that you won't be able to build for that platform, and then just throw an error when an attempt to build is made. While looking into this, I've noticed that there are checks in multiple places that are preventing this. The first one is the check in cordova-lib that verifies the OS supports the platform. I am changing that to give a warning to the user instead of throwing an error. Then the check_reqs script for individual platforms is called both in the create script and the build script. I'm wondering if the check is required in the create script, when it's just going to get called again in the build script. My plan is to remove the check from the create script if there is nothing in there that requires a platform specific environment. Any comments or feedback would be appreciated. Thanks, Edna Morales
Re: Adding ability to add any platform on any OS
cordova serve could still benefit from it... Although I haven't looked into it too much. Sent from my BlackBerry 10 smartphone. - To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org