You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Sergey Grebnov (Akvelon)" <v-...@microsoft.com> on 2014/03/13 13:17:43 UTC

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Hi
1.  It seems pull request does not contain related changes for windows8 and wp8. I may help here if nobody has already started working in this direction. 
2. I also can't replace default splash screen image following instructions below. It seems to be PhoneGap Build specific, isn't it? Do we support changing splash screen as part of cordova-cli?
http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#Icons%20and%20Splash%20Screens 
 
Thx!
Sergey
-----Original Message-----
From: Axel Nennker [mailto:ignisvulpis@gmail.com] 
Sent: Saturday, February 22, 2014 1:44 AM
To: dev
Subject: Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

there is a pull request that implements this gap: prefix and phonegap namespace stuff but this is Cordova and we have cdv: as prefix and another
namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
Looks like config.json adapted by both projects is a way out.


2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:

> Icons are a drag. Explicit configuration sucks, but is the way to go.
>
> It would be nice if the Cordova solution was compatible with PhoneGap 
> Build icons< 
> http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_splas
> h.md.html#Icons%20and%20Splash%20Screens
> >
> .
>
>
>
>
> On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker <ignisvulpis@gmail.com
> >wrote:
>
> > What is your favorite explicit configuration?
> > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> >
> > > As much as I'd like a single icon source I do not think it is the 
> > > right path. To do this right I think we need to audit all possible 
> > > icons for
> > each
> > > platform and create a map to analyze what could be distilled 
> > > across platforms.
> > >
> > > Ideally we'd accept a vector format (SVG) and generate all these
> > ridiculous
> > > sizes but designers will not like this. Pixel perfection, 
> > > especially
> for
> > a
> > > springboard icon, is paramount. The only way we're getting there 
> > > safely
> > is
> > > zero magic and explicit configuration.
> > >
> > > Lame, I know.
> > >
> > >
> > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker 
> > > <ig...@gmail.com>
> > > wrote:
> > >
> > > > How about this strategy:
> > > >
> > > > project_dir/config.xml
> > > > - no new elements in config.xml like cdv:icon
> > > > - no new attributes in icon element in config.xml like 
> > > > cdv:platform
> or
> > > > gap:platform
> > > > - do not invent stuff we have to support for the rest of our life.
> > > >
> > > > On all platforms:
> > > > - if config.xml contains a <icon src="whatever.png"/> without 
> > > > any attributes like width and heigth, then copy that src to to 
> > > > all
> platform
> > > > specific  locations where that platform expects launcher icons 
> > > > and
> > update
> > > > config files like manifest.webapp on FirefoxOS if there isn't a
> > specific
> > > > icon element for that location (see later).
> > > > - no downscaling of icons to lower sizes
> > > > - no upscaling of icons to higher sizes
> > > > - do not add dependencies to new node modules (e.g. to parse 
> > > > icon
> > files)
> > > >
> > > > On Android:
> > > > I) if there is a specific  <icon src="icon.png" width="48" /> 
> > > > then
> copy
> > > > that icon.png to res/drawable-mdpi (height is ignored if width 
> > > > is
> > > present,
> > > > no check for non-sqare icons)
> > > > II) Other sizes are handled according to this list from:
> > > > http://developer.android.com/guide/practices/screens_support.htm
> > > > l
> > > >
> > > >    - 36x36 for low-density
> > > >    - 48x48 for medium-density
> > > >    - 72x72 for high-density
> > > >    - 96x96 for extra high-density
> > > >
> > > > Directories not matching this algorithm that have names starting 
> > > > with res/drawable get the biggest icon if no default icon is 
> > > > available
> (I).
> > > > III) icons with width or height other than the ones mentioned 
> > > > here
> are
> > > > ignored.
> > > >
> > > > On FirefoxOS:
> > > > See
> https://developer.mozilla.org/en-US/Apps/Developing/Manifest#icons
> > > >
> > > > For Firefox OS, icons should follow the app icon guidelines< 
> > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/ico
> > > > ns/
> >,
> > > > they should not have a drop shadow, and they should be in the
> following
> > > > sizes:
> > > >  128 x 128 For display on the Firefox Marketplace 60 x 60 For 
> > > > the
> > actual
> > > > on-device icon; only the 128px icon is mandatory, but it is
> recommended
> > > to
> > > > include this size as well for optimal device icon display 
> > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/ico
> > > > ns/
> > > >
> > > > I) ignore icon elements in config.xml without width or height
> > attributes
> > > > II) copy all icons mentioned in config.xml with width  or height
> equal
> > to
> > > > 60 or 128 to the app's root and create an icon section in
> > manifest.webapp
> > > > that matches these icons.
> > > > III) if no icon is specified for width/height 60 or 128 then 
> > > > copy
> each
> > > icon
> > > > mentioned in config.xml that has width or height specified.
> > > >
> > > > On other platforms:
> > > > some strategy matching the ones for Android and FirefoxOS. If a 
> > > > size
> is
> > > > there that is typical for that platform (72,144 for ios) then us 
> > > > only
> > > those
> > > > matching icons. Try to help developers.
> > > >
> > > > -Axel
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker <ig...@gmail.com>:
> > > >
> > > > > The topic is reaching politics status...
> > > > >
> > > > > I think it is worth some effort to keep phonegap and cordova
> aligned.
> > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > >
> > > > > -Axel
> > > > >
> > > > > Regarding which PR to accept: I want support for launcher 
> > > > > icons
> and I
> > > do
> > > > > not care whether my PR is accepted or the other one.
> > > > > Actually I do not understand why CB-2606 is open for so long.
> > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 2014-02-12 23:33 GMT+01:00 Jesse <pu...@gmail.com>:
> > > > >
> > > > > Part of what you are seeing is the phonegap namespace 
> > > > > extensions
> that
> > > are
> > > > >> added for build.phonegap.com and the online tools. [1] [2]
> > > > >>
> > > > >>
> > > > >> [1]
> > > > >>
> > > > >>
> > > >
> > >
> >
> http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md.html#
> The%20Basics
> > > > >> [2]
> > > >
> https://github.com/phonegap/phonegap-start/blob/master/www/config.xml
> > > > >>
> > > > >>
> > > > >> @purplecabbage
> > > > >> risingj.com
> > > > >>
> > > > >>
> > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > agrieve@chromium.org>
> > > > >> wrote:
> > > > >>
> > > > >> > Just started a new thread to propose removing the namespace.
> > > > >> >
> > > > >> > Don't the we should use "gap:density", since that's pretty
> > > PhoneGap-y
> > > > as
> > > > >> > opposed to Cordova-y.
> > > > >> >
> > > > >> > How about we have "size" and "density" attributes that are 
> > > > >> > just
> > > > >> synonyms?
> > > > >> >
> > > > >> > Off for the day.
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > ignisvulpis@gmail.com>
> > > > >> > wrote:
> > > > >> >
> > > > >> > > Hm. I guess the id test is historical stuff. It is legal 
> > > > >> > > XML
> and
> > > the
> > > > >> > parser
> > > > >> > > ignores it.
> > > > >> > >
> > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure I did 
> > > > >> > > not invent cdv myself.
> > > > >> > >
> > > > >> > > Regarding the w3c widget standard: I am OK with ditching it.
> > > Should
> > > > >> there
> > > > >> > > be a poll or how do you handle such things?
> > > > >> > > All app templates should remove namespaces then, right?
> > > > >> > >
> > > > >> > > Isn't there another thread around namespaces breaking the 
> > > > >> > > wp
> > > > platform?
> > > > >> > >
> > > > >> > > Anyway, I think we should follow the phonegap  way with 
> > > > >> > > e.g
> > > > >> gap:density
> > > > >> > for
> > > > >> > > now. And ditch namespaces later.
> > > > >> > >
> > > > >> > > Axel
> > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > agrieve@chromium.org
> > > >:
> > > > >> > >
> > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux 
> > > > >> > > > <b...@brian.io>
> > > wrote:
> > > > >> > > >
> > > > >> > > > > Given we are the only 'widget spec' impl in use today 
> > > > >> > > > > I'm
> ok
> > > > with
> > > > >> > > > diverging
> > > > >> > > > > and not adding namespace confusion. Def want config 
> > > > >> > > > > to be
> > > > explicit
> > > > >> > and
> > > > >> > > > not
> > > > >> > > > > have magical implicit mappings.
> > > > >> > > > >
> > > > >> > > > >
> > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker <
> > > > >> > ignisvulpis@gmail.com
> > > > >> > > > > >wrote:
> > > > >> > > > >
> > > > >> > > > > > - My implementation does not use "id". Don't know 
> > > > >> > > > > > what
> > this
> > > or
> > > > >> > might
> > > > >> > > > > mean.
> > > > >> > > > >
> > > > >> > > > Found it from your test in spec/test-config.xml
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > >  > - I do not want to discuss the sense of xml 
> > > > >> > > > > namespaces
> in
> > > > this
> > > > >> > issue
> > > > >> > > > if
> > > > >> > > > > we
> > > > >> > > > > > can avoid it. The current template config.xml 
> > > > >> > > > > > defines
> two
> > > > >> > namespaces
> > > > >> > > > and
> > > > >> > > > > > for this issue's implementation I do not want to 
> > > > >> > > > > > change
> > > that.
> > > > >> So I
> > > > >> > > > would
> > > > >> > > > > > not drop the widget namespace and would not support 
> > > > >> > > > > > "platform"-without-prefix.
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > > Having gap:platform there makes the property seem like 
> > > > >> > > > an
> > > > >> second-class
> > > > >> > > > maybe-not-supposed-to-be-there kind of attribute to me.
> > > > >> > > > I'd be happy to change the default template to not 
> > > > >> > > > reference
> > the
> > > > >> widget
> > > > >> > > > spec and to make cordova's the default namespace if 
> > > > >> > > > that
> will
> > > make
> > > > >> your
> > > > >> > > > inner XML validator rest at-ease, but I really feel 
> > > > >> > > > strongly
> > > > against
> > > > >> > > having
> > > > >> > > > XML namespaces creep in. I don't think that most devs 
> > > > >> > > > know
> > what
> > > > they
> > > > >> > do,
> > > > >> > > > and our tools wouldn't support you changing the gap:
> namespace
> > > > >> prefix.
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > > > - I would follow the phonegap example
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > >
> > >
> >
> http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_splas
> h.md.html#Icons%20and%20Splash%20Screens
> > > > >> > > > > > that defines e.g. "
> > > > >> > > > > >
> > > > >> > > > > > <icon src="icons/android/ldpi.png"
> gap:platform="android"
> > > > >> > > > > > gap:density="ldpi" />
> > > > >> > > > > >
> > > > >> > > > > > " and I would like to don't parse the icon file to 
> > > > >> > > > > > infer
> > > > >> > parameters.
> > > > >> > > > > > Developers want need icons for their app on all
> platforms
> > > they
> > > > >> > > support.
> > > > >> > > > > So
> > > > >> > > > > > they will create all of them in all polished sizes 
> > > > >> > > > > > and
> > > > >> densities.
> > > > >> > > > > > My Android implementation puts icons without 
> > > > >> > > > > > cdv:density
> > > into
> > > > >> > > > > > "drawable/icon.png" regardless of width/height.
> > > > >> > > > > > What behaviour would you suggest when both lines 
> > > > >> > > > > > are
> > present
> > > > in
> > > > >> one
> > > > >> > > > > > config.xml
> > > > >> > > > > > <icon src="icon48.png" width="48" cdv:platform="android"
> > />
> > > //
> > > > >> > would
> > > > >> > > > end
> > > > >> > > > > up
> > > > >> > > > > > in drawable-mdpi by your suggestion <icon 
> > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > >> cdv:platform="android"
> > > > >> > > />
> > > > >> > > > //
> > > > >> > > > > > would end up in drawable-mdpi too
> > > > >> > > > >
> > > > >> > > >
> > > > >> > > > My thinking here was that density says the same thing 
> > > > >> > > > as
> size,
> > > so
> > > > I
> > > > >> > would
> > > > >> > > > just not support density (or make size="mdpi" an alias 
> > > > >> > > > for
> > > > >> size="48").
> > > > >> > > >
> > > > >> > > >
> > > > >> > > >
> > > > >> > > > > >
> > > > >> > > > > > I think that developers know what is the "platform-way"
> > for
> > > > each
> > > > >> > > > > platform.
> > > > >> > > > > > On Android the usual way is to specify densities.
> > > > >> > > > > >
> > > > >> > > > > > - I would not use "size" because that is not w3c 
> > > > >> > > > > > widget
> > > style.
> > > > >> > > > > >
> > > > >> > > > > > -- Axel
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > >
> > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > agrieve@chromium.org
> > > > >> >:
> > > > >> > > > > >
> > > > >> > > > > > > Would love to move this along. Would like to get
> buy-in
> > > from
> > > > >> > others
> > > > >> > > > > > > first though.
> > > > >> > > > > > >
> > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > >> > > > > > >
> > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > >> > > > > > >     <icon id="logo" src="logo.png" width="255"
> > > height="255"
> > > > />
> > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > height="255"
> > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi" />
> > > > >> > > > > > >
> > > > >> > > > > > > My feedback:
> > > > >> > > > > > > - What is "id" for?
> > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we 
> > > > >> > > > > > > should
> also
> > > > >> support
> > > > >> > > just
> > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > >> > > http://www.w3.org/ns/widgets
> > > > >> > > > "
> > > > >> > > > > > > from the file.
> > > > >> > > > > > > - I don't think there are any platforms that 
> > > > >> > > > > > > support
> > > > >> non-square
> > > > >> > > > icons.
> > > > >> > > > > > > I think size="###" would be better than width= &&
> > height=
> > > > >> > > > > > > - What happens if you don't specify a size? Do we
> sniff
> > it
> > > > >> from
> > > > >> > the
> > > > >> > > > > > > png header? This might be nice as a follow-up, 
> > > > >> > > > > > > but I'd
> > > lean
> > > > >> > towards
> > > > >> > > > > > > making it required for the first cut.
> > > > >> > > > > > > - cdv:density seems redundant with respect to size.
> > Icons
> > > on
> > > > >> > > android
> > > > >> > > > > > > are 46px at mdpi, so the size can be used to 
> > > > >> > > > > > > derive
> the
> > > > >> density.
> > > > >> > > > > > >
> > > > >> > > > > > >
> > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew Grieve <
> > > > >> > > > agrieve@chromium.org>
> > > > >> > > > > > > wrote:
> > > > >> > > > > > > > He Axel, thanks for spearheading this. Will 
> > > > >> > > > > > > > have a
> > look
> > > > >> > shortly.
> > > > >> > > > > > > >
> > > > >> > > > > > > >
> > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel Nennker <
> > > > >> > > > ignisvulpis@gmail.com
> > > > >> > > > > >
> > > > >> > > > > > > wrote:
> > > > >> > > > > > > >>
> > > > >> > > > > > > >> Andrew,
> > > > >> > > > > > > >>
> > > > >> > > > > > > >> any comments to the current implementation?
> > > > >> > > > > > > >> https://github.com/apache/cordova-cli/pull/126
> > > > >> > > > > > > >>
> > > > >> > > > > > > >> Joe commented that the new class in
> config_parser.js
> > > > named
> > > > >> > > "icon"
> > > > >> > > > > > should
> > > > >> > > > > > > >> be named "Icon" but I left it as is because 
> > > > >> > > > > > > >> the
> other
> > > > >> classes
> > > > >> > > are
> > > > >> > > > > > > lowercase
> > > > >> > > > > > > >> too.
> > > > >> > > > > > > >> There was another comment that namespaces in
> > config.xml
> > > > >> > > attributes
> > > > >> > > > > are
> > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > >> > > > > > > >> I think that we should use the cordava 
> > > > >> > > > > > > >> namespace if
> > > > >> config.xml
> > > > >> > > > > > deviates
> > > > >> > > > > > > >> from the W3C widget definition.
> > > > >> > > > > > > >> These two are the only comments I got.
> > > > >> > > > > > > >>
> > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > >> > > > > > > >>
> > > > >> > > > > > > >> Any chance to accept the request (at least the
> > Android
> > > > >> part)?
> > > > >> > > > > > > >>
> > > > >> > > > > > > >> -Axel
> > > > >> > > > > > > >>
> > > > >> > > > > > > >
> > > > >> > > > > > >
> > > > >> > > > > >
> > > > >> > > > >
> > > > >> > > >
> > > > >> > >
> > > > >> >
> > > > >>
> > > > >
> > > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Axel Nennker <ig...@gmail.com>.
merged. Thanks, Sergey!


2014-04-03 12:47 GMT+02:00 Sergey Grebnov (Akvelon) <v-...@microsoft.com>
:

> Hi Axel,
>
> +1 to finalize icons support
>
> Just sent a PR[1] to your branch with the following improvements.
> 1. Support of 'cdv:platform' and 'gap:platform' for <icon> to be PG build
> compliant
> 1. iOS support
> 2. FirefoxOS code updated
> 3. Other minor improvements
>
> You can find test icons configuration here[2].
>
> Regarding platform element support
> 1. I believe right now <platform> is only used when main config.xml is
> copied to platform config.xml. CLI ConfigParser does not take it into
> account
> 2. I've recently sent a fix that includes <platform> support for
> 'config.getPreference' method. [2]
>
> [1] https://github.com/AxelNennker/cordova-cli/pull/3
> [2] https://gist.github.com/sgrebnov/9949313
> [3] https://github.com/apache/cordova-cli/pull/145/files
>
> Thx!
> Sergey
> -----Original Message-----
> From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> Sent: Thursday, April 3, 2014 1:06 PM
> To: dev
> Subject: Re: cordova launcher icon support
> https://github.com/apache/cordova-cli/pull/126
>
> Bryan,
> where is this "platform element support" implemented?
> It is not in
> https://github.com/apache/cordova-cli/blob/master/src/ConfigParser.js
> right?
>
> Regarding "cdv:platform": No this is the opposite. There are other threads
> in this mailing (search for CB-2606).
> To summarize those:
> All proposals that included new elements like "cdv:icon" or new attributes
> for the icon element "cdv:platform" did not get broad support.
> All proposals related to the gap prefix or namespaces did not get broad
> support.
> Dropping the w3c widget standard for config.xml was postponed to "later".
> Hooks work but feel like a nailed on afterwards solution.
>
> So I came up with the proposal to select the icons be the width/height
> attributes. This proposal does not cover all use case e.g.: If you want
> different icons on different platforms then this will not work. but it is
> simple
>
> The pro side:
> - standard icon sizes seem to be quite distinct per platform.
> - this proposal is already implemented for Android, FirefoxOS, WP8. Sergey
> works on ios.
> - it does not fiddle with xml stuff
> - easy to implement and easy to understand by devs
>
> It is a shame that CB-2606 is unresolved this long. We should have
> something rolled out soon.
>
> -axel
>
>
>
>
> 2014-04-02 22:21 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
>
> > config.xml already supports a platform element for platform specific
> > config
> >
> > Is the proposal to also add an attribute cdv:platform which serves the
> > same purpose?
> >
> >
> > On Wed, Apr 2, 2014 at 4:09 PM, Sergey Grebnov (Akvelon) <
> > v-segreb@microsoft.com> wrote:
> >
> > > Hi,
> > >
> > > Have we agreed to proceed with explicit icons definition via
> > > config.xml similar to PG Build[1]? -  If so I'm going to add iOS
> > > support and update our docs. So we will have support of iOS,
> > > Android,  FxOS, WP8 and
> > Windows8.
> > > Adding icons to a new platform will be easy, similar to [2]
> > >
> > > Some my thoughts: Adding explicit icon references to config.xml
> > > looks redundant since in most cases developers will still use
> > > default icon
> > names
> > > following platform guides so we can just proceed with predefined
> > > folder ('res' as an example) and documenting folder structure and
> > > icon names for different platforms. - Sort of 'merges' where we
> > > replace app resources using some special logic. But it could be
> > > useful if we share same image between platforms or reference the
> > > same image for different needs inside single platform.
> > >
> > > [1]
> > >
> > http://docs.build.phonegap.com/en_US/3.3.0/configuring_icons_and_splas
> > h.md.html#Icons%20and%20Splash%20Screens
> > > [2]
> > >
> > https://github.com/apache/cordova-cli/pull/126/files#diff-45a2a0f22289
> > a5eb91348499a5053cd8R170
> > >
> > > Thx!
> > > Sergey
> > > -----Original Message-----
> > > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > > Sent: Thursday, March 13, 2014 5:05 PM
> > > To: dev
> > > Subject: RE: cordova launcher icon support
> > > https://github.com/apache/cordova-cli/pull/126
> > >
> > > Please fork https://github.com/AxelNennker/cordova-cli and send a PR
> > > for wp.
> > > Thanks
> > > Axel
> > >  Am 13.03.2014 13:18 schrieb "Sergey Grebnov (Akvelon)" <
> > > v-segreb@microsoft.com>:
> > >
> > > > Hi
> > > > 1.  It seems pull request does not contain related changes for
> > > > windows8 and wp8. I may help here if nobody has already started
> > > > working in this direction.
> > > > 2. I also can't replace default splash screen image following
> > > > instructions below. It seems to be PhoneGap Build specific, isn't it?
> > > > Do we support changing splash screen as part of cordova-cli?
> > > >
> > > > http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#
> > > > Icon
> > > > s%20and%20Splash%20Screens
> > > >
> > > > Thx!
> > > > Sergey
> > > > -----Original Message-----
> > > > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > > > Sent: Saturday, February 22, 2014 1:44 AM
> > > > To: dev
> > > > Subject: Re: cordova launcher icon support
> > > > https://github.com/apache/cordova-cli/pull/126
> > > >
> > > > there is a pull request that implements this gap: prefix and
> > > > phonegap namespace stuff but this is Cordova and we have cdv: as
> > > > prefix and another
> > > > namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
> > > > Looks like config.json adapted by both projects is a way out.
> > > >
> > > >
> > > > 2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:
> > > >
> > > > > Icons are a drag. Explicit configuration sucks, but is the way to
> go.
> > > > >
> > > > > It would be nice if the Cordova solution was compatible with
> > > > > PhoneGap Build icons<
> > > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and
> > > > > _spl as h.md.html#Icons%20and%20Splash%20Screens
> > > > > >
> > > > > .
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker
> > > > > <ignisvulpis@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > What is your favorite explicit configuration?
> > > > > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> > > > > >
> > > > > > > As much as I'd like a single icon source I do not think it
> > > > > > > is the right path. To do this right I think we need to audit
> > > > > > > all possible icons for
> > > > > > each
> > > > > > > platform and create a map to analyze what could be distilled
> > > > > > > across platforms.
> > > > > > >
> > > > > > > Ideally we'd accept a vector format (SVG) and generate all
> > > > > > > these
> > > > > > ridiculous
> > > > > > > sizes but designers will not like this. Pixel perfection,
> > > > > > > especially
> > > > > for
> > > > > > a
> > > > > > > springboard icon, is paramount. The only way we're getting
> > > > > > > there safely
> > > > > > is
> > > > > > > zero magic and explicit configuration.
> > > > > > >
> > > > > > > Lame, I know.
> > > > > > >
> > > > > > >
> > > > > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker
> > > > > > > <ig...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > How about this strategy:
> > > > > > > >
> > > > > > > > project_dir/config.xml
> > > > > > > > - no new elements in config.xml like cdv:icon
> > > > > > > > - no new attributes in icon element in config.xml like
> > > > > > > > cdv:platform
> > > > > or
> > > > > > > > gap:platform
> > > > > > > > - do not invent stuff we have to support for the rest of
> > > > > > > > our
> > > life.
> > > > > > > >
> > > > > > > > On all platforms:
> > > > > > > > - if config.xml contains a <icon src="whatever.png"/>
> > > > > > > > without any attributes like width and heigth, then copy
> > > > > > > > that src to to all
> > > > > platform
> > > > > > > > specific  locations where that platform expects launcher
> > > > > > > > icons and
> > > > > > update
> > > > > > > > config files like manifest.webapp on FirefoxOS if there
> > > > > > > > isn't a
> > > > > > specific
> > > > > > > > icon element for that location (see later).
> > > > > > > > - no downscaling of icons to lower sizes
> > > > > > > > - no upscaling of icons to higher sizes
> > > > > > > > - do not add dependencies to new node modules (e.g. to
> > > > > > > > parse icon
> > > > > > files)
> > > > > > > >
> > > > > > > > On Android:
> > > > > > > > I) if there is a specific  <icon src="icon.png" width="48"
> > > > > > > > /> then
> > > > > copy
> > > > > > > > that icon.png to res/drawable-mdpi (height is ignored if
> > > > > > > > width is
> > > > > > > present,
> > > > > > > > no check for non-sqare icons)
> > > > > > > > II) Other sizes are handled according to this list from:
> > > > > > > > http://developer.android.com/guide/practices/screens_suppo
> > > > > > > > rt.h
> > > > > > > > tm
> > > > > > > > l
> > > > > > > >
> > > > > > > >    - 36x36 for low-density
> > > > > > > >    - 48x48 for medium-density
> > > > > > > >    - 72x72 for high-density
> > > > > > > >    - 96x96 for extra high-density
> > > > > > > >
> > > > > > > > Directories not matching this algorithm that have names
> > > > > > > > starting with res/drawable get the biggest icon if no
> > > > > > > > default icon is available
> > > > > (I).
> > > > > > > > III) icons with width or height other than the ones
> > > > > > > > mentioned here
> > > > > are
> > > > > > > > ignored.
> > > > > > > >
> > > > > > > > On FirefoxOS:
> > > > > > > > See
> > > > > https://developer.mozilla.org/en-US/Apps/Developing/Manifest#ico
> > > > > ns
> > > > > > > >
> > > > > > > > For Firefox OS, icons should follow the app icon
> > > > > > > > guidelines<
> > > > > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-
> > > > > > > > os/i
> > > > > > > > co
> > > > > > > > ns/
> > > > > >,
> > > > > > > > they should not have a drop shadow, and they should be in
> > > > > > > > the
> > > > > following
> > > > > > > > sizes:
> > > > > > > >  128 x 128 For display on the Firefox Marketplace 60 x 60
> > > > > > > > For the
> > > > > > actual
> > > > > > > > on-device icon; only the 128px icon is mandatory, but it
> > > > > > > > is
> > > > > recommended
> > > > > > > to
> > > > > > > > include this size as well for optimal device icon display
> > > > > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-
> > > > > > > > os/i
> > > > > > > > co
> > > > > > > > ns/
> > > > > > > >
> > > > > > > > I) ignore icon elements in config.xml without width or
> > > > > > > > height
> > > > > > attributes
> > > > > > > > II) copy all icons mentioned in config.xml with width  or
> > > > > > > > height
> > > > > equal
> > > > > > to
> > > > > > > > 60 or 128 to the app's root and create an icon section in
> > > > > > manifest.webapp
> > > > > > > > that matches these icons.
> > > > > > > > III) if no icon is specified for width/height 60 or 128
> > > > > > > > then copy
> > > > > each
> > > > > > > icon
> > > > > > > > mentioned in config.xml that has width or height specified.
> > > > > > > >
> > > > > > > > On other platforms:
> > > > > > > > some strategy matching the ones for Android and FirefoxOS.
> > > > > > > > If a size
> > > > > is
> > > > > > > > there that is typical for that platform (72,144 for ios)
> > > > > > > > then us only
> > > > > > > those
> > > > > > > > matching icons. Try to help developers.
> > > > > > > >
> > > > > > > > -Axel
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker
> > > > > > > > <ignisvulpis@gmail.com
> > >:
> > > > > > > >
> > > > > > > > > The topic is reaching politics status...
> > > > > > > > >
> > > > > > > > > I think it is worth some effort to keep phonegap and
> > > > > > > > > cordova
> > > > > aligned.
> > > > > > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > > > > > >
> > > > > > > > > -Axel
> > > > > > > > >
> > > > > > > > > Regarding which PR to accept: I want support for
> > > > > > > > > launcher icons
> > > > > and I
> > > > > > > do
> > > > > > > > > not care whether my PR is accepted or the other one.
> > > > > > > > > Actually I do not understand why CB-2606 is open for so
> long.
> > > > > > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2014-02-12 23:33 GMT+01:00 Jesse <purplecabbage@gmail.com
> >:
> > > > > > > > >
> > > > > > > > > Part of what you are seeing is the phonegap namespace
> > > > > > > > > extensions
> > > > > that
> > > > > > > are
> > > > > > > > >> added for build.phonegap.com and the online tools. [1]
> > > > > > > > >> [2]
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> [1]
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md
> > > > > .htm
> > > > > l#
> > > > > The%20Basics
> > > > > > > > >> [2]
> > > > > > > >
> > > > > https://github.com/phonegap/phonegap-start/blob/master/www/confi
> > > > > g.xm
> > > > > l
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> @purplecabbage
> > > > > > > > >> risingj.com
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > > > > > agrieve@chromium.org>
> > > > > > > > >> wrote:
> > > > > > > > >>
> > > > > > > > >> > Just started a new thread to propose removing the
> > namespace.
> > > > > > > > >> >
> > > > > > > > >> > Don't the we should use "gap:density", since that's
> > > > > > > > >> > pretty
> > > > > > > PhoneGap-y
> > > > > > > > as
> > > > > > > > >> > opposed to Cordova-y.
> > > > > > > > >> >
> > > > > > > > >> > How about we have "size" and "density" attributes
> > > > > > > > >> > that are just
> > > > > > > > >> synonyms?
> > > > > > > > >> >
> > > > > > > > >> > Off for the day.
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > > > > > ignisvulpis@gmail.com>
> > > > > > > > >> > wrote:
> > > > > > > > >> >
> > > > > > > > >> > > Hm. I guess the id test is historical stuff. It is
> > > > > > > > >> > > legal XML
> > > > > and
> > > > > > > the
> > > > > > > > >> > parser
> > > > > > > > >> > > ignores it.
> > > > > > > > >> > >
> > > > > > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure
> > > > > > > > >> > > I did not invent cdv myself.
> > > > > > > > >> > >
> > > > > > > > >> > > Regarding the w3c widget standard: I am OK with
> > > > > > > > >> > > ditching
> > > it.
> > > > > > > Should
> > > > > > > > >> there
> > > > > > > > >> > > be a poll or how do you handle such things?
> > > > > > > > >> > > All app templates should remove namespaces then,
> right?
> > > > > > > > >> > >
> > > > > > > > >> > > Isn't there another thread around namespaces
> > > > > > > > >> > > breaking the wp
> > > > > > > > platform?
> > > > > > > > >> > >
> > > > > > > > >> > > Anyway, I think we should follow the phonegap  way
> > > > > > > > >> > > with e.g
> > > > > > > > >> gap:density
> > > > > > > > >> > for
> > > > > > > > >> > > now. And ditch namespaces later.
> > > > > > > > >> > >
> > > > > > > > >> > > Axel
> > > > > > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > > > > > agrieve@chromium.org
> > > > > > > >:
> > > > > > > > >> > >
> > > > > > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux
> > > > > > > > >> > > > <b...@brian.io>
> > > > > > > wrote:
> > > > > > > > >> > > >
> > > > > > > > >> > > > > Given we are the only 'widget spec' impl in use
> > > > > > > > >> > > > > today I'm
> > > > > ok
> > > > > > > > with
> > > > > > > > >> > > > diverging
> > > > > > > > >> > > > > and not adding namespace confusion. Def want
> > > > > > > > >> > > > > config to be
> > > > > > > > explicit
> > > > > > > > >> > and
> > > > > > > > >> > > > not
> > > > > > > > >> > > > > have magical implicit mappings.
> > > > > > > > >> > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker
> > > > > > > > >> > > > > <
> > > > > > > > >> > ignisvulpis@gmail.com
> > > > > > > > >> > > > > >wrote:
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > > - My implementation does not use "id". Don't
> > > > > > > > >> > > > > > know what
> > > > > > this
> > > > > > > or
> > > > > > > > >> > might
> > > > > > > > >> > > > > mean.
> > > > > > > > >> > > > >
> > > > > > > > >> > > > Found it from your test in spec/test-config.xml
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > >  > - I do not want to discuss the sense of xml
> > > > > > > > >> > > > > namespaces
> > > > > in
> > > > > > > > this
> > > > > > > > >> > issue
> > > > > > > > >> > > > if
> > > > > > > > >> > > > > we
> > > > > > > > >> > > > > > can avoid it. The current template config.xml
> > > > > > > > >> > > > > > defines
> > > > > two
> > > > > > > > >> > namespaces
> > > > > > > > >> > > > and
> > > > > > > > >> > > > > > for this issue's implementation I do not want
> > > > > > > > >> > > > > > to change
> > > > > > > that.
> > > > > > > > >> So I
> > > > > > > > >> > > > would
> > > > > > > > >> > > > > > not drop the widget namespace and would not
> > > > > > > > >> > > > > > support "platform"-without-prefix.
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > Having gap:platform there makes the property seem
> > > > > > > > >> > > > like an
> > > > > > > > >> second-class
> > > > > > > > >> > > > maybe-not-supposed-to-be-there kind of attribute
> > > > > > > > >> > > > to
> > me.
> > > > > > > > >> > > > I'd be happy to change the default template to
> > > > > > > > >> > > > not reference
> > > > > > the
> > > > > > > > >> widget
> > > > > > > > >> > > > spec and to make cordova's the default namespace
> > > > > > > > >> > > > if that
> > > > > will
> > > > > > > make
> > > > > > > > >> your
> > > > > > > > >> > > > inner XML validator rest at-ease, but I really
> > > > > > > > >> > > > feel strongly
> > > > > > > > against
> > > > > > > > >> > > having
> > > > > > > > >> > > > XML namespaces creep in. I don't think that most
> > > > > > > > >> > > > devs know
> > > > > > what
> > > > > > > > they
> > > > > > > > >> > do,
> > > > > > > > >> > > > and our tools wouldn't support you changing the gap:
> > > > > namespace
> > > > > > > > >> prefix.
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > > > - I would follow the phonegap example
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and
> > > > > _spl as h.md.html#Icons%20and%20Splash%20Screens
> > > > > > > > >> > > > > > that defines e.g. "
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > <icon src="icons/android/ldpi.png"
> > > > > gap:platform="android"
> > > > > > > > >> > > > > > gap:density="ldpi" />
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > " and I would like to don't parse the icon
> > > > > > > > >> > > > > > file to infer
> > > > > > > > >> > parameters.
> > > > > > > > >> > > > > > Developers want need icons for their app on
> > > > > > > > >> > > > > > all
> > > > > platforms
> > > > > > > they
> > > > > > > > >> > > support.
> > > > > > > > >> > > > > So
> > > > > > > > >> > > > > > they will create all of them in all polished
> > > > > > > > >> > > > > > sizes and
> > > > > > > > >> densities.
> > > > > > > > >> > > > > > My Android implementation puts icons without
> > > > > > > > >> > > > > > cdv:density
> > > > > > > into
> > > > > > > > >> > > > > > "drawable/icon.png" regardless of width/height.
> > > > > > > > >> > > > > > What behaviour would you suggest when both
> > > > > > > > >> > > > > > lines are
> > > > > > present
> > > > > > > > in
> > > > > > > > >> one
> > > > > > > > >> > > > > > config.xml
> > > > > > > > >> > > > > > <icon src="icon48.png" width="48"
> > > > cdv:platform="android"
> > > > > > />
> > > > > > > //
> > > > > > > > >> > would
> > > > > > > > >> > > > end
> > > > > > > > >> > > > > up
> > > > > > > > >> > > > > > in drawable-mdpi by your suggestion <icon
> > > > > > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > > > > > >> cdv:platform="android"
> > > > > > > > >> > > />
> > > > > > > > >> > > > //
> > > > > > > > >> > > > > > would end up in drawable-mdpi too
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > My thinking here was that density says the same
> > > > > > > > >> > > > thing as
> > > > > size,
> > > > > > > so
> > > > > > > > I
> > > > > > > > >> > would
> > > > > > > > >> > > > just not support density (or make size="mdpi" an
> > > > > > > > >> > > > alias for
> > > > > > > > >> size="48").
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > I think that developers know what is the
> > > > "platform-way"
> > > > > > for
> > > > > > > > each
> > > > > > > > >> > > > > platform.
> > > > > > > > >> > > > > > On Android the usual way is to specify
> densities.
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > - I would not use "size" because that is not
> > > > > > > > >> > > > > > w3c widget
> > > > > > > style.
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > -- Axel
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > > > > > agrieve@chromium.org
> > > > > > > > >> >:
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > > Would love to move this along. Would like
> > > > > > > > >> > > > > > > to get
> > > > > buy-in
> > > > > > > from
> > > > > > > > >> > others
> > > > > > > > >> > > > > > > first though.
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > > > > > >> > > > > > >     <icon id="logo" src="logo.png" width="255"
> > > > > > > height="255"
> > > > > > > > />
> > > > > > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > > > > > height="255"
> > > > > > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi"
> > > > > > > > >> > > > > > > />
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > > My feedback:
> > > > > > > > >> > > > > > > - What is "id" for?
> > > > > > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we
> > > > > > > > >> > > > > > > should
> > > > > also
> > > > > > > > >> support
> > > > > > > > >> > > just
> > > > > > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > > > > > >> > > http://www.w3.org/ns/widgets
> > > > > > > > >> > > > "
> > > > > > > > >> > > > > > > from the file.
> > > > > > > > >> > > > > > > - I don't think there are any platforms
> > > > > > > > >> > > > > > > that support
> > > > > > > > >> non-square
> > > > > > > > >> > > > icons.
> > > > > > > > >> > > > > > > I think size="###" would be better than
> > > > > > > > >> > > > > > > width= &&
> > > > > > height=
> > > > > > > > >> > > > > > > - What happens if you don't specify a size?
> > > > > > > > >> > > > > > > Do we
> > > > > sniff
> > > > > > it
> > > > > > > > >> from
> > > > > > > > >> > the
> > > > > > > > >> > > > > > > png header? This might be nice as a
> > > > > > > > >> > > > > > > follow-up, but I'd
> > > > > > > lean
> > > > > > > > >> > towards
> > > > > > > > >> > > > > > > making it required for the first cut.
> > > > > > > > >> > > > > > > - cdv:density seems redundant with respect
> > > > > > > > >> > > > > > > to
> > > size.
> > > > > > Icons
> > > > > > > on
> > > > > > > > >> > > android
> > > > > > > > >> > > > > > > are 46px at mdpi, so the size can be used
> > > > > > > > >> > > > > > > to derive
> > > > > the
> > > > > > > > >> density.
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew
> > > > > > > > >> > > > > > > Grieve <
> > > > > > > > >> > > > agrieve@chromium.org>
> > > > > > > > >> > > > > > > wrote:
> > > > > > > > >> > > > > > > > He Axel, thanks for spearheading this.
> > > > > > > > >> > > > > > > > Will have a
> > > > > > look
> > > > > > > > >> > shortly.
> > > > > > > > >> > > > > > > >
> > > > > > > > >> > > > > > > >
> > > > > > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel
> > > > > > > > >> > > > > > > > Nennker <
> > > > > > > > >> > > > ignisvulpis@gmail.com
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > > wrote:
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> Andrew,
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> any comments to the current implementation?
> > > > > > > > >> > > > > > > >> https://github.com/apache/cordova-cli/pu
> > > > > > > > >> > > > > > > >> ll/1
> > > > > > > > >> > > > > > > >> 26
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> Joe commented that the new class in
> > > > > config_parser.js
> > > > > > > > named
> > > > > > > > >> > > "icon"
> > > > > > > > >> > > > > > should
> > > > > > > > >> > > > > > > >> be named "Icon" but I left it as is
> > > > > > > > >> > > > > > > >> because the
> > > > > other
> > > > > > > > >> classes
> > > > > > > > >> > > are
> > > > > > > > >> > > > > > > lowercase
> > > > > > > > >> > > > > > > >> too.
> > > > > > > > >> > > > > > > >> There was another comment that
> > > > > > > > >> > > > > > > >> namespaces in
> > > > > > config.xml
> > > > > > > > >> > > attributes
> > > > > > > > >> > > > > are
> > > > > > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > > > > > >> > > > > > > >> I think that we should use the cordava
> > > > > > > > >> > > > > > > >> namespace if
> > > > > > > > >> config.xml
> > > > > > > > >> > > > > > deviates
> > > > > > > > >> > > > > > > >> from the W3C widget definition.
> > > > > > > > >> > > > > > > >> These two are the only comments I got.
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> Any chance to accept the request (at
> > > > > > > > >> > > > > > > >> least the
> > > > > > Android
> > > > > > > > >> part)?
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> -Axel
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by "Sergey Grebnov (Akvelon)" <v-...@microsoft.com>.
Hi Axel,

