That's how I understood it - we'll have to document this properly for the non-CLI folks.
On Wed, Jul 9, 2014 at 8:41 AM, Andrew Grieve <[email protected]> wrote: > In CLI projects, there are two files called config.xml that are not the > same. The top-level one, and the one within the platforms/ directory. We > already have build-time-only settings in the top-level config.xml with > icons, so I think your proposal is fine. > > > On Tue, Jul 8, 2014 at 1:05 PM, Shazron <[email protected]> wrote: > >> I'm not sure how PG Build does it, but I can find out and see if they >> can contribute. Having this baked in to Cordova is definitely in their >> interests. >> >> On Tue, Jul 8, 2014 at 9:58 AM, Parashuram Narasimhan (MS OPEN TECH) >> <[email protected]> wrote: >> > Also, given that Phonegap build does this, should we keep this such that >> it works for people using Phonegap build also ? >> > >> > -----Original Message----- >> > From: Sergey Grebnov (Akvelon) [mailto:[email protected]] >> > Sent: Tuesday, July 8, 2014 9:54 AM >> > To: [email protected] >> > Subject: RE: iOS: add target-device and MinimumOSVersion support to >> config.xml >> > >> > I agree as well, but I still don't see any better way to specify those >> things. Looks like we could change the role of config.xml extending it >> beyond runtime preferences or we need another/better place. Another >> potential drawback of using config.xml is security risks since this file >> is distributed as-is along with the app binaries. But I also see how it is >> easy to use and does not require new knowledge (no need for new settings >> files). Thoughts? New thread to discuss this? - since I see there could be >> many new similar settings in the future and we need a way to define them >> > >> > As an idea we can introduce new <build> settings in config.xml which >> will be automatically removed during build so not available in runtime. >> > >> > Thx! >> > Sergey >> > -----Original Message----- >> > From: [email protected] [mailto:[email protected]] On Behalf Of >> Andrew Grieve >> > Sent: Tuesday, July 8, 2014 5:45 PM >> > To: dev >> > Subject: Re: iOS: add target-device and MinimumOSVersion support to >> config.xml >> > >> > Agree with this. These are in the same vein as app icons, where they go >> in the "CLI" config.xml, not the "runtime" config.xml. >> > >> > >> > On Mon, Jul 7, 2014 at 8:26 PM, Shazron <[email protected]> wrote: >> > >> >> Not sure how these prefs are going to work. Usually prefs are for >> >> runtime preferences, while these are really build time preferences and >> >> probably the domain of the CLI since they modify the Info.plist and >> >> .pbxproj files. >> >> >> >> On Mon, Jul 7, 2014 at 6:34 AM, tommy-carlos williams >> >> <[email protected]> wrote: >> >> > +1 >> >> > >> >> > On 7 July 2014 at 23:29:46, Andrew Grieve ([email protected]) >> wrote: >> >> > >> >> > +1 >> >> > >> >> > >> >> > On Mon, Jul 7, 2014 at 8:39 AM, Sergey Grebnov (Akvelon) < >> >> > [email protected]> wrote: >> >> > >> >> >> Phonegap build already supports[2] preferences below and we could >> >> >> make this a part of Cordova. I can implement this if we agree. >> Thoughts? >> >> >> >> >> >> #1 target-device >> >> >> For targeting a specific device; possible values are handset, >> >> >> tablet, or universal (default). >> >> >> Example: >> >> >> <preference name="target-device" value="universal" /> >> >> >> >> >> >> #2 deployment-target >> >> >> This sets the IPHONEOS_DEPLOYMENT_TARGET in the build, which >> >> >> tranlsates >> >> to >> >> >> the MinimumOSVersion in the ipa Propertly List. >> >> >> Example: >> >> >> <preference name="deployment-target" value="7.0" /> >> >> >> >> >> >> [2] >> >> >> >> >> http://docs.build.phonegap.com/en_US/configuring_preferences.md.html#_ >> >> ios_only >> >> >> >> >> >> Thx! >> >> >> Sergey >> >> >> >> >> > >> >> >>
