SMP Kapsel app从 SDK 9升级到SP12

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/berryreload/article/details/70880309

升级变化:
1 main.html sapui5内容直接引用logon plugin里面的
2 resources\mobile目录 移动了
backup\plugins\kapsel-plugin-logon\www\common\assets\ui\resources
3 拷贝 \backup\plugins\kapsel-plugin-logon\www\common\assets\ui\LogonForm.js
拷贝backup\plugins\kapsel-plugin-logon\www\common\modules\StaticScreens.js

=========================
安装node

node -v

安装cordova
npm uninstall cordova -g
npm install -g cordova@6.0.0
npm info cordova
cordova -v

6.0.0

卸载老版本的cordova plugins
cordova plugins
cordova-plugin-device 1.1.5 “Device”
cordova-plugin-whitelist 1.3.2 “Whitelist”
kapsel-plugin-authproxy 3.12.0 “AuthProxy”
kapsel-plugin-corelibs 3.12.0 “CoreLibs”
kapsel-plugin-i18n 3.12.0 “i18n”
kapsel-plugin-inappbrowser 1.3.1 “InAppBrowser”
kapsel-plugin-logon 3.12.0 “Logon”

cordova plugin remove kapsel-plugin-logon
cordova plugin remove kapsel-plugin-authproxy
cordova plugin remove kapsel-plugin-inappbrowser
cordova plugin remove kapsel-plugin-corelibs
cordova plugin remove kapsel-plugin-i18n
cordova plugin remove cordova-plugin-whitelist
cordova plugin remove cordova-plugin-device

cordova platform remove android
cordova platform remove ios

cordova plugins

Windows上操作
set KAPSEL_HOME=D:\SAP\MobileSDK3\KapselSDK
cordova plugin add kapsel-plugin-logon –searchpath %KAPSEL_HOME%\plugins -d
cordova plugin add kapsel-plugin-authproxy –searchpath %KAPSEL_HOME%\plugins -d
cordova plugin add kapsel-plugin-inappbrowser –searchpath %KAPSEL_HOME%\plugins -d
cordova plugin add kapsel-plugin-corelibs –searchpath %KAPSEL_HOME%\plugins -d
cordova plugin add kapsel-plugin-i18n –searchpath %KAPSEL_HOME%\plugins -d
cordova plugin add cordova-plugin-whitelist –searchpath %KAPSEL_HOME%\plugins -d
cordova plugin add cordova-plugin-device –searchpath %KAPSEL_HOME%\plugins -d

iOS上操作
export KAPSEL_HOME=~/Desktop/MobileSDK3/KapselSDK
cordova plugin add kapsel-plugin-logon –searchpath KAPSELHOME/pluginsdcordovapluginaddkapselpluginauthproxysearchpathKAPSEL_HOME/plugins -d
cordova plugin add kapsel-plugin-inappbrowser –searchpath KAPSELHOME/pluginsdcordovapluginaddkapselplugincorelibssearchpathKAPSEL_HOME/plugins -d
cordova plugin add kapsel-plugin-i18n –searchpath KAPSELHOME/pluginsdcordovapluginaddcordovapluginwhitelistsearchpathKAPSEL_HOME/plugins -d
cordova plugin add cordova-plugin-device –searchpath $KAPSEL_HOME/plugins -d

cordova plugins

===========================

copy backup目录下的文件

cordova platform add android -d

call “build and install.bat”

修改config.xml文件中的项目名称为英文spiis

cordova platform add ios -d

xcode打开platform\ios\项目文件,修改应用显示为中文 XXXX

cordova run ios –emulator

xcode 找到Build settings->Linking->Other Linker Flags,将此属性修改成 “-all_load” and “-Obj-C” - for the Other Linker Flags value

BITCODE - NO

https://blogs.sap.com/2015/07/17/getting-started-with-kapsel-part-2-logon-sp09/

cordo
va build ios –device –release

===========================
Cordova 5.1.1 should be used if using SMP 3.0 SP09 SDK.
Cordova 5.1.1 should be used if using SMP 3.0 SP10 SDK.
Cordova 5.4.1 should be used if using SMP 3.0 SP11 SDK.
Cordova 6.0.0 should be used if using SMP 3.0 SP12 SDK.
Cordova 6.1.1 should be used if using SMP 3.0 SP13 SDK.

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页