当前位置 : 主页 > 手机开发 > 其它 >

SMP hybrid 开发实验2: Logon

来源:互联网 收集:自由互联 发布时间:2021-06-12
Getting Started with Kapsel - Part 2 – Logon (SP09+) http://scn.sap.com/docs/DOC-65387 练习: Registering using the Logon Plugin 参考:SMP SDK Kapsel plugin列表 官方正式文档见这里: SMP 3.0 SDK参考 http://help.sap.com/

Getting Started with Kapsel - Part 2 – Logon (SP09+)
http://scn.sap.com/docs/DOC-65387

练习:
Registering using the Logon Plugin

参考:SMP SDK Kapsel plugin列表
官方正式文档见这里:
SMP 3.0 SDK参考 http://help.sap.com/smp309sdk?current=smp309sdk
点击 Kapsel Development
点击 Hybrid SDK (Kapsel) Plugins

=============================
D:
cd D:\Kapsel_Projects

REM 参考 cordova 命令行参数 https://cordova.apache.org/docs/en/latest/reference/cordova-cli/index.html
REM 参考Creating an Apache Cordova Project
REM SMP 3.0 SDK http://help.sap.com/smp309sdk?current=smp309sdk
REM 点击 Kapsel Development
REM 点击 Hybrid SDK (Kapsel) Plugins
REM cordova create
cordova create LogonDemo com.mycompany.logon LogonDemo “{\”plugin_search_path\”:\”D:/SAP/MobileSDK3/KapselSDK/plugins/\”}”

cd LogonDemo
cordova -d platform add android

cordova -d plugin add kapsel-plugin-logon

REM 或者
REM set KAPSEL_HOME=D:\SAP\MobileSDK3\KapselSDK
REM cordova plugin add kapsel-plugin-logon –searchpath %KAPSEL_HOME%\plugins

cordova plugins
显示:
cordova-plugin-device 1.1.2 “Device”
cordova-plugin-whitelist 1.2.2 “Whitelist”
kapsel-plugin-authproxy 3.9.0 “AuthProxy”
kapsel-plugin-corelibs 3.9.0 “CoreLibs”
kapsel-plugin-inappbrowser 0.6.0-patched “InAppBrowser”
kapsel-plugin-logon 3.9.0 “Logon”

=============================
老的SDK用com.sap.mp.cordova.plugins.logon,新的SDK用kapsel-plugin-logon
下面这句会报错,安装补上
cordova plugin add com.sap.mp.cordova.plugins.logon

REM 这种方法会报错,说依赖的kapsel-plugin-corelibs安装错误
REM cordova plugin add D:\SAP\MobileSDK3\KapselSDK\plugins\logon

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

“` 这里写代码片

网友评论