@sapui5/sap.ndc 1.84.28 → 1.84.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sapui5/sap.ndc",
3
- "version": "1.84.28",
3
+ "version": "1.84.31",
4
4
  "description": "SAPUI5 Library sap.ndc",
5
5
  "homepage": "https://sap.github.io/ui5-tooling/pages/SAPUI5/",
6
6
  "author": "SAP SE (https://www.sap.com)",
@@ -6,7 +6,7 @@
6
6
  <copyright>SAPUI5
7
7
 
8
8
  (c) Copyright 2009-2020 SAP SE. All rights reserved</copyright>
9
- <version>1.84.28</version>
9
+ <version>1.84.31</version>
10
10
 
11
11
  <documentation>SAPUI5 library with controls with native device capabilities.</documentation>
12
12
 
@@ -24,9 +24,10 @@ sap.ui.define([
24
24
  'sap/m/Dialog',
25
25
  "sap/ui/dom/includeStylesheet",
26
26
  "./BarcodeScannerUIContainer",
27
- "sap/m/MessageToast"
27
+ "sap/m/MessageToast",
28
+ 'sap/ui/Device'
28
29
  ],
29
- function(Log, JSONModel, ResourceModel, Input, Label, Button, Dialog, includeStylesheet, BarcodeScannerUIContainer, MessageToast) {
30
+ function(Log, JSONModel, ResourceModel, Input, Label, Button, Dialog, includeStylesheet, BarcodeScannerUIContainer, MessageToast, Device) {
30
31
  "use strict";
31
32
 
32
33
  /*global cordova*/
@@ -40,6 +41,7 @@ sap.ui.define([
40
41
 
41
42
  /**
42
43
  * @class
44
+ * Please refer to <a target="_blank" rel="noopener,noreferrer" href="https://launchpad.support.sap.com/#/notes/2402585">SAP Note 2402585</a> for information on barcode scanner support in native iOS and Android browsers.
43
45
  *
44
46
  * Here is an example of how to trigger the scan function of BarcodeScanner:
45
47
  * <pre>
@@ -296,6 +298,11 @@ sap.ui.define([
296
298
  .then(
297
299
  function(stream) {
298
300
  if (oZXingScannerAPI) {
301
+ // When decoding QR-code by iPhone (iOS 16), this stream will clash with another stream from ZXing-js.
302
+ if (Device.os.ios && Device.os.versionStr.split('.')[0] === '16') {
303
+ var videoTrack = stream.getTracks();
304
+ videoTrack[0].stop();
305
+ }
299
306
  openBarcodeScannerDialogContains();
300
307
  } else {
301
308
  oScanDialog.getModel().setProperty("/isNoScanner", true);
@@ -32,7 +32,7 @@ sap.ui.define(['sap/m/library', 'sap/ui/core/library'],
32
32
  ],
33
33
  elements: [],
34
34
  noLibraryCSS: true,
35
- version: "1.84.28"
35
+ version: "1.84.31"
36
36
  });
37
37
 
38
38
  return sap.ndc;