+1 to finalize icons support

Just sent a PR[1] to your branch with the following improvements.
1. Support of 'cdv:platform' and 'gap:platform' for <icon> to be PG build compliant
1. iOS support
2. FirefoxOS code updated 
3. Other minor improvements

You can find test icons configuration here[2].

Regarding platform element support
1. I believe right now <platform> is only used when main config.xml is copied to platform config.xml. CLI ConfigParser does not take it into account
2. I've recently sent a fix that includes <platform> support for 'config.getPreference' method. [2]

[1] https://github.com/AxelNennker/cordova-cli/pull/3 
[2] https://gist.github.com/sgrebnov/9949313
[3] https://github.com/apache/cordova-cli/pull/145/files

Thx!
Sergey
-----Original Message-----
From: Axel Nennker [mailto:ignisvulpis@gmail.com] 
Sent: Thursday, April 3, 2014 1:06 PM
To: dev
Subject: Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Bryan,
where is this "platform element support" implemented?
It is not in
https://github.com/apache/cordova-cli/blob/master/src/ConfigParser.js
right?

Regarding "cdv:platform": No this is the opposite. There are other threads in this mailing (search for CB-2606).
To summarize those:
All proposals that included new elements like "cdv:icon" or new attributes for the icon element "cdv:platform" did not get broad support.
All proposals related to the gap prefix or namespaces did not get broad support.
Dropping the w3c widget standard for config.xml was postponed to "later".
Hooks work but feel like a nailed on afterwards solution.

So I came up with the proposal to select the icons be the width/height attributes. This proposal does not cover all use case e.g.: If you want different icons on different platforms then this will not work. but it is simple

The pro side:
- standard icon sizes seem to be quite distinct per platform.
- this proposal is already implemented for Android, FirefoxOS, WP8. Sergey works on ios.
- it does not fiddle with xml stuff
- easy to implement and easy to understand by devs

It is a shame that CB-2606 is unresolved this long. We should have something rolled out soon.

-axel




2014-04-02 22:21 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:

> config.xml already supports a platform element for platform specific 
> config
>
> Is the proposal to also add an attribute cdv:platform which serves the 
> same purpose?
>
>
> On Wed, Apr 2, 2014 at 4:09 PM, Sergey Grebnov (Akvelon) < 
> v-segreb@microsoft.com> wrote:
>
> > Hi,
> >
> > Have we agreed to proceed with explicit icons definition via 
> > config.xml similar to PG Build[1]? -  If so I'm going to add iOS 
> > support and update our docs. So we will have support of iOS, 
> > Android,  FxOS, WP8 and
> Windows8.
> > Adding icons to a new platform will be easy, similar to [2]
> >
> > Some my thoughts: Adding explicit icon references to config.xml 
> > looks redundant since in most cases developers will still use 
> > default icon
> names
> > following platform guides so we can just proceed with predefined 
> > folder ('res' as an example) and documenting folder structure and 
> > icon names for different platforms. - Sort of 'merges' where we 
> > replace app resources using some special logic. But it could be 
> > useful if we share same image between platforms or reference the 
> > same image for different needs inside single platform.
> >
> > [1]
> >
> http://docs.build.phonegap.com/en_US/3.3.0/configuring_icons_and_splas
> h.md.html#Icons%20and%20Splash%20Screens
> > [2]
> >
> https://github.com/apache/cordova-cli/pull/126/files#diff-45a2a0f22289
> a5eb91348499a5053cd8R170
> >
> > Thx!
> > Sergey
> > -----Original Message-----
> > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > Sent: Thursday, March 13, 2014 5:05 PM
> > To: dev
> > Subject: RE: cordova launcher icon support
> > https://github.com/apache/cordova-cli/pull/126
> >
> > Please fork https://github.com/AxelNennker/cordova-cli and send a PR 
> > for wp.
> > Thanks
> > Axel
> >  Am 13.03.2014 13:18 schrieb "Sergey Grebnov (Akvelon)" <
> > v-segreb@microsoft.com>:
> >
> > > Hi
> > > 1.  It seems pull request does not contain related changes for
> > > windows8 and wp8. I may help here if nobody has already started 
> > > working in this direction.
> > > 2. I also can't replace default splash screen image following 
> > > instructions below. It seems to be PhoneGap Build specific, isn't it?
> > > Do we support changing splash screen as part of cordova-cli?
> > >
> > > http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#
> > > Icon
> > > s%20and%20Splash%20Screens
> > >
> > > Thx!
> > > Sergey
> > > -----Original Message-----
> > > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > > Sent: Saturday, February 22, 2014 1:44 AM
> > > To: dev
> > > Subject: Re: cordova launcher icon support
> > > https://github.com/apache/cordova-cli/pull/126
> > >
> > > there is a pull request that implements this gap: prefix and 
> > > phonegap namespace stuff but this is Cordova and we have cdv: as 
> > > prefix and another
> > > namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
> > > Looks like config.json adapted by both projects is a way out.
> > >
> > >
> > > 2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:
> > >
> > > > Icons are a drag. Explicit configuration sucks, but is the way to go.
> > > >
> > > > It would be nice if the Cordova solution was compatible with 
> > > > PhoneGap Build icons< 
> > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and
> > > > _spl as h.md.html#Icons%20and%20Splash%20Screens
> > > > >
> > > > .
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker 
> > > > <ignisvulpis@gmail.com
> > > > >wrote:
> > > >
> > > > > What is your favorite explicit configuration?
> > > > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> > > > >
> > > > > > As much as I'd like a single icon source I do not think it 
> > > > > > is the right path. To do this right I think we need to audit 
> > > > > > all possible icons for
> > > > > each
> > > > > > platform and create a map to analyze what could be distilled 
> > > > > > across platforms.
> > > > > >
> > > > > > Ideally we'd accept a vector format (SVG) and generate all 
> > > > > > these
> > > > > ridiculous
> > > > > > sizes but designers will not like this. Pixel perfection, 
> > > > > > especially
> > > > for
> > > > > a
> > > > > > springboard icon, is paramount. The only way we're getting 
> > > > > > there safely
> > > > > is
> > > > > > zero magic and explicit configuration.
> > > > > >
> > > > > > Lame, I know.
> > > > > >
> > > > > >
> > > > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker 
> > > > > > <ig...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > How about this strategy:
> > > > > > >
> > > > > > > project_dir/config.xml
> > > > > > > - no new elements in config.xml like cdv:icon
> > > > > > > - no new attributes in icon element in config.xml like 
> > > > > > > cdv:platform
> > > > or
> > > > > > > gap:platform
> > > > > > > - do not invent stuff we have to support for the rest of 
> > > > > > > our
> > life.
> > > > > > >
> > > > > > > On all platforms:
> > > > > > > - if config.xml contains a <icon src="whatever.png"/> 
> > > > > > > without any attributes like width and heigth, then copy 
> > > > > > > that src to to all
> > > > platform
> > > > > > > specific  locations where that platform expects launcher 
> > > > > > > icons and
> > > > > update
> > > > > > > config files like manifest.webapp on FirefoxOS if there 
> > > > > > > isn't a
> > > > > specific
> > > > > > > icon element for that location (see later).
> > > > > > > - no downscaling of icons to lower sizes
> > > > > > > - no upscaling of icons to higher sizes
> > > > > > > - do not add dependencies to new node modules (e.g. to 
> > > > > > > parse icon
> > > > > files)
> > > > > > >
> > > > > > > On Android:
> > > > > > > I) if there is a specific  <icon src="icon.png" width="48" 
> > > > > > > /> then
> > > > copy
> > > > > > > that icon.png to res/drawable-mdpi (height is ignored if 
> > > > > > > width is
> > > > > > present,
> > > > > > > no check for non-sqare icons)
> > > > > > > II) Other sizes are handled according to this list from:
> > > > > > > http://developer.android.com/guide/practices/screens_suppo
> > > > > > > rt.h
> > > > > > > tm
> > > > > > > l
> > > > > > >
> > > > > > >    - 36x36 for low-density
> > > > > > >    - 48x48 for medium-density
> > > > > > >    - 72x72 for high-density
> > > > > > >    - 96x96 for extra high-density
> > > > > > >
> > > > > > > Directories not matching this algorithm that have names 
> > > > > > > starting with res/drawable get the biggest icon if no 
> > > > > > > default icon is available
> > > > (I).
> > > > > > > III) icons with width or height other than the ones 
> > > > > > > mentioned here
> > > > are
> > > > > > > ignored.
> > > > > > >
> > > > > > > On FirefoxOS:
> > > > > > > See
> > > > https://developer.mozilla.org/en-US/Apps/Developing/Manifest#ico
> > > > ns
> > > > > > >
> > > > > > > For Firefox OS, icons should follow the app icon 
> > > > > > > guidelines< 
> > > > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-
> > > > > > > os/i
> > > > > > > co
> > > > > > > ns/
> > > > >,
> > > > > > > they should not have a drop shadow, and they should be in 
> > > > > > > the
> > > > following
> > > > > > > sizes:
> > > > > > >  128 x 128 For display on the Firefox Marketplace 60 x 60 
> > > > > > > For the
> > > > > actual
> > > > > > > on-device icon; only the 128px icon is mandatory, but it 
> > > > > > > is
> > > > recommended
> > > > > > to
> > > > > > > include this size as well for optimal device icon display 
> > > > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-
> > > > > > > os/i
> > > > > > > co
> > > > > > > ns/
> > > > > > >
> > > > > > > I) ignore icon elements in config.xml without width or 
> > > > > > > height
> > > > > attributes
> > > > > > > II) copy all icons mentioned in config.xml with width  or 
> > > > > > > height
> > > > equal
> > > > > to
> > > > > > > 60 or 128 to the app's root and create an icon section in
> > > > > manifest.webapp
> > > > > > > that matches these icons.
> > > > > > > III) if no icon is specified for width/height 60 or 128 
> > > > > > > then copy
> > > > each
> > > > > > icon
> > > > > > > mentioned in config.xml that has width or height specified.
> > > > > > >
> > > > > > > On other platforms:
> > > > > > > some strategy matching the ones for Android and FirefoxOS. 
> > > > > > > If a size
> > > > is
> > > > > > > there that is typical for that platform (72,144 for ios) 
> > > > > > > then us only
> > > > > > those
> > > > > > > matching icons. Try to help developers.
> > > > > > >
> > > > > > > -Axel
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker 
> > > > > > > <ignisvulpis@gmail.com
> >:
> > > > > > >
> > > > > > > > The topic is reaching politics status...
> > > > > > > >
> > > > > > > > I think it is worth some effort to keep phonegap and 
> > > > > > > > cordova
> > > > aligned.
> > > > > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > > > > >
> > > > > > > > -Axel
> > > > > > > >
> > > > > > > > Regarding which PR to accept: I want support for 
> > > > > > > > launcher icons
> > > > and I
> > > > > > do
> > > > > > > > not care whether my PR is accepted or the other one.
> > > > > > > > Actually I do not understand why CB-2606 is open for so long.
> > > > > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2014-02-12 23:33 GMT+01:00 Jesse <pu...@gmail.com>:
> > > > > > > >
> > > > > > > > Part of what you are seeing is the phonegap namespace 
> > > > > > > > extensions
> > > > that
> > > > > > are
> > > > > > > >> added for build.phonegap.com and the online tools. [1] 
> > > > > > > >> [2]
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> [1]
> > > > > > > >>
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md
> > > > .htm
> > > > l#
> > > > The%20Basics
> > > > > > > >> [2]
> > > > > > >
> > > > https://github.com/phonegap/phonegap-start/blob/master/www/confi
> > > > g.xm
> > > > l
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> @purplecabbage
> > > > > > > >> risingj.com
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > > > > agrieve@chromium.org>
> > > > > > > >> wrote:
> > > > > > > >>
> > > > > > > >> > Just started a new thread to propose removing the
> namespace.
> > > > > > > >> >
> > > > > > > >> > Don't the we should use "gap:density", since that's 
> > > > > > > >> > pretty
> > > > > > PhoneGap-y
> > > > > > > as
> > > > > > > >> > opposed to Cordova-y.
> > > > > > > >> >
> > > > > > > >> > How about we have "size" and "density" attributes 
> > > > > > > >> > that are just
> > > > > > > >> synonyms?
> > > > > > > >> >
> > > > > > > >> > Off for the day.
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > > > > ignisvulpis@gmail.com>
> > > > > > > >> > wrote:
> > > > > > > >> >
> > > > > > > >> > > Hm. I guess the id test is historical stuff. It is 
> > > > > > > >> > > legal XML
> > > > and
> > > > > > the
> > > > > > > >> > parser
> > > > > > > >> > > ignores it.
> > > > > > > >> > >
> > > > > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure 
> > > > > > > >> > > I did not invent cdv myself.
> > > > > > > >> > >
> > > > > > > >> > > Regarding the w3c widget standard: I am OK with 
> > > > > > > >> > > ditching
> > it.
> > > > > > Should
> > > > > > > >> there
> > > > > > > >> > > be a poll or how do you handle such things?
> > > > > > > >> > > All app templates should remove namespaces then, right?
> > > > > > > >> > >
> > > > > > > >> > > Isn't there another thread around namespaces 
> > > > > > > >> > > breaking the wp
> > > > > > > platform?
> > > > > > > >> > >
> > > > > > > >> > > Anyway, I think we should follow the phonegap  way 
> > > > > > > >> > > with e.g
> > > > > > > >> gap:density
> > > > > > > >> > for
> > > > > > > >> > > now. And ditch namespaces later.
> > > > > > > >> > >
> > > > > > > >> > > Axel
> > > > > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > > > > agrieve@chromium.org
> > > > > > >:
> > > > > > > >> > >
> > > > > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux 
> > > > > > > >> > > > <b...@brian.io>
> > > > > > wrote:
> > > > > > > >> > > >
> > > > > > > >> > > > > Given we are the only 'widget spec' impl in use 
> > > > > > > >> > > > > today I'm
> > > > ok
> > > > > > > with
> > > > > > > >> > > > diverging
> > > > > > > >> > > > > and not adding namespace confusion. Def want 
> > > > > > > >> > > > > config to be
> > > > > > > explicit
> > > > > > > >> > and
> > > > > > > >> > > > not
> > > > > > > >> > > > > have magical implicit mappings.
> > > > > > > >> > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker 
> > > > > > > >> > > > > <
> > > > > > > >> > ignisvulpis@gmail.com
> > > > > > > >> > > > > >wrote:
> > > > > > > >> > > > >
> > > > > > > >> > > > > > - My implementation does not use "id". Don't 
> > > > > > > >> > > > > > know what
> > > > > this
> > > > > > or
> > > > > > > >> > might
> > > > > > > >> > > > > mean.
> > > > > > > >> > > > >
> > > > > > > >> > > > Found it from your test in spec/test-config.xml
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > >  > - I do not want to discuss the sense of xml 
> > > > > > > >> > > > > namespaces
> > > > in
> > > > > > > this
> > > > > > > >> > issue
> > > > > > > >> > > > if
> > > > > > > >> > > > > we
> > > > > > > >> > > > > > can avoid it. The current template config.xml 
> > > > > > > >> > > > > > defines
> > > > two
> > > > > > > >> > namespaces
> > > > > > > >> > > > and
> > > > > > > >> > > > > > for this issue's implementation I do not want 
> > > > > > > >> > > > > > to change
> > > > > > that.
> > > > > > > >> So I
> > > > > > > >> > > > would
> > > > > > > >> > > > > > not drop the widget namespace and would not 
> > > > > > > >> > > > > > support "platform"-without-prefix.
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > > > Having gap:platform there makes the property seem 
> > > > > > > >> > > > like an
> > > > > > > >> second-class
> > > > > > > >> > > > maybe-not-supposed-to-be-there kind of attribute 
> > > > > > > >> > > > to
> me.
> > > > > > > >> > > > I'd be happy to change the default template to 
> > > > > > > >> > > > not reference
> > > > > the
> > > > > > > >> widget
> > > > > > > >> > > > spec and to make cordova's the default namespace 
> > > > > > > >> > > > if that
> > > > will
> > > > > > make
> > > > > > > >> your
> > > > > > > >> > > > inner XML validator rest at-ease, but I really 
> > > > > > > >> > > > feel strongly
> > > > > > > against
> > > > > > > >> > > having
> > > > > > > >> > > > XML namespaces creep in. I don't think that most 
> > > > > > > >> > > > devs know
> > > > > what
> > > > > > > they
> > > > > > > >> > do,
> > > > > > > >> > > > and our tools wouldn't support you changing the gap:
> > > > namespace
> > > > > > > >> prefix.
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > > > - I would follow the phonegap example
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and
> > > > _spl as h.md.html#Icons%20and%20Splash%20Screens
> > > > > > > >> > > > > > that defines e.g. "
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > <icon src="icons/android/ldpi.png"
> > > > gap:platform="android"
> > > > > > > >> > > > > > gap:density="ldpi" />
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > " and I would like to don't parse the icon 
> > > > > > > >> > > > > > file to infer
> > > > > > > >> > parameters.
> > > > > > > >> > > > > > Developers want need icons for their app on 
> > > > > > > >> > > > > > all
> > > > platforms
> > > > > > they
> > > > > > > >> > > support.
> > > > > > > >> > > > > So
> > > > > > > >> > > > > > they will create all of them in all polished 
> > > > > > > >> > > > > > sizes and
> > > > > > > >> densities.
> > > > > > > >> > > > > > My Android implementation puts icons without 
> > > > > > > >> > > > > > cdv:density
> > > > > > into
> > > > > > > >> > > > > > "drawable/icon.png" regardless of width/height.
> > > > > > > >> > > > > > What behaviour would you suggest when both 
> > > > > > > >> > > > > > lines are
> > > > > present
> > > > > > > in
> > > > > > > >> one
> > > > > > > >> > > > > > config.xml
> > > > > > > >> > > > > > <icon src="icon48.png" width="48"
> > > cdv:platform="android"
> > > > > />
> > > > > > //
> > > > > > > >> > would
> > > > > > > >> > > > end
> > > > > > > >> > > > > up
> > > > > > > >> > > > > > in drawable-mdpi by your suggestion <icon 
> > > > > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > > > > >> cdv:platform="android"
> > > > > > > >> > > />
> > > > > > > >> > > > //
> > > > > > > >> > > > > > would end up in drawable-mdpi too
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > > > My thinking here was that density says the same 
> > > > > > > >> > > > thing as
> > > > size,
> > > > > > so
> > > > > > > I
> > > > > > > >> > would
> > > > > > > >> > > > just not support density (or make size="mdpi" an 
> > > > > > > >> > > > alias for
> > > > > > > >> size="48").
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > I think that developers know what is the
> > > "platform-way"
> > > > > for
> > > > > > > each
> > > > > > > >> > > > > platform.
> > > > > > > >> > > > > > On Android the usual way is to specify densities.
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > - I would not use "size" because that is not 
> > > > > > > >> > > > > > w3c widget
> > > > > > style.
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > -- Axel
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > > > > agrieve@chromium.org
> > > > > > > >> >:
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > > Would love to move this along. Would like 
> > > > > > > >> > > > > > > to get
> > > > buy-in
> > > > > > from
> > > > > > > >> > others
> > > > > > > >> > > > > > > first though.
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > > > > >> > > > > > >     <icon id="logo" src="logo.png" width="255"
> > > > > > height="255"
> > > > > > > />
> > > > > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > > > > height="255"
> > > > > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi" 
> > > > > > > >> > > > > > > />
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > My feedback:
> > > > > > > >> > > > > > > - What is "id" for?
> > > > > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we 
> > > > > > > >> > > > > > > should
> > > > also
> > > > > > > >> support
> > > > > > > >> > > just
> > > > > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > > > > >> > > http://www.w3.org/ns/widgets
> > > > > > > >> > > > "
> > > > > > > >> > > > > > > from the file.
> > > > > > > >> > > > > > > - I don't think there are any platforms 
> > > > > > > >> > > > > > > that support
> > > > > > > >> non-square
> > > > > > > >> > > > icons.
> > > > > > > >> > > > > > > I think size="###" would be better than 
> > > > > > > >> > > > > > > width= &&
> > > > > height=
> > > > > > > >> > > > > > > - What happens if you don't specify a size? 
> > > > > > > >> > > > > > > Do we
> > > > sniff
> > > > > it
> > > > > > > >> from
> > > > > > > >> > the
> > > > > > > >> > > > > > > png header? This might be nice as a 
> > > > > > > >> > > > > > > follow-up, but I'd
> > > > > > lean
> > > > > > > >> > towards
> > > > > > > >> > > > > > > making it required for the first cut.
> > > > > > > >> > > > > > > - cdv:density seems redundant with respect 
> > > > > > > >> > > > > > > to
> > size.
> > > > > Icons
> > > > > > on
> > > > > > > >> > > android
> > > > > > > >> > > > > > > are 46px at mdpi, so the size can be used 
> > > > > > > >> > > > > > > to derive
> > > > the
> > > > > > > >> density.
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew 
> > > > > > > >> > > > > > > Grieve <
> > > > > > > >> > > > agrieve@chromium.org>
> > > > > > > >> > > > > > > wrote:
> > > > > > > >> > > > > > > > He Axel, thanks for spearheading this. 
> > > > > > > >> > > > > > > > Will have a
> > > > > look
> > > > > > > >> > shortly.
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel 
> > > > > > > >> > > > > > > > Nennker <
> > > > > > > >> > > > ignisvulpis@gmail.com
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > > wrote:
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> Andrew,
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> any comments to the current implementation?
> > > > > > > >> > > > > > > >> https://github.com/apache/cordova-cli/pu
> > > > > > > >> > > > > > > >> ll/1
> > > > > > > >> > > > > > > >> 26
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> Joe commented that the new class in
> > > > config_parser.js
> > > > > > > named
> > > > > > > >> > > "icon"
> > > > > > > >> > > > > > should
> > > > > > > >> > > > > > > >> be named "Icon" but I left it as is 
> > > > > > > >> > > > > > > >> because the
> > > > other
> > > > > > > >> classes
> > > > > > > >> > > are
> > > > > > > >> > > > > > > lowercase
> > > > > > > >> > > > > > > >> too.
> > > > > > > >> > > > > > > >> There was another comment that 
> > > > > > > >> > > > > > > >> namespaces in
> > > > > config.xml
> > > > > > > >> > > attributes
> > > > > > > >> > > > > are
> > > > > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > > > > >> > > > > > > >> I think that we should use the cordava 
> > > > > > > >> > > > > > > >> namespace if
> > > > > > > >> config.xml
> > > > > > > >> > > > > > deviates
> > > > > > > >> > > > > > > >> from the W3C widget definition.
> > > > > > > >> > > > > > > >> These two are the only comments I got.
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> Any chance to accept the request (at 
> > > > > > > >> > > > > > > >> least the
> > > > > Android
> > > > > > > >> part)?
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> -Axel
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Axel Nennker <ig...@gmail.com>.
Hm, I thought the intention of the platform element was to have platform
specific preferences but it is implemented so that it operates on all
elements in config.xml. Which might lead to strange effects like having a
different name for different platforms.
I can't find the discussion about this on the list and the commit does not
have the issue CB-abcd as a commit comment.
Anyway: I think that ConfigParser.js is now not doing what scripts using it
can expect: As a platform parser I do not expect to get values that are not
for my platform which currently the case. I admit that this is a
theoretical discussion with current real-world config.xml-s but I think
that something like

