The contents of the www folder such as the HTML, JavaScript, CSS and image files that make up a hybrid app can be easily updated via the AppUpdate plugin. When it is time to upgrade the version of Cordova that the app was built with or the Kapsel plugins, the following instructions may be helpful. The versions of Cordova that must be used with a given version of Kapsel are listed below.
Cordova 5.1.1 should be used if using SMP 3.0 SP09 SDK.
The following steps demonstrate how to do an upgrade using the StorageDemo project. It will be upgraded from Cordova 4.2.0 to Cordova 5.1.1 and from SMP 3.0 SDK SP08 to SMP 3.0 SDK SP09 PL01.
Note, an alternative (and perhaps easier) approach to upgrading a project is to create a new project and then copy the HTML assets to the new project.
C:\Kapsel_Projects\StorageDemo>cordova platform
Installed platforms: android 3.6.4
Available platforms: amazon-fireos, blackberry10, firefoxos, windows8, wp8
C:\Kapsel_Projects\StorageDemo>cordova -v
4.2.0
C:\Kapsel_Projects\StorageDemo>npm info cordova npm http GET https://registry.npmjs.org/cordova npm http 304 https://registry.npmjs.org/cordova { name: 'cordova', description: 'Cordova command line interface tool', 'dist-tags': { latest: '3.1.0-0.2.0' }, versions: [ ... '4.2.0': '2015-01-07T01:40:14.886Z', '4.3.0': '2015-02-27T21:15:21.509Z', '5.0.0': '2015-04-16T20:16:51.255Z', '5.1.0': '2015-05-27T23:54:43.677Z', '4.3.1': '2015-06-02T15:57:11.472Z', '5.1.1': '2015-06-09T21:21:46.301Z'
npm uninstall -g cordova
npm install -g cordova@5.1.1
cordova -v
5.1.1
Note the version of node can also be checked.node -v
v0.10.38
The current version is listed and available at http://nodejs.org.cordova platform update android
or
cordova platform update ios
C:\Kapsel_Projects\StorageDemo>cordova platform
Installed platforms: android 4.0.2
Another way to see the version of a project is to examine the following file.C:\Kapsel_Projects\StorageDemo\platforms\android\assets\www\cordova.js
var PLATFORM_VERSION_BUILD_LABEL = '4.0.2';
For additional details on upgrading see the Cordova project see Upgrading Android and Upgrading iOS.C:\Kapsel_Projects\StorageDemo>cordova plugins
com.sap.mp.cordova.plugins.authproxy 3.8.1 "AuthProxy"
com.sap.mp.cordova.plugins.corelibs 3.8.1 "CoreLibs"
com.sap.mp.cordova.plugins.encryptedstorage 3.8.1 "EncryptedStorage"
com.sap.mp.cordova.plugins.logon 3.8.1 "Logon"
org.apache.cordova.device 0.3.0 "Device"
org.apache.cordova.inappbrowser 0.6.0-patched "InAppBrowser"
<?xml version="1.0" encoding="UTF-8"?> <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="com.sap.mp.cordova.plugins.encryptedstorage" version="3.8.1"> <name>EncryptedStorage</name> ... <?xml version="1.0" encoding="UTF-8"?> <plugin xmlns="http://apache.org/cordova/ns/plugins/1.0" id="org.apache.cordova.device" version="0.3.0"> <name>Device</name> ...
cordova plugin remove com.sap.mp.cordova.plugins.encryptedstorage
cordova plugins
cordova plugin add kapsel-plugin-encryptedstorage --searchpath %KAPSEL_HOME%/plugins
cordova plugin add cordova-plugin-whitelist
or
cordova plugin add cordova-plugin-legacy-whitelist
C:\Kapsel_Projects\StorageDemo>cordova plugins
cordova-plugin-device 1.0.1 "Device"
cordova-plugin-whitelist 1.0.0 "Whitelist"
kapsel-plugin-authproxy 3.9.1 "AuthProxy"
kapsel-plugin-corelibs 3.9.1 "CoreLibs"
kapsel-plugin-encryptedstorage 3.9.1 "EncryptedStorage"
kapsel-plugin-inappbrowser 0.6.0-patched "InAppBrowser"
kapsel-plugin-logon 3.9.1 "Logon"
Note that the device plugin version history can be seen at https://github.com/apache/cordova-plugin-device/releases.cordova run android
or
cordova run ios
C:\SAP\MobileSDK3\KapselSDK\cli>npm uninstall -g kapsel
C:\SAP\MobileSDK3\KapselSDK\cli>npm install -g
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
26 | |
25 | |
21 | |
12 | |
9 | |
8 | |
8 | |
8 | |
8 | |
8 |