cordova - Best practice for icon and splashscreen with phonegap -


we using cordova cli interface(3.5.0) build locally phonegap build in cloud build platforms. feel complicated have efficient build process works both building interfaces.

please correct me if wrong or suggest me better manage icon , splashscreen both local , remote builds

1. local builds

we use cordova tool build our application ios , android. according documentation

icons:

when working in cli can define app icon(s) via element (config.xml).

<icon src="res/ios/icon.png" platform="ios" width="57" height="57" density="mdpi" /> 

splashscreen:

again, according documentation:

use splashscreen api enable display of app's introductory splash screen on many platforms. when working in cli, splash screen source files located within project's www/res/screens subdirectory.

it mention www/res/screens folder, below says following:

place 9-patch image files in android project's platforms/android/res/drawable* directories.

2. phonegap builds(in cloud)

for phonegap build, seems easy, add tag in config.xml, , put our icons/splashscreen in res/icon/{platform} folder

 <icon gap:platform="android" gap:qualifier="ldpi" src="res/icon/android/icon-36-ldpi.png" /> <gap:splash gap:platform="android" gap:qualifier="port-ldpi" src="res/screen/android/screen-ldpi-portrait.png" /> 

questions

local build / icons

do mean www/res folder or platform/android/res folder ? if in platform, means need kind of hooks copy icons in correct folder like this want have icons , splashscreen source control. there kind of best practice?

local build / splashscreen

can please clarify if www/res or platform/android/res/drawable ?

phonegap build

am correct ?


Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

single sign on - Logging into Plone site with credentials passed through HTTP -

php - Why does AJAX not process login form? -