<widget id="com.example.hello" version="0.0.1">

 <platform name="ios">

        <name>Hello iOS</name>

 <platform/>

<name>HelloWorld</name>

        <description>
            A sample Apache Cordova application that responds to the
deviceready <http://cordova.apache.org/docs/en/3.4.0/cordova_events_events.md.html#deviceready>
event.
        </description>
        <author email="dev@callback.apache.org" href="http://cordova.io">
            Apache Cordova Team
        </author>
        <content src="index.html" />
        <access origin="*" />
</widget>

is "illegal".

Thanks
Axel






2014-04-03 13:03 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:

> OK, great. I saw cdv:platform within the pull request [1] so I wanted to
> confirm that wasn't the direction that was decided on.
>
> The platform element [2] has been in for a while. There was a discussion
> about it on the list a few weeks ago. It's being used to prevent config
> from being copied into the platform config.xml files.
>
> BlackBerry10 supports the widget icon element in its platform config.xml
> file. With the change as it is right now, it will actually break the build
> process because it won't find those icons.
>
> Recommended sizes are 114x114 and 94x94, but the platform will accept other
> sizes and picks the best icon based on the device. So I suppose the correct
> thing to do is copy only those sizes if specified, otherwise copy the
> closest match. The rest of the entries need to be filtered out.
>
> I'll try to get something up later today.
>
> [1] https://github.com/apache/cordova-cli/pull/126/files
> [2]
>
> https://github.com/apache/cordova-cli/commit/45e80ac1b2c73a18155e74ac286067a4299742d8#diff-6e0c580ec9d220fc4b32a0ffd9b41595R151
>
>
>
> On Thu, Apr 3, 2014 at 5:06 AM, Axel Nennker <ig...@gmail.com>
> wrote:
>
> > Bryan,
> > where is this "platform element support" implemented?
> > It is not in
> > https://github.com/apache/cordova-cli/blob/master/src/ConfigParser.js
> > right?
> >
> > Regarding "cdv:platform": No this is the opposite. There are other
> threads
> > in this mailing (search for CB-2606).
> > To summarize those:
> > All proposals that included new elements like "cdv:icon" or new
> attributes
> > for the icon element "cdv:platform" did not get broad support.
> > All proposals related to the gap prefix or namespaces did not get broad
> > support.
> > Dropping the w3c widget standard for config.xml was postponed to "later".
> > Hooks work but feel like a nailed on afterwards solution.
> >
> > So I came up with the proposal to select the icons be the width/height
> > attributes. This proposal does not cover all use case e.g.: If you want
> > different icons on different platforms then this will not work. but it is
> > simple
> >
> > The pro side:
> > - standard icon sizes seem to be quite distinct per platform.
> > - this proposal is already implemented for Android, FirefoxOS, WP8.
> Sergey
> > works on ios.
> > - it does not fiddle with xml stuff
> > - easy to implement and easy to understand by devs
> >
> > It is a shame that CB-2606 is unresolved this long. We should have
> > something rolled out soon.
> >
> > -axel
> >
> >
> >
> >
> > 2014-04-02 22:21 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
> >
> > > config.xml already supports a platform element for platform specific
> > config
> > >
> > > Is the proposal to also add an attribute cdv:platform which serves the
> > same
> > > purpose?
> > >
> > >
> > > On Wed, Apr 2, 2014 at 4:09 PM, Sergey Grebnov (Akvelon) <
> > > v-segreb@microsoft.com> wrote:
> > >
> > > > Hi,
> > > >
> > > > Have we agreed to proceed with explicit icons definition via
> config.xml
> > > > similar to PG Build[1]? -  If so I'm going to add iOS support and
> > update
> > > > our docs. So we will have support of iOS, Android,  FxOS, WP8 and
> > > Windows8.
> > > > Adding icons to a new platform will be easy, similar to [2]
> > > >
> > > > Some my thoughts: Adding explicit icon references to config.xml looks
> > > > redundant since in most cases developers will still use default icon
> > > names
> > > > following platform guides so we can just proceed with predefined
> folder
> > > > ('res' as an example) and documenting folder structure and icon names
> > for
> > > > different platforms. - Sort of 'merges' where we replace app
> resources
> > > > using some special logic. But it could be useful if we share same
> image
> > > > between platforms or reference the same image for different needs
> > inside
> > > > single platform.
> > > >
> > > > [1]
> > > >
> > >
> >
> http://docs.build.phonegap.com/en_US/3.3.0/configuring_icons_and_splash.md.html#Icons%20and%20Splash%20Screens
> > > > [2]
> > > >
> > >
> >
> https://github.com/apache/cordova-cli/pull/126/files#diff-45a2a0f22289a5eb91348499a5053cd8R170
> > > >
> > > > Thx!
> > > > Sergey
> > > > -----Original Message-----
> > > > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > > > Sent: Thursday, March 13, 2014 5:05 PM
> > > > To: dev
> > > > Subject: RE: cordova launcher icon support
> > > > https://github.com/apache/cordova-cli/pull/126
> > > >
> > > > Please fork https://github.com/AxelNennker/cordova-cli and send a PR
> > for
> > > > wp.
> > > > Thanks
> > > > Axel
> > > >  Am 13.03.2014 13:18 schrieb "Sergey Grebnov (Akvelon)" <
> > > > v-segreb@microsoft.com>:
> > > >
> > > > > Hi
> > > > > 1.  It seems pull request does not contain related changes for
> > > > > windows8 and wp8. I may help here if nobody has already started
> > > > > working in this direction.
> > > > > 2. I also can't replace default splash screen image following
> > > > > instructions below. It seems to be PhoneGap Build specific, isn't
> it?
> > > > > Do we support changing splash screen as part of cordova-cli?
> > > > >
> > > > >
> > http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#Icon
> > > > > s%20and%20Splash%20Screens
> > > > >
> > > > > Thx!
> > > > > Sergey
> > > > > -----Original Message-----
> > > > > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > > > > Sent: Saturday, February 22, 2014 1:44 AM
> > > > > To: dev
> > > > > Subject: Re: cordova launcher icon support
> > > > > https://github.com/apache/cordova-cli/pull/126
> > > > >
> > > > > there is a pull request that implements this gap: prefix and
> phonegap
> > > > > namespace stuff but this is Cordova and we have cdv: as prefix and
> > > > > another
> > > > > namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
> > > > > Looks like config.json adapted by both projects is a way out.
> > > > >
> > > > >
> > > > > 2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:
> > > > >
> > > > > > Icons are a drag. Explicit configuration sucks, but is the way to
> > go.
> > > > > >
> > > > > > It would be nice if the Cordova solution was compatible with
> > > > > > PhoneGap Build icons<
> > > > > >
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > > > > > as h.md.html#Icons%20and%20Splash%20Screens
> > > > > > >
> > > > > > .
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker
> > > > > > <ignisvulpis@gmail.com
> > > > > > >wrote:
> > > > > >
> > > > > > > What is your favorite explicit configuration?
> > > > > > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> > > > > > >
> > > > > > > > As much as I'd like a single icon source I do not think it is
> > > > > > > > the right path. To do this right I think we need to audit all
> > > > > > > > possible icons for
> > > > > > > each
> > > > > > > > platform and create a map to analyze what could be distilled
> > > > > > > > across platforms.
> > > > > > > >
> > > > > > > > Ideally we'd accept a vector format (SVG) and generate all
> > these
> > > > > > > ridiculous
> > > > > > > > sizes but designers will not like this. Pixel perfection,
> > > > > > > > especially
> > > > > > for
> > > > > > > a
> > > > > > > > springboard icon, is paramount. The only way we're getting
> > there
> > > > > > > > safely
> > > > > > > is
> > > > > > > > zero magic and explicit configuration.
> > > > > > > >
> > > > > > > > Lame, I know.
> > > > > > > >
> > > > > > > >
> > > > > > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker
> > > > > > > > <ig...@gmail.com>
> > > > > > > > wrote:
> > > > > > > >
> > > > > > > > > How about this strategy:
> > > > > > > > >
> > > > > > > > > project_dir/config.xml
> > > > > > > > > - no new elements in config.xml like cdv:icon
> > > > > > > > > - no new attributes in icon element in config.xml like
> > > > > > > > > cdv:platform
> > > > > > or
> > > > > > > > > gap:platform
> > > > > > > > > - do not invent stuff we have to support for the rest of
> our
> > > > life.
> > > > > > > > >
> > > > > > > > > On all platforms:
> > > > > > > > > - if config.xml contains a <icon src="whatever.png"/>
> without
> > > > > > > > > any attributes like width and heigth, then copy that src to
> > to
> > > > > > > > > all
> > > > > > platform
> > > > > > > > > specific  locations where that platform expects launcher
> > icons
> > > > > > > > > and
> > > > > > > update
> > > > > > > > > config files like manifest.webapp on FirefoxOS if there
> isn't
> > > > > > > > > a
> > > > > > > specific
> > > > > > > > > icon element for that location (see later).
> > > > > > > > > - no downscaling of icons to lower sizes
> > > > > > > > > - no upscaling of icons to higher sizes
> > > > > > > > > - do not add dependencies to new node modules (e.g. to
> parse
> > > > > > > > > icon
> > > > > > > files)
> > > > > > > > >
> > > > > > > > > On Android:
> > > > > > > > > I) if there is a specific  <icon src="icon.png" width="48"
> />
> > > > > > > > > then
> > > > > > copy
> > > > > > > > > that icon.png to res/drawable-mdpi (height is ignored if
> > width
> > > > > > > > > is
> > > > > > > > present,
> > > > > > > > > no check for non-sqare icons)
> > > > > > > > > II) Other sizes are handled according to this list from:
> > > > > > > > >
> > http://developer.android.com/guide/practices/screens_support.h
> > > > > > > > > tm
> > > > > > > > > l
> > > > > > > > >
> > > > > > > > >    - 36x36 for low-density
> > > > > > > > >    - 48x48 for medium-density
> > > > > > > > >    - 72x72 for high-density
> > > > > > > > >    - 96x96 for extra high-density
> > > > > > > > >
> > > > > > > > > Directories not matching this algorithm that have names
> > > > > > > > > starting with res/drawable get the biggest icon if no
> default
> > > > > > > > > icon is available
> > > > > > (I).
> > > > > > > > > III) icons with width or height other than the ones
> mentioned
> > > > > > > > > here
> > > > > > are
> > > > > > > > > ignored.
> > > > > > > > >
> > > > > > > > > On FirefoxOS:
> > > > > > > > > See
> > > > > >
> https://developer.mozilla.org/en-US/Apps/Developing/Manifest#icons
> > > > > > > > >
> > > > > > > > > For Firefox OS, icons should follow the app icon
> guidelines<
> > > > > > > > >
> > https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > > > > > co
> > > > > > > > > ns/
> > > > > > >,
> > > > > > > > > they should not have a drop shadow, and they should be in
> the
> > > > > > following
> > > > > > > > > sizes:
> > > > > > > > >  128 x 128 For display on the Firefox Marketplace 60 x 60
> For
> > > > > > > > > the
> > > > > > > actual
> > > > > > > > > on-device icon; only the 128px icon is mandatory, but it is
> > > > > > recommended
> > > > > > > > to
> > > > > > > > > include this size as well for optimal device icon display
> > > > > > > > >
> > https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > > > > > co
> > > > > > > > > ns/
> > > > > > > > >
> > > > > > > > > I) ignore icon elements in config.xml without width or
> height
> > > > > > > attributes
> > > > > > > > > II) copy all icons mentioned in config.xml with width  or
> > > > > > > > > height
> > > > > > equal
> > > > > > > to
> > > > > > > > > 60 or 128 to the app's root and create an icon section in
> > > > > > > manifest.webapp
> > > > > > > > > that matches these icons.
> > > > > > > > > III) if no icon is specified for width/height 60 or 128
> then
> > > > > > > > > copy
> > > > > > each
> > > > > > > > icon
> > > > > > > > > mentioned in config.xml that has width or height specified.
> > > > > > > > >
> > > > > > > > > On other platforms:
> > > > > > > > > some strategy matching the ones for Android and FirefoxOS.
> If
> > > > > > > > > a size
> > > > > > is
> > > > > > > > > there that is typical for that platform (72,144 for ios)
> then
> > > > > > > > > us only
> > > > > > > > those
> > > > > > > > > matching icons. Try to help developers.
> > > > > > > > >
> > > > > > > > > -Axel
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker <
> > ignisvulpis@gmail.com
> > > >:
> > > > > > > > >
> > > > > > > > > > The topic is reaching politics status...
> > > > > > > > > >
> > > > > > > > > > I think it is worth some effort to keep phonegap and
> > cordova
> > > > > > aligned.
> > > > > > > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > > > > > > >
> > > > > > > > > > -Axel
> > > > > > > > > >
> > > > > > > > > > Regarding which PR to accept: I want support for launcher
> > > > > > > > > > icons
> > > > > > and I
> > > > > > > > do
> > > > > > > > > > not care whether my PR is accepted or the other one.
> > > > > > > > > > Actually I do not understand why CB-2606 is open for so
> > long.
> > > > > > > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > 2014-02-12 23:33 GMT+01:00 Jesse <
> purplecabbage@gmail.com
> > >:
> > > > > > > > > >
> > > > > > > > > > Part of what you are seeing is the phonegap namespace
> > > > > > > > > > extensions
> > > > > > that
> > > > > > > > are
> > > > > > > > > >> added for build.phonegap.com and the online tools. [1]
> > [2]
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > > >> [1]
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md.htm
> > > > > > l#
> > > > > > The%20Basics
> > > > > > > > > >> [2]
> > > > > > > > >
> > > > > >
> > https://github.com/phonegap/phonegap-start/blob/master/www/config.xm
> > > > > > l
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > > >> @purplecabbage
> > > > > > > > > >> risingj.com
> > > > > > > > > >>
> > > > > > > > > >>
> > > > > > > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > > > > > > agrieve@chromium.org>
> > > > > > > > > >> wrote:
> > > > > > > > > >>
> > > > > > > > > >> > Just started a new thread to propose removing the
> > > namespace.
> > > > > > > > > >> >
> > > > > > > > > >> > Don't the we should use "gap:density", since that's
> > > > > > > > > >> > pretty
> > > > > > > > PhoneGap-y
> > > > > > > > > as
> > > > > > > > > >> > opposed to Cordova-y.
> > > > > > > > > >> >
> > > > > > > > > >> > How about we have "size" and "density" attributes that
> > > > > > > > > >> > are just
> > > > > > > > > >> synonyms?
> > > > > > > > > >> >
> > > > > > > > > >> > Off for the day.
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> >
> > > > > > > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > > > > > > ignisvulpis@gmail.com>
> > > > > > > > > >> > wrote:
> > > > > > > > > >> >
> > > > > > > > > >> > > Hm. I guess the id test is historical stuff. It is
> > > > > > > > > >> > > legal XML
> > > > > > and
> > > > > > > > the
> > > > > > > > > >> > parser
> > > > > > > > > >> > > ignores it.
> > > > > > > > > >> > >
> > > > > > > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure
> I
> > > > > > > > > >> > > did not invent cdv myself.
> > > > > > > > > >> > >
> > > > > > > > > >> > > Regarding the w3c widget standard: I am OK with
> > ditching
> > > > it.
> > > > > > > > Should
> > > > > > > > > >> there
> > > > > > > > > >> > > be a poll or how do you handle such things?
> > > > > > > > > >> > > All app templates should remove namespaces then,
> > right?
> > > > > > > > > >> > >
> > > > > > > > > >> > > Isn't there another thread around namespaces
> breaking
> > > > > > > > > >> > > the wp
> > > > > > > > > platform?
> > > > > > > > > >> > >
> > > > > > > > > >> > > Anyway, I think we should follow the phonegap  way
> > with
> > > > > > > > > >> > > e.g
> > > > > > > > > >> gap:density
> > > > > > > > > >> > for
> > > > > > > > > >> > > now. And ditch namespaces later.
> > > > > > > > > >> > >
> > > > > > > > > >> > > Axel
> > > > > > > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > > > > > > agrieve@chromium.org
> > > > > > > > >:
> > > > > > > > > >> > >
> > > > > > > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux
> > > > > > > > > >> > > > <b...@brian.io>
> > > > > > > > wrote:
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > > Given we are the only 'widget spec' impl in use
> > > > > > > > > >> > > > > today I'm
> > > > > > ok
> > > > > > > > > with
> > > > > > > > > >> > > > diverging
> > > > > > > > > >> > > > > and not adding namespace confusion. Def want
> > config
> > > > > > > > > >> > > > > to be
> > > > > > > > > explicit
> > > > > > > > > >> > and
> > > > > > > > > >> > > > not
> > > > > > > > > >> > > > > have magical implicit mappings.
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker <
> > > > > > > > > >> > ignisvulpis@gmail.com
> > > > > > > > > >> > > > > >wrote:
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > > > - My implementation does not use "id". Don't
> > know
> > > > > > > > > >> > > > > > what
> > > > > > > this
> > > > > > > > or
> > > > > > > > > >> > might
> > > > > > > > > >> > > > > mean.
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > > Found it from your test in spec/test-config.xml
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > >  > - I do not want to discuss the sense of xml
> > > > > > > > > >> > > > > namespaces
> > > > > > in
> > > > > > > > > this
> > > > > > > > > >> > issue
> > > > > > > > > >> > > > if
> > > > > > > > > >> > > > > we
> > > > > > > > > >> > > > > > can avoid it. The current template config.xml
> > > > > > > > > >> > > > > > defines
> > > > > > two
> > > > > > > > > >> > namespaces
> > > > > > > > > >> > > > and
> > > > > > > > > >> > > > > > for this issue's implementation I do not want
> to
> > > > > > > > > >> > > > > > change
> > > > > > > > that.
> > > > > > > > > >> So I
> > > > > > > > > >> > > > would
> > > > > > > > > >> > > > > > not drop the widget namespace and would not
> > > > > > > > > >> > > > > > support "platform"-without-prefix.
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > Having gap:platform there makes the property seem
> > > > > > > > > >> > > > like an
> > > > > > > > > >> second-class
> > > > > > > > > >> > > > maybe-not-supposed-to-be-there kind of attribute
> to
> > > me.
> > > > > > > > > >> > > > I'd be happy to change the default template to not
> > > > > > > > > >> > > > reference
> > > > > > > the
> > > > > > > > > >> widget
> > > > > > > > > >> > > > spec and to make cordova's the default namespace
> if
> > > > > > > > > >> > > > that
> > > > > > will
> > > > > > > > make
> > > > > > > > > >> your
> > > > > > > > > >> > > > inner XML validator rest at-ease, but I really
> feel
> > > > > > > > > >> > > > strongly
> > > > > > > > > against
> > > > > > > > > >> > > having
> > > > > > > > > >> > > > XML namespaces creep in. I don't think that most
> > devs
> > > > > > > > > >> > > > know
> > > > > > > what
> > > > > > > > > they
> > > > > > > > > >> > do,
> > > > > > > > > >> > > > and our tools wouldn't support you changing the
> gap:
> > > > > > namespace
> > > > > > > > > >> prefix.
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > > > - I would follow the phonegap example
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > > > > > as h.md.html#Icons%20and%20Splash%20Screens
> > > > > > > > > >> > > > > > that defines e.g. "
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > <icon src="icons/android/ldpi.png"
> > > > > > gap:platform="android"
> > > > > > > > > >> > > > > > gap:density="ldpi" />
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > " and I would like to don't parse the icon
> file
> > > > > > > > > >> > > > > > to infer
> > > > > > > > > >> > parameters.
> > > > > > > > > >> > > > > > Developers want need icons for their app on
> all
> > > > > > platforms
> > > > > > > > they
> > > > > > > > > >> > > support.
> > > > > > > > > >> > > > > So
> > > > > > > > > >> > > > > > they will create all of them in all polished
> > > > > > > > > >> > > > > > sizes and
> > > > > > > > > >> densities.
> > > > > > > > > >> > > > > > My Android implementation puts icons without
> > > > > > > > > >> > > > > > cdv:density
> > > > > > > > into
> > > > > > > > > >> > > > > > "drawable/icon.png" regardless of
> width/height.
> > > > > > > > > >> > > > > > What behaviour would you suggest when both
> lines
> > > > > > > > > >> > > > > > are
> > > > > > > present
> > > > > > > > > in
> > > > > > > > > >> one
> > > > > > > > > >> > > > > > config.xml
> > > > > > > > > >> > > > > > <icon src="icon48.png" width="48"
> > > > > cdv:platform="android"
> > > > > > > />
> > > > > > > > //
> > > > > > > > > >> > would
> > > > > > > > > >> > > > end
> > > > > > > > > >> > > > > up
> > > > > > > > > >> > > > > > in drawable-mdpi by your suggestion <icon
> > > > > > > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > > > > > > >> cdv:platform="android"
> > > > > > > > > >> > > />
> > > > > > > > > >> > > > //
> > > > > > > > > >> > > > > > would end up in drawable-mdpi too
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > My thinking here was that density says the same
> > thing
> > > > > > > > > >> > > > as
> > > > > > size,
> > > > > > > > so
> > > > > > > > > I
> > > > > > > > > >> > would
> > > > > > > > > >> > > > just not support density (or make size="mdpi" an
> > > > > > > > > >> > > > alias for
> > > > > > > > > >> size="48").
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > I think that developers know what is the
> > > > > "platform-way"
> > > > > > > for
> > > > > > > > > each
> > > > > > > > > >> > > > > platform.
> > > > > > > > > >> > > > > > On Android the usual way is to specify
> > densities.
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > - I would not use "size" because that is not
> w3c
> > > > > > > > > >> > > > > > widget
> > > > > > > > style.
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > -- Axel
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > > > > > > agrieve@chromium.org
> > > > > > > > > >> >:
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > > Would love to move this along. Would like to
> > > > > > > > > >> > > > > > > get
> > > > > > buy-in
> > > > > > > > from
> > > > > > > > > >> > others
> > > > > > > > > >> > > > > > > first though.
> > > > > > > > > >> > > > > > >
> > > > > > > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > > > > > > >> > > > > > >
> > > > > > > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > > > > > > >> > > > > > >     <icon id="logo" src="logo.png"
> width="255"
> > > > > > > > height="255"
> > > > > > > > > />
> > > > > > > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > > > > > > height="255"
> > > > > > > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi" />
> > > > > > > > > >> > > > > > >
> > > > > > > > > >> > > > > > > My feedback:
> > > > > > > > > >> > > > > > > - What is "id" for?
> > > > > > > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we
> > > > > > > > > >> > > > > > > should
> > > > > > also
> > > > > > > > > >> support
> > > > > > > > > >> > > just
> > > > > > > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > > > > > > >> > > http://www.w3.org/ns/widgets
> > > > > > > > > >> > > > "
> > > > > > > > > >> > > > > > > from the file.
> > > > > > > > > >> > > > > > > - I don't think there are any platforms that
> > > > > > > > > >> > > > > > > support
> > > > > > > > > >> non-square
> > > > > > > > > >> > > > icons.
> > > > > > > > > >> > > > > > > I think size="###" would be better than
> width=
> > > > > > > > > >> > > > > > > &&
> > > > > > > height=
> > > > > > > > > >> > > > > > > - What happens if you don't specify a size?
> Do
> > > > > > > > > >> > > > > > > we
> > > > > > sniff
> > > > > > > it
> > > > > > > > > >> from
> > > > > > > > > >> > the
> > > > > > > > > >> > > > > > > png header? This might be nice as a
> follow-up,
> > > > > > > > > >> > > > > > > but I'd
> > > > > > > > lean
> > > > > > > > > >> > towards
> > > > > > > > > >> > > > > > > making it required for the first cut.
> > > > > > > > > >> > > > > > > - cdv:density seems redundant with respect
> to
> > > > size.
> > > > > > > Icons
> > > > > > > > on
> > > > > > > > > >> > > android
> > > > > > > > > >> > > > > > > are 46px at mdpi, so the size can be used to
> > > > > > > > > >> > > > > > > derive
> > > > > > the
> > > > > > > > > >> density.
> > > > > > > > > >> > > > > > >
> > > > > > > > > >> > > > > > >
> > > > > > > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew
> > Grieve
> > > > > > > > > >> > > > > > > <
> > > > > > > > > >> > > > agrieve@chromium.org>
> > > > > > > > > >> > > > > > > wrote:
> > > > > > > > > >> > > > > > > > He Axel, thanks for spearheading this.
> Will
> > > > > > > > > >> > > > > > > > have a
> > > > > > > look
> > > > > > > > > >> > shortly.
> > > > > > > > > >> > > > > > > >
> > > > > > > > > >> > > > > > > >
> > > > > > > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel
> > Nennker
> > > > > > > > > >> > > > > > > > <
> > > > > > > > > >> > > > ignisvulpis@gmail.com
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > > > > wrote:
> > > > > > > > > >> > > > > > > >>
> > > > > > > > > >> > > > > > > >> Andrew,
> > > > > > > > > >> > > > > > > >>
> > > > > > > > > >> > > > > > > >> any comments to the current
> implementation?
> > > > > > > > > >> > > > > > > >>
> > https://github.com/apache/cordova-cli/pull/1
> > > > > > > > > >> > > > > > > >> 26
> > > > > > > > > >> > > > > > > >>
> > > > > > > > > >> > > > > > > >> Joe commented that the new class in
> > > > > > config_parser.js
> > > > > > > > > named
> > > > > > > > > >> > > "icon"
> > > > > > > > > >> > > > > > should
> > > > > > > > > >> > > > > > > >> be named "Icon" but I left it as is
> because
> > > > > > > > > >> > > > > > > >> the
> > > > > > other
> > > > > > > > > >> classes
> > > > > > > > > >> > > are
> > > > > > > > > >> > > > > > > lowercase
> > > > > > > > > >> > > > > > > >> too.
> > > > > > > > > >> > > > > > > >> There was another comment that namespaces
> > in
> > > > > > > config.xml
> > > > > > > > > >> > > attributes
> > > > > > > > > >> > > > > are
> > > > > > > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > > > > > > >> > > > > > > >> I think that we should use the cordava
> > > > > > > > > >> > > > > > > >> namespace if
> > > > > > > > > >> config.xml
> > > > > > > > > >> > > > > > deviates
> > > > > > > > > >> > > > > > > >> from the W3C widget definition.
> > > > > > > > > >> > > > > > > >> These two are the only comments I got.
> > > > > > > > > >> > > > > > > >>
> > > > > > > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > > > > > > >> > > > > > > >>
> > > > > > > > > >> > > > > > > >> Any chance to accept the request (at
> least
> > > > > > > > > >> > > > > > > >> the
> > > > > > > Android
> > > > > > > > > >> part)?
> > > > > > > > > >> > > > > > > >>
> > > > > > > > > >> > > > > > > >> -Axel
> > > > > > > > > >> > > > > > > >>
> > > > > > > > > >> > > > > > > >
> > > > > > > > > >> > > > > > >
> > > > > > > > > >> > > > > >
> > > > > > > > > >> > > > >
> > > > > > > > > >> > > >
> > > > > > > > > >> > >
> > > > > > > > > >> >
> > > > > > > > > >>
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Bryan Higgins <br...@bryanhiggins.net>.
OK, great. I saw cdv:platform within the pull request [1] so I wanted to
confirm that wasn't the direction that was decided on.

The platform element [2] has been in for a while. There was a discussion
about it on the list a few weeks ago. It's being used to prevent config
from being copied into the platform config.xml files.

BlackBerry10 supports the widget icon element in its platform config.xml
file. With the change as it is right now, it will actually break the build
process because it won't find those icons.

Recommended sizes are 114x114 and 94x94, but the platform will accept other
sizes and picks the best icon based on the device. So I suppose the correct
thing to do is copy only those sizes if specified, otherwise copy the
closest match. The rest of the entries need to be filtered out.

I'll try to get something up later today.

[1] https://github.com/apache/cordova-cli/pull/126/files
[2]
https://github.com/apache/cordova-cli/commit/45e80ac1b2c73a18155e74ac286067a4299742d8#diff-6e0c580ec9d220fc4b32a0ffd9b41595R151



On Thu, Apr 3, 2014 at 5:06 AM, Axel Nennker <ig...@gmail.com> wrote:

