Vous êtes sur la page 1sur 16

Mobilizando OpenUi5 com

Apache Cordova
Bruno Lucattelli
No tem push notification

No tem off-line

No tem acesso a muitos


recursos do dispositivo,
como gps, cmera,
microfone, acelermetro,
etc...

JavaScript Any application that can be written in
1.604.219
JavaScript, will eventually be written in


Java
763.783
JavaScript.
Atwood's Law, 2007
Python
744.045

Ruby
740.610

PHP
Front End Segurana Integrao Back End Recursos Total
478.153 ASP.NET / Java IIS @ DMZ /
Tomcat @ DMZ
SAP PI / .NET
Connector /
SAP Business
Suite
JavaScript, C#,
Infra, PI, ABAP,
6 (3)
C++ JCo Basis
330.259
iOS & Android Java/.NET/PHP
REST @ DMZ
SAP PI / JCo SAP Business
Suite
iOS, Android,
Java/.NET/PHP,
7 (5)
CSS
271.782 Infra, PI, ABAP,
Basis

C# 229.985 SAPUI5 SAP Netweaver


(Fiori) Gateway
SAP Business
Suite
ABAP, PI, Basis 3 (2)

C 202.295
Cordova +
OpenUI5 / SAP
SAP Web
Dispatcher @
SAP Netweaver
(Fiori) Gateway
SAP Business
Suite
ABAP, Infra, PI,
Basis
4 (2)
HAT DMZ

Go 188.121

JavaScript Any application that can be written in
1.604.219
JavaScript, will eventually be written in


Java
763.783
JavaScript.
Atwood's Law, 2007
Python
744.045

Ruby
Web (Fiori) Mobile (Cordova/HCPms)
740.610

PHP
478.153 ABAP ABAP

C++
330.259

CSS
Web + SAP Mobile + SAP
271.782

C# 229.985 Java/ Java/


ABAP ABAP Android
.NET .NET

C 202.295

Go 188.121 PI JS PI iOS

JavaScript Any application that can be written in
1.604.219
JavaScript, will eventually be written in


Java
763.783
JavaScript.
Atwood's Law, 2007
Python
744.045

Ruby
740.610

PHP
478.153

C++
330.259

CSS
DEVELOPER
271.782

C# 229.985

C 202.295

Go 188.121
ABAPPER
Kapsel
Kapsel is a set of SAP specific plugins for 3rd party plugin
Apache Cordova 3rd party plugin
Provides enterprise capabilities to a Cordova AppUpdate
application AuthProxy
Fits cleanly within existing Cordova development EncryptedStorage

Kapsel Plugins
environments and processes
Logger
Supports Android (4.0+), iOS (6.0+) and Windows
8.1 / Windows Phone 8.1 Cordova Logon
Push
A single web application can be provisioned into
the container OData
E2E
Barcode Scanner
Online App
App Prefs
$ npm install -g cordova

$ cordova create app_name

$ cordova platform add android

$ cordova platform

$ cordova build android

$ cordova emulate android

$ cordova plugin add cordova-plugin-camera


<script type="text/javascript" charset="utf-8" src="cordova.js"></script>

<Button text="Camera press="openCamera" />


<Image src="{image>/src} densityAware="false width="200px" >
<layoutData>
<FlexItemData growFactor="1" />
</layoutData>
</Image>
openCamera: function () {
var view = this.getView();
navigator.camera.getPicture(function(imageData){
var imgJSONModel = new sap.ui.model.json.JSONModel();
var imgb64data = "data:image/jpeg;base64," + imageData;
imgJSONModel.setData({ src : imgb64data });
view.setModel(imgJSONModel, "image");
}, function(message){
alert('Failed because: ' + message);
}, {
quality: 50,
destinationType: Camera.DestinationType.DATA_URL
});
}

Vous aimerez peut-être aussi