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

后端 未结 1 1949
情话喂你
情话喂你 2021-01-15 05:01

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 app

相关标签:
1条回答
  • 2021-01-15 05:50

    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.

    0 讨论(0)
提交回复
热议问题