> Bryan,
> where is this "platform element support" implemented?
> It is not in
> https://github.com/apache/cordova-cli/blob/master/src/ConfigParser.js
> right?
>
> Regarding "cdv:platform": No this is the opposite. There are other threads
> in this mailing (search for CB-2606).
> To summarize those:
> All proposals that included new elements like "cdv:icon" or new attributes
> for the icon element "cdv:platform" did not get broad support.
> All proposals related to the gap prefix or namespaces did not get broad
> support.
> Dropping the w3c widget standard for config.xml was postponed to "later".
> Hooks work but feel like a nailed on afterwards solution.
>
> So I came up with the proposal to select the icons be the width/height
> attributes. This proposal does not cover all use case e.g.: If you want
> different icons on different platforms then this will not work. but it is
> simple
>
> The pro side:
> - standard icon sizes seem to be quite distinct per platform.
> - this proposal is already implemented for Android, FirefoxOS, WP8. Sergey
> works on ios.
> - it does not fiddle with xml stuff
> - easy to implement and easy to understand by devs
>
> It is a shame that CB-2606 is unresolved this long. We should have
> something rolled out soon.
>
> -axel
>
>
>
>
> 2014-04-02 22:21 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
>
> > config.xml already supports a platform element for platform specific
> config
> >
> > Is the proposal to also add an attribute cdv:platform which serves the
> same
> > purpose?
> >
> >
> > On Wed, Apr 2, 2014 at 4:09 PM, Sergey Grebnov (Akvelon) <
> > v-segreb@microsoft.com> wrote:
> >
> > > Hi,
> > >
> > > Have we agreed to proceed with explicit icons definition via config.xml
> > > similar to PG Build[1]? -  If so I'm going to add iOS support and
> update
> > > our docs. So we will have support of iOS, Android,  FxOS, WP8 and
> > Windows8.
> > > Adding icons to a new platform will be easy, similar to [2]
> > >
> > > Some my thoughts: Adding explicit icon references to config.xml looks
> > > redundant since in most cases developers will still use default icon
> > names
> > > following platform guides so we can just proceed with predefined folder
> > > ('res' as an example) and documenting folder structure and icon names
> for
> > > different platforms. - Sort of 'merges' where we replace app resources
> > > using some special logic. But it could be useful if we share same image
> > > between platforms or reference the same image for different needs
> inside
> > > single platform.
> > >
> > > [1]
> > >
> >
> http://docs.build.phonegap.com/en_US/3.3.0/configuring_icons_and_splash.md.html#Icons%20and%20Splash%20Screens
> > > [2]
> > >
> >
> https://github.com/apache/cordova-cli/pull/126/files#diff-45a2a0f22289a5eb91348499a5053cd8R170
> > >
> > > Thx!
> > > Sergey
> > > -----Original Message-----
> > > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > > Sent: Thursday, March 13, 2014 5:05 PM
> > > To: dev
> > > Subject: RE: cordova launcher icon support
> > > https://github.com/apache/cordova-cli/pull/126
> > >
> > > Please fork https://github.com/AxelNennker/cordova-cli and send a PR
> for
> > > wp.
> > > Thanks
> > > Axel
> > >  Am 13.03.2014 13:18 schrieb "Sergey Grebnov (Akvelon)" <
> > > v-segreb@microsoft.com>:
> > >
> > > > Hi
> > > > 1.  It seems pull request does not contain related changes for
> > > > windows8 and wp8. I may help here if nobody has already started
> > > > working in this direction.
> > > > 2. I also can't replace default splash screen image following
> > > > instructions below. It seems to be PhoneGap Build specific, isn't it?
> > > > Do we support changing splash screen as part of cordova-cli?
> > > >
> > > >
> http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#Icon
> > > > s%20and%20Splash%20Screens
> > > >
> > > > Thx!
> > > > Sergey
> > > > -----Original Message-----
> > > > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > > > Sent: Saturday, February 22, 2014 1:44 AM
> > > > To: dev
> > > > Subject: Re: cordova launcher icon support
> > > > https://github.com/apache/cordova-cli/pull/126
> > > >
> > > > there is a pull request that implements this gap: prefix and phonegap
> > > > namespace stuff but this is Cordova and we have cdv: as prefix and
> > > > another
> > > > namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
> > > > Looks like config.json adapted by both projects is a way out.
> > > >
> > > >
> > > > 2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:
> > > >
> > > > > Icons are a drag. Explicit configuration sucks, but is the way to
> go.
> > > > >
> > > > > It would be nice if the Cordova solution was compatible with
> > > > > PhoneGap Build icons<
> > > > >
> http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > > > > as h.md.html#Icons%20and%20Splash%20Screens
> > > > > >
> > > > > .
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker
> > > > > <ignisvulpis@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > What is your favorite explicit configuration?
> > > > > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> > > > > >
> > > > > > > As much as I'd like a single icon source I do not think it is
> > > > > > > the right path. To do this right I think we need to audit all
> > > > > > > possible icons for
> > > > > > each
> > > > > > > platform and create a map to analyze what could be distilled
> > > > > > > across platforms.
> > > > > > >
> > > > > > > Ideally we'd accept a vector format (SVG) and generate all
> these
> > > > > > ridiculous
> > > > > > > sizes but designers will not like this. Pixel perfection,
> > > > > > > especially
> > > > > for
> > > > > > a
> > > > > > > springboard icon, is paramount. The only way we're getting
> there
> > > > > > > safely
> > > > > > is
> > > > > > > zero magic and explicit configuration.
> > > > > > >
> > > > > > > Lame, I know.
> > > > > > >
> > > > > > >
> > > > > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker
> > > > > > > <ig...@gmail.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > How about this strategy:
> > > > > > > >
> > > > > > > > project_dir/config.xml
> > > > > > > > - no new elements in config.xml like cdv:icon
> > > > > > > > - no new attributes in icon element in config.xml like
> > > > > > > > cdv:platform
> > > > > or
> > > > > > > > gap:platform
> > > > > > > > - do not invent stuff we have to support for the rest of our
> > > life.
> > > > > > > >
> > > > > > > > On all platforms:
> > > > > > > > - if config.xml contains a <icon src="whatever.png"/> without
> > > > > > > > any attributes like width and heigth, then copy that src to
> to
> > > > > > > > all
> > > > > platform
> > > > > > > > specific  locations where that platform expects launcher
> icons
> > > > > > > > and
> > > > > > update
> > > > > > > > config files like manifest.webapp on FirefoxOS if there isn't
> > > > > > > > a
> > > > > > specific
> > > > > > > > icon element for that location (see later).
> > > > > > > > - no downscaling of icons to lower sizes
> > > > > > > > - no upscaling of icons to higher sizes
> > > > > > > > - do not add dependencies to new node modules (e.g. to parse
> > > > > > > > icon
> > > > > > files)
> > > > > > > >
> > > > > > > > On Android:
> > > > > > > > I) if there is a specific  <icon src="icon.png" width="48" />
> > > > > > > > then
> > > > > copy
> > > > > > > > that icon.png to res/drawable-mdpi (height is ignored if
> width
> > > > > > > > is
> > > > > > > present,
> > > > > > > > no check for non-sqare icons)
> > > > > > > > II) Other sizes are handled according to this list from:
> > > > > > > >
> http://developer.android.com/guide/practices/screens_support.h
> > > > > > > > tm
> > > > > > > > l
> > > > > > > >
> > > > > > > >    - 36x36 for low-density
> > > > > > > >    - 48x48 for medium-density
> > > > > > > >    - 72x72 for high-density
> > > > > > > >    - 96x96 for extra high-density
> > > > > > > >
> > > > > > > > Directories not matching this algorithm that have names
> > > > > > > > starting with res/drawable get the biggest icon if no default
> > > > > > > > icon is available
> > > > > (I).
> > > > > > > > III) icons with width or height other than the ones mentioned
> > > > > > > > here
> > > > > are
> > > > > > > > ignored.
> > > > > > > >
> > > > > > > > On FirefoxOS:
> > > > > > > > See
> > > > > https://developer.mozilla.org/en-US/Apps/Developing/Manifest#icons
> > > > > > > >
> > > > > > > > For Firefox OS, icons should follow the app icon guidelines<
> > > > > > > >
> https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > > > > co
> > > > > > > > ns/
> > > > > >,
> > > > > > > > they should not have a drop shadow, and they should be in the
> > > > > following
> > > > > > > > sizes:
> > > > > > > >  128 x 128 For display on the Firefox Marketplace 60 x 60 For
> > > > > > > > the
> > > > > > actual
> > > > > > > > on-device icon; only the 128px icon is mandatory, but it is
> > > > > recommended
> > > > > > > to
> > > > > > > > include this size as well for optimal device icon display
> > > > > > > >
> https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > > > > co
> > > > > > > > ns/
> > > > > > > >
> > > > > > > > I) ignore icon elements in config.xml without width or height
> > > > > > attributes
> > > > > > > > II) copy all icons mentioned in config.xml with width  or
> > > > > > > > height
> > > > > equal
> > > > > > to
> > > > > > > > 60 or 128 to the app's root and create an icon section in
> > > > > > manifest.webapp
> > > > > > > > that matches these icons.
> > > > > > > > III) if no icon is specified for width/height 60 or 128 then
> > > > > > > > copy
> > > > > each
> > > > > > > icon
> > > > > > > > mentioned in config.xml that has width or height specified.
> > > > > > > >
> > > > > > > > On other platforms:
> > > > > > > > some strategy matching the ones for Android and FirefoxOS. If
> > > > > > > > a size
> > > > > is
> > > > > > > > there that is typical for that platform (72,144 for ios) then
> > > > > > > > us only
> > > > > > > those
> > > > > > > > matching icons. Try to help developers.
> > > > > > > >
> > > > > > > > -Axel
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker <
> ignisvulpis@gmail.com
> > >:
> > > > > > > >
> > > > > > > > > The topic is reaching politics status...
> > > > > > > > >
> > > > > > > > > I think it is worth some effort to keep phonegap and
> cordova
> > > > > aligned.
> > > > > > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > > > > > >
> > > > > > > > > -Axel
> > > > > > > > >
> > > > > > > > > Regarding which PR to accept: I want support for launcher
> > > > > > > > > icons
> > > > > and I
> > > > > > > do
> > > > > > > > > not care whether my PR is accepted or the other one.
> > > > > > > > > Actually I do not understand why CB-2606 is open for so
> long.
> > > > > > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > 2014-02-12 23:33 GMT+01:00 Jesse <purplecabbage@gmail.com
> >:
> > > > > > > > >
> > > > > > > > > Part of what you are seeing is the phonegap namespace
> > > > > > > > > extensions
> > > > > that
> > > > > > > are
> > > > > > > > >> added for build.phonegap.com and the online tools. [1]
> [2]
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> [1]
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md.htm
> > > > > l#
> > > > > The%20Basics
> > > > > > > > >> [2]
> > > > > > > >
> > > > >
> https://github.com/phonegap/phonegap-start/blob/master/www/config.xm
> > > > > l
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> @purplecabbage
> > > > > > > > >> risingj.com
> > > > > > > > >>
> > > > > > > > >>
> > > > > > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > > > > > agrieve@chromium.org>
> > > > > > > > >> wrote:
> > > > > > > > >>
> > > > > > > > >> > Just started a new thread to propose removing the
> > namespace.
> > > > > > > > >> >
> > > > > > > > >> > Don't the we should use "gap:density", since that's
> > > > > > > > >> > pretty
> > > > > > > PhoneGap-y
> > > > > > > > as
> > > > > > > > >> > opposed to Cordova-y.
> > > > > > > > >> >
> > > > > > > > >> > How about we have "size" and "density" attributes that
> > > > > > > > >> > are just
> > > > > > > > >> synonyms?
> > > > > > > > >> >
> > > > > > > > >> > Off for the day.
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> >
> > > > > > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > > > > > ignisvulpis@gmail.com>
> > > > > > > > >> > wrote:
> > > > > > > > >> >
> > > > > > > > >> > > Hm. I guess the id test is historical stuff. It is
> > > > > > > > >> > > legal XML
> > > > > and
> > > > > > > the
> > > > > > > > >> > parser
> > > > > > > > >> > > ignores it.
> > > > > > > > >> > >
> > > > > > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure I
> > > > > > > > >> > > did not invent cdv myself.
> > > > > > > > >> > >
> > > > > > > > >> > > Regarding the w3c widget standard: I am OK with
> ditching
> > > it.
> > > > > > > Should
> > > > > > > > >> there
> > > > > > > > >> > > be a poll or how do you handle such things?
> > > > > > > > >> > > All app templates should remove namespaces then,
> right?
> > > > > > > > >> > >
> > > > > > > > >> > > Isn't there another thread around namespaces breaking
> > > > > > > > >> > > the wp
> > > > > > > > platform?
> > > > > > > > >> > >
> > > > > > > > >> > > Anyway, I think we should follow the phonegap  way
> with
> > > > > > > > >> > > e.g
> > > > > > > > >> gap:density
> > > > > > > > >> > for
> > > > > > > > >> > > now. And ditch namespaces later.
> > > > > > > > >> > >
> > > > > > > > >> > > Axel
> > > > > > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > > > > > agrieve@chromium.org
> > > > > > > >:
> > > > > > > > >> > >
> > > > > > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux
> > > > > > > > >> > > > <b...@brian.io>
> > > > > > > wrote:
> > > > > > > > >> > > >
> > > > > > > > >> > > > > Given we are the only 'widget spec' impl in use
> > > > > > > > >> > > > > today I'm
> > > > > ok
> > > > > > > > with
> > > > > > > > >> > > > diverging
> > > > > > > > >> > > > > and not adding namespace confusion. Def want
> config
> > > > > > > > >> > > > > to be
> > > > > > > > explicit
> > > > > > > > >> > and
> > > > > > > > >> > > > not
> > > > > > > > >> > > > > have magical implicit mappings.
> > > > > > > > >> > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker <
> > > > > > > > >> > ignisvulpis@gmail.com
> > > > > > > > >> > > > > >wrote:
> > > > > > > > >> > > > >
> > > > > > > > >> > > > > > - My implementation does not use "id". Don't
> know
> > > > > > > > >> > > > > > what
> > > > > > this
> > > > > > > or
> > > > > > > > >> > might
> > > > > > > > >> > > > > mean.
> > > > > > > > >> > > > >
> > > > > > > > >> > > > Found it from your test in spec/test-config.xml
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > >  > - I do not want to discuss the sense of xml
> > > > > > > > >> > > > > namespaces
> > > > > in
> > > > > > > > this
> > > > > > > > >> > issue
> > > > > > > > >> > > > if
> > > > > > > > >> > > > > we
> > > > > > > > >> > > > > > can avoid it. The current template config.xml
> > > > > > > > >> > > > > > defines
> > > > > two
> > > > > > > > >> > namespaces
> > > > > > > > >> > > > and
> > > > > > > > >> > > > > > for this issue's implementation I do not want to
> > > > > > > > >> > > > > > change
> > > > > > > that.
> > > > > > > > >> So I
> > > > > > > > >> > > > would
> > > > > > > > >> > > > > > not drop the widget namespace and would not
> > > > > > > > >> > > > > > support "platform"-without-prefix.
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > Having gap:platform there makes the property seem
> > > > > > > > >> > > > like an
> > > > > > > > >> second-class
> > > > > > > > >> > > > maybe-not-supposed-to-be-there kind of attribute to
> > me.
> > > > > > > > >> > > > I'd be happy to change the default template to not
> > > > > > > > >> > > > reference
> > > > > > the
> > > > > > > > >> widget
> > > > > > > > >> > > > spec and to make cordova's the default namespace if
> > > > > > > > >> > > > that
> > > > > will
> > > > > > > make
> > > > > > > > >> your
> > > > > > > > >> > > > inner XML validator rest at-ease, but I really feel
> > > > > > > > >> > > > strongly
> > > > > > > > against
> > > > > > > > >> > > having
> > > > > > > > >> > > > XML namespaces creep in. I don't think that most
> devs
> > > > > > > > >> > > > know
> > > > > > what
> > > > > > > > they
> > > > > > > > >> > do,
> > > > > > > > >> > > > and our tools wouldn't support you changing the gap:
> > > > > namespace
> > > > > > > > >> prefix.
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > > > - I would follow the phonegap example
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > > > > as h.md.html#Icons%20and%20Splash%20Screens
> > > > > > > > >> > > > > > that defines e.g. "
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > <icon src="icons/android/ldpi.png"
> > > > > gap:platform="android"
> > > > > > > > >> > > > > > gap:density="ldpi" />
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > " and I would like to don't parse the icon file
> > > > > > > > >> > > > > > to infer
> > > > > > > > >> > parameters.
> > > > > > > > >> > > > > > Developers want need icons for their app on all
> > > > > platforms
> > > > > > > they
> > > > > > > > >> > > support.
> > > > > > > > >> > > > > So
> > > > > > > > >> > > > > > they will create all of them in all polished
> > > > > > > > >> > > > > > sizes and
> > > > > > > > >> densities.
> > > > > > > > >> > > > > > My Android implementation puts icons without
> > > > > > > > >> > > > > > cdv:density
> > > > > > > into
> > > > > > > > >> > > > > > "drawable/icon.png" regardless of width/height.
> > > > > > > > >> > > > > > What behaviour would you suggest when both lines
> > > > > > > > >> > > > > > are
> > > > > > present
> > > > > > > > in
> > > > > > > > >> one
> > > > > > > > >> > > > > > config.xml
> > > > > > > > >> > > > > > <icon src="icon48.png" width="48"
> > > > cdv:platform="android"
> > > > > > />
> > > > > > > //
> > > > > > > > >> > would
> > > > > > > > >> > > > end
> > > > > > > > >> > > > > up
> > > > > > > > >> > > > > > in drawable-mdpi by your suggestion <icon
> > > > > > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > > > > > >> cdv:platform="android"
> > > > > > > > >> > > />
> > > > > > > > >> > > > //
> > > > > > > > >> > > > > > would end up in drawable-mdpi too
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > My thinking here was that density says the same
> thing
> > > > > > > > >> > > > as
> > > > > size,
> > > > > > > so
> > > > > > > > I
> > > > > > > > >> > would
> > > > > > > > >> > > > just not support density (or make size="mdpi" an
> > > > > > > > >> > > > alias for
> > > > > > > > >> size="48").
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > I think that developers know what is the
> > > > "platform-way"
> > > > > > for
> > > > > > > > each
> > > > > > > > >> > > > > platform.
> > > > > > > > >> > > > > > On Android the usual way is to specify
> densities.
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > - I would not use "size" because that is not w3c
> > > > > > > > >> > > > > > widget
> > > > > > > style.
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > -- Axel
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > > > > > agrieve@chromium.org
> > > > > > > > >> >:
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > > Would love to move this along. Would like to
> > > > > > > > >> > > > > > > get
> > > > > buy-in
> > > > > > > from
> > > > > > > > >> > others
> > > > > > > > >> > > > > > > first though.
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > > > > > >> > > > > > >     <icon id="logo" src="logo.png" width="255"
> > > > > > > height="255"
> > > > > > > > />
> > > > > > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > > > > > height="255"
> > > > > > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi" />
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > > My feedback:
> > > > > > > > >> > > > > > > - What is "id" for?
> > > > > > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we
> > > > > > > > >> > > > > > > should
> > > > > also
> > > > > > > > >> support
> > > > > > > > >> > > just
> > > > > > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > > > > > >> > > http://www.w3.org/ns/widgets
> > > > > > > > >> > > > "
> > > > > > > > >> > > > > > > from the file.
> > > > > > > > >> > > > > > > - I don't think there are any platforms that
> > > > > > > > >> > > > > > > support
> > > > > > > > >> non-square
> > > > > > > > >> > > > icons.
> > > > > > > > >> > > > > > > I think size="###" would be better than width=
> > > > > > > > >> > > > > > > &&
> > > > > > height=
> > > > > > > > >> > > > > > > - What happens if you don't specify a size? Do
> > > > > > > > >> > > > > > > we
> > > > > sniff
> > > > > > it
> > > > > > > > >> from
> > > > > > > > >> > the
> > > > > > > > >> > > > > > > png header? This might be nice as a follow-up,
> > > > > > > > >> > > > > > > but I'd
> > > > > > > lean
> > > > > > > > >> > towards
> > > > > > > > >> > > > > > > making it required for the first cut.
> > > > > > > > >> > > > > > > - cdv:density seems redundant with respect to
> > > size.
> > > > > > Icons
> > > > > > > on
> > > > > > > > >> > > android
> > > > > > > > >> > > > > > > are 46px at mdpi, so the size can be used to
> > > > > > > > >> > > > > > > derive
> > > > > the
> > > > > > > > >> density.
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew
> Grieve
> > > > > > > > >> > > > > > > <
> > > > > > > > >> > > > agrieve@chromium.org>
> > > > > > > > >> > > > > > > wrote:
> > > > > > > > >> > > > > > > > He Axel, thanks for spearheading this. Will
> > > > > > > > >> > > > > > > > have a
> > > > > > look
> > > > > > > > >> > shortly.
> > > > > > > > >> > > > > > > >
> > > > > > > > >> > > > > > > >
> > > > > > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel
> Nennker
> > > > > > > > >> > > > > > > > <
> > > > > > > > >> > > > ignisvulpis@gmail.com
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > > > > wrote:
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> Andrew,
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> any comments to the current implementation?
> > > > > > > > >> > > > > > > >>
> https://github.com/apache/cordova-cli/pull/1
> > > > > > > > >> > > > > > > >> 26
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> Joe commented that the new class in
> > > > > config_parser.js
> > > > > > > > named
> > > > > > > > >> > > "icon"
> > > > > > > > >> > > > > > should
> > > > > > > > >> > > > > > > >> be named "Icon" but I left it as is because
> > > > > > > > >> > > > > > > >> the
> > > > > other
> > > > > > > > >> classes
> > > > > > > > >> > > are
> > > > > > > > >> > > > > > > lowercase
> > > > > > > > >> > > > > > > >> too.
> > > > > > > > >> > > > > > > >> There was another comment that namespaces
> in
> > > > > > config.xml
> > > > > > > > >> > > attributes
> > > > > > > > >> > > > > are
> > > > > > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > > > > > >> > > > > > > >> I think that we should use the cordava
> > > > > > > > >> > > > > > > >> namespace if
> > > > > > > > >> config.xml
> > > > > > > > >> > > > > > deviates
> > > > > > > > >> > > > > > > >> from the W3C widget definition.
> > > > > > > > >> > > > > > > >> These two are the only comments I got.
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> Any chance to accept the request (at least
> > > > > > > > >> > > > > > > >> the
> > > > > > Android
> > > > > > > > >> part)?
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >> -Axel
> > > > > > > > >> > > > > > > >>
> > > > > > > > >> > > > > > > >
> > > > > > > > >> > > > > > >
> > > > > > > > >> > > > > >
> > > > > > > > >> > > > >
> > > > > > > > >> > > >
> > > > > > > > >> > >
> > > > > > > > >> >
> > > > > > > > >>
> > > > > > > > >
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Jonathan Bond-Caron <jb...@gdesolutions.com>.
On Thu Apr 3 09:20 AM, Bryan Higgins wrote:
> My point is only that we should be consistent. If the platform element is used for
> preference, then why introduce an attribute which does the same thing for icon?
> 
> Also, I've seen platform=, cdv:platform= and gap:platform= within the pull
> requests.
> 

Cordova is basically stuck in a Design by committee loop

On the positive side, there's many solutions :)


Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Andrew Grieve <ag...@chromium.org>.
Awesome, thanks Bryan!


On Thu, Apr 3, 2014 at 6:42 AM, Bryan Higgins <br...@bryanhiggins.net>wrote:

