on 05-08-2015 2:45 PM
Hi experts,
I know there is a SAP post for doing such a project, but the steps are merged into a lot of other info. And it seems very critical which versions of the related tools are used - it is often a pity that the procedures are not working at the first time when people following the steps decribed though.
Here I want to outline my steps to build a customised Fiori Client app for Android and hope someone can point out what was wrong that cause the project cannot run on an Android device:
Needed tools to be installed:
Apache-ant
Node.js
Cordova (some ver has bugs, v4.0 is not good)
Plugman
KapselSDK (SP version related to android api level)
Crosswalk
Eclipse IDE (Kepler) + ADT and SAP tool plugins (or ADT bundle package)
Set proper system path variables on PC
Steps to build the AFC:
At \fiori_client\ of KapselSDK folder, do:
1. Modify config.js (fill info such as proj name(eg, myAFC), etc and/or crosswalk path)
2. nmp install
3. node creat_fiori_client.js
4. cd myAFC
5. cd myAFC
?6. cd cordova
?7. run.bat <- my question here
?8. cordova -d prepare <- Needed if no crosswalk is used
My question: using crosswalk, is it right to do steps 6 and 7? If not, how? Should we also do step 8?
Thanks.
Br,
Dong
Hi Jitendra and Midhun,
Many thanks for your help replies. Could you clarify more:
1. I am using SP07_SP00, do I still need to change SAPKapselHandleRequests?
2. After run.bat, what are the steps to load the project into the Kepler IDE?
Currently, I see 3 projects and load them all in IDE, and set the dependencies of the two prjects.
3. What are the steps to build the project for Android?
I modify the index.html to include the plugins .js files. Is this all?
Thanks.
Br,
Dong
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Dong,
When you are creating a crossWalk project you could find that the project directory structure is different from Cordova project directory structure. Hence you can't use Cordova commands in your Crosswalk project. Ex. Cordova prepare.
There is a new set of command available for Crosswalk and for managing cordova plugins you could use Plugman - You could find more information here - Crodova Command Line Compatibility
Regards,Midhun
SAP Technology RIG
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After step 5, you have to modify C:\SAP\MobileSDK3\KapselSDK\apps\fiori_client\FioriClient\assets\www\appConfig.js
If you are using SP06 PL02 on Android set the SAPKapselHandleHttpRequests preference to true to enable the AuthProxy plugin to intercept all requests.
C:\SAP\MobileSDK3\KapselSDK\apps\fiori_client\FioriClient\res\xml\config.xml
then cd cordova
run.bat
cordova -prepare is not needed if you are using crosswalk.
Regards,
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.