scandit-capacitor-datacapture-barcode 8.6.0-beta.1 → 8.6.0

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.
@@ -17,5 +17,5 @@ Pod::Spec.new do |s|
17
17
 
18
18
  s.dependency "Capacitor"
19
19
  s.dependency "ScanditCapacitorDatacaptureCore", "= #{version}"
20
- s.dependency "scandit-datacapture-frameworks-barcode", '= 8.6.0-beta.1'
20
+ s.dependency "scandit-datacapture-frameworks-barcode", '= 8.6.0'
21
21
  end
@@ -143,7 +143,7 @@ if (ext.has('repos')) {
143
143
  }
144
144
 
145
145
  dependencies {
146
- def sdk_version = "8.6.0-beta.1"
146
+ def sdk_version = "8.6.0"
147
147
 
148
148
  implementation fileTree(dir: 'libs', include: ['*.jar'])
149
149
  implementation fileTree(dir: 'library', include: ['*.aar'])
@@ -111,6 +111,9 @@ public class BarcodeArViewHandler {
111
111
  View webView = webViewReference.get();
112
112
  if (webView != null) {
113
113
  webView.bringToFront();
114
+ // Raise the Z too, or the elevation set while the AR view was on top
115
+ // outlives it and leaves the next screen's WebView below a stale layer.
116
+ webView.setTranslationZ(2F);
114
117
  }
115
118
  }
116
119
 
@@ -131,15 +134,27 @@ public class BarcodeArViewHandler {
131
134
  params.height = (int) pxFromDp(latestInfo.getHeight(), context);
132
135
 
133
136
  View webView = webViewReference.get();
137
+ // Order the container against the WebView by elevation, the way
138
+ // DataCaptureViewHandler does. bringToFront() alone is not enough:
139
+ // Android resolves both drawing and touch dispatch by Z before child
140
+ // order, and a DataCaptureView visited earlier in the session leaves
141
+ // the WebView at a raised translationZ that is never reset. The
142
+ // WebView then keeps swallowing taps while its transparent background
143
+ // still shows the camera preview, so the AR view renders but no
144
+ // highlight tap ever reaches it (SDC-33081). Setting the Z on
145
+ // webView.getParent() cannot fix that either — the container shares
146
+ // that parent, so it moves both together.
134
147
  if (latestInfo.getShouldBeUnderWebView()) {
135
148
  if (webView != null) {
136
149
  webView.bringToFront();
137
- ((View) webView.getParent()).setTranslationZ(1F);
150
+ webView.setTranslationZ(2F);
138
151
  }
152
+ container.setTranslationZ(1F);
139
153
  } else {
140
154
  container.bringToFront();
155
+ container.setTranslationZ(2F);
141
156
  if (webView != null) {
142
- ((View) webView.getParent()).setTranslationZ(-1F);
157
+ webView.setTranslationZ(1F);
143
158
  }
144
159
  }
145
160
  container.requestLayout();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scandit-capacitor-datacapture-barcode",
3
- "version": "8.6.0-beta.1",
3
+ "version": "8.6.0",
4
4
  "description": "Scandit Data Capture SDK for Capacitor",
5
5
  "license": "Apache-2.0",
6
6
  "private": false,
@@ -21,7 +21,7 @@
21
21
  "watch": "tsc -p tsconfig.build.json --watch"
22
22
  },
23
23
  "dependencies": {
24
- "scandit-capacitor-datacapture-core": "8.6.0-beta.1"
24
+ "scandit-capacitor-datacapture-core": "8.6.0"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@babel/plugin-proposal-class-properties": "^7.18.6",