> I added this to edge when it came up on the list a few weeks ago.
>
>
> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff;f=docs/en/edge/config_ref/index.md;h=9c32672403f1ceffce4278aa7e1fa6add7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e4395905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7abb51
>
>
> On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve <ag...@chromium.org>
> wrote:
>
> > Feel pretty strongly that we shouldn't introduce gap: prefix. cdv: is bad
> > enough :(. I'm sure PG Build will accept whatever syntax we come up with.
> >
> > It's true that <platform> isn't documented (that I know of), but it's
> > consistent with plugin.xml and I think being able to put any elements in
> > there makes it quite flexible.
> >
> >
> > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins <bryan@bryanhiggins.net
> > >wrote:
> >
> > > My point is only that we should be consistent. If the platform element
> is
> > > used for preference, then why introduce an attribute which does the
> same
> > > thing for icon?
> > >
> > > Also, I've seen platform=, cdv:platform= and gap:platform= within the
> > pull
> > > requests.
> > >
> > >
> > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker <ig...@gmail.com>
> > > wrote:
> > >
> > > > Hi Jonathan,
> > > > considering how difficult is is to get this icon thing is I would
> like
> > to
> > > > postpone splash screen discussion after this is merged or rejected.
> > > > On the other hand there were discussions on this list about splash
> > screen
> > > > support/changes not so long ago. I did not join those because even
> this
> > > > very small icon thing - that does not even introduce new
> > > > elements/formats/whatnot that would require us to support it until
> hell
> > > > freezes - takes ages to get accepted.
> > > >
> > > > One thing regarding icon vs splash: I think that icon/launcher_icon
> is
> > > more
> > > > an OS thing while splash is more a app thing.
> > > >
> > > > cheers
> > > > Axel
> > > >
> > > >
> > > >
> > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
> > jbondc@gdesolutions.com
> > > >:
> > > >
> > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > > > > It is a shame that CB-2606 is unresolved this long. We should
> have
> > > > > something
> > > > > > rolled out soon.
> > > > > >
> > > > >
> > > > > +1, thoughts on splashscreens or other images?
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by "Sergey Grebnov (Akvelon)" <v-...@microsoft.com>.
Hi, 

Let's finally get this finalized:) It seems we have the following PR that contains all our changes and which is good to be merged. Axel kindly gave me a green light to create a new PR instead of original #126. 

https://github.com/apache/cordova-cli/pull/166 

We also have a docs update

https://github.com/apache/cordova-docs/pull/201/ 

Thx!
Sergey
-----Original Message-----
From: Bryan Higgins [mailto:bryan@bryanhiggins.net] 
Sent: Friday, April 4, 2014 7:48 AM
To: dev@cordova.apache.org
Subject: Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

You need to rebase your branch so the new commits appear after apache:master/HEAD


On Fri, Apr 4, 2014 at 10:39 AM, Axel Nennker <ig...@gmail.com> wrote:

> This is probably a stupid question but: "Why do I see so many changed 
> files here https://github.com/apache/cordova-cli/pull/126/files
> like Readme.md which I do not want in this pull request".
> I did a "get fetch upstream" from the original repo to my local repo 
> and pushed that back to my githup repo. I thought that this makes the 
> current PR smaller.
>
>
> 2014-04-04 16:00 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
>
> > Great, thanks Sergey!
> >
> > I commented on the pull request. It looks like this is almost ready 
> > to be merged.
> >
> > I'd urge any other platform maintainers to take a look / test this 
> > out ASAP.
> >
> >
> > On Thu, Apr 3, 2014 at 5:40 PM, Sergey Grebnov (Akvelon) < 
> > v-segreb@microsoft.com> wrote:
> >
> > > Pushed additional improvements [1] 1. BB10 support by Bryan (w/ 
> > > additional minor improvements) 2. Due to BB10 native packager 
> > > issue and for consistency reasons
> switched
> > > from cdv/gap: platform attribute to <platform> element. Updated 
> > > config sample can be found here[2].
> > >
> > > [1] https://github.com/AxelNennker/cordova-cli/pull/4
> > > [2]  https://gist.github.com/sgrebnov/9949313
> > >
> > > Thx!!
> > > Sergey
> > > -----Original Message-----
> > > From: Bryan Higgins [mailto:bryan@bryanhiggins.net]
> > > Sent: Thursday, April 3, 2014 9:29 PM
> > > To: dev@cordova.apache.org
> > > Subject: Re: cordova launcher icon support
> > > https://github.com/apache/cordova-cli/pull/126
> > >
> > > I've got a branch up for bb10 here:
> > >
> > >
> >
> https://github.com/blackberry/cordova-cli/commit/a3da36cdc31ea4d090f5c
> 63b2930160af474d3bc
> > >
> > > Right now it fails to build if icons exist for any other platform 
> > > or an icon element exists within <platform name="blackberry10">.
> > >
> > >
> > > On Thu, Apr 3, 2014 at 11:23 AM, Bryan Higgins 
> > > <bryan@bryanhiggins.net
> > > >wrote:
> > >
> > > > All I am saying is that from an end user perspective it would be 
> > > > nice if we were consistent. If there are problems with the 
> > > > current
> platform
> > > > tag, those should be filed as issues in JIRA and fixed. Or we 
> > > > can decide it was a mistake and go with platform attribute on 
> > > > preferences as well since it was really an undocumented feature 
> > > > up until this
> > point.
> > > >
> > > > I'm with Andrew in favouring the element since it is consistent 
> > > > with plugin.xml.
> > > >
> > > > As it stands now getIcons doesn't return icon elements specified 
> > > > within platform. So the platform config will end up with an icon 
> > > > element that the parser didn't know about.
> > > >
> > > >
> > > > On Thu, Apr 3, 2014 at 10:34 AM, Axel Nennker 
> > > ><ignisvulpis@gmail.com
> > > >wrote:
> > > >
> > > >> Which supports my "suspicion" that platform was introduced for 
> > > >> preference elements but implemented in a way that developers 
> > > >> can stick any child element into it. Which would not have any 
> > > >> consequences if a developer would do it because ConfigParser.js 
> > > >> does not honor the platform element.
> > > >> Platform in config.xml is only parsed while config.xml is 
> > > >> merged
> into
> > > >> platform-config.xml
> > > >>
> > > >> This: <platform name="ios"><name>ios hello 
> > > >> world</name></platform> does not work and the developer gets 
> > > >> not feedback that this element is not used (even on ios).
> > > >>
> > > >>
> > > >> 2014-04-03 15:42 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
> > > >>
> > > >> > I added this to edge when it came up on the list a few weeks ago.
> > > >> >
> > > >> >
> > > >> >
> > > >>
> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff
> > > >> ;f=docs/en/edge/config_ref/index.md
> ;h=9c32672403f1ceffce4278aa7e1fa6a
> > > >>
> dd7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e43
> > > >>
> 95905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7a
> > > >> bb51
> > > >> >
> > > >> >
> > > >> > On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve 
> > > >> > <ag...@chromium.org>
> > > >> > wrote:
> > > >> >
> > > >> > > Feel pretty strongly that we shouldn't introduce gap: prefix.
> > > >> > > cdv: is
> > > >> bad
> > > >> > > enough :(. I'm sure PG Build will accept whatever syntax we 
> > > >> > > come up
> > > >> with.
> > > >> > >
> > > >> > > It's true that <platform> isn't documented (that I know 
> > > >> > > of), but it's consistent with plugin.xml and I think being 
> > > >> > > able to put
> any
> > > >> > > elements
> > > >> in
> > > >> > > there makes it quite flexible.
> > > >> > >
> > > >> > >
> > > >> > > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins 
> > > >> > > <bryan@bryanhiggins.net
> > > >> > > >wrote:
> > > >> > >
> > > >> > > > My point is only that we should be consistent. If the 
> > > >> > > > platform
> > > >> element
> > > >> > is
> > > >> > > > used for preference, then why introduce an attribute 
> > > >> > > > which
> does
> > > >> > > > the
> > > >> > same
> > > >> > > > thing for icon?
> > > >> > > >
> > > >> > > > Also, I've seen platform=, cdv:platform= and 
> > > >> > > > gap:platform= within
> > > >> the
> > > >> > > pull
> > > >> > > > requests.
> > > >> > > >
> > > >> > > >
> > > >> > > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker 
> > > >> > > > <ignisvulpis@gmail.com
> > > >> >
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > > > Hi Jonathan,
> > > >> > > > > considering how difficult is is to get this icon thing 
> > > >> > > > > is I would
> > > >> > like
> > > >> > > to
> > > >> > > > > postpone splash screen discussion after this is merged 
> > > >> > > > > or
> > > >> rejected.
> > > >> > > > > On the other hand there were discussions on this list 
> > > >> > > > > about splash
> > > >> > > screen
> > > >> > > > > support/changes not so long ago. I did not join those
> because
> > > >> > > > > even
> > > >> > this
> > > >> > > > > very small icon thing - that does not even introduce 
> > > >> > > > > new elements/formats/whatnot that would require us to 
> > > >> > > > > support it until
> > > >> > hell
> > > >> > > > > freezes - takes ages to get accepted.
> > > >> > > > >
> > > >> > > > > One thing regarding icon vs splash: I think that
> > > >> icon/launcher_icon
> > > >> > is
> > > >> > > > more
> > > >> > > > > an OS thing while splash is more a app thing.
> > > >> > > > >
> > > >> > > > > cheers
> > > >> > > > > Axel
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
> > > >> > > jbondc@gdesolutions.com
> > > >> > > > >:
> > > >> > > > >
> > > >> > > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > >> > > > > > > It is a shame that CB-2606 is unresolved this long. 
> > > >> > > > > > > We should
> > > >> > have
> > > >> > > > > > something
> > > >> > > > > > > rolled out soon.
> > > >> > > > > > >
> > > >> > > > > >
> > > >> > > > > > +1, thoughts on splashscreens or other images?
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Bryan Higgins <br...@bryanhiggins.net>.
You need to rebase your branch so the new commits appear after
apache:master/HEAD


On Fri, Apr 4, 2014 at 10:39 AM, Axel Nennker <ig...@gmail.com> wrote:

> This is probably a stupid question but: "Why do I see so many changed files
> here
> https://github.com/apache/cordova-cli/pull/126/files
> like Readme.md which I do not want in this pull request".
> I did a "get fetch upstream" from the original repo to my local repo and
> pushed that back to my githup repo. I thought that this makes the current
> PR smaller.
>
>
> 2014-04-04 16:00 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
>
> > Great, thanks Sergey!
> >
> > I commented on the pull request. It looks like this is almost ready to be
> > merged.
> >
> > I'd urge any other platform maintainers to take a look / test this out
> > ASAP.
> >
> >
> > On Thu, Apr 3, 2014 at 5:40 PM, Sergey Grebnov (Akvelon) <
> > v-segreb@microsoft.com> wrote:
> >
> > > Pushed additional improvements [1]
> > > 1. BB10 support by Bryan (w/ additional minor improvements)
> > > 2. Due to BB10 native packager issue and for consistency reasons
> switched
> > > from cdv/gap: platform attribute to <platform> element. Updated config
> > > sample can be found here[2].
> > >
> > > [1] https://github.com/AxelNennker/cordova-cli/pull/4
> > > [2]  https://gist.github.com/sgrebnov/9949313
> > >
> > > Thx!!
> > > Sergey
> > > -----Original Message-----
> > > From: Bryan Higgins [mailto:bryan@bryanhiggins.net]
> > > Sent: Thursday, April 3, 2014 9:29 PM
> > > To: dev@cordova.apache.org
> > > Subject: Re: cordova launcher icon support
> > > https://github.com/apache/cordova-cli/pull/126
> > >
> > > I've got a branch up for bb10 here:
> > >
> > >
> >
> https://github.com/blackberry/cordova-cli/commit/a3da36cdc31ea4d090f5c63b2930160af474d3bc
> > >
> > > Right now it fails to build if icons exist for any other platform or an
> > > icon element exists within <platform name="blackberry10">.
> > >
> > >
> > > On Thu, Apr 3, 2014 at 11:23 AM, Bryan Higgins <bryan@bryanhiggins.net
> > > >wrote:
> > >
> > > > All I am saying is that from an end user perspective it would be nice
> > > > if we were consistent. If there are problems with the current
> platform
> > > > tag, those should be filed as issues in JIRA and fixed. Or we can
> > > > decide it was a mistake and go with platform attribute on preferences
> > > > as well since it was really an undocumented feature up until this
> > point.
> > > >
> > > > I'm with Andrew in favouring the element since it is consistent with
> > > > plugin.xml.
> > > >
> > > > As it stands now getIcons doesn't return icon elements specified
> > > > within platform. So the platform config will end up with an icon
> > > > element that the parser didn't know about.
> > > >
> > > >
> > > > On Thu, Apr 3, 2014 at 10:34 AM, Axel Nennker <ignisvulpis@gmail.com
> > > >wrote:
> > > >
> > > >> Which supports my "suspicion" that platform was introduced for
> > > >> preference elements but implemented in a way that developers can
> > > >> stick any child element into it. Which would not have any
> > > >> consequences if a developer would do it because ConfigParser.js does
> > > >> not honor the platform element.
> > > >> Platform in config.xml is only parsed while config.xml is merged
> into
> > > >> platform-config.xml
> > > >>
> > > >> This: <platform name="ios"><name>ios hello world</name></platform>
> > > >> does not work and the developer gets not feedback that this element
> > > >> is not used (even on ios).
> > > >>
> > > >>
> > > >> 2014-04-03 15:42 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
> > > >>
> > > >> > I added this to edge when it came up on the list a few weeks ago.
> > > >> >
> > > >> >
> > > >> >
> > > >>
> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff
> > > >> ;f=docs/en/edge/config_ref/index.md
> ;h=9c32672403f1ceffce4278aa7e1fa6a
> > > >>
> dd7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e43
> > > >>
> 95905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7a
> > > >> bb51
> > > >> >
> > > >> >
> > > >> > On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve
> > > >> > <ag...@chromium.org>
> > > >> > wrote:
> > > >> >
> > > >> > > Feel pretty strongly that we shouldn't introduce gap: prefix.
> > > >> > > cdv: is
> > > >> bad
> > > >> > > enough :(. I'm sure PG Build will accept whatever syntax we come
> > > >> > > up
> > > >> with.
> > > >> > >
> > > >> > > It's true that <platform> isn't documented (that I know of), but
> > > >> > > it's consistent with plugin.xml and I think being able to put
> any
> > > >> > > elements
> > > >> in
> > > >> > > there makes it quite flexible.
> > > >> > >
> > > >> > >
> > > >> > > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins
> > > >> > > <bryan@bryanhiggins.net
> > > >> > > >wrote:
> > > >> > >
> > > >> > > > My point is only that we should be consistent. If the platform
> > > >> element
> > > >> > is
> > > >> > > > used for preference, then why introduce an attribute which
> does
> > > >> > > > the
> > > >> > same
> > > >> > > > thing for icon?
> > > >> > > >
> > > >> > > > Also, I've seen platform=, cdv:platform= and gap:platform=
> > > >> > > > within
> > > >> the
> > > >> > > pull
> > > >> > > > requests.
> > > >> > > >
> > > >> > > >
> > > >> > > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker
> > > >> > > > <ignisvulpis@gmail.com
> > > >> >
> > > >> > > > wrote:
> > > >> > > >
> > > >> > > > > Hi Jonathan,
> > > >> > > > > considering how difficult is is to get this icon thing is I
> > > >> > > > > would
> > > >> > like
> > > >> > > to
> > > >> > > > > postpone splash screen discussion after this is merged or
> > > >> rejected.
> > > >> > > > > On the other hand there were discussions on this list about
> > > >> > > > > splash
> > > >> > > screen
> > > >> > > > > support/changes not so long ago. I did not join those
> because
> > > >> > > > > even
> > > >> > this
> > > >> > > > > very small icon thing - that does not even introduce new
> > > >> > > > > elements/formats/whatnot that would require us to support it
> > > >> > > > > until
> > > >> > hell
> > > >> > > > > freezes - takes ages to get accepted.
> > > >> > > > >
> > > >> > > > > One thing regarding icon vs splash: I think that
> > > >> icon/launcher_icon
> > > >> > is
> > > >> > > > more
> > > >> > > > > an OS thing while splash is more a app thing.
> > > >> > > > >
> > > >> > > > > cheers
> > > >> > > > > Axel
> > > >> > > > >
> > > >> > > > >
> > > >> > > > >
> > > >> > > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
> > > >> > > jbondc@gdesolutions.com
> > > >> > > > >:
> > > >> > > > >
> > > >> > > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > >> > > > > > > It is a shame that CB-2606 is unresolved this long. We
> > > >> > > > > > > should
> > > >> > have
> > > >> > > > > > something
> > > >> > > > > > > rolled out soon.
> > > >> > > > > > >
> > > >> > > > > >
> > > >> > > > > > +1, thoughts on splashscreens or other images?
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > > >
> > > >> > > > >
> > > >> > > >
> > > >> > >
> > > >> >
> > > >>
> > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Axel Nennker <ig...@gmail.com>.
This is probably a stupid question but: "Why do I see so many changed files
here
https://github.com/apache/cordova-cli/pull/126/files
like Readme.md which I do not want in this pull request".
I did a "get fetch upstream" from the original repo to my local repo and
pushed that back to my githup repo. I thought that this makes the current
PR smaller.


2014-04-04 16:00 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:

> Great, thanks Sergey!
>
> I commented on the pull request. It looks like this is almost ready to be
> merged.
>
> I'd urge any other platform maintainers to take a look / test this out
> ASAP.
>
>
> On Thu, Apr 3, 2014 at 5:40 PM, Sergey Grebnov (Akvelon) <
> v-segreb@microsoft.com> wrote:
>
> > Pushed additional improvements [1]
> > 1. BB10 support by Bryan (w/ additional minor improvements)
> > 2. Due to BB10 native packager issue and for consistency reasons switched
> > from cdv/gap: platform attribute to <platform> element. Updated config
> > sample can be found here[2].
> >
> > [1] https://github.com/AxelNennker/cordova-cli/pull/4
> > [2]  https://gist.github.com/sgrebnov/9949313
> >
> > Thx!!
> > Sergey
> > -----Original Message-----
> > From: Bryan Higgins [mailto:bryan@bryanhiggins.net]
> > Sent: Thursday, April 3, 2014 9:29 PM
> > To: dev@cordova.apache.org
> > Subject: Re: cordova launcher icon support
> > https://github.com/apache/cordova-cli/pull/126
> >
> > I've got a branch up for bb10 here:
> >
> >
> https://github.com/blackberry/cordova-cli/commit/a3da36cdc31ea4d090f5c63b2930160af474d3bc
> >
> > Right now it fails to build if icons exist for any other platform or an
> > icon element exists within <platform name="blackberry10">.
> >
> >
> > On Thu, Apr 3, 2014 at 11:23 AM, Bryan Higgins <bryan@bryanhiggins.net
> > >wrote:
> >
> > > All I am saying is that from an end user perspective it would be nice
> > > if we were consistent. If there are problems with the current platform
> > > tag, those should be filed as issues in JIRA and fixed. Or we can
> > > decide it was a mistake and go with platform attribute on preferences
> > > as well since it was really an undocumented feature up until this
> point.
> > >
> > > I'm with Andrew in favouring the element since it is consistent with
> > > plugin.xml.
> > >
> > > As it stands now getIcons doesn't return icon elements specified
> > > within platform. So the platform config will end up with an icon
> > > element that the parser didn't know about.
> > >
> > >
> > > On Thu, Apr 3, 2014 at 10:34 AM, Axel Nennker <ignisvulpis@gmail.com
> > >wrote:
> > >
> > >> Which supports my "suspicion" that platform was introduced for
> > >> preference elements but implemented in a way that developers can
> > >> stick any child element into it. Which would not have any
> > >> consequences if a developer would do it because ConfigParser.js does
> > >> not honor the platform element.
> > >> Platform in config.xml is only parsed while config.xml is merged into
> > >> platform-config.xml
> > >>
> > >> This: <platform name="ios"><name>ios hello world</name></platform>
> > >> does not work and the developer gets not feedback that this element
> > >> is not used (even on ios).
> > >>
> > >>
> > >> 2014-04-03 15:42 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
> > >>
> > >> > I added this to edge when it came up on the list a few weeks ago.
> > >> >
> > >> >
> > >> >
> > >> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff
> > >> ;f=docs/en/edge/config_ref/index.md;h=9c32672403f1ceffce4278aa7e1fa6a
> > >> dd7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e43
> > >> 95905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7a
> > >> bb51
> > >> >
> > >> >
> > >> > On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve
> > >> > <ag...@chromium.org>
> > >> > wrote:
> > >> >
> > >> > > Feel pretty strongly that we shouldn't introduce gap: prefix.
> > >> > > cdv: is
> > >> bad
> > >> > > enough :(. I'm sure PG Build will accept whatever syntax we come
> > >> > > up
> > >> with.
> > >> > >
> > >> > > It's true that <platform> isn't documented (that I know of), but
> > >> > > it's consistent with plugin.xml and I think being able to put any
> > >> > > elements
> > >> in
> > >> > > there makes it quite flexible.
> > >> > >
> > >> > >
> > >> > > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins
> > >> > > <bryan@bryanhiggins.net
> > >> > > >wrote:
> > >> > >
> > >> > > > My point is only that we should be consistent. If the platform
> > >> element
> > >> > is
> > >> > > > used for preference, then why introduce an attribute which does
> > >> > > > the
> > >> > same
> > >> > > > thing for icon?
> > >> > > >
> > >> > > > Also, I've seen platform=, cdv:platform= and gap:platform=
> > >> > > > within
> > >> the
> > >> > > pull
> > >> > > > requests.
> > >> > > >
> > >> > > >
> > >> > > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker
> > >> > > > <ignisvulpis@gmail.com
> > >> >
> > >> > > > wrote:
> > >> > > >
> > >> > > > > Hi Jonathan,
> > >> > > > > considering how difficult is is to get this icon thing is I
> > >> > > > > would
> > >> > like
> > >> > > to
> > >> > > > > postpone splash screen discussion after this is merged or
> > >> rejected.
> > >> > > > > On the other hand there were discussions on this list about
> > >> > > > > splash
> > >> > > screen
> > >> > > > > support/changes not so long ago. I did not join those because
> > >> > > > > even
> > >> > this
> > >> > > > > very small icon thing - that does not even introduce new
> > >> > > > > elements/formats/whatnot that would require us to support it
> > >> > > > > until
> > >> > hell
> > >> > > > > freezes - takes ages to get accepted.
> > >> > > > >
> > >> > > > > One thing regarding icon vs splash: I think that
> > >> icon/launcher_icon
> > >> > is
> > >> > > > more
> > >> > > > > an OS thing while splash is more a app thing.
> > >> > > > >
> > >> > > > > cheers
> > >> > > > > Axel
> > >> > > > >
> > >> > > > >
> > >> > > > >
> > >> > > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
> > >> > > jbondc@gdesolutions.com
> > >> > > > >:
> > >> > > > >
> > >> > > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > >> > > > > > > It is a shame that CB-2606 is unresolved this long. We
> > >> > > > > > > should
> > >> > have
> > >> > > > > > something
> > >> > > > > > > rolled out soon.
> > >> > > > > > >
> > >> > > > > >
> > >> > > > > > +1, thoughts on splashscreens or other images?
> > >> > > > > >
> > >> > > > > >
> > >> > > > > >
> > >> > > > >
> > >> > > >
> > >> > >
> > >> >
> > >>
> > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Bryan Higgins <br...@bryanhiggins.net>.
Great, thanks Sergey!

I commented on the pull request. It looks like this is almost ready to be
merged.

I'd urge any other platform maintainers to take a look / test this out ASAP.


On Thu, Apr 3, 2014 at 5:40 PM, Sergey Grebnov (Akvelon) <
v-segreb@microsoft.com> wrote:

> Pushed additional improvements [1]
> 1. BB10 support by Bryan (w/ additional minor improvements)
> 2. Due to BB10 native packager issue and for consistency reasons switched
> from cdv/gap: platform attribute to <platform> element. Updated config
> sample can be found here[2].
>
> [1] https://github.com/AxelNennker/cordova-cli/pull/4
> [2]  https://gist.github.com/sgrebnov/9949313
>
> Thx!!
> Sergey
> -----Original Message-----
> From: Bryan Higgins [mailto:bryan@bryanhiggins.net]
> Sent: Thursday, April 3, 2014 9:29 PM
> To: dev@cordova.apache.org
> Subject: Re: cordova launcher icon support
> https://github.com/apache/cordova-cli/pull/126
>
> I've got a branch up for bb10 here:
>
> https://github.com/blackberry/cordova-cli/commit/a3da36cdc31ea4d090f5c63b2930160af474d3bc
>
> Right now it fails to build if icons exist for any other platform or an
> icon element exists within <platform name="blackberry10">.
>
>
> On Thu, Apr 3, 2014 at 11:23 AM, Bryan Higgins <bryan@bryanhiggins.net
> >wrote:
>
> > All I am saying is that from an end user perspective it would be nice
> > if we were consistent. If there are problems with the current platform
> > tag, those should be filed as issues in JIRA and fixed. Or we can
> > decide it was a mistake and go with platform attribute on preferences
> > as well since it was really an undocumented feature up until this point.
> >
> > I'm with Andrew in favouring the element since it is consistent with
> > plugin.xml.
> >
> > As it stands now getIcons doesn't return icon elements specified
> > within platform. So the platform config will end up with an icon
> > element that the parser didn't know about.
> >
> >
> > On Thu, Apr 3, 2014 at 10:34 AM, Axel Nennker <ignisvulpis@gmail.com
> >wrote:
> >
> >> Which supports my "suspicion" that platform was introduced for
> >> preference elements but implemented in a way that developers can
> >> stick any child element into it. Which would not have any
> >> consequences if a developer would do it because ConfigParser.js does
> >> not honor the platform element.
> >> Platform in config.xml is only parsed while config.xml is merged into
> >> platform-config.xml
> >>
> >> This: <platform name="ios"><name>ios hello world</name></platform>
> >> does not work and the developer gets not feedback that this element
> >> is not used (even on ios).
> >>
> >>
> >> 2014-04-03 15:42 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
> >>
> >> > I added this to edge when it came up on the list a few weeks ago.
> >> >
> >> >
> >> >
> >> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff
> >> ;f=docs/en/edge/config_ref/index.md;h=9c32672403f1ceffce4278aa7e1fa6a
> >> dd7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e43
> >> 95905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7a
> >> bb51
> >> >
> >> >
> >> > On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve
> >> > <ag...@chromium.org>
> >> > wrote:
> >> >
> >> > > Feel pretty strongly that we shouldn't introduce gap: prefix.
> >> > > cdv: is
> >> bad
> >> > > enough :(. I'm sure PG Build will accept whatever syntax we come
> >> > > up
> >> with.
> >> > >
> >> > > It's true that <platform> isn't documented (that I know of), but
> >> > > it's consistent with plugin.xml and I think being able to put any
> >> > > elements
> >> in
> >> > > there makes it quite flexible.
> >> > >
> >> > >
> >> > > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins
> >> > > <bryan@bryanhiggins.net
> >> > > >wrote:
> >> > >
> >> > > > My point is only that we should be consistent. If the platform
> >> element
> >> > is
> >> > > > used for preference, then why introduce an attribute which does
> >> > > > the
> >> > same
> >> > > > thing for icon?
> >> > > >
> >> > > > Also, I've seen platform=, cdv:platform= and gap:platform=
> >> > > > within
> >> the
> >> > > pull
> >> > > > requests.
> >> > > >
> >> > > >
> >> > > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker
> >> > > > <ignisvulpis@gmail.com
> >> >
> >> > > > wrote:
> >> > > >
> >> > > > > Hi Jonathan,
> >> > > > > considering how difficult is is to get this icon thing is I
> >> > > > > would
> >> > like
> >> > > to
> >> > > > > postpone splash screen discussion after this is merged or
> >> rejected.
> >> > > > > On the other hand there were discussions on this list about
> >> > > > > splash
> >> > > screen
> >> > > > > support/changes not so long ago. I did not join those because
> >> > > > > even
> >> > this
> >> > > > > very small icon thing - that does not even introduce new
> >> > > > > elements/formats/whatnot that would require us to support it
> >> > > > > until
> >> > hell
> >> > > > > freezes - takes ages to get accepted.
> >> > > > >
> >> > > > > One thing regarding icon vs splash: I think that
> >> icon/launcher_icon
> >> > is
> >> > > > more
> >> > > > > an OS thing while splash is more a app thing.
> >> > > > >
> >> > > > > cheers
> >> > > > > Axel
> >> > > > >
> >> > > > >
> >> > > > >
> >> > > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
> >> > > jbondc@gdesolutions.com
> >> > > > >:
> >> > > > >
> >> > > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> >> > > > > > > It is a shame that CB-2606 is unresolved this long. We
> >> > > > > > > should
> >> > have
> >> > > > > > something
> >> > > > > > > rolled out soon.
> >> > > > > > >
> >> > > > > >
> >> > > > > > +1, thoughts on splashscreens or other images?
> >> > > > > >
> >> > > > > >
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> >
> >
>

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by "Sergey Grebnov (Akvelon)" <v-...@microsoft.com>.
Pushed additional improvements [1]
1. BB10 support by Bryan (w/ additional minor improvements) 
2. Due to BB10 native packager issue and for consistency reasons switched from cdv/gap: platform attribute to <platform> element. Updated config sample can be found here[2].

[1] https://github.com/AxelNennker/cordova-cli/pull/4 
[2]  https://gist.github.com/sgrebnov/9949313 

Thx!!
Sergey
-----Original Message-----
From: Bryan Higgins [mailto:bryan@bryanhiggins.net] 
Sent: Thursday, April 3, 2014 9:29 PM
To: dev@cordova.apache.org
Subject: Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

I've got a branch up for bb10 here:
https://github.com/blackberry/cordova-cli/commit/a3da36cdc31ea4d090f5c63b2930160af474d3bc

Right now it fails to build if icons exist for any other platform or an icon element exists within <platform name="blackberry10">.


On Thu, Apr 3, 2014 at 11:23 AM, Bryan Higgins <br...@bryanhiggins.net>wrote:

> All I am saying is that from an end user perspective it would be nice 
> if we were consistent. If there are problems with the current platform 
> tag, those should be filed as issues in JIRA and fixed. Or we can 
> decide it was a mistake and go with platform attribute on preferences 
> as well since it was really an undocumented feature up until this point.
>
> I'm with Andrew in favouring the element since it is consistent with 
> plugin.xml.
>
> As it stands now getIcons doesn't return icon elements specified 
> within platform. So the platform config will end up with an icon 
> element that the parser didn't know about.
>
>
> On Thu, Apr 3, 2014 at 10:34 AM, Axel Nennker <ig...@gmail.com>wrote:
>
>> Which supports my "suspicion" that platform was introduced for 
>> preference elements but implemented in a way that developers can 
>> stick any child element into it. Which would not have any 
>> consequences if a developer would do it because ConfigParser.js does 
>> not honor the platform element.
>> Platform in config.xml is only parsed while config.xml is merged into 
>> platform-config.xml
>>
>> This: <platform name="ios"><name>ios hello world</name></platform> 
>> does not work and the developer gets not feedback that this element 
>> is not used (even on ios).
>>
>>
>> 2014-04-03 15:42 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
>>
>> > I added this to edge when it came up on the list a few weeks ago.
>> >
>> >
>> >
>> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff
>> ;f=docs/en/edge/config_ref/index.md;h=9c32672403f1ceffce4278aa7e1fa6a
>> dd7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e43
>> 95905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7a
>> bb51
>> >
>> >
>> > On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve 
>> > <ag...@chromium.org>
>> > wrote:
>> >
>> > > Feel pretty strongly that we shouldn't introduce gap: prefix. 
>> > > cdv: is
>> bad
>> > > enough :(. I'm sure PG Build will accept whatever syntax we come 
>> > > up
>> with.
>> > >
>> > > It's true that <platform> isn't documented (that I know of), but 
>> > > it's consistent with plugin.xml and I think being able to put any 
>> > > elements
>> in
>> > > there makes it quite flexible.
>> > >
>> > >
>> > > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins 
>> > > <bryan@bryanhiggins.net
>> > > >wrote:
>> > >
>> > > > My point is only that we should be consistent. If the platform
>> element
>> > is
>> > > > used for preference, then why introduce an attribute which does 
>> > > > the
>> > same
>> > > > thing for icon?
>> > > >
>> > > > Also, I've seen platform=, cdv:platform= and gap:platform= 
>> > > > within
>> the
>> > > pull
>> > > > requests.
>> > > >
>> > > >
>> > > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker 
>> > > > <ignisvulpis@gmail.com
>> >
>> > > > wrote:
>> > > >
>> > > > > Hi Jonathan,
>> > > > > considering how difficult is is to get this icon thing is I 
>> > > > > would
>> > like
>> > > to
>> > > > > postpone splash screen discussion after this is merged or
>> rejected.
>> > > > > On the other hand there were discussions on this list about 
>> > > > > splash
>> > > screen
>> > > > > support/changes not so long ago. I did not join those because 
>> > > > > even
>> > this
>> > > > > very small icon thing - that does not even introduce new 
>> > > > > elements/formats/whatnot that would require us to support it 
>> > > > > until
>> > hell
>> > > > > freezes - takes ages to get accepted.
>> > > > >
>> > > > > One thing regarding icon vs splash: I think that
>> icon/launcher_icon
>> > is
>> > > > more
>> > > > > an OS thing while splash is more a app thing.
>> > > > >
>> > > > > cheers
>> > > > > Axel
>> > > > >
>> > > > >
>> > > > >
>> > > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
>> > > jbondc@gdesolutions.com
>> > > > >:
>> > > > >
>> > > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
>> > > > > > > It is a shame that CB-2606 is unresolved this long. We 
>> > > > > > > should
>> > have
>> > > > > > something
>> > > > > > > rolled out soon.
>> > > > > > >
>> > > > > >
>> > > > > > +1, thoughts on splashscreens or other images?
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Bryan Higgins <br...@bryanhiggins.net>.
I've got a branch up for bb10 here:
https://github.com/blackberry/cordova-cli/commit/a3da36cdc31ea4d090f5c63b2930160af474d3bc

Right now it fails to build if icons exist for any other platform or an
icon element exists within <platform name="blackberry10">.


On Thu, Apr 3, 2014 at 11:23 AM, Bryan Higgins <br...@bryanhiggins.net>wrote:

> All I am saying is that from an end user perspective it would be nice if
> we were consistent. If there are problems with the current platform tag,
> those should be filed as issues in JIRA and fixed. Or we can decide it was
> a mistake and go with platform attribute on preferences as well since it
> was really an undocumented feature up until this point.
>
> I'm with Andrew in favouring the element since it is consistent with
> plugin.xml.
>
> As it stands now getIcons doesn't return icon elements specified within
> platform. So the platform config will end up with an icon element that the
> parser didn't know about.
>
>
> On Thu, Apr 3, 2014 at 10:34 AM, Axel Nennker <ig...@gmail.com>wrote:
>
>> Which supports my "suspicion" that platform was introduced for preference
>> elements but implemented in a way that developers can stick any child
>> element into it. Which would not have any consequences if a developer
>> would
>> do it because ConfigParser.js does not honor the platform element.
>> Platform in config.xml is only parsed while config.xml is merged into
>> platform-config.xml
>>
>> This: <platform name="ios"><name>ios hello world</name></platform> does
>> not
>> work and the developer gets not feedback that this element is not used
>> (even on ios).
>>
>>
>> 2014-04-03 15:42 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
>>
>> > I added this to edge when it came up on the list a few weeks ago.
>> >
>> >
>> >
>> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff;f=docs/en/edge/config_ref/index.md;h=9c32672403f1ceffce4278aa7e1fa6add7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e4395905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7abb51
>> >
>> >
>> > On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve <ag...@chromium.org>
>> > wrote:
>> >
>> > > Feel pretty strongly that we shouldn't introduce gap: prefix. cdv: is
>> bad
>> > > enough :(. I'm sure PG Build will accept whatever syntax we come up
>> with.
>> > >
>> > > It's true that <platform> isn't documented (that I know of), but it's
>> > > consistent with plugin.xml and I think being able to put any elements
>> in
>> > > there makes it quite flexible.
>> > >
>> > >
>> > > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins <bryan@bryanhiggins.net
>> > > >wrote:
>> > >
>> > > > My point is only that we should be consistent. If the platform
>> element
>> > is
>> > > > used for preference, then why introduce an attribute which does the
>> > same
>> > > > thing for icon?
>> > > >
>> > > > Also, I've seen platform=, cdv:platform= and gap:platform= within
>> the
>> > > pull
>> > > > requests.
>> > > >
>> > > >
>> > > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker <ignisvulpis@gmail.com
>> >
>> > > > wrote:
>> > > >
>> > > > > Hi Jonathan,
>> > > > > considering how difficult is is to get this icon thing is I would
>> > like
>> > > to
>> > > > > postpone splash screen discussion after this is merged or
>> rejected.
>> > > > > On the other hand there were discussions on this list about splash
>> > > screen
>> > > > > support/changes not so long ago. I did not join those because even
>> > this
>> > > > > very small icon thing - that does not even introduce new
>> > > > > elements/formats/whatnot that would require us to support it until
>> > hell
>> > > > > freezes - takes ages to get accepted.
>> > > > >
>> > > > > One thing regarding icon vs splash: I think that
>> icon/launcher_icon
>> > is
>> > > > more
>> > > > > an OS thing while splash is more a app thing.
>> > > > >
>> > > > > cheers
>> > > > > Axel
>> > > > >
>> > > > >
>> > > > >
>> > > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
>> > > jbondc@gdesolutions.com
>> > > > >:
>> > > > >
>> > > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
>> > > > > > > It is a shame that CB-2606 is unresolved this long. We should
>> > have
>> > > > > > something
>> > > > > > > rolled out soon.
>> > > > > > >
>> > > > > >
>> > > > > > +1, thoughts on splashscreens or other images?
>> > > > > >
>> > > > > >
>> > > > > >
>> > > > >
>> > > >
>> > >
>> >
>>
>
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Bryan Higgins <br...@bryanhiggins.net>.
All I am saying is that from an end user perspective it would be nice if we
were consistent. If there are problems with the current platform tag, those
should be filed as issues in JIRA and fixed. Or we can decide it was a
mistake and go with platform attribute on preferences as well since it was
really an undocumented feature up until this point.

I'm with Andrew in favouring the element since it is consistent with
plugin.xml.

As it stands now getIcons doesn't return icon elements specified within
platform. So the platform config will end up with an icon element that the
parser didn't know about.


On Thu, Apr 3, 2014 at 10:34 AM, Axel Nennker <ig...@gmail.com> wrote:

> Which supports my "suspicion" that platform was introduced for preference
> elements but implemented in a way that developers can stick any child
> element into it. Which would not have any consequences if a developer would
> do it because ConfigParser.js does not honor the platform element.
> Platform in config.xml is only parsed while config.xml is merged into
> platform-config.xml
>
> This: <platform name="ios"><name>ios hello world</name></platform> does not
> work and the developer gets not feedback that this element is not used
> (even on ios).
>
>
> 2014-04-03 15:42 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:
>
> > I added this to edge when it came up on the list a few weeks ago.
> >
> >
> >
> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff;f=docs/en/edge/config_ref/index.md;h=9c32672403f1ceffce4278aa7e1fa6add7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e4395905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7abb51
> >
> >
> > On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve <ag...@chromium.org>
> > wrote:
> >
> > > Feel pretty strongly that we shouldn't introduce gap: prefix. cdv: is
> bad
> > > enough :(. I'm sure PG Build will accept whatever syntax we come up
> with.
> > >
> > > It's true that <platform> isn't documented (that I know of), but it's
> > > consistent with plugin.xml and I think being able to put any elements
> in
> > > there makes it quite flexible.
> > >
> > >
> > > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins <bryan@bryanhiggins.net
> > > >wrote:
> > >
> > > > My point is only that we should be consistent. If the platform
> element
> > is
> > > > used for preference, then why introduce an attribute which does the
> > same
> > > > thing for icon?
> > > >
> > > > Also, I've seen platform=, cdv:platform= and gap:platform= within the
> > > pull
> > > > requests.
> > > >
> > > >
> > > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker <ig...@gmail.com>
> > > > wrote:
> > > >
> > > > > Hi Jonathan,
> > > > > considering how difficult is is to get this icon thing is I would
> > like
> > > to
> > > > > postpone splash screen discussion after this is merged or rejected.
> > > > > On the other hand there were discussions on this list about splash
> > > screen
> > > > > support/changes not so long ago. I did not join those because even
> > this
> > > > > very small icon thing - that does not even introduce new
> > > > > elements/formats/whatnot that would require us to support it until
> > hell
> > > > > freezes - takes ages to get accepted.
> > > > >
> > > > > One thing regarding icon vs splash: I think that icon/launcher_icon
> > is
> > > > more
> > > > > an OS thing while splash is more a app thing.
> > > > >
> > > > > cheers
> > > > > Axel
> > > > >
> > > > >
> > > > >
> > > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
> > > jbondc@gdesolutions.com
> > > > >:
> > > > >
> > > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > > > > > It is a shame that CB-2606 is unresolved this long. We should
> > have
> > > > > > something
> > > > > > > rolled out soon.
> > > > > > >
> > > > > >
> > > > > > +1, thoughts on splashscreens or other images?
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Axel Nennker <ig...@gmail.com>.
Which supports my "suspicion" that platform was introduced for preference
elements but implemented in a way that developers can stick any child
element into it. Which would not have any consequences if a developer would
do it because ConfigParser.js does not honor the platform element.
Platform in config.xml is only parsed while config.xml is merged into
platform-config.xml

This: <platform name="ios"><name>ios hello world</name></platform> does not
work and the developer gets not feedback that this element is not used
(even on ios).


2014-04-03 15:42 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:

> I added this to edge when it came up on the list a few weeks ago.
>
>
> https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff;f=docs/en/edge/config_ref/index.md;h=9c32672403f1ceffce4278aa7e1fa6add7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e4395905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7abb51
>
>
> On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve <ag...@chromium.org>
> wrote:
>
> > Feel pretty strongly that we shouldn't introduce gap: prefix. cdv: is bad
> > enough :(. I'm sure PG Build will accept whatever syntax we come up with.
> >
> > It's true that <platform> isn't documented (that I know of), but it's
> > consistent with plugin.xml and I think being able to put any elements in
> > there makes it quite flexible.
> >
> >
> > On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins <bryan@bryanhiggins.net
> > >wrote:
> >
> > > My point is only that we should be consistent. If the platform element
> is
> > > used for preference, then why introduce an attribute which does the
> same
> > > thing for icon?
> > >
> > > Also, I've seen platform=, cdv:platform= and gap:platform= within the
> > pull
> > > requests.
> > >
> > >
> > > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker <ig...@gmail.com>
> > > wrote:
> > >
> > > > Hi Jonathan,
> > > > considering how difficult is is to get this icon thing is I would
> like
> > to
> > > > postpone splash screen discussion after this is merged or rejected.
> > > > On the other hand there were discussions on this list about splash
> > screen
> > > > support/changes not so long ago. I did not join those because even
> this
> > > > very small icon thing - that does not even introduce new
> > > > elements/formats/whatnot that would require us to support it until
> hell
> > > > freezes - takes ages to get accepted.
> > > >
> > > > One thing regarding icon vs splash: I think that icon/launcher_icon
> is
> > > more
> > > > an OS thing while splash is more a app thing.
> > > >
> > > > cheers
> > > > Axel
> > > >
> > > >
> > > >
> > > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
> > jbondc@gdesolutions.com
> > > >:
> > > >
> > > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > > > > It is a shame that CB-2606 is unresolved this long. We should
> have
> > > > > something
> > > > > > rolled out soon.
> > > > > >
> > > > >
> > > > > +1, thoughts on splashscreens or other images?
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Bryan Higgins <br...@bryanhiggins.net>.
I added this to edge when it came up on the list a few weeks ago.

https://git-wip-us.apache.org/repos/asf?p=cordova-docs.git;a=blobdiff;f=docs/en/edge/config_ref/index.md;h=9c32672403f1ceffce4278aa7e1fa6add7065946;hp=2df993147957cfe6f626f8a08e4a455557889e4d;hb=7598207d0e4395905c009c056947a5a7c9930b1a;hpb=b28cb8be613f637f28dbfd3c0db2bd193e7abb51


On Thu, Apr 3, 2014 at 9:38 AM, Andrew Grieve <ag...@chromium.org> wrote:

> Feel pretty strongly that we shouldn't introduce gap: prefix. cdv: is bad
> enough :(. I'm sure PG Build will accept whatever syntax we come up with.
>
> It's true that <platform> isn't documented (that I know of), but it's
> consistent with plugin.xml and I think being able to put any elements in
> there makes it quite flexible.
>
>
> On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins <bryan@bryanhiggins.net
> >wrote:
>
> > My point is only that we should be consistent. If the platform element is
> > used for preference, then why introduce an attribute which does the same
> > thing for icon?
> >
> > Also, I've seen platform=, cdv:platform= and gap:platform= within the
> pull
> > requests.
> >
> >
> > On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker <ig...@gmail.com>
> > wrote:
> >
> > > Hi Jonathan,
> > > considering how difficult is is to get this icon thing is I would like
> to
> > > postpone splash screen discussion after this is merged or rejected.
> > > On the other hand there were discussions on this list about splash
> screen
> > > support/changes not so long ago. I did not join those because even this
> > > very small icon thing - that does not even introduce new
> > > elements/formats/whatnot that would require us to support it until hell
> > > freezes - takes ages to get accepted.
> > >
> > > One thing regarding icon vs splash: I think that icon/launcher_icon is
> > more
> > > an OS thing while splash is more a app thing.
> > >
> > > cheers
> > > Axel
> > >
> > >
> > >
> > > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <
> jbondc@gdesolutions.com
> > >:
> > >
> > > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > > > It is a shame that CB-2606 is unresolved this long. We should have
> > > > something
> > > > > rolled out soon.
> > > > >
> > > >
> > > > +1, thoughts on splashscreens or other images?
> > > >
> > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Andrew Grieve <ag...@chromium.org>.
Feel pretty strongly that we shouldn't introduce gap: prefix. cdv: is bad
enough :(. I'm sure PG Build will accept whatever syntax we come up with.

It's true that <platform> isn't documented (that I know of), but it's
consistent with plugin.xml and I think being able to put any elements in
there makes it quite flexible.


On Thu, Apr 3, 2014 at 6:20 AM, Bryan Higgins <br...@bryanhiggins.net>wrote:

> My point is only that we should be consistent. If the platform element is
> used for preference, then why introduce an attribute which does the same
> thing for icon?
>
> Also, I've seen platform=, cdv:platform= and gap:platform= within the pull
> requests.
>
>
> On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker <ig...@gmail.com>
> wrote:
>
> > Hi Jonathan,
> > considering how difficult is is to get this icon thing is I would like to
> > postpone splash screen discussion after this is merged or rejected.
> > On the other hand there were discussions on this list about splash screen
> > support/changes not so long ago. I did not join those because even this
> > very small icon thing - that does not even introduce new
> > elements/formats/whatnot that would require us to support it until hell
> > freezes - takes ages to get accepted.
> >
> > One thing regarding icon vs splash: I think that icon/launcher_icon is
> more
> > an OS thing while splash is more a app thing.
> >
> > cheers
> > Axel
> >
> >
> >
> > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <jbondc@gdesolutions.com
> >:
> >
> > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > > It is a shame that CB-2606 is unresolved this long. We should have
> > > something
> > > > rolled out soon.
> > > >
> > >
> > > +1, thoughts on splashscreens or other images?
> > >
> > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Axel Nennker <ig...@gmail.com>.
Bryan,
support for the legacy cdv:platform and gap:platform was introduced by
Sergey and I accepted that PR because I think that there are a bunch of
config.xml s out there that use those attributes.
The PR https://github.com/apache/cordova-cli/pull/126 does not introduce
any new elements. It just supports these two legacy attributes.

As I said several times: This PR does not fiddle with namespaces, namespace
prefixes or any new elements or attributes to legal elements.
It tries to stick to the W3C widget definition for the icon element because
other proposals never got enough traction/support.

Sergey just sent a PR for the documentation. So we now have that too.

cheers,
Axel




2014-04-03 15:20 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:

> My point is only that we should be consistent. If the platform element is
> used for preference, then why introduce an attribute which does the same
> thing for icon?
>
> Also, I've seen platform=, cdv:platform= and gap:platform= within the pull
> requests.
>
>
> On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker <ig...@gmail.com>
> wrote:
>
> > Hi Jonathan,
> > considering how difficult is is to get this icon thing is I would like to
> > postpone splash screen discussion after this is merged or rejected.
> > On the other hand there were discussions on this list about splash screen
> > support/changes not so long ago. I did not join those because even this
> > very small icon thing - that does not even introduce new
> > elements/formats/whatnot that would require us to support it until hell
> > freezes - takes ages to get accepted.
> >
> > One thing regarding icon vs splash: I think that icon/launcher_icon is
> more
> > an OS thing while splash is more a app thing.
> >
> > cheers
> > Axel
> >
> >
> >
> > 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <jbondc@gdesolutions.com
> >:
> >
> > > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > > It is a shame that CB-2606 is unresolved this long. We should have
> > > something
> > > > rolled out soon.
> > > >
> > >
> > > +1, thoughts on splashscreens or other images?
> > >
> > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Bryan Higgins <br...@bryanhiggins.net>.
My point is only that we should be consistent. If the platform element is
used for preference, then why introduce an attribute which does the same
thing for icon?

Also, I've seen platform=, cdv:platform= and gap:platform= within the pull
requests.


On Thu, Apr 3, 2014 at 9:08 AM, Axel Nennker <ig...@gmail.com> wrote:

> Hi Jonathan,
> considering how difficult is is to get this icon thing is I would like to
> postpone splash screen discussion after this is merged or rejected.
> On the other hand there were discussions on this list about splash screen
> support/changes not so long ago. I did not join those because even this
> very small icon thing - that does not even introduce new
> elements/formats/whatnot that would require us to support it until hell
> freezes - takes ages to get accepted.
>
> One thing regarding icon vs splash: I think that icon/launcher_icon is more
> an OS thing while splash is more a app thing.
>
> cheers
> Axel
>
>
>
> 2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <jb...@gdesolutions.com>:
>
> > On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > > It is a shame that CB-2606 is unresolved this long. We should have
> > something
> > > rolled out soon.
> > >
> >
> > +1, thoughts on splashscreens or other images?
> >
> >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Axel Nennker <ig...@gmail.com>.
Hi Jonathan,
considering how difficult is is to get this icon thing is I would like to
postpone splash screen discussion after this is merged or rejected.
On the other hand there were discussions on this list about splash screen
support/changes not so long ago. I did not join those because even this
very small icon thing - that does not even introduce new
elements/formats/whatnot that would require us to support it until hell
freezes - takes ages to get accepted.

One thing regarding icon vs splash: I think that icon/launcher_icon is more
an OS thing while splash is more a app thing.

cheers
Axel



2014-04-03 14:46 GMT+02:00 Jonathan Bond-Caron <jb...@gdesolutions.com>:

> On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> > It is a shame that CB-2606 is unresolved this long. We should have
> something
> > rolled out soon.
> >
>
> +1, thoughts on splashscreens or other images?
>
>
>

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Jonathan Bond-Caron <jb...@gdesolutions.com>.
On Thu Apr 3 05:06 AM, Axel Nennker wrote:
> It is a shame that CB-2606 is unresolved this long. We should have something
> rolled out soon.
> 

+1, thoughts on splashscreens or other images?

 

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Axel Nennker <ig...@gmail.com>.
Bryan,
where is this "platform element support" implemented?
It is not in
https://github.com/apache/cordova-cli/blob/master/src/ConfigParser.js
right?

Regarding "cdv:platform": No this is the opposite. There are other threads
in this mailing (search for CB-2606).
To summarize those:
All proposals that included new elements like "cdv:icon" or new attributes
for the icon element "cdv:platform" did not get broad support.
All proposals related to the gap prefix or namespaces did not get broad
support.
Dropping the w3c widget standard for config.xml was postponed to "later".
Hooks work but feel like a nailed on afterwards solution.

So I came up with the proposal to select the icons be the width/height
attributes. This proposal does not cover all use case e.g.: If you want
different icons on different platforms then this will not work. but it is
simple

The pro side:
- standard icon sizes seem to be quite distinct per platform.
- this proposal is already implemented for Android, FirefoxOS, WP8. Sergey
works on ios.
- it does not fiddle with xml stuff
- easy to implement and easy to understand by devs

It is a shame that CB-2606 is unresolved this long. We should have
something rolled out soon.

-axel




2014-04-02 22:21 GMT+02:00 Bryan Higgins <br...@bryanhiggins.net>:

> config.xml already supports a platform element for platform specific config
>
> Is the proposal to also add an attribute cdv:platform which serves the same
> purpose?
>
>
> On Wed, Apr 2, 2014 at 4:09 PM, Sergey Grebnov (Akvelon) <
> v-segreb@microsoft.com> wrote:
>
> > Hi,
> >
> > Have we agreed to proceed with explicit icons definition via config.xml
> > similar to PG Build[1]? -  If so I'm going to add iOS support and update
> > our docs. So we will have support of iOS, Android,  FxOS, WP8 and
> Windows8.
> > Adding icons to a new platform will be easy, similar to [2]
> >
> > Some my thoughts: Adding explicit icon references to config.xml looks
> > redundant since in most cases developers will still use default icon
> names
> > following platform guides so we can just proceed with predefined folder
> > ('res' as an example) and documenting folder structure and icon names for
> > different platforms. - Sort of 'merges' where we replace app resources
> > using some special logic. But it could be useful if we share same image
> > between platforms or reference the same image for different needs inside
> > single platform.
> >
> > [1]
> >
> http://docs.build.phonegap.com/en_US/3.3.0/configuring_icons_and_splash.md.html#Icons%20and%20Splash%20Screens
> > [2]
> >
> https://github.com/apache/cordova-cli/pull/126/files#diff-45a2a0f22289a5eb91348499a5053cd8R170
> >
> > Thx!
> > Sergey
> > -----Original Message-----
> > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > Sent: Thursday, March 13, 2014 5:05 PM
> > To: dev
> > Subject: RE: cordova launcher icon support
> > https://github.com/apache/cordova-cli/pull/126
> >
> > Please fork https://github.com/AxelNennker/cordova-cli and send a PR for
> > wp.
> > Thanks
> > Axel
> >  Am 13.03.2014 13:18 schrieb "Sergey Grebnov (Akvelon)" <
> > v-segreb@microsoft.com>:
> >
> > > Hi
> > > 1.  It seems pull request does not contain related changes for
> > > windows8 and wp8. I may help here if nobody has already started
> > > working in this direction.
> > > 2. I also can't replace default splash screen image following
> > > instructions below. It seems to be PhoneGap Build specific, isn't it?
> > > Do we support changing splash screen as part of cordova-cli?
> > >
> > > http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#Icon
> > > s%20and%20Splash%20Screens
> > >
> > > Thx!
> > > Sergey
> > > -----Original Message-----
> > > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > > Sent: Saturday, February 22, 2014 1:44 AM
> > > To: dev
> > > Subject: Re: cordova launcher icon support
> > > https://github.com/apache/cordova-cli/pull/126
> > >
> > > there is a pull request that implements this gap: prefix and phonegap
> > > namespace stuff but this is Cordova and we have cdv: as prefix and
> > > another
> > > namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
> > > Looks like config.json adapted by both projects is a way out.
> > >
> > >
> > > 2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:
> > >
> > > > Icons are a drag. Explicit configuration sucks, but is the way to go.
> > > >
> > > > It would be nice if the Cordova solution was compatible with
> > > > PhoneGap Build icons<
> > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > > > as h.md.html#Icons%20and%20Splash%20Screens
> > > > >
> > > > .
> > > >
> > > >
> > > >
> > > >
> > > > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker
> > > > <ignisvulpis@gmail.com
> > > > >wrote:
> > > >
> > > > > What is your favorite explicit configuration?
> > > > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> > > > >
> > > > > > As much as I'd like a single icon source I do not think it is
> > > > > > the right path. To do this right I think we need to audit all
> > > > > > possible icons for
> > > > > each
> > > > > > platform and create a map to analyze what could be distilled
> > > > > > across platforms.
> > > > > >
> > > > > > Ideally we'd accept a vector format (SVG) and generate all these
> > > > > ridiculous
> > > > > > sizes but designers will not like this. Pixel perfection,
> > > > > > especially
> > > > for
> > > > > a
> > > > > > springboard icon, is paramount. The only way we're getting there
> > > > > > safely
> > > > > is
> > > > > > zero magic and explicit configuration.
> > > > > >
> > > > > > Lame, I know.
> > > > > >
> > > > > >
> > > > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker
> > > > > > <ig...@gmail.com>
> > > > > > wrote:
> > > > > >
> > > > > > > How about this strategy:
> > > > > > >
> > > > > > > project_dir/config.xml
> > > > > > > - no new elements in config.xml like cdv:icon
> > > > > > > - no new attributes in icon element in config.xml like
> > > > > > > cdv:platform
> > > > or
> > > > > > > gap:platform
> > > > > > > - do not invent stuff we have to support for the rest of our
> > life.
> > > > > > >
> > > > > > > On all platforms:
> > > > > > > - if config.xml contains a <icon src="whatever.png"/> without
> > > > > > > any attributes like width and heigth, then copy that src to to
> > > > > > > all
> > > > platform
> > > > > > > specific  locations where that platform expects launcher icons
> > > > > > > and
> > > > > update
> > > > > > > config files like manifest.webapp on FirefoxOS if there isn't
> > > > > > > a
> > > > > specific
> > > > > > > icon element for that location (see later).
> > > > > > > - no downscaling of icons to lower sizes
> > > > > > > - no upscaling of icons to higher sizes
> > > > > > > - do not add dependencies to new node modules (e.g. to parse
> > > > > > > icon
> > > > > files)
> > > > > > >
> > > > > > > On Android:
> > > > > > > I) if there is a specific  <icon src="icon.png" width="48" />
> > > > > > > then
> > > > copy
> > > > > > > that icon.png to res/drawable-mdpi (height is ignored if width
> > > > > > > is
> > > > > > present,
> > > > > > > no check for non-sqare icons)
> > > > > > > II) Other sizes are handled according to this list from:
> > > > > > > http://developer.android.com/guide/practices/screens_support.h
> > > > > > > tm
> > > > > > > l
> > > > > > >
> > > > > > >    - 36x36 for low-density
> > > > > > >    - 48x48 for medium-density
> > > > > > >    - 72x72 for high-density
> > > > > > >    - 96x96 for extra high-density
> > > > > > >
> > > > > > > Directories not matching this algorithm that have names
> > > > > > > starting with res/drawable get the biggest icon if no default
> > > > > > > icon is available
> > > > (I).
> > > > > > > III) icons with width or height other than the ones mentioned
> > > > > > > here
> > > > are
> > > > > > > ignored.
> > > > > > >
> > > > > > > On FirefoxOS:
> > > > > > > See
> > > > https://developer.mozilla.org/en-US/Apps/Developing/Manifest#icons
> > > > > > >
> > > > > > > For Firefox OS, icons should follow the app icon guidelines<
> > > > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > > > co
> > > > > > > ns/
> > > > >,
> > > > > > > they should not have a drop shadow, and they should be in the
> > > > following
> > > > > > > sizes:
> > > > > > >  128 x 128 For display on the Firefox Marketplace 60 x 60 For
> > > > > > > the
> > > > > actual
> > > > > > > on-device icon; only the 128px icon is mandatory, but it is
> > > > recommended
> > > > > > to
> > > > > > > include this size as well for optimal device icon display
> > > > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > > > co
> > > > > > > ns/
> > > > > > >
> > > > > > > I) ignore icon elements in config.xml without width or height
> > > > > attributes
> > > > > > > II) copy all icons mentioned in config.xml with width  or
> > > > > > > height
> > > > equal
> > > > > to
> > > > > > > 60 or 128 to the app's root and create an icon section in
> > > > > manifest.webapp
> > > > > > > that matches these icons.
> > > > > > > III) if no icon is specified for width/height 60 or 128 then
> > > > > > > copy
> > > > each
> > > > > > icon
> > > > > > > mentioned in config.xml that has width or height specified.
> > > > > > >
> > > > > > > On other platforms:
> > > > > > > some strategy matching the ones for Android and FirefoxOS. If
> > > > > > > a size
> > > > is
> > > > > > > there that is typical for that platform (72,144 for ios) then
> > > > > > > us only
> > > > > > those
> > > > > > > matching icons. Try to help developers.
> > > > > > >
> > > > > > > -Axel
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker <ignisvulpis@gmail.com
> >:
> > > > > > >
> > > > > > > > The topic is reaching politics status...
> > > > > > > >
> > > > > > > > I think it is worth some effort to keep phonegap and cordova
> > > > aligned.
> > > > > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > > > > >
> > > > > > > > -Axel
> > > > > > > >
> > > > > > > > Regarding which PR to accept: I want support for launcher
> > > > > > > > icons
> > > > and I
> > > > > > do
> > > > > > > > not care whether my PR is accepted or the other one.
> > > > > > > > Actually I do not understand why CB-2606 is open for so long.
> > > > > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > 2014-02-12 23:33 GMT+01:00 Jesse <pu...@gmail.com>:
> > > > > > > >
> > > > > > > > Part of what you are seeing is the phonegap namespace
> > > > > > > > extensions
> > > > that
> > > > > > are
> > > > > > > >> added for build.phonegap.com and the online tools. [1] [2]
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> [1]
> > > > > > > >>
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md.htm
> > > > l#
> > > > The%20Basics
> > > > > > > >> [2]
> > > > > > >
> > > > https://github.com/phonegap/phonegap-start/blob/master/www/config.xm
> > > > l
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> @purplecabbage
> > > > > > > >> risingj.com
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > > > > agrieve@chromium.org>
> > > > > > > >> wrote:
> > > > > > > >>
> > > > > > > >> > Just started a new thread to propose removing the
> namespace.
> > > > > > > >> >
> > > > > > > >> > Don't the we should use "gap:density", since that's
> > > > > > > >> > pretty
> > > > > > PhoneGap-y
> > > > > > > as
> > > > > > > >> > opposed to Cordova-y.
> > > > > > > >> >
> > > > > > > >> > How about we have "size" and "density" attributes that
> > > > > > > >> > are just
> > > > > > > >> synonyms?
> > > > > > > >> >
> > > > > > > >> > Off for the day.
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> >
> > > > > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > > > > ignisvulpis@gmail.com>
> > > > > > > >> > wrote:
> > > > > > > >> >
> > > > > > > >> > > Hm. I guess the id test is historical stuff. It is
> > > > > > > >> > > legal XML
> > > > and
> > > > > > the
> > > > > > > >> > parser
> > > > > > > >> > > ignores it.
> > > > > > > >> > >
> > > > > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure I
> > > > > > > >> > > did not invent cdv myself.
> > > > > > > >> > >
> > > > > > > >> > > Regarding the w3c widget standard: I am OK with ditching
> > it.
> > > > > > Should
> > > > > > > >> there
> > > > > > > >> > > be a poll or how do you handle such things?
> > > > > > > >> > > All app templates should remove namespaces then, right?
> > > > > > > >> > >
> > > > > > > >> > > Isn't there another thread around namespaces breaking
> > > > > > > >> > > the wp
> > > > > > > platform?
> > > > > > > >> > >
> > > > > > > >> > > Anyway, I think we should follow the phonegap  way with
> > > > > > > >> > > e.g
> > > > > > > >> gap:density
> > > > > > > >> > for
> > > > > > > >> > > now. And ditch namespaces later.
> > > > > > > >> > >
> > > > > > > >> > > Axel
> > > > > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > > > > agrieve@chromium.org
> > > > > > >:
> > > > > > > >> > >
> > > > > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux
> > > > > > > >> > > > <b...@brian.io>
> > > > > > wrote:
> > > > > > > >> > > >
> > > > > > > >> > > > > Given we are the only 'widget spec' impl in use
> > > > > > > >> > > > > today I'm
> > > > ok
> > > > > > > with
> > > > > > > >> > > > diverging
> > > > > > > >> > > > > and not adding namespace confusion. Def want config
> > > > > > > >> > > > > to be
> > > > > > > explicit
> > > > > > > >> > and
> > > > > > > >> > > > not
> > > > > > > >> > > > > have magical implicit mappings.
> > > > > > > >> > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker <
> > > > > > > >> > ignisvulpis@gmail.com
> > > > > > > >> > > > > >wrote:
> > > > > > > >> > > > >
> > > > > > > >> > > > > > - My implementation does not use "id". Don't know
> > > > > > > >> > > > > > what
> > > > > this
> > > > > > or
> > > > > > > >> > might
> > > > > > > >> > > > > mean.
> > > > > > > >> > > > >
> > > > > > > >> > > > Found it from your test in spec/test-config.xml
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > >  > - I do not want to discuss the sense of xml
> > > > > > > >> > > > > namespaces
> > > > in
> > > > > > > this
> > > > > > > >> > issue
> > > > > > > >> > > > if
> > > > > > > >> > > > > we
> > > > > > > >> > > > > > can avoid it. The current template config.xml
> > > > > > > >> > > > > > defines
> > > > two
> > > > > > > >> > namespaces
> > > > > > > >> > > > and
> > > > > > > >> > > > > > for this issue's implementation I do not want to
> > > > > > > >> > > > > > change
> > > > > > that.
> > > > > > > >> So I
> > > > > > > >> > > > would
> > > > > > > >> > > > > > not drop the widget namespace and would not
> > > > > > > >> > > > > > support "platform"-without-prefix.
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > > > Having gap:platform there makes the property seem
> > > > > > > >> > > > like an
> > > > > > > >> second-class
> > > > > > > >> > > > maybe-not-supposed-to-be-there kind of attribute to
> me.
> > > > > > > >> > > > I'd be happy to change the default template to not
> > > > > > > >> > > > reference
> > > > > the
> > > > > > > >> widget
> > > > > > > >> > > > spec and to make cordova's the default namespace if
> > > > > > > >> > > > that
> > > > will
> > > > > > make
> > > > > > > >> your
> > > > > > > >> > > > inner XML validator rest at-ease, but I really feel
> > > > > > > >> > > > strongly
> > > > > > > against
> > > > > > > >> > > having
> > > > > > > >> > > > XML namespaces creep in. I don't think that most devs
> > > > > > > >> > > > know
> > > > > what
> > > > > > > they
> > > > > > > >> > do,
> > > > > > > >> > > > and our tools wouldn't support you changing the gap:
> > > > namespace
> > > > > > > >> prefix.
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > > > - I would follow the phonegap example
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > >
> > > > > >
> > > > >
> > > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > > > as h.md.html#Icons%20and%20Splash%20Screens
> > > > > > > >> > > > > > that defines e.g. "
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > <icon src="icons/android/ldpi.png"
> > > > gap:platform="android"
> > > > > > > >> > > > > > gap:density="ldpi" />
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > " and I would like to don't parse the icon file
> > > > > > > >> > > > > > to infer
> > > > > > > >> > parameters.
> > > > > > > >> > > > > > Developers want need icons for their app on all
> > > > platforms
> > > > > > they
> > > > > > > >> > > support.
> > > > > > > >> > > > > So
> > > > > > > >> > > > > > they will create all of them in all polished
> > > > > > > >> > > > > > sizes and
> > > > > > > >> densities.
> > > > > > > >> > > > > > My Android implementation puts icons without
> > > > > > > >> > > > > > cdv:density
> > > > > > into
> > > > > > > >> > > > > > "drawable/icon.png" regardless of width/height.
> > > > > > > >> > > > > > What behaviour would you suggest when both lines
> > > > > > > >> > > > > > are
> > > > > present
> > > > > > > in
> > > > > > > >> one
> > > > > > > >> > > > > > config.xml
> > > > > > > >> > > > > > <icon src="icon48.png" width="48"
> > > cdv:platform="android"
> > > > > />
> > > > > > //
> > > > > > > >> > would
> > > > > > > >> > > > end
> > > > > > > >> > > > > up
> > > > > > > >> > > > > > in drawable-mdpi by your suggestion <icon
> > > > > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > > > > >> cdv:platform="android"
> > > > > > > >> > > />
> > > > > > > >> > > > //
> > > > > > > >> > > > > > would end up in drawable-mdpi too
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > > > My thinking here was that density says the same thing
> > > > > > > >> > > > as
> > > > size,
> > > > > > so
> > > > > > > I
> > > > > > > >> > would
> > > > > > > >> > > > just not support density (or make size="mdpi" an
> > > > > > > >> > > > alias for
> > > > > > > >> size="48").
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > I think that developers know what is the
> > > "platform-way"
> > > > > for
> > > > > > > each
> > > > > > > >> > > > > platform.
> > > > > > > >> > > > > > On Android the usual way is to specify densities.
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > - I would not use "size" because that is not w3c
> > > > > > > >> > > > > > widget
> > > > > > style.
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > -- Axel
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > > > > agrieve@chromium.org
> > > > > > > >> >:
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > > Would love to move this along. Would like to
> > > > > > > >> > > > > > > get
> > > > buy-in
> > > > > > from
> > > > > > > >> > others
> > > > > > > >> > > > > > > first though.
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > > > > >> > > > > > >     <icon id="logo" src="logo.png" width="255"
> > > > > > height="255"
> > > > > > > />
> > > > > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > > > > height="255"
> > > > > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi" />
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > My feedback:
> > > > > > > >> > > > > > > - What is "id" for?
> > > > > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we
> > > > > > > >> > > > > > > should
> > > > also
> > > > > > > >> support
> > > > > > > >> > > just
> > > > > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > > > > >> > > http://www.w3.org/ns/widgets
> > > > > > > >> > > > "
> > > > > > > >> > > > > > > from the file.
> > > > > > > >> > > > > > > - I don't think there are any platforms that
> > > > > > > >> > > > > > > support
> > > > > > > >> non-square
> > > > > > > >> > > > icons.
> > > > > > > >> > > > > > > I think size="###" would be better than width=
> > > > > > > >> > > > > > > &&
> > > > > height=
> > > > > > > >> > > > > > > - What happens if you don't specify a size? Do
> > > > > > > >> > > > > > > we
> > > > sniff
> > > > > it
> > > > > > > >> from
> > > > > > > >> > the
> > > > > > > >> > > > > > > png header? This might be nice as a follow-up,
> > > > > > > >> > > > > > > but I'd
> > > > > > lean
> > > > > > > >> > towards
> > > > > > > >> > > > > > > making it required for the first cut.
> > > > > > > >> > > > > > > - cdv:density seems redundant with respect to
> > size.
> > > > > Icons
> > > > > > on
> > > > > > > >> > > android
> > > > > > > >> > > > > > > are 46px at mdpi, so the size can be used to
> > > > > > > >> > > > > > > derive
> > > > the
> > > > > > > >> density.
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew Grieve
> > > > > > > >> > > > > > > <
> > > > > > > >> > > > agrieve@chromium.org>
> > > > > > > >> > > > > > > wrote:
> > > > > > > >> > > > > > > > He Axel, thanks for spearheading this. Will
> > > > > > > >> > > > > > > > have a
> > > > > look
> > > > > > > >> > shortly.
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel Nennker
> > > > > > > >> > > > > > > > <
> > > > > > > >> > > > ignisvulpis@gmail.com
> > > > > > > >> > > > > >
> > > > > > > >> > > > > > > wrote:
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> Andrew,
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> any comments to the current implementation?
> > > > > > > >> > > > > > > >> https://github.com/apache/cordova-cli/pull/1
> > > > > > > >> > > > > > > >> 26
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> Joe commented that the new class in
> > > > config_parser.js
> > > > > > > named
> > > > > > > >> > > "icon"
> > > > > > > >> > > > > > should
> > > > > > > >> > > > > > > >> be named "Icon" but I left it as is because
> > > > > > > >> > > > > > > >> the
> > > > other
> > > > > > > >> classes
> > > > > > > >> > > are
> > > > > > > >> > > > > > > lowercase
> > > > > > > >> > > > > > > >> too.
> > > > > > > >> > > > > > > >> There was another comment that namespaces in
> > > > > config.xml
> > > > > > > >> > > attributes
> > > > > > > >> > > > > are
> > > > > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > > > > >> > > > > > > >> I think that we should use the cordava
> > > > > > > >> > > > > > > >> namespace if
> > > > > > > >> config.xml
> > > > > > > >> > > > > > deviates
> > > > > > > >> > > > > > > >> from the W3C widget definition.
> > > > > > > >> > > > > > > >> These two are the only comments I got.
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> Any chance to accept the request (at least
> > > > > > > >> > > > > > > >> the
> > > > > Android
> > > > > > > >> part)?
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >> -Axel
> > > > > > > >> > > > > > > >>
> > > > > > > >> > > > > > > >
> > > > > > > >> > > > > > >
> > > > > > > >> > > > > >
> > > > > > > >> > > > >
> > > > > > > >> > > >
> > > > > > > >> > >
> > > > > > > >> >
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

Re: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Bryan Higgins <br...@bryanhiggins.net>.
config.xml already supports a platform element for platform specific config

Is the proposal to also add an attribute cdv:platform which serves the same
purpose?


On Wed, Apr 2, 2014 at 4:09 PM, Sergey Grebnov (Akvelon) <
v-segreb@microsoft.com> wrote:

> Hi,
>
> Have we agreed to proceed with explicit icons definition via config.xml
> similar to PG Build[1]? -  If so I'm going to add iOS support and update
> our docs. So we will have support of iOS, Android,  FxOS, WP8 and Windows8.
> Adding icons to a new platform will be easy, similar to [2]
>
> Some my thoughts: Adding explicit icon references to config.xml looks
> redundant since in most cases developers will still use default icon names
> following platform guides so we can just proceed with predefined folder
> ('res' as an example) and documenting folder structure and icon names for
> different platforms. - Sort of 'merges' where we replace app resources
> using some special logic. But it could be useful if we share same image
> between platforms or reference the same image for different needs inside
> single platform.
>
> [1]
> http://docs.build.phonegap.com/en_US/3.3.0/configuring_icons_and_splash.md.html#Icons%20and%20Splash%20Screens
> [2]
> https://github.com/apache/cordova-cli/pull/126/files#diff-45a2a0f22289a5eb91348499a5053cd8R170
>
> Thx!
> Sergey
> -----Original Message-----
> From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> Sent: Thursday, March 13, 2014 5:05 PM
> To: dev
> Subject: RE: cordova launcher icon support
> https://github.com/apache/cordova-cli/pull/126
>
> Please fork https://github.com/AxelNennker/cordova-cli and send a PR for
> wp.
> Thanks
> Axel
>  Am 13.03.2014 13:18 schrieb "Sergey Grebnov (Akvelon)" <
> v-segreb@microsoft.com>:
>
> > Hi
> > 1.  It seems pull request does not contain related changes for
> > windows8 and wp8. I may help here if nobody has already started
> > working in this direction.
> > 2. I also can't replace default splash screen image following
> > instructions below. It seems to be PhoneGap Build specific, isn't it?
> > Do we support changing splash screen as part of cordova-cli?
> >
> > http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#Icon
> > s%20and%20Splash%20Screens
> >
> > Thx!
> > Sergey
> > -----Original Message-----
> > From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> > Sent: Saturday, February 22, 2014 1:44 AM
> > To: dev
> > Subject: Re: cordova launcher icon support
> > https://github.com/apache/cordova-cli/pull/126
> >
> > there is a pull request that implements this gap: prefix and phonegap
> > namespace stuff but this is Cordova and we have cdv: as prefix and
> > another
> > namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
> > Looks like config.json adapted by both projects is a way out.
> >
> >
> > 2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:
> >
> > > Icons are a drag. Explicit configuration sucks, but is the way to go.
> > >
> > > It would be nice if the Cordova solution was compatible with
> > > PhoneGap Build icons<
> > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > > as h.md.html#Icons%20and%20Splash%20Screens
> > > >
> > > .
> > >
> > >
> > >
> > >
> > > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker
> > > <ignisvulpis@gmail.com
> > > >wrote:
> > >
> > > > What is your favorite explicit configuration?
> > > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> > > >
> > > > > As much as I'd like a single icon source I do not think it is
> > > > > the right path. To do this right I think we need to audit all
> > > > > possible icons for
> > > > each
> > > > > platform and create a map to analyze what could be distilled
> > > > > across platforms.
> > > > >
> > > > > Ideally we'd accept a vector format (SVG) and generate all these
> > > > ridiculous
> > > > > sizes but designers will not like this. Pixel perfection,
> > > > > especially
> > > for
> > > > a
> > > > > springboard icon, is paramount. The only way we're getting there
> > > > > safely
> > > > is
> > > > > zero magic and explicit configuration.
> > > > >
> > > > > Lame, I know.
> > > > >
> > > > >
> > > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker
> > > > > <ig...@gmail.com>
> > > > > wrote:
> > > > >
> > > > > > How about this strategy:
> > > > > >
> > > > > > project_dir/config.xml
> > > > > > - no new elements in config.xml like cdv:icon
> > > > > > - no new attributes in icon element in config.xml like
> > > > > > cdv:platform
> > > or
> > > > > > gap:platform
> > > > > > - do not invent stuff we have to support for the rest of our
> life.
> > > > > >
> > > > > > On all platforms:
> > > > > > - if config.xml contains a <icon src="whatever.png"/> without
> > > > > > any attributes like width and heigth, then copy that src to to
> > > > > > all
> > > platform
> > > > > > specific  locations where that platform expects launcher icons
> > > > > > and
> > > > update
> > > > > > config files like manifest.webapp on FirefoxOS if there isn't
> > > > > > a
> > > > specific
> > > > > > icon element for that location (see later).
> > > > > > - no downscaling of icons to lower sizes
> > > > > > - no upscaling of icons to higher sizes
> > > > > > - do not add dependencies to new node modules (e.g. to parse
> > > > > > icon
> > > > files)
> > > > > >
> > > > > > On Android:
> > > > > > I) if there is a specific  <icon src="icon.png" width="48" />
> > > > > > then
> > > copy
> > > > > > that icon.png to res/drawable-mdpi (height is ignored if width
> > > > > > is
> > > > > present,
> > > > > > no check for non-sqare icons)
> > > > > > II) Other sizes are handled according to this list from:
> > > > > > http://developer.android.com/guide/practices/screens_support.h
> > > > > > tm
> > > > > > l
> > > > > >
> > > > > >    - 36x36 for low-density
> > > > > >    - 48x48 for medium-density
> > > > > >    - 72x72 for high-density
> > > > > >    - 96x96 for extra high-density
> > > > > >
> > > > > > Directories not matching this algorithm that have names
> > > > > > starting with res/drawable get the biggest icon if no default
> > > > > > icon is available
> > > (I).
> > > > > > III) icons with width or height other than the ones mentioned
> > > > > > here
> > > are
> > > > > > ignored.
> > > > > >
> > > > > > On FirefoxOS:
> > > > > > See
> > > https://developer.mozilla.org/en-US/Apps/Developing/Manifest#icons
> > > > > >
> > > > > > For Firefox OS, icons should follow the app icon guidelines<
> > > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > > co
> > > > > > ns/
> > > >,
> > > > > > they should not have a drop shadow, and they should be in the
> > > following
> > > > > > sizes:
> > > > > >  128 x 128 For display on the Firefox Marketplace 60 x 60 For
> > > > > > the
> > > > actual
> > > > > > on-device icon; only the 128px icon is mandatory, but it is
> > > recommended
> > > > > to
> > > > > > include this size as well for optimal device icon display
> > > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > > co
> > > > > > ns/
> > > > > >
> > > > > > I) ignore icon elements in config.xml without width or height
> > > > attributes
> > > > > > II) copy all icons mentioned in config.xml with width  or
> > > > > > height
> > > equal
> > > > to
> > > > > > 60 or 128 to the app's root and create an icon section in
> > > > manifest.webapp
> > > > > > that matches these icons.
> > > > > > III) if no icon is specified for width/height 60 or 128 then
> > > > > > copy
> > > each
> > > > > icon
> > > > > > mentioned in config.xml that has width or height specified.
> > > > > >
> > > > > > On other platforms:
> > > > > > some strategy matching the ones for Android and FirefoxOS. If
> > > > > > a size
> > > is
> > > > > > there that is typical for that platform (72,144 for ios) then
> > > > > > us only
> > > > > those
> > > > > > matching icons. Try to help developers.
> > > > > >
> > > > > > -Axel
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker <ig...@gmail.com>:
> > > > > >
> > > > > > > The topic is reaching politics status...
> > > > > > >
> > > > > > > I think it is worth some effort to keep phonegap and cordova
> > > aligned.
> > > > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > > > >
> > > > > > > -Axel
> > > > > > >
> > > > > > > Regarding which PR to accept: I want support for launcher
> > > > > > > icons
> > > and I
> > > > > do
> > > > > > > not care whether my PR is accepted or the other one.
> > > > > > > Actually I do not understand why CB-2606 is open for so long.
> > > > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > 2014-02-12 23:33 GMT+01:00 Jesse <pu...@gmail.com>:
> > > > > > >
> > > > > > > Part of what you are seeing is the phonegap namespace
> > > > > > > extensions
> > > that
> > > > > are
> > > > > > >> added for build.phonegap.com and the online tools. [1] [2]
> > > > > > >>
> > > > > > >>
> > > > > > >> [1]
> > > > > > >>
> > > > > > >>
> > > > > >
> > > > >
> > > >
> > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md.htm
> > > l#
> > > The%20Basics
> > > > > > >> [2]
> > > > > >
> > > https://github.com/phonegap/phonegap-start/blob/master/www/config.xm
> > > l
> > > > > > >>
> > > > > > >>
> > > > > > >> @purplecabbage
> > > > > > >> risingj.com
> > > > > > >>
> > > > > > >>
> > > > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > > > agrieve@chromium.org>
> > > > > > >> wrote:
> > > > > > >>
> > > > > > >> > Just started a new thread to propose removing the namespace.
> > > > > > >> >
> > > > > > >> > Don't the we should use "gap:density", since that's
> > > > > > >> > pretty
> > > > > PhoneGap-y
> > > > > > as
> > > > > > >> > opposed to Cordova-y.
> > > > > > >> >
> > > > > > >> > How about we have "size" and "density" attributes that
> > > > > > >> > are just
> > > > > > >> synonyms?
> > > > > > >> >
> > > > > > >> > Off for the day.
> > > > > > >> >
> > > > > > >> >
> > > > > > >> >
> > > > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > > > ignisvulpis@gmail.com>
> > > > > > >> > wrote:
> > > > > > >> >
> > > > > > >> > > Hm. I guess the id test is historical stuff. It is
> > > > > > >> > > legal XML
> > > and
> > > > > the
> > > > > > >> > parser
> > > > > > >> > > ignores it.
> > > > > > >> > >
> > > > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure I
> > > > > > >> > > did not invent cdv myself.
> > > > > > >> > >
> > > > > > >> > > Regarding the w3c widget standard: I am OK with ditching
> it.
> > > > > Should
> > > > > > >> there
> > > > > > >> > > be a poll or how do you handle such things?
> > > > > > >> > > All app templates should remove namespaces then, right?
> > > > > > >> > >
> > > > > > >> > > Isn't there another thread around namespaces breaking
> > > > > > >> > > the wp
> > > > > > platform?
> > > > > > >> > >
> > > > > > >> > > Anyway, I think we should follow the phonegap  way with
> > > > > > >> > > e.g
> > > > > > >> gap:density
> > > > > > >> > for
> > > > > > >> > > now. And ditch namespaces later.
> > > > > > >> > >
> > > > > > >> > > Axel
> > > > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > > > agrieve@chromium.org
> > > > > >:
> > > > > > >> > >
> > > > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux
> > > > > > >> > > > <b...@brian.io>
> > > > > wrote:
> > > > > > >> > > >
> > > > > > >> > > > > Given we are the only 'widget spec' impl in use
> > > > > > >> > > > > today I'm
> > > ok
> > > > > > with
> > > > > > >> > > > diverging
> > > > > > >> > > > > and not adding namespace confusion. Def want config
> > > > > > >> > > > > to be
> > > > > > explicit
> > > > > > >> > and
> > > > > > >> > > > not
> > > > > > >> > > > > have magical implicit mappings.
> > > > > > >> > > > >
> > > > > > >> > > > >
> > > > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker <
> > > > > > >> > ignisvulpis@gmail.com
> > > > > > >> > > > > >wrote:
> > > > > > >> > > > >
> > > > > > >> > > > > > - My implementation does not use "id". Don't know
> > > > > > >> > > > > > what
> > > > this
> > > > > or
> > > > > > >> > might
> > > > > > >> > > > > mean.
> > > > > > >> > > > >
> > > > > > >> > > > Found it from your test in spec/test-config.xml
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > >  > - I do not want to discuss the sense of xml
> > > > > > >> > > > > namespaces
> > > in
> > > > > > this
> > > > > > >> > issue
> > > > > > >> > > > if
> > > > > > >> > > > > we
> > > > > > >> > > > > > can avoid it. The current template config.xml
> > > > > > >> > > > > > defines
> > > two
> > > > > > >> > namespaces
> > > > > > >> > > > and
> > > > > > >> > > > > > for this issue's implementation I do not want to
> > > > > > >> > > > > > change
> > > > > that.
> > > > > > >> So I
> > > > > > >> > > > would
> > > > > > >> > > > > > not drop the widget namespace and would not
> > > > > > >> > > > > > support "platform"-without-prefix.
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > > > Having gap:platform there makes the property seem
> > > > > > >> > > > like an
> > > > > > >> second-class
> > > > > > >> > > > maybe-not-supposed-to-be-there kind of attribute to me.
> > > > > > >> > > > I'd be happy to change the default template to not
> > > > > > >> > > > reference
> > > > the
> > > > > > >> widget
> > > > > > >> > > > spec and to make cordova's the default namespace if
> > > > > > >> > > > that
> > > will
> > > > > make
> > > > > > >> your
> > > > > > >> > > > inner XML validator rest at-ease, but I really feel
> > > > > > >> > > > strongly
> > > > > > against
> > > > > > >> > > having
> > > > > > >> > > > XML namespaces creep in. I don't think that most devs
> > > > > > >> > > > know
> > > > what
> > > > > > they
> > > > > > >> > do,
> > > > > > >> > > > and our tools wouldn't support you changing the gap:
> > > namespace
> > > > > > >> prefix.
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > > > - I would follow the phonegap example
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > > >
> > > > >
> > > >
> > > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > > as h.md.html#Icons%20and%20Splash%20Screens
> > > > > > >> > > > > > that defines e.g. "
> > > > > > >> > > > > >
> > > > > > >> > > > > > <icon src="icons/android/ldpi.png"
> > > gap:platform="android"
> > > > > > >> > > > > > gap:density="ldpi" />
> > > > > > >> > > > > >
> > > > > > >> > > > > > " and I would like to don't parse the icon file
> > > > > > >> > > > > > to infer
> > > > > > >> > parameters.
> > > > > > >> > > > > > Developers want need icons for their app on all
> > > platforms
> > > > > they
> > > > > > >> > > support.
> > > > > > >> > > > > So
> > > > > > >> > > > > > they will create all of them in all polished
> > > > > > >> > > > > > sizes and
> > > > > > >> densities.
> > > > > > >> > > > > > My Android implementation puts icons without
> > > > > > >> > > > > > cdv:density
> > > > > into
> > > > > > >> > > > > > "drawable/icon.png" regardless of width/height.
> > > > > > >> > > > > > What behaviour would you suggest when both lines
> > > > > > >> > > > > > are
> > > > present
> > > > > > in
> > > > > > >> one
> > > > > > >> > > > > > config.xml
> > > > > > >> > > > > > <icon src="icon48.png" width="48"
> > cdv:platform="android"
> > > > />
> > > > > //
> > > > > > >> > would
> > > > > > >> > > > end
> > > > > > >> > > > > up
> > > > > > >> > > > > > in drawable-mdpi by your suggestion <icon
> > > > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > > > >> cdv:platform="android"
> > > > > > >> > > />
> > > > > > >> > > > //
> > > > > > >> > > > > > would end up in drawable-mdpi too
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > > > My thinking here was that density says the same thing
> > > > > > >> > > > as
> > > size,
> > > > > so
> > > > > > I
> > > > > > >> > would
> > > > > > >> > > > just not support density (or make size="mdpi" an
> > > > > > >> > > > alias for
> > > > > > >> size="48").
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > I think that developers know what is the
> > "platform-way"
> > > > for
> > > > > > each
> > > > > > >> > > > > platform.
> > > > > > >> > > > > > On Android the usual way is to specify densities.
> > > > > > >> > > > > >
> > > > > > >> > > > > > - I would not use "size" because that is not w3c
> > > > > > >> > > > > > widget
> > > > > style.
> > > > > > >> > > > > >
> > > > > > >> > > > > > -- Axel
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > > > agrieve@chromium.org
> > > > > > >> >:
> > > > > > >> > > > > >
> > > > > > >> > > > > > > Would love to move this along. Would like to
> > > > > > >> > > > > > > get
> > > buy-in
> > > > > from
> > > > > > >> > others
> > > > > > >> > > > > > > first though.
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > > > >> > > > > > >
> > > > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > > > >> > > > > > >     <icon id="logo" src="logo.png" width="255"
> > > > > height="255"
> > > > > > />
> > > > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > > > height="255"
> > > > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi" />
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > My feedback:
> > > > > > >> > > > > > > - What is "id" for?
> > > > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we
> > > > > > >> > > > > > > should
> > > also
> > > > > > >> support
> > > > > > >> > > just
> > > > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > > > >> > > http://www.w3.org/ns/widgets
> > > > > > >> > > > "
> > > > > > >> > > > > > > from the file.
> > > > > > >> > > > > > > - I don't think there are any platforms that
> > > > > > >> > > > > > > support
> > > > > > >> non-square
> > > > > > >> > > > icons.
> > > > > > >> > > > > > > I think size="###" would be better than width=
> > > > > > >> > > > > > > &&
> > > > height=
> > > > > > >> > > > > > > - What happens if you don't specify a size? Do
> > > > > > >> > > > > > > we
> > > sniff
> > > > it
> > > > > > >> from
> > > > > > >> > the
> > > > > > >> > > > > > > png header? This might be nice as a follow-up,
> > > > > > >> > > > > > > but I'd
> > > > > lean
> > > > > > >> > towards
> > > > > > >> > > > > > > making it required for the first cut.
> > > > > > >> > > > > > > - cdv:density seems redundant with respect to
> size.
> > > > Icons
> > > > > on
> > > > > > >> > > android
> > > > > > >> > > > > > > are 46px at mdpi, so the size can be used to
> > > > > > >> > > > > > > derive
> > > the
> > > > > > >> density.
> > > > > > >> > > > > > >
> > > > > > >> > > > > > >
> > > > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew Grieve
> > > > > > >> > > > > > > <
> > > > > > >> > > > agrieve@chromium.org>
> > > > > > >> > > > > > > wrote:
> > > > > > >> > > > > > > > He Axel, thanks for spearheading this. Will
> > > > > > >> > > > > > > > have a
> > > > look
> > > > > > >> > shortly.
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel Nennker
> > > > > > >> > > > > > > > <
> > > > > > >> > > > ignisvulpis@gmail.com
> > > > > > >> > > > > >
> > > > > > >> > > > > > > wrote:
> > > > > > >> > > > > > > >>
> > > > > > >> > > > > > > >> Andrew,
> > > > > > >> > > > > > > >>
> > > > > > >> > > > > > > >> any comments to the current implementation?
> > > > > > >> > > > > > > >> https://github.com/apache/cordova-cli/pull/1
> > > > > > >> > > > > > > >> 26
> > > > > > >> > > > > > > >>
> > > > > > >> > > > > > > >> Joe commented that the new class in
> > > config_parser.js
> > > > > > named
> > > > > > >> > > "icon"
> > > > > > >> > > > > > should
> > > > > > >> > > > > > > >> be named "Icon" but I left it as is because
> > > > > > >> > > > > > > >> the
> > > other
> > > > > > >> classes
> > > > > > >> > > are
> > > > > > >> > > > > > > lowercase
> > > > > > >> > > > > > > >> too.
> > > > > > >> > > > > > > >> There was another comment that namespaces in
> > > > config.xml
> > > > > > >> > > attributes
> > > > > > >> > > > > are
> > > > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > > > >> > > > > > > >> I think that we should use the cordava
> > > > > > >> > > > > > > >> namespace if
> > > > > > >> config.xml
> > > > > > >> > > > > > deviates
> > > > > > >> > > > > > > >> from the W3C widget definition.
> > > > > > >> > > > > > > >> These two are the only comments I got.
> > > > > > >> > > > > > > >>
> > > > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > > > >> > > > > > > >>
> > > > > > >> > > > > > > >> Any chance to accept the request (at least
> > > > > > >> > > > > > > >> the
> > > > Android
> > > > > > >> part)?
> > > > > > >> > > > > > > >>
> > > > > > >> > > > > > > >> -Axel
> > > > > > >> > > > > > > >>
> > > > > > >> > > > > > > >
> > > > > > >> > > > > > >
> > > > > > >> > > > > >
> > > > > > >> > > > >
> > > > > > >> > > >
> > > > > > >> > >
> > > > > > >> >
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by "Sergey Grebnov (Akvelon)" <v-...@microsoft.com>.
Hi,

