scandit-capacitor-datacapture-barcode 8.3.0 → 8.4.0-beta.1

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.3.0'
20
+ s.dependency "scandit-datacapture-frameworks-barcode", '= 8.4.0-beta.1'
21
21
  end
@@ -143,7 +143,7 @@ if (ext.has('repos')) {
143
143
  }
144
144
 
145
145
  dependencies {
146
- def sdk_version = "8.3.0"
146
+ def sdk_version = "8.4.0-beta.1"
147
147
 
148
148
  implementation fileTree(dir: 'libs', include: ['*.jar'])
149
149
  implementation fileTree(dir: 'library', include: ['*.aar'])
@@ -153,7 +153,7 @@ dependencies {
153
153
  if (findProject(':scandit-datacapture-frameworks-barcode') != null) {
154
154
  api project(":scandit-datacapture-frameworks-barcode")
155
155
  } else {
156
- api "com.scandit.datacapture.frameworks:barcode:${safeExtGet('global_sdk_version', sdk_version)}"
156
+ api "com.scandit.datacapture.frameworks:barcode:${safeExtGet('frameworks_sdk_version', sdk_version)}"
157
157
  }
158
158
 
159
159
  implementation "androidx.core:core-ktx:$androidxCoreVersion"
@@ -495,6 +495,12 @@ public class ScanditBarcodeNative extends Plugin implements Emitter {
495
495
  call.reject("Unable to create the native BarcodeArModule");
496
496
  }
497
497
  });
498
+
499
+ // BarcodeAr manages its own camera (like SparkScan), so it bypasses the
500
+ // DataCaptureContext switchCameraToDesiredState path that normally triggers the
501
+ // permission dialog. Without this call the camera permission is never requested
502
+ // and BarcodeAr shows a black screen on first launch.
503
+ checkOrRequestCameraPermissions(call);
498
504
  }
499
505
 
500
506
  @PluginMethod