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?