You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by Don Coleman <do...@gmail.com> on 2014/02/20 23:26:44 UTC

BlackBerry 10 - config.xml iicon entries are not filtered for gap:platform

I have a project that uses PhoneGap build for iOS and Android, and uses
Cordova to build for BlackBerry 10.

The icons are specified in config.xml

    <icon src="icon.png" />
    <icon src="res/icon/android/icon-36-ldpi.png"   gap:platform="android"
   gap:density="ldpi" />
    <icon src="res/icon/android/icon-48-mdpi.png"   gap:platform="android"
   gap:density="mdpi" />
    <icon src="res/icon/android/icon-72-hdpi.png"   gap:platform="android"
   gap:density="hdpi" />
    <icon src="res/icon/android/icon-96-xhdpi.png"  gap:platform="android"
   gap:density="xhdpi" />
    <icon src="res/icon/blackberry/icon-80.png"
gap:platform="blackberry" />
    <icon src="res/icon/blackberry/icon-80.png"
gap:platform="blackberry" gap:state="hover"/>
    <!-- ... -->

When the bar file is built, the Entry-Point-Icon Manifest entry is incorrect

    $ unzip -p platforms/blackberry10/build/device/bb10app.bar
META-INF/MANIFEST.MF | grep Entry

Entry-Point: WEBWORKS_VERSION=2.0.0 CONSOLE_MODE=slog2
CASCADES_THEME=default app/native/wwe
Entry-Point-Type: Qnx/WebKit
Entry-Point-Icon:
{72x72}native/icon.png:{36x36}native/res/icon/android/icon-36-ldpi.png:{48x48}native/res/icon/android/icon-48-mdpi.png:{72x72}native/res/icon/android/icon-72-hdpi.png:{96x96}native/res/icon/android/icon-96-xhdpi.png:{80x80}native/res/icon/blackberry/icon-80.png:{57x57}n
Entry-Point-Orientation: auto


The app looks deploys OK locally and passes blackberry-barchecker, but
BlackBerry Enterprise Server rejected the app due to this entry.

I fixed the problem by preprocessing the config.xml before the blackberry10
build.

Entry-Point: WEBWORKS_VERSION=2.0.0 CASCADES_THEME=default app/native/wwe
Entry-Point-Type: Qnx/WebKit
Entry-Point-Icon: native/res/icon/blackberry/icon-80.png
Entry-Point-Orientation: auto


Is this a problem that Cordova should handle? Or is it a problem with the
blackberry-nativepackager?

Re: BlackBerry 10 - config.xml iicon entries are not filtered for gap:platform

Posted by Don Coleman <do...@gmail.com>.
I was thinking about patching the BB10 Cordova scripts to filter out
non-blackberry options, but since it looks like config.xml is changing to
config.json, I'll probably just handle with custom per project filters for
now.



On Fri, Feb 21, 2014 at 8:44 AM, Bryan Higgins <br...@bryanhiggins.net>wrote:

