You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Edna Y Morales <ey...@us.ibm.com> on 2014/10/17 22:09:37 UTC

Adding ability to add any platform on any OS


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

Posted by Edna Y Morales <ey...@us.ibm.com>.
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 <pu...@gmail.com>
To:	"dev@cordova.apache.org" <de...@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 <ey...@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

Posted by Jesse <pu...@gmail.com>.
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 <js...@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" <pu...@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 <ey...@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

Posted by Josh Soref <js...@blackberry.com>.
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" <pu...@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 <ey...@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

Posted by Jesse <pu...@gmail.com>.
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 <ey...@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