Mobilizando Openui5 Com Apache Cordova Bruno Lucattelli
Total Page:16
File Type:pdf, Size:1020Kb
Mobilizando OpenUi5 com Apache Cordova Bruno Lucattelli • Não tem push notification • Não tem off-line • Não tem acesso a muitos recursos do dispositivo, como gps, câmera, microfone, acelerômetro, etc... JavaScript Any application that can be written in 1.604.219 JavaScript, will eventually be written in Java JavaScript. 763.783 “ Atwood's Law, 2007 Python 744.045 Ruby ” 740.610 PHP Front End Segurança Integração Back End Recursos Total 478.153 ASP.NET / Java IIS @ DMZ / SAP PI / .NET SAP Business JavaScript, C#, 6 (3) Tomcat @ DMZ Connector / Suite Infra, PI, ABAP, C++ JCo Basis 330.259 iOS & Android Java/.NET/PHP SAP PI / JCo SAP Business iOS, Android, 7 (5) CSS REST @ DMZ Suite Java/.NET/PHP, 271.782 Infra, PI, ABAP, Basis C# 229.985 SAPUI5 SAP Netweaver SAP Business ABAP, PI, Basis 3 (2) (Fiori) Gateway Suite Cordova + SAP Web SAP Netweaver SAP Business ABAP, Infra, PI, 4 (2) C 202.295 OpenUI5 / SAP Dispatcher @ (Fiori) Gateway Suite Basis HAT DMZ Go 188.121 JavaScript Any application that can be written in 1.604.219 JavaScript, will eventually be written in Java JavaScript. 763.783 “ 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 JavaScript. 763.783 “ Atwood's Law, 2007 Python 744.045 Ruby ” 740.610 PHP 478.153 C++ 330.259 DEVELOPER CSS 271.782 C# 229.985 C 202.295 ABAPPER Go 188.121 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 ▪ A single web application can be provisioned into Push 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 }); }.