IBM Worklight - how to rename an application and change its icon, splash image

谁说我不能喝 提交于 2019-12-04 02:01:45

问题


We've used an existing example application to start a proof of concept with Worklight, we've made a lot of changes to the original code and we would like to change the application name and customize its icons and splash image. We've managed to make the aforementioned changes (Name, icons and splash) inside xCode, however this doesn't serve the future purpose of an automated build from Worklight to ipa.

Could you please let us know what steps are involved to:

  1. How to rename an existing application in Worklight (changing only the application-descriptor.xml doesn't change the generated binaries though).
  2. How to change icons and splash screens for app.

回答1:


When you create a new application for a Worklight project, the application name is used throughout several files, so you will need to find all occurrences of the given application name and change them. These are:

  • main HTML filename
  • main CSS filename
  • main JavaScript filename
  • inside main HTML filename (references to the main CSS and JavaScript files, title)
  • Inside application-descriptor.xml (the elements: displayName, description, mainFile)

Note, the filenames should not matter to you. In the future they will, hopefully, always get a generic name (like index.html or main.css. ...).

The app icon title in the device is controlled by the displayName element in application-descriptor.xml.

As for the icons and splash images, you can simply place thme (regular icon, retina icon, splash image, retina splash image) with the appropriate filenames in the "nativeResources" folder (sits next to the "native" folder) and they will be copied during build time to the native project (which you will eventually open in Xcode).

You can find out the correct filenames inside the native >> Resources folder.


quote:

however this doesn't serve the future purpose of an automated build from Worklight to ipa.

Worklight will, of course, never create an .ipa file for you... that's the role of Xcode.



来源:https://stackoverflow.com/questions/16969028/ibm-worklight-how-to-rename-an-application-and-change-its-icon-splash-image

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!