Compile only what I need

  • 1
  • Idea
  • Updated 5 years ago
  • Implemented
Hi,

every time I update the code the app is generated for iOS, Android and Windows.

I do not need the Windows version and sometime have to wait it compiles before the Android (or iOS) version is ready.

To let us save time and generally to make the system more performant, why not adding a per-app setting where we can decide the platforms we like to get the code compiled?

Thanks!
Photo of Ugo Grandolini

Ugo Grandolini

  • 16 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Such feature is already available.
See the GAP:PLATFORM element in the Docs
Photo of Ugo Grandolini

Ugo Grandolini

  • 16 Posts
  • 0 Reply Likes
Hi Petra,

I cannot find the page can you please be so kind to paste the URL here?

Thanks!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Hi Ugo,

I can't find it in the docs quickly, either. But here's the announcement about the .pgbomit feature:
http://phonegap.com/blog/2014/04/11/p...
Photo of Ugo Grandolini

Ugo Grandolini

  • 16 Posts
  • 0 Reply Likes
Thank you,


.pgbomit is a file that you can create and add to a directory that signifies to PhoneGap Build that it SHOULD NOT include the contents of that directory in the app package. This folder can be used to store any files needed during the PhoneGap Build process up to the compile step.


sorry Petra, but how is this related to my question?

I have no contents about Windows in any of my directories and still PGB compiles the Windows app every time...

Am I missing something?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
I must have a bad day, somehow.
Sorry, Ugo. The gap:platform thing I was originally refering to can be found here:

http://docs.build.phonegap.com/en_US/...

I'll have another coffee or two or seven....
Photo of Ugo Grandolini

Ugo Grandolini

  • 16 Posts
  • 0 Reply Likes
ahhhh!

yes, problem solved!

Thanks a lot Petra!!

If you need just let me know and I will send you some good coffee :))