Have we agreed to proceed with explicit icons definition via config.xml similar to PG Build[1]? -  If so I'm going to add iOS support and update our docs. So we will have support of iOS, Android,  FxOS, WP8 and Windows8. Adding icons to a new platform will be easy, similar to [2]

Some my thoughts: Adding explicit icon references to config.xml looks redundant since in most cases developers will still use default icon names following platform guides so we can just proceed with predefined folder ('res' as an example) and documenting folder structure and icon names for different platforms. - Sort of 'merges' where we replace app resources using some special logic. But it could be useful if we share same image between platforms or reference the same image for different needs inside single platform.

[1] http://docs.build.phonegap.com/en_US/3.3.0/configuring_icons_and_splash.md.html#Icons%20and%20Splash%20Screens
[2] https://github.com/apache/cordova-cli/pull/126/files#diff-45a2a0f22289a5eb91348499a5053cd8R170

Thx!
Sergey
-----Original Message-----
From: Axel Nennker [mailto:ignisvulpis@gmail.com] 
Sent: Thursday, March 13, 2014 5:05 PM
To: dev
Subject: RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Please fork https://github.com/AxelNennker/cordova-cli and send a PR for wp.
Thanks
Axel
 Am 13.03.2014 13:18 schrieb "Sergey Grebnov (Akvelon)" <