> I'd like to see config.xml have a platform tag similar to plugin.xml.
> Neither Cordova nor BlackBerry native tools should understand PhoneGap
> attributes.
>
>
> On Thu, Feb 20, 2014 at 5:26 PM, Don Coleman <do...@gmail.com>
> wrote:
>
> > I have a project that uses PhoneGap build for iOS and Android, and uses
> > Cordova to build for BlackBerry 10.
> >
> > The icons are specified in config.xml
> >
> >     <icon src="icon.png" />
> >     <icon src="res/icon/android/icon-36-ldpi.png"
> gap:platform="android"
> >    gap:density="ldpi" />
> >     <icon src="res/icon/android/icon-48-mdpi.png"
> gap:platform="android"
> >    gap:density="mdpi" />
> >     <icon src="res/icon/android/icon-72-hdpi.png"
> gap:platform="android"
> >    gap:density="hdpi" />
> >     <icon src="res/icon/android/icon-96-xhdpi.png"
>  gap:platform="android"
> >    gap:density="xhdpi" />
> >     <icon src="res/icon/blackberry/icon-80.png"
> > gap:platform="blackberry" />
> >     <icon src="res/icon/blackberry/icon-80.png"
> > gap:platform="blackberry" gap:state="hover"/>
> >     <!-- ... -->
> >
> > When the bar file is built, the Entry-Point-Icon Manifest entry is
> > incorrect
> >
> >     $ unzip -p platforms/blackberry10/build/device/bb10app.bar
> > META-INF/MANIFEST.MF | grep Entry
> >
> > Entry-Point: WEBWORKS_VERSION=2.0.0 CONSOLE_MODE=slog2
> > CASCADES_THEME=default app/native/wwe
> > Entry-Point-Type: Qnx/WebKit
> > Entry-Point-Icon:
> >
> >
> {72x72}native/icon.png:{36x36}native/res/icon/android/icon-36-ldpi.png:{48x48}native/res/icon/android/icon-48-mdpi.png:{72x72}native/res/icon/android/icon-72-hdpi.png:{96x96}native/res/icon/android/icon-96-xhdpi.png:{80x80}native/res/icon/blackberry/icon-80.png:{57x57}n
> > Entry-Point-Orientation: auto
> >
> >
> > The app looks deploys OK locally and passes blackberry-barchecker, but
> > BlackBerry Enterprise Server rejected the app due to this entry.
> >
> > I fixed the problem by preprocessing the config.xml before the
> blackberry10
> > build.
> >
> > Entry-Point: WEBWORKS_VERSION=2.0.0 CASCADES_THEME=default app/native/wwe
> > Entry-Point-Type: Qnx/WebKit
> > Entry-Point-Icon: native/res/icon/blackberry/icon-80.png
> > Entry-Point-Orientation: auto
> >
> >
> > Is this a problem that Cordova should handle? Or is it a problem with the
> > blackberry-nativepackager?
> >
>

Re: BlackBerry 10 - config.xml iicon entries are not filtered for gap:platform

Posted by Bryan Higgins <br...@bryanhiggins.net>.
I'd like to see config.xml have a platform tag similar to plugin.xml.
Neither Cordova nor BlackBerry native tools should understand PhoneGap
attributes.


On Thu, Feb 20, 2014 at 5:26 PM, Don Coleman <do...@gmail.com> wrote:

> I have a project that uses PhoneGap build for iOS and Android, and uses
> Cordova to build for BlackBerry 10.
>
> The icons are specified in config.xml
>
>     <icon src="icon.png" />
>     <icon src="res/icon/android/icon-36-ldpi.png"   gap:platform="android"
>    gap:density="ldpi" />
>     <icon src="res/icon/android/icon-48-mdpi.png"   gap:platform="android"
>    gap:density="mdpi" />
>     <icon src="res/icon/android/icon-72-hdpi.png"   gap:platform="android"
>    gap:density="hdpi" />
>     <icon src="res/icon/android/icon-96-xhdpi.png"  gap:platform="android"
>    gap:density="xhdpi" />
>     <icon src="res/icon/blackberry/icon-80.png"
> gap:platform="blackberry" />
>     <icon src="res/icon/blackberry/icon-80.png"
> gap:platform="blackberry" gap:state="hover"/>
>     <!-- ... -->
>
> When the bar file is built, the Entry-Point-Icon Manifest entry is
> incorrect
>
>     $ unzip -p platforms/blackberry10/build/device/bb10app.bar
> META-INF/MANIFEST.MF | grep Entry
>
> Entry-Point: WEBWORKS_VERSION=2.0.0 CONSOLE_MODE=slog2
> CASCADES_THEME=default app/native/wwe
> Entry-Point-Type: Qnx/WebKit
> Entry-Point-Icon:
>
> {72x72}native/icon.png:{36x36}native/res/icon/android/icon-36-ldpi.png:{48x48}native/res/icon/android/icon-48-mdpi.png:{72x72}native/res/icon/android/icon-72-hdpi.png:{96x96}native/res/icon/android/icon-96-xhdpi.png:{80x80}native/res/icon/blackberry/icon-80.png:{57x57}n
> Entry-Point-Orientation: auto
>
>
> The app looks deploys OK locally and passes blackberry-barchecker, but
> BlackBerry Enterprise Server rejected the app due to this entry.
>
> I fixed the problem by preprocessing the config.xml before the blackberry10
> build.
>
> Entry-Point: WEBWORKS_VERSION=2.0.0 CASCADES_THEME=default app/native/wwe
> Entry-Point-Type: Qnx/WebKit
> Entry-Point-Icon: native/res/icon/blackberry/icon-80.png
> Entry-Point-Orientation: auto
>
>
> Is this a problem that Cordova should handle? Or is it a problem with the
> blackberry-nativepackager?
>