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.
- package/ScanditCapacitorDatacaptureBarcode.podspec +1 -1
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.java +6 -0
- package/dist/barcode.js +333 -35
- package/dist/barcode.js.map +1 -1
- package/dist/dts/definitions.d.ts +6 -0
- package/dist/dts/ts/SparkScanView.d.ts +3 -1
- package/dist/index.js +107 -115
- package/dist/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -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.
|
|
20
|
+
s.dependency "scandit-datacapture-frameworks-barcode", '= 8.4.0-beta.1'
|
|
21
21
|
end
|
package/android/build.gradle
CHANGED
|
@@ -143,7 +143,7 @@ if (ext.has('repos')) {
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
dependencies {
|
|
146
|
-
def sdk_version = "8.
|
|
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('
|
|
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"
|
package/android/src/main/java/com/scandit/capacitor/datacapture/barcode/ScanditBarcodeNative.java
CHANGED
|
@@ -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
|