v-segreb@microsoft.com>:

> Hi
> 1.  It seems pull request does not contain related changes for 
> windows8 and wp8. I may help here if nobody has already started 
> working in this direction.
> 2. I also can't replace default splash screen image following 
> instructions below. It seems to be PhoneGap Build specific, isn't it? 
> Do we support changing splash screen as part of cordova-cli?
>
> http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#Icon
> s%20and%20Splash%20Screens
>
> Thx!
> Sergey
> -----Original Message-----
> From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> Sent: Saturday, February 22, 2014 1:44 AM
> To: dev
> Subject: Re: cordova launcher icon support
> https://github.com/apache/cordova-cli/pull/126
>
> there is a pull request that implements this gap: prefix and phonegap 
> namespace stuff but this is Cordova and we have cdv: as prefix and 
> another
> namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
> Looks like config.json adapted by both projects is a way out.
>
>
> 2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:
>
> > Icons are a drag. Explicit configuration sucks, but is the way to go.
> >
> > It would be nice if the Cordova solution was compatible with 
> > PhoneGap Build icons< 
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > as h.md.html#Icons%20and%20Splash%20Screens
> > >
> > .
> >
> >
> >
> >
> > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker 
> > <ignisvulpis@gmail.com
> > >wrote:
> >
> > > What is your favorite explicit configuration?
> > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> > >
> > > > As much as I'd like a single icon source I do not think it is 
> > > > the right path. To do this right I think we need to audit all 
> > > > possible icons for
> > > each
> > > > platform and create a map to analyze what could be distilled 
> > > > across platforms.
> > > >
> > > > Ideally we'd accept a vector format (SVG) and generate all these
> > > ridiculous
> > > > sizes but designers will not like this. Pixel perfection, 
> > > > especially
> > for
> > > a
> > > > springboard icon, is paramount. The only way we're getting there 
> > > > safely
> > > is
> > > > zero magic and explicit configuration.
> > > >
> > > > Lame, I know.
> > > >
> > > >
> > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker 
> > > > <ig...@gmail.com>
> > > > wrote:
> > > >
> > > > > How about this strategy:
> > > > >
> > > > > project_dir/config.xml
> > > > > - no new elements in config.xml like cdv:icon
> > > > > - no new attributes in icon element in config.xml like 
> > > > > cdv:platform
> > or
> > > > > gap:platform
> > > > > - do not invent stuff we have to support for the rest of our life.
> > > > >
> > > > > On all platforms:
> > > > > - if config.xml contains a <icon src="whatever.png"/> without 
> > > > > any attributes like width and heigth, then copy that src to to 
> > > > > all
> > platform
> > > > > specific  locations where that platform expects launcher icons 
> > > > > and
> > > update
> > > > > config files like manifest.webapp on FirefoxOS if there isn't 
> > > > > a
> > > specific
> > > > > icon element for that location (see later).
> > > > > - no downscaling of icons to lower sizes
> > > > > - no upscaling of icons to higher sizes
> > > > > - do not add dependencies to new node modules (e.g. to parse 
> > > > > icon
> > > files)
> > > > >
> > > > > On Android:
> > > > > I) if there is a specific  <icon src="icon.png" width="48" /> 
> > > > > then
> > copy
> > > > > that icon.png to res/drawable-mdpi (height is ignored if width 
> > > > > is
> > > > present,
> > > > > no check for non-sqare icons)
> > > > > II) Other sizes are handled according to this list from:
> > > > > http://developer.android.com/guide/practices/screens_support.h
> > > > > tm
> > > > > l
> > > > >
> > > > >    - 36x36 for low-density
> > > > >    - 48x48 for medium-density
> > > > >    - 72x72 for high-density
> > > > >    - 96x96 for extra high-density
> > > > >
> > > > > Directories not matching this algorithm that have names 
> > > > > starting with res/drawable get the biggest icon if no default 
> > > > > icon is available
> > (I).
> > > > > III) icons with width or height other than the ones mentioned 
> > > > > here
> > are
> > > > > ignored.
> > > > >
> > > > > On FirefoxOS:
> > > > > See
> > https://developer.mozilla.org/en-US/Apps/Developing/Manifest#icons
> > > > >
> > > > > For Firefox OS, icons should follow the app icon guidelines< 
> > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > co
> > > > > ns/
> > >,
> > > > > they should not have a drop shadow, and they should be in the
> > following
> > > > > sizes:
> > > > >  128 x 128 For display on the Firefox Marketplace 60 x 60 For 
> > > > > the
> > > actual
> > > > > on-device icon; only the 128px icon is mandatory, but it is
> > recommended
> > > > to
> > > > > include this size as well for optimal device icon display 
> > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/i
> > > > > co
> > > > > ns/
> > > > >
> > > > > I) ignore icon elements in config.xml without width or height
> > > attributes
> > > > > II) copy all icons mentioned in config.xml with width  or 
> > > > > height
> > equal
> > > to
> > > > > 60 or 128 to the app's root and create an icon section in
> > > manifest.webapp
> > > > > that matches these icons.
> > > > > III) if no icon is specified for width/height 60 or 128 then 
> > > > > copy
> > each
> > > > icon
> > > > > mentioned in config.xml that has width or height specified.
> > > > >
> > > > > On other platforms:
> > > > > some strategy matching the ones for Android and FirefoxOS. If 
> > > > > a size
> > is
> > > > > there that is typical for that platform (72,144 for ios) then 
> > > > > us only
> > > > those
> > > > > matching icons. Try to help developers.
> > > > >
> > > > > -Axel
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker <ig...@gmail.com>:
> > > > >
> > > > > > The topic is reaching politics status...
> > > > > >
> > > > > > I think it is worth some effort to keep phonegap and cordova
> > aligned.
> > > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > > >
> > > > > > -Axel
> > > > > >
> > > > > > Regarding which PR to accept: I want support for launcher 
> > > > > > icons
> > and I
> > > > do
> > > > > > not care whether my PR is accepted or the other one.
> > > > > > Actually I do not understand why CB-2606 is open for so long.
> > > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2014-02-12 23:33 GMT+01:00 Jesse <pu...@gmail.com>:
> > > > > >
> > > > > > Part of what you are seeing is the phonegap namespace 
> > > > > > extensions
> > that
> > > > are
> > > > > >> added for build.phonegap.com and the online tools. [1] [2]
> > > > > >>
> > > > > >>
> > > > > >> [1]
> > > > > >>
> > > > > >>
> > > > >
> > > >
> > >
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md.htm
> > l#
> > The%20Basics
> > > > > >> [2]
> > > > >
> > https://github.com/phonegap/phonegap-start/blob/master/www/config.xm
> > l
> > > > > >>
> > > > > >>
> > > > > >> @purplecabbage
> > > > > >> risingj.com
> > > > > >>
> > > > > >>
> > > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > > agrieve@chromium.org>
> > > > > >> wrote:
> > > > > >>
> > > > > >> > Just started a new thread to propose removing the namespace.
> > > > > >> >
> > > > > >> > Don't the we should use "gap:density", since that's 
> > > > > >> > pretty
> > > > PhoneGap-y
> > > > > as
> > > > > >> > opposed to Cordova-y.
> > > > > >> >
> > > > > >> > How about we have "size" and "density" attributes that 
> > > > > >> > are just
> > > > > >> synonyms?
> > > > > >> >
> > > > > >> > Off for the day.
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > > ignisvulpis@gmail.com>
> > > > > >> > wrote:
> > > > > >> >
> > > > > >> > > Hm. I guess the id test is historical stuff. It is 
> > > > > >> > > legal XML
> > and
> > > > the
> > > > > >> > parser
> > > > > >> > > ignores it.
> > > > > >> > >
> > > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure I 
> > > > > >> > > did not invent cdv myself.
> > > > > >> > >
> > > > > >> > > Regarding the w3c widget standard: I am OK with ditching it.
> > > > Should
> > > > > >> there
> > > > > >> > > be a poll or how do you handle such things?
> > > > > >> > > All app templates should remove namespaces then, right?
> > > > > >> > >
> > > > > >> > > Isn't there another thread around namespaces breaking 
> > > > > >> > > the wp
> > > > > platform?
> > > > > >> > >
> > > > > >> > > Anyway, I think we should follow the phonegap  way with 
> > > > > >> > > e.g
> > > > > >> gap:density
> > > > > >> > for
> > > > > >> > > now. And ditch namespaces later.
> > > > > >> > >
> > > > > >> > > Axel
> > > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > > agrieve@chromium.org
> > > > >:
> > > > > >> > >
> > > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux 
> > > > > >> > > > <b...@brian.io>
> > > > wrote:
> > > > > >> > > >
> > > > > >> > > > > Given we are the only 'widget spec' impl in use 
> > > > > >> > > > > today I'm
> > ok
> > > > > with
> > > > > >> > > > diverging
> > > > > >> > > > > and not adding namespace confusion. Def want config 
> > > > > >> > > > > to be
> > > > > explicit
> > > > > >> > and
> > > > > >> > > > not
> > > > > >> > > > > have magical implicit mappings.
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker <
> > > > > >> > ignisvulpis@gmail.com
> > > > > >> > > > > >wrote:
> > > > > >> > > > >
> > > > > >> > > > > > - My implementation does not use "id". Don't know 
> > > > > >> > > > > > what
> > > this
> > > > or
> > > > > >> > might
> > > > > >> > > > > mean.
> > > > > >> > > > >
> > > > > >> > > > Found it from your test in spec/test-config.xml
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > >  > - I do not want to discuss the sense of xml 
> > > > > >> > > > > namespaces
> > in
> > > > > this
> > > > > >> > issue
> > > > > >> > > > if
> > > > > >> > > > > we
> > > > > >> > > > > > can avoid it. The current template config.xml 
> > > > > >> > > > > > defines
> > two
> > > > > >> > namespaces
> > > > > >> > > > and
> > > > > >> > > > > > for this issue's implementation I do not want to 
> > > > > >> > > > > > change
> > > > that.
> > > > > >> So I
> > > > > >> > > > would
> > > > > >> > > > > > not drop the widget namespace and would not 
> > > > > >> > > > > > support "platform"-without-prefix.
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > > Having gap:platform there makes the property seem 
> > > > > >> > > > like an
> > > > > >> second-class
> > > > > >> > > > maybe-not-supposed-to-be-there kind of attribute to me.
> > > > > >> > > > I'd be happy to change the default template to not 
> > > > > >> > > > reference
> > > the
> > > > > >> widget
> > > > > >> > > > spec and to make cordova's the default namespace if 
> > > > > >> > > > that
> > will
> > > > make
> > > > > >> your
> > > > > >> > > > inner XML validator rest at-ease, but I really feel 
> > > > > >> > > > strongly
> > > > > against
> > > > > >> > > having
> > > > > >> > > > XML namespaces creep in. I don't think that most devs 
> > > > > >> > > > know
> > > what
> > > > > they
> > > > > >> > do,
> > > > > >> > > > and our tools wouldn't support you changing the gap:
> > namespace
> > > > > >> prefix.
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > > > - I would follow the phonegap example
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_spl
> > as h.md.html#Icons%20and%20Splash%20Screens
> > > > > >> > > > > > that defines e.g. "
> > > > > >> > > > > >
> > > > > >> > > > > > <icon src="icons/android/ldpi.png"
> > gap:platform="android"
> > > > > >> > > > > > gap:density="ldpi" />
> > > > > >> > > > > >
> > > > > >> > > > > > " and I would like to don't parse the icon file 
> > > > > >> > > > > > to infer
> > > > > >> > parameters.
> > > > > >> > > > > > Developers want need icons for their app on all
> > platforms
> > > > they
> > > > > >> > > support.
> > > > > >> > > > > So
> > > > > >> > > > > > they will create all of them in all polished 
> > > > > >> > > > > > sizes and
> > > > > >> densities.
> > > > > >> > > > > > My Android implementation puts icons without 
> > > > > >> > > > > > cdv:density
> > > > into
> > > > > >> > > > > > "drawable/icon.png" regardless of width/height.
> > > > > >> > > > > > What behaviour would you suggest when both lines 
> > > > > >> > > > > > are
> > > present
> > > > > in
> > > > > >> one
> > > > > >> > > > > > config.xml
> > > > > >> > > > > > <icon src="icon48.png" width="48"
> cdv:platform="android"
> > > />
> > > > //
> > > > > >> > would
> > > > > >> > > > end
> > > > > >> > > > > up
> > > > > >> > > > > > in drawable-mdpi by your suggestion <icon 
> > > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > > >> cdv:platform="android"
> > > > > >> > > />
> > > > > >> > > > //
> > > > > >> > > > > > would end up in drawable-mdpi too
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > > My thinking here was that density says the same thing 
> > > > > >> > > > as
> > size,
> > > > so
> > > > > I
> > > > > >> > would
> > > > > >> > > > just not support density (or make size="mdpi" an 
> > > > > >> > > > alias for
> > > > > >> size="48").
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > > >
> > > > > >> > > > > > I think that developers know what is the
> "platform-way"
> > > for
> > > > > each
> > > > > >> > > > > platform.
> > > > > >> > > > > > On Android the usual way is to specify densities.
> > > > > >> > > > > >
> > > > > >> > > > > > - I would not use "size" because that is not w3c 
> > > > > >> > > > > > widget
> > > > style.
> > > > > >> > > > > >
> > > > > >> > > > > > -- Axel
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > > agrieve@chromium.org
> > > > > >> >:
> > > > > >> > > > > >
> > > > > >> > > > > > > Would love to move this along. Would like to 
> > > > > >> > > > > > > get
> > buy-in
> > > > from
> > > > > >> > others
> > > > > >> > > > > > > first though.
> > > > > >> > > > > > >
> > > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > > >> > > > > > >
> > > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > > >> > > > > > >     <icon id="logo" src="logo.png" width="255"
> > > > height="255"
> > > > > />
> > > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > > height="255"
> > > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi" />
> > > > > >> > > > > > >
> > > > > >> > > > > > > My feedback:
> > > > > >> > > > > > > - What is "id" for?
> > > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we 
> > > > > >> > > > > > > should
> > also
> > > > > >> support
> > > > > >> > > just
> > > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > > >> > > http://www.w3.org/ns/widgets
> > > > > >> > > > "
> > > > > >> > > > > > > from the file.
> > > > > >> > > > > > > - I don't think there are any platforms that 
> > > > > >> > > > > > > support
> > > > > >> non-square
> > > > > >> > > > icons.
> > > > > >> > > > > > > I think size="###" would be better than width= 
> > > > > >> > > > > > > &&
> > > height=
> > > > > >> > > > > > > - What happens if you don't specify a size? Do 
> > > > > >> > > > > > > we
> > sniff
> > > it
> > > > > >> from
> > > > > >> > the
> > > > > >> > > > > > > png header? This might be nice as a follow-up, 
> > > > > >> > > > > > > but I'd
> > > > lean
> > > > > >> > towards
> > > > > >> > > > > > > making it required for the first cut.
> > > > > >> > > > > > > - cdv:density seems redundant with respect to size.
> > > Icons
> > > > on
> > > > > >> > > android
> > > > > >> > > > > > > are 46px at mdpi, so the size can be used to 
> > > > > >> > > > > > > derive
> > the
> > > > > >> density.
> > > > > >> > > > > > >
> > > > > >> > > > > > >
> > > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew Grieve 
> > > > > >> > > > > > > <
> > > > > >> > > > agrieve@chromium.org>
> > > > > >> > > > > > > wrote:
> > > > > >> > > > > > > > He Axel, thanks for spearheading this. Will 
> > > > > >> > > > > > > > have a
> > > look
> > > > > >> > shortly.
> > > > > >> > > > > > > >
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel Nennker 
> > > > > >> > > > > > > > <
> > > > > >> > > > ignisvulpis@gmail.com
> > > > > >> > > > > >
> > > > > >> > > > > > > wrote:
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> Andrew,
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> any comments to the current implementation?
> > > > > >> > > > > > > >> https://github.com/apache/cordova-cli/pull/1
> > > > > >> > > > > > > >> 26
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> Joe commented that the new class in
> > config_parser.js
> > > > > named
> > > > > >> > > "icon"
> > > > > >> > > > > > should
> > > > > >> > > > > > > >> be named "Icon" but I left it as is because 
> > > > > >> > > > > > > >> the
> > other
> > > > > >> classes
> > > > > >> > > are
> > > > > >> > > > > > > lowercase
> > > > > >> > > > > > > >> too.
> > > > > >> > > > > > > >> There was another comment that namespaces in
> > > config.xml
> > > > > >> > > attributes
> > > > > >> > > > > are
> > > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > > >> > > > > > > >> I think that we should use the cordava 
> > > > > >> > > > > > > >> namespace if
> > > > > >> config.xml
> > > > > >> > > > > > deviates
> > > > > >> > > > > > > >> from the W3C widget definition.
> > > > > >> > > > > > > >> These two are the only comments I got.
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> Any chance to accept the request (at least 
> > > > > >> > > > > > > >> the
> > > Android
> > > > > >> part)?
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> -Axel
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >
> > > > > >> > > > > > >
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>

RE: cordova launcher icon support https://github.com/apache/cordova-cli/pull/126

Posted by Axel Nennker <ig...@gmail.com>.
Please fork https://github.com/AxelNennker/cordova-cli and send a PR for wp.
Thanks
Axel
 Am 13.03.2014 13:18 schrieb "Sergey Grebnov (Akvelon)" <
v-segreb@microsoft.com>:

> Hi
> 1.  It seems pull request does not contain related changes for windows8
> and wp8. I may help here if nobody has already started working in this
> direction.
> 2. I also can't replace default splash screen image following instructions
> below. It seems to be PhoneGap Build specific, isn't it? Do we support
> changing splash screen as part of cordova-cli?
>
> http://cordova.apache.org/docs/en/3.4.0/config_ref_images.md.html#Icons%20and%20Splash%20Screens
>
> Thx!
> Sergey
> -----Original Message-----
> From: Axel Nennker [mailto:ignisvulpis@gmail.com]
> Sent: Saturday, February 22, 2014 1:44 AM
> To: dev
> Subject: Re: cordova launcher icon support
> https://github.com/apache/cordova-cli/pull/126
>
> there is a pull request that implements this gap: prefix and phonegap
> namespace stuff but this is Cordova and we have cdv: as prefix and another
> namespace: xmlns:cdv="http://cordova.apache.org/ns/1.0"
> Looks like config.json adapted by both projects is a way out.
>
>
> 2014-02-21 21:36 GMT+01:00 Don Coleman <do...@gmail.com>:
>
> > Icons are a drag. Explicit configuration sucks, but is the way to go.
> >
> > It would be nice if the Cordova solution was compatible with PhoneGap
> > Build icons<
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_splas
> > h.md.html#Icons%20and%20Splash%20Screens
> > >
> > .
> >
> >
> >
> >
> > On Fri, Feb 21, 2014 at 11:24 AM, Axel Nennker <ignisvulpis@gmail.com
> > >wrote:
> >
> > > What is your favorite explicit configuration?
> > > Am 21.02.2014 16:49 schrieb "Brian LeRoux" <b...@brian.io>:
> > >
> > > > As much as I'd like a single icon source I do not think it is the
> > > > right path. To do this right I think we need to audit all possible
> > > > icons for
> > > each
> > > > platform and create a map to analyze what could be distilled
> > > > across platforms.
> > > >
> > > > Ideally we'd accept a vector format (SVG) and generate all these
> > > ridiculous
> > > > sizes but designers will not like this. Pixel perfection,
> > > > especially
> > for
> > > a
> > > > springboard icon, is paramount. The only way we're getting there
> > > > safely
> > > is
> > > > zero magic and explicit configuration.
> > > >
> > > > Lame, I know.
> > > >
> > > >
> > > > On Thu, Feb 20, 2014 at 1:07 AM, Axel Nennker
> > > > <ig...@gmail.com>
> > > > wrote:
> > > >
> > > > > How about this strategy:
> > > > >
> > > > > project_dir/config.xml
> > > > > - no new elements in config.xml like cdv:icon
> > > > > - no new attributes in icon element in config.xml like
> > > > > cdv:platform
> > or
> > > > > gap:platform
> > > > > - do not invent stuff we have to support for the rest of our life.
> > > > >
> > > > > On all platforms:
> > > > > - if config.xml contains a <icon src="whatever.png"/> without
> > > > > any attributes like width and heigth, then copy that src to to
> > > > > all
> > platform
> > > > > specific  locations where that platform expects launcher icons
> > > > > and
> > > update
> > > > > config files like manifest.webapp on FirefoxOS if there isn't a
> > > specific
> > > > > icon element for that location (see later).
> > > > > - no downscaling of icons to lower sizes
> > > > > - no upscaling of icons to higher sizes
> > > > > - do not add dependencies to new node modules (e.g. to parse
> > > > > icon
> > > files)
> > > > >
> > > > > On Android:
> > > > > I) if there is a specific  <icon src="icon.png" width="48" />
> > > > > then
> > copy
> > > > > that icon.png to res/drawable-mdpi (height is ignored if width
> > > > > is
> > > > present,
> > > > > no check for non-sqare icons)
> > > > > II) Other sizes are handled according to this list from:
> > > > > http://developer.android.com/guide/practices/screens_support.htm
> > > > > l
> > > > >
> > > > >    - 36x36 for low-density
> > > > >    - 48x48 for medium-density
> > > > >    - 72x72 for high-density
> > > > >    - 96x96 for extra high-density
> > > > >
> > > > > Directories not matching this algorithm that have names starting
> > > > > with res/drawable get the biggest icon if no default icon is
> > > > > available
> > (I).
> > > > > III) icons with width or height other than the ones mentioned
> > > > > here
> > are
> > > > > ignored.
> > > > >
> > > > > On FirefoxOS:
> > > > > See
> > https://developer.mozilla.org/en-US/Apps/Developing/Manifest#icons
> > > > >
> > > > > For Firefox OS, icons should follow the app icon guidelines<
> > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/ico
> > > > > ns/
> > >,
> > > > > they should not have a drop shadow, and they should be in the
> > following
> > > > > sizes:
> > > > >  128 x 128 For display on the Firefox Marketplace 60 x 60 For
> > > > > the
> > > actual
> > > > > on-device icon; only the 128px icon is mandatory, but it is
> > recommended
> > > > to
> > > > > include this size as well for optimal device icon display
> > > > > https://www.mozilla.org/en-US/styleguide/products/firefox-os/ico
> > > > > ns/
> > > > >
> > > > > I) ignore icon elements in config.xml without width or height
> > > attributes
> > > > > II) copy all icons mentioned in config.xml with width  or height
> > equal
> > > to
> > > > > 60 or 128 to the app's root and create an icon section in
> > > manifest.webapp
> > > > > that matches these icons.
> > > > > III) if no icon is specified for width/height 60 or 128 then
> > > > > copy
> > each
> > > > icon
> > > > > mentioned in config.xml that has width or height specified.
> > > > >
> > > > > On other platforms:
> > > > > some strategy matching the ones for Android and FirefoxOS. If a
> > > > > size
> > is
> > > > > there that is typical for that platform (72,144 for ios) then us
> > > > > only
> > > > those
> > > > > matching icons. Try to help developers.
> > > > >
> > > > > -Axel
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 2014-02-13 9:56 GMT+01:00 Axel Nennker <ig...@gmail.com>:
> > > > >
> > > > > > The topic is reaching politics status...
> > > > > >
> > > > > > I think it is worth some effort to keep phonegap and cordova
> > aligned.
> > > > > > What is "Adobe"'s position on W3C widget and xml vs json?
> > > > > >
> > > > > > -Axel
> > > > > >
> > > > > > Regarding which PR to accept: I want support for launcher
> > > > > > icons
> > and I
> > > > do
> > > > > > not care whether my PR is accepted or the other one.
> > > > > > Actually I do not understand why CB-2606 is open for so long.
> > > > > > https://issues.apache.org/jira/browse/CB-2606
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > 2014-02-12 23:33 GMT+01:00 Jesse <pu...@gmail.com>:
> > > > > >
> > > > > > Part of what you are seeing is the phonegap namespace
> > > > > > extensions
> > that
> > > > are
> > > > > >> added for build.phonegap.com and the online tools. [1] [2]
> > > > > >>
> > > > > >>
> > > > > >> [1]
> > > > > >>
> > > > > >>
> > > > >
> > > >
> > >
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_basics.md.html#
> > The%20Basics
> > > > > >> [2]
> > > > >
> > https://github.com/phonegap/phonegap-start/blob/master/www/config.xml
> > > > > >>
> > > > > >>
> > > > > >> @purplecabbage
> > > > > >> risingj.com
> > > > > >>
> > > > > >>
> > > > > >> On Wed, Feb 12, 2014 at 2:03 PM, Andrew Grieve <
> > > agrieve@chromium.org>
> > > > > >> wrote:
> > > > > >>
> > > > > >> > Just started a new thread to propose removing the namespace.
> > > > > >> >
> > > > > >> > Don't the we should use "gap:density", since that's pretty
> > > > PhoneGap-y
> > > > > as
> > > > > >> > opposed to Cordova-y.
> > > > > >> >
> > > > > >> > How about we have "size" and "density" attributes that are
> > > > > >> > just
> > > > > >> synonyms?
> > > > > >> >
> > > > > >> > Off for the day.
> > > > > >> >
> > > > > >> >
> > > > > >> >
> > > > > >> > On Wed, Feb 12, 2014 at 4:57 PM, Axel Nennker <
> > > > ignisvulpis@gmail.com>
> > > > > >> > wrote:
> > > > > >> >
> > > > > >> > > Hm. I guess the id test is historical stuff. It is legal
> > > > > >> > > XML
> > and
> > > > the
> > > > > >> > parser
> > > > > >> > > ignores it.
> > > > > >> > >
> > > > > >> > > Regarding the NS prefix: cdv vs gap I am quite sure I did
> > > > > >> > > not invent cdv myself.
> > > > > >> > >
> > > > > >> > > Regarding the w3c widget standard: I am OK with ditching it.
> > > > Should
> > > > > >> there
> > > > > >> > > be a poll or how do you handle such things?
> > > > > >> > > All app templates should remove namespaces then, right?
> > > > > >> > >
> > > > > >> > > Isn't there another thread around namespaces breaking the
> > > > > >> > > wp
> > > > > platform?
> > > > > >> > >
> > > > > >> > > Anyway, I think we should follow the phonegap  way with
> > > > > >> > > e.g
> > > > > >> gap:density
> > > > > >> > for
> > > > > >> > > now. And ditch namespaces later.
> > > > > >> > >
> > > > > >> > > Axel
> > > > > >> > > Am 12.02.2014 22:38 schrieb "Andrew Grieve" <
> > > agrieve@chromium.org
> > > > >:
> > > > > >> > >
> > > > > >> > > > On Tue, Feb 11, 2014 at 3:43 PM, Brian LeRoux
> > > > > >> > > > <b...@brian.io>
> > > > wrote:
> > > > > >> > > >
> > > > > >> > > > > Given we are the only 'widget spec' impl in use today
> > > > > >> > > > > I'm
> > ok
> > > > > with
> > > > > >> > > > diverging
> > > > > >> > > > > and not adding namespace confusion. Def want config
> > > > > >> > > > > to be
> > > > > explicit
> > > > > >> > and
> > > > > >> > > > not
> > > > > >> > > > > have magical implicit mappings.
> > > > > >> > > > >
> > > > > >> > > > >
> > > > > >> > > > > On Tue, Feb 11, 2014 at 12:24 PM, Axel Nennker <
> > > > > >> > ignisvulpis@gmail.com
> > > > > >> > > > > >wrote:
> > > > > >> > > > >
> > > > > >> > > > > > - My implementation does not use "id". Don't know
> > > > > >> > > > > > what
> > > this
> > > > or
> > > > > >> > might
> > > > > >> > > > > mean.
> > > > > >> > > > >
> > > > > >> > > > Found it from your test in spec/test-config.xml
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > >  > - I do not want to discuss the sense of xml
> > > > > >> > > > > namespaces
> > in
> > > > > this
> > > > > >> > issue
> > > > > >> > > > if
> > > > > >> > > > > we
> > > > > >> > > > > > can avoid it. The current template config.xml
> > > > > >> > > > > > defines
> > two
> > > > > >> > namespaces
> > > > > >> > > > and
> > > > > >> > > > > > for this issue's implementation I do not want to
> > > > > >> > > > > > change
> > > > that.
> > > > > >> So I
> > > > > >> > > > would
> > > > > >> > > > > > not drop the widget namespace and would not support
> > > > > >> > > > > > "platform"-without-prefix.
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > > Having gap:platform there makes the property seem like
> > > > > >> > > > an
> > > > > >> second-class
> > > > > >> > > > maybe-not-supposed-to-be-there kind of attribute to me.
> > > > > >> > > > I'd be happy to change the default template to not
> > > > > >> > > > reference
> > > the
> > > > > >> widget
> > > > > >> > > > spec and to make cordova's the default namespace if
> > > > > >> > > > that
> > will
> > > > make
> > > > > >> your
> > > > > >> > > > inner XML validator rest at-ease, but I really feel
> > > > > >> > > > strongly
> > > > > against
> > > > > >> > > having
> > > > > >> > > > XML namespaces creep in. I don't think that most devs
> > > > > >> > > > know
> > > what
> > > > > they
> > > > > >> > do,
> > > > > >> > > > and our tools wouldn't support you changing the gap:
> > namespace
> > > > > >> prefix.
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > > > - I would follow the phonegap example
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > >
> > > >
> > >
> > http://docs.build.phonegap.com/en_US/3.1.0/configuring_icons_and_splas
> > h.md.html#Icons%20and%20Splash%20Screens
> > > > > >> > > > > > that defines e.g. "
> > > > > >> > > > > >
> > > > > >> > > > > > <icon src="icons/android/ldpi.png"
> > gap:platform="android"
> > > > > >> > > > > > gap:density="ldpi" />
> > > > > >> > > > > >
> > > > > >> > > > > > " and I would like to don't parse the icon file to
> > > > > >> > > > > > infer
> > > > > >> > parameters.
> > > > > >> > > > > > Developers want need icons for their app on all
> > platforms
> > > > they
> > > > > >> > > support.
> > > > > >> > > > > So
> > > > > >> > > > > > they will create all of them in all polished sizes
> > > > > >> > > > > > and
> > > > > >> densities.
> > > > > >> > > > > > My Android implementation puts icons without
> > > > > >> > > > > > cdv:density
> > > > into
> > > > > >> > > > > > "drawable/icon.png" regardless of width/height.
> > > > > >> > > > > > What behaviour would you suggest when both lines
> > > > > >> > > > > > are
> > > present
> > > > > in
> > > > > >> one
> > > > > >> > > > > > config.xml
> > > > > >> > > > > > <icon src="icon48.png" width="48"
> cdv:platform="android"
> > > />
> > > > //
> > > > > >> > would
> > > > > >> > > > end
> > > > > >> > > > > up
> > > > > >> > > > > > in drawable-mdpi by your suggestion <icon
> > > > > >> > > > > > src="icon-mdpi.png" cdv:density="mdpi"
> > > > > >> cdv:platform="android"
> > > > > >> > > />
> > > > > >> > > > //
> > > > > >> > > > > > would end up in drawable-mdpi too
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > > > My thinking here was that density says the same thing
> > > > > >> > > > as
> > size,
> > > > so
> > > > > I
> > > > > >> > would
> > > > > >> > > > just not support density (or make size="mdpi" an alias
> > > > > >> > > > for
> > > > > >> size="48").
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > >
> > > > > >> > > > > >
> > > > > >> > > > > > I think that developers know what is the
> "platform-way"
> > > for
> > > > > each
> > > > > >> > > > > platform.
> > > > > >> > > > > > On Android the usual way is to specify densities.
> > > > > >> > > > > >
> > > > > >> > > > > > - I would not use "size" because that is not w3c
> > > > > >> > > > > > widget
> > > > style.
> > > > > >> > > > > >
> > > > > >> > > > > > -- Axel
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > >
> > > > > >> > > > > > 2014-02-11 20:22 GMT+01:00 Andrew Grieve <
> > > > > agrieve@chromium.org
> > > > > >> >:
> > > > > >> > > > > >
> > > > > >> > > > > > > Would love to move this along. Would like to get
> > buy-in
> > > > from
> > > > > >> > others
> > > > > >> > > > > > > first though.
> > > > > >> > > > > > >
> > > > > >> > > > > > > The proposal in this PR is to add tags like:
> > > > > >> > > > > > >
> > > > > >> > > > > > >     <icon id="icon" src="icon.png" />
> > > > > >> > > > > > >     <icon id="logo" src="logo.png" width="255"
> > > > height="255"
> > > > > />
> > > > > >> > > > > > >     <icon src="logo-android.png" width="255"
> > > height="255"
> > > > > >> > > > > > > cdv:platform="android" cdv:density="mdpi" />
> > > > > >> > > > > > >
> > > > > >> > > > > > > My feedback:
> > > > > >> > > > > > > - What is "id" for?
> > > > > >> > > > > > > - Supporting "cdv:platform" is fine, but we
> > > > > >> > > > > > > should
> > also
> > > > > >> support
> > > > > >> > > just
> > > > > >> > > > > > > "platform=". I'd be fine to drop xmlns="
> > > > > >> > > http://www.w3.org/ns/widgets
> > > > > >> > > > "
> > > > > >> > > > > > > from the file.
> > > > > >> > > > > > > - I don't think there are any platforms that
> > > > > >> > > > > > > support
> > > > > >> non-square
> > > > > >> > > > icons.
> > > > > >> > > > > > > I think size="###" would be better than width= &&
> > > height=
> > > > > >> > > > > > > - What happens if you don't specify a size? Do we
> > sniff
> > > it
> > > > > >> from
> > > > > >> > the
> > > > > >> > > > > > > png header? This might be nice as a follow-up,
> > > > > >> > > > > > > but I'd
> > > > lean
> > > > > >> > towards
> > > > > >> > > > > > > making it required for the first cut.
> > > > > >> > > > > > > - cdv:density seems redundant with respect to size.
> > > Icons
> > > > on
> > > > > >> > > android
> > > > > >> > > > > > > are 46px at mdpi, so the size can be used to
> > > > > >> > > > > > > derive
> > the
> > > > > >> density.
> > > > > >> > > > > > >
> > > > > >> > > > > > >
> > > > > >> > > > > > > On Mon, Feb 10, 2014 at 10:55 AM, Andrew Grieve <
> > > > > >> > > > agrieve@chromium.org>
> > > > > >> > > > > > > wrote:
> > > > > >> > > > > > > > He Axel, thanks for spearheading this. Will
> > > > > >> > > > > > > > have a
> > > look
> > > > > >> > shortly.
> > > > > >> > > > > > > >
> > > > > >> > > > > > > >
> > > > > >> > > > > > > > On Mon, Feb 10, 2014 at 9:07 AM, Axel Nennker <
> > > > > >> > > > ignisvulpis@gmail.com
> > > > > >> > > > > >
> > > > > >> > > > > > > wrote:
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> Andrew,
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> any comments to the current implementation?
> > > > > >> > > > > > > >> https://github.com/apache/cordova-cli/pull/126
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> Joe commented that the new class in
> > config_parser.js
> > > > > named
> > > > > >> > > "icon"
> > > > > >> > > > > > should
> > > > > >> > > > > > > >> be named "Icon" but I left it as is because
> > > > > >> > > > > > > >> the
> > other
> > > > > >> classes
> > > > > >> > > are
> > > > > >> > > > > > > lowercase
> > > > > >> > > > > > > >> too.
> > > > > >> > > > > > > >> There was another comment that namespaces in
> > > config.xml
> > > > > >> > > attributes
> > > > > >> > > > > are
> > > > > >> > > > > > > >> SchnickSchnack/chatter.
> > > > > >> > > > > > > >> I think that we should use the cordava
> > > > > >> > > > > > > >> namespace if
> > > > > >> config.xml
> > > > > >> > > > > > deviates
> > > > > >> > > > > > > >> from the W3C widget definition.
> > > > > >> > > > > > > >> These two are the only comments I got.
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> I tested this on Android and FirefoxOS.
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> Any chance to accept the request (at least the
> > > Android
> > > > > >> part)?
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >> -Axel
> > > > > >> > > > > > > >>
> > > > > >> > > > > > > >
> > > > > >> > > > > > >
> > > > > >> > > > > >
> > > > > >> > > > >
> > > > > >> > > >
> > > > > >> > >
> > > > > >> >
> > > > > >>
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
>