Professional Documents
Culture Documents
Development For Hybrid Web Containers 293eb94
Development For Hybrid Web Containers 293eb94
293eb945f0e945aaa776812481b4c533
view on: demo kit nightly build | demo kit latest release
• sap.m
• sap.tnt
• sap.ui.core
• sap.ui.layout
• sap.ui.suite
• sap.ui.unified
• sap.uxap
The decision, which libraries to include or not may be disputed. It is only based on a rule of
thumb, and adaptations are required anyway for many apps.
Also, the mobile/hybrid package excludes certain types of files which are typically not
needed. Your mileage may vary, so you might need to add the respective files for the
requirements of your specific app. The library-preload.js files which contain all controls
from a library to reduce the number of HTTP requests are not required in hybrid apps
because there is no HTTP latency. SAPUI5 will by default try to access them, so you might
see a failed attempt to load these files in the log file or developer tools. These error
messages do not hurt, though, and you can get rid of them by declaring that no such files
exist and by setting the following configuration in the SAPUI5 bootstrap script tag:
data-sap-ui-preload=""
• In each of the /resources/sap/* ... */themes folders, you can delete all theme
folders except the one for the theme you are using.
Note: For all JavaScript files, an optimized version and a debug (dbg) version exists. If you delete the files, make
sure that you always delete both versions. If you can do without easy debugging and want to achieve a minimum
installation size, we recommend to delete all *-dbg.js files.
You can delete further files, but the size reduction is limited and to find out the files that are
not required gets increasingly difficult.
If the AJAX code runs inside the webview in Android, no cross domain restriction
exists. This means that you can load data using AJAX from everywhere. The PhoneGap
documentation, however, still says that the domain needs to be configured in one XML
file.
• iOS
The restriction in webview in iOS still exists and you need to add the domain that is
visited using AJAX to a whitelist file to bypass the restriction. For detailed information
about the whitelist file, see the PhoneGap documentation on the PhoneGap website.