如果想提供app的啟動速度,直接使用SMP SDK Logon plugin裡面的sapui5庫,可以參考 http://scn.sap.com/docs/DOC-65387 SAPUI5 Used by the Logon Plugin 章節
Alternatively if your application uses SAPUI5, you may wish to reference the already included SAPUI5 library from your application. It may make sense to move the
C:\Kapsel_Projects\LogonDemo\plugins\kapsel-plugin-logon\www\common\assets\ui\resources
folder to the
C:\Kapsel_Projects\LogonDemo\www
folder
and then modify the three references in the below file to use ../../../resources as shown below.
C:\Kapsel_Projects\LogonDemo\plugins\kapsel-plugin-logon\www\common\assets\ui\iab.html
<script type="text/javascript" src="../../../resources/sap/ui/thirdparty/jquery/jquery-1.11.1.js"></script><script type="text/javascript" src="../../../resources/sap/ui/thirdparty/jqueryui/jquery-ui-position.js"></script><script id="sap-ui-bootstrap" type="text/javascript" data-sap-ui-preload="none" data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_bluecrystal" src="../../../resources/sap-ui-core-nojQuery.js"></script>
在我的kapsel app 的www目錄下面的index.html裡面引用sapui5庫:
<script src="./resources/sap-ui-core.js" id="sap-ui-bootstrap" data-sap-ui-libs="sap.m" data-sap-ui-theme="sap_bluecrystal"> </script>
更多SMP SDK Logon plugin裡面帶的可用的第三方類庫:
assets\www\smp\logon\ui\resources\sap\ui\thirdparty\jquery\jquery-1.11.1.js
assets\www\smp\logon\ui\resources\sap-ui-core.js