scandit-capacitor-datacapture-barcode 7.1.2 → 7.2.0-beta.2

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/README.md ADDED
@@ -0,0 +1,3 @@
1
+ ScanditBarcodeCapture implements the barcode capture capabilities of the Scandit Data Capture SDK. It supports reading a large number of different barcode symbologies.
2
+
3
+ Learn more with the [official documentation](https://docs.scandit.com/) or get started with [our samples](https://github.com/Scandit/datacapture-capacitor-samples)
@@ -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", '= 7.1.2'
20
+ s.dependency "scandit-datacapture-frameworks-barcode", '= 7.2.0-beta.2'
21
21
  end
@@ -9,18 +9,51 @@ def safeExtGet(prop, fallback) {
9
9
  }
10
10
 
11
11
  buildscript {
12
+ def retrieveCapacitorCompatibility = {
13
+ def appModule = rootProject.findProject(":app")
14
+ if (appModule == null) {
15
+ return
16
+ }
17
+
18
+ def file = appModule.file("capacitor.build.gradle")
19
+ if (file.exists()) {
20
+ def content = file.text
21
+
22
+ def sourceCompatibilityMatch = content =~ /sourceCompatibility\s+JavaVersion.VERSION_(\d+)/
23
+ def targetCompatibilityMatch = content =~ /targetCompatibility\s+JavaVersion.VERSION_(\d+)/
24
+
25
+ if (sourceCompatibilityMatch) {
26
+ ext.rootSourceCompatibility = JavaVersion.toVersion(sourceCompatibilityMatch[0][1])
27
+ } else {
28
+ ext.rootSourceCompatibility = JavaVersion.VERSION_17
29
+ }
30
+
31
+ if (targetCompatibilityMatch) {
32
+ ext.rootTargetCompatibility = JavaVersion.toVersion(targetCompatibilityMatch[0][1])
33
+ } else {
34
+ ext.rootTargetCompatibility = JavaVersion.VERSION_17
35
+ }
36
+ }
37
+ }
38
+
12
39
  ext {
13
40
  kotlin_version = "1.8.20"
14
41
  agp_version = "8.5.1"
42
+ rootSourceCompatibility = JavaVersion.VERSION_17
43
+ rootTargetCompatibility = JavaVersion.VERSION_17
15
44
  }
45
+
16
46
  repositories {
17
47
  google()
18
48
  mavenCentral()
19
49
  }
50
+
20
51
  dependencies {
21
52
  classpath "com.android.tools.build:gradle:$agp_version"
22
53
  classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
23
54
  }
55
+
56
+ retrieveCapacitorCompatibility()
24
57
  }
25
58
 
26
59
  apply plugin: 'com.android.library'
@@ -45,8 +78,8 @@ android {
45
78
  abortOnError false
46
79
  }
47
80
  compileOptions {
48
- sourceCompatibility = JavaVersion.VERSION_17
49
- targetCompatibility = JavaVersion.VERSION_17
81
+ sourceCompatibility = rootSourceCompatibility
82
+ targetCompatibility = rootTargetCompatibility
50
83
  }
51
84
  }
52
85
 
@@ -56,7 +89,7 @@ repositories {
56
89
  }
57
90
 
58
91
  dependencies {
59
- def sdk_version = "7.1.2"
92
+ def sdk_version = "7.2.0-beta.2"
60
93
 
61
94
  implementation fileTree(dir: 'libs', include: ['*.jar'])
62
95
  implementation fileTree(dir: 'library', include: ['*.aar'])
@@ -34,6 +34,10 @@ import com.scandit.capacitor.datacapture.core.errors.JsonParseError
34
34
  import com.scandit.capacitor.datacapture.core.utils.CapacitorResult
35
35
  import com.scandit.datacapture.core.ui.style.BrushDeserializer
36
36
  import com.scandit.datacapture.frameworks.barcode.BarcodeModule
37
+ import com.scandit.datacapture.frameworks.barcode.batch.BarcodeBatchModule
38
+ import com.scandit.datacapture.frameworks.barcode.batch.listeners.FrameworksBarcodeBatchAdvancedOverlayListener
39
+ import com.scandit.datacapture.frameworks.barcode.batch.listeners.FrameworksBarcodeBatchBasicOverlayListener
40
+ import com.scandit.datacapture.frameworks.barcode.batch.listeners.FrameworksBarcodeBatchListener
37
41
  import com.scandit.datacapture.frameworks.barcode.capture.BarcodeCaptureModule
38
42
  import com.scandit.datacapture.frameworks.barcode.capture.listeners.FrameworksBarcodeCaptureListener
39
43
  import com.scandit.datacapture.frameworks.barcode.count.BarcodeCountModule
@@ -56,13 +60,7 @@ import com.scandit.datacapture.frameworks.barcode.spark.SparkScanModule
56
60
  import com.scandit.datacapture.frameworks.barcode.spark.delegates.FrameworksSparkScanFeedbackDelegate
57
61
  import com.scandit.datacapture.frameworks.barcode.spark.listeners.FrameworksSparkScanListener
58
62
  import com.scandit.datacapture.frameworks.barcode.spark.listeners.FrameworksSparkScanViewUiListener
59
- import com.scandit.datacapture.frameworks.barcode.batch.BarcodeBatchModule
60
- import com.scandit.datacapture.frameworks.barcode.batch.listeners.FrameworksBarcodeBatchAdvancedOverlayListener
61
- import com.scandit.datacapture.frameworks.barcode.batch.listeners.FrameworksBarcodeBatchBasicOverlayListener
62
- import com.scandit.datacapture.frameworks.barcode.batch.listeners.FrameworksBarcodeBatchListener
63
- import com.scandit.datacapture.frameworks.core.deserialization.DeserializationLifecycleObserver
64
63
  import com.scandit.datacapture.frameworks.core.events.Emitter
65
- import com.scandit.datacapture.frameworks.core.result.NoopFrameworksResult
66
64
  import com.scandit.datacapture.frameworks.core.utils.DefaultFrameworksLog
67
65
  import com.scandit.datacapture.frameworks.core.utils.DefaultMainThread
68
66
  import com.scandit.datacapture.frameworks.core.utils.DefaultWorkerThread
@@ -87,7 +85,6 @@ class ScanditBarcodeNative :
87
85
  private const val FIELD_RESULT = "result"
88
86
  private const val CORE_PLUGIN_NAME = "ScanditCaptureCoreNative"
89
87
  private const val WRONG_INPUT = "Wrong input parameter"
90
- private const val INVALID_JSON = "Failed to parse JSON argument"
91
88
  private const val WEB_VIEW_NOT_ATTACHED = "WebView not attached yet"
92
89
  }
93
90
 
@@ -174,20 +171,6 @@ class ScanditBarcodeNative :
174
171
  barcodeGeneratorModule.onDestroy()
175
172
  }
176
173
 
177
- override fun handleOnPause() {
178
- super.handleOnPause()
179
- barcodeFindModule.viewOnPause(NoopFrameworksResult())
180
- barcodePickModule.viewOnPause()
181
- sparkScanModule.onPause()
182
- }
183
-
184
- override fun handleOnResume() {
185
- super.handleOnResume()
186
- barcodeFindModule.viewOnResume(NoopFrameworksResult())
187
- barcodePickModule.viewOnResume()
188
- sparkScanModule.onResume(NoopFrameworksResult())
189
- }
190
-
191
174
  private fun checkCameraPermission(): Boolean =
192
175
  getPermissionState("camera") == PermissionState.GRANTED
193
176
 
@@ -238,7 +221,7 @@ class ScanditBarcodeNative :
238
221
  }
239
222
  } catch (e: JSONException) {
240
223
  onJsonParseError(e, call)
241
- } catch (e: RuntimeException) { // TODO [SDC-1851] - fine-catch deserializer exceptions
224
+ } catch (e: RuntimeException) {
242
225
  onJsonParseError(e, call)
243
226
  }
244
227
  }
@@ -264,11 +247,17 @@ class ScanditBarcodeNative :
264
247
  }
265
248
 
266
249
  @PluginMethod
267
- fun subscribeBarcodeCaptureListener(call: PluginCall) {
250
+ fun registerBarcodeCaptureListenerForEvents(call: PluginCall) {
268
251
  barcodeCaptureModule.addListener()
269
252
  call.resolve()
270
253
  }
271
254
 
255
+ @PluginMethod
256
+ fun unregisterBarcodeCaptureListenerForEvents(call: PluginCall) {
257
+ barcodeCaptureModule.removeListener()
258
+ call.resolve()
259
+ }
260
+
272
261
  @PluginMethod
273
262
  fun setBarcodeCaptureModeEnabledState(call: PluginCall) {
274
263
  barcodeCaptureModule.setModeEnabled(call.data.getBoolean("enabled"))
@@ -312,13 +301,13 @@ class ScanditBarcodeNative :
312
301
  }
313
302
 
314
303
  @PluginMethod
315
- fun subscribeBarcodeSelectionListener(call: PluginCall) {
304
+ fun registerBarcodeSelectionListenerForEvents(call: PluginCall) {
316
305
  barcodeSelectionModule.addListener()
317
306
  call.resolve()
318
307
  }
319
308
 
320
309
  @PluginMethod
321
- fun unsubscribeBarcodeSelectionListener(call: PluginCall) {
310
+ fun unregisterBarcodeSelectionListenerForEvents(call: PluginCall) {
322
311
  barcodeSelectionModule.removeListener()
323
312
  call.resolve()
324
313
  }
@@ -354,6 +343,18 @@ class ScanditBarcodeNative :
354
343
  call.resolve()
355
344
  }
356
345
 
346
+ @PluginMethod
347
+ fun finishBrushForTrackedBarcodeCallback(call: PluginCall) {
348
+ val brushJson = call.data.getString("brush")
349
+ val selectionIdentifier = call.data.getString("selectionIdentifier")
350
+ if (selectionIdentifier == null) {
351
+ call.reject("selectionIdentifier is missing in the call parameters.")
352
+ return
353
+ }
354
+ barcodeSelectionModule.finishBrushForTrackedBarcode(brushJson, selectionIdentifier)
355
+ call.resolve()
356
+ }
357
+
357
358
  @PluginMethod
358
359
  fun removeTrackedBarcodeBrushProvider(call: PluginCall) {
359
360
  barcodeSelectionModule.removeTrackedBarcodeBrushProvider()
@@ -411,18 +412,6 @@ class ScanditBarcodeNative :
411
412
  )
412
413
  }
413
414
 
414
- @PluginMethod
415
- fun subscribeBrushForAimedBarcode(call: PluginCall) {
416
- // Setting the repository does subscribe
417
- call.resolve()
418
- }
419
-
420
- @PluginMethod
421
- fun subscribeBrushForTrackedBarcode(call: PluginCall) {
422
- // Setting the repository does subscribe
423
- call.resolve()
424
- }
425
-
426
415
  @PluginMethod
427
416
  fun increaseCountForBarcodes(call: PluginCall) {
428
417
  val barcodesStr = call.data.getString("barcodesStr")
@@ -446,7 +435,7 @@ class ScanditBarcodeNative :
446
435
  call.resolve()
447
436
  } catch (e: JSONException) {
448
437
  call.reject(JsonParseError(e.message).toString())
449
- } catch (e: RuntimeException) { // TODO [SDC-1851] - fine-catch deserializer exceptions
438
+ } catch (e: RuntimeException) {
450
439
  call.reject(JsonParseError(e.message).toString())
451
440
  }
452
441
  }
@@ -497,7 +486,7 @@ class ScanditBarcodeNative :
497
486
  }
498
487
  } catch (e: JSONException) {
499
488
  call.reject(JsonParseError(e.message).toString())
500
- } catch (e: RuntimeException) { // TODO [SDC-1851] - fine-catch deserializer exceptions
489
+ } catch (e: RuntimeException) {
501
490
  call.reject(JsonParseError(e.message).toString())
502
491
  }
503
492
 
@@ -516,7 +505,7 @@ class ScanditBarcodeNative :
516
505
  call.resolve()
517
506
  } catch (e: JSONException) {
518
507
  call.reject(JsonParseError(e.message).toString())
519
- } catch (e: RuntimeException) { // TODO [SDC-1851] - fine-catch deserializer exceptions
508
+ } catch (e: RuntimeException) {
520
509
  call.reject(JsonParseError(e.message).toString())
521
510
  }
522
511
  }
@@ -533,7 +522,7 @@ class ScanditBarcodeNative :
533
522
  call.resolve()
534
523
  } catch (e: JSONException) {
535
524
  call.reject(JsonParseError(e.message).toString())
536
- } catch (e: RuntimeException) { // TODO [SDC-1851] - fine-catch deserializer exceptions
525
+ } catch (e: RuntimeException) {
537
526
  call.reject(JsonParseError(e.message).toString())
538
527
  }
539
528
  }
@@ -627,7 +616,7 @@ class ScanditBarcodeNative :
627
616
 
628
617
  //region Barcode Count Listener
629
618
  @PluginMethod
630
- fun finishBarcodeCountListenerOnScan(call: PluginCall) {
619
+ fun finishBarcodeCountOnScan(call: PluginCall) {
631
620
  barcodeCountModule.finishOnScan(true)
632
621
  call.resolve(null)
633
622
  }
@@ -635,8 +624,8 @@ class ScanditBarcodeNative :
635
624
  //endregion
636
625
 
637
626
  @PluginMethod
638
- fun createView(call: PluginCall) {
639
- val viewJson = call.data.toString()
627
+ fun createBarcodeCountView(call: PluginCall) {
628
+ val viewJson = call.data.getString("viewJson")!!
640
629
  val barcodeCountView = barcodeCountModule.getViewFromJson(viewJson)
641
630
  if (barcodeCountView == null) {
642
631
  call.reject("Unable to create the BarcodeCountView from the given json=$viewJson")
@@ -652,27 +641,29 @@ class ScanditBarcodeNative :
652
641
  }
653
642
 
654
643
  @PluginMethod
655
- fun removeView(call: PluginCall) {
644
+ fun removeBarcodeCountView(call: PluginCall) {
656
645
  barcodeCountModule.viewDisposed()
657
646
  barcodeCountViewHandler.disposeCurrentView()
658
647
  call.resolve()
659
648
  }
660
649
 
661
650
  @PluginMethod
662
- fun updateView(call: PluginCall) {
651
+ fun updateBarcodeCountView(call: PluginCall) {
663
652
  val view = barcodeCountViewHandler.barcodeCountView
664
653
  if (view == null) {
665
654
  call.reject("The barcode count view has not been initialized yet.")
666
655
  return
667
656
  }
668
657
 
669
- barcodeCountModule.updateBarcodeCountView(call.data["View"].toString())
658
+ val viewJson = call.data.getString("viewJson")!!
659
+ barcodeCountModule.updateBarcodeCountView(viewJson)
670
660
  call.resolve()
671
661
  }
672
662
 
673
663
  @PluginMethod
674
- fun updateMode(call: PluginCall) {
675
- barcodeCountModule.updateBarcodeCount(call.data["BarcodeCount"].toString())
664
+ fun updateBarcodeCountMode(call: PluginCall) {
665
+ val barcodeCountJson = call.data.getString("barcodeCountJson")!!
666
+ barcodeCountModule.updateBarcodeCount(barcodeCountJson)
676
667
  call.resolve()
677
668
  }
678
669
 
@@ -725,13 +716,13 @@ class ScanditBarcodeNative :
725
716
  }
726
717
 
727
718
  @PluginMethod
728
- fun startScanningPhase(call: PluginCall) {
719
+ fun startBarcodeCountScanningPhase(call: PluginCall) {
729
720
  barcodeCountModule.startScanningPhase()
730
721
  call.resolve()
731
722
  }
732
723
 
733
724
  @PluginMethod
734
- fun endScanningPhase(call: PluginCall) {
725
+ fun endBarcodeCountScanningPhase(call: PluginCall) {
735
726
  barcodeCountModule.endScanningPhase()
736
727
  call.resolve()
737
728
  }
@@ -755,11 +746,22 @@ class ScanditBarcodeNative :
755
746
  }
756
747
 
757
748
  @PluginMethod
758
- fun setViewPositionAndSize(call: PluginCall) {
749
+ fun setBarcodeCountViewPositionAndSize(call: PluginCall) {
759
750
  try {
760
- val positionJson = call.data.getString("position")
761
- ?: return call.reject("No position was given for setting the view.")
762
- val info = JSONObject(positionJson)
751
+ val top = call.getDouble("top") ?: return call.reject("Missing top position")
752
+ val left = call.getDouble("left") ?: return call.reject("Missing left position")
753
+ val width = call.getDouble("width") ?: return call.reject("Missing width")
754
+ val height = call.getDouble("height") ?: return call.reject("Missing height")
755
+ val shouldBeUnderWebView = call.getBoolean("shouldBeUnderWebView", false)
756
+
757
+ val info = JSONObject().apply {
758
+ put("top", top)
759
+ put("left", left)
760
+ put("width", width)
761
+ put("height", height)
762
+ put("shouldBeUnderWebView", shouldBeUnderWebView)
763
+ }
764
+
763
765
  barcodeCountViewHandler.setResizeAndMoveInfo(ResizeAndMoveInfo(info))
764
766
  call.resolve()
765
767
  } catch (e: JSONException) {
@@ -768,28 +770,26 @@ class ScanditBarcodeNative :
768
770
  }
769
771
 
770
772
  @PluginMethod
771
- fun showView(call: PluginCall) {
773
+ fun showBarcodeCountView(call: PluginCall) {
772
774
  barcodeCountViewHandler.setVisible()
773
775
  call.resolve()
774
776
  }
775
777
 
776
778
  @PluginMethod
777
- fun hideView(call: PluginCall) {
779
+ fun hideBarcodeCountView(call: PluginCall) {
778
780
  barcodeCountViewHandler.setInvisible()
779
781
  call.resolve()
780
782
  }
781
783
 
782
784
  @PluginMethod
783
- fun getSpatialMap(call: PluginCall) {
785
+ fun getBarcodeCountSpatialMap(call: PluginCall) {
784
786
  barcodeCountModule.submitSpatialMap(CapacitorResult(call))
785
787
  }
786
788
 
787
789
  @PluginMethod
788
- fun getSpatialMapWithHints(call: PluginCall) {
789
- val expectedNumberOfRows = call.data.getInteger("expectedNumberOfRows")
790
- ?: return call.reject("No expectedNumberOfRows was provided for the function.")
791
- val expectedNumberOfColumns = call.data.getInteger("expectedNumberOfColumns")
792
- ?: return call.reject("No expectedNumberOfColumns was provided for the function.")
790
+ fun getBarcodeCountSpatialMapWithHints(call: PluginCall) {
791
+ val expectedNumberOfRows = call.data.getInteger("expectedNumberOfRows")!!
792
+ val expectedNumberOfColumns = call.data.getInteger("expectedNumberOfColumns")!!
793
793
  barcodeCountModule.submitSpatialMap(
794
794
  expectedNumberOfRows,
795
795
  expectedNumberOfColumns,
@@ -799,7 +799,8 @@ class ScanditBarcodeNative :
799
799
 
800
800
  @PluginMethod
801
801
  fun setBarcodeCountModeEnabledState(call: PluginCall) {
802
- barcodeCountModule.setModeEnabled(call.data.getBoolean("enabled"))
802
+ val isEnabled = call.data.getBoolean("isEnabled")
803
+ barcodeCountModule.setModeEnabled(isEnabled)
803
804
  call.resolve()
804
805
  }
805
806
 
@@ -816,8 +817,8 @@ class ScanditBarcodeNative :
816
817
  //endregion
817
818
 
818
819
  @PluginMethod
819
- fun finishBarcodeCountViewListenerBrushForRecognizedBarcode(call: PluginCall) {
820
- val brushJson = call.data.optString("brush", "")
820
+ fun finishBarcodeCountBrushForRecognizedBarcode(call: PluginCall) {
821
+ val brushJson = call.data.optString("brushJson", "")
821
822
  val brush = if (brushJson.isNullOrBlank()) null else BrushDeserializer.fromJson(brushJson)
822
823
  val trackedBarcodeId = call.data.getInt("trackedBarcodeId")
823
824
  barcodeCountModule.finishBrushForRecognizedBarcodeEvent(brush, trackedBarcodeId)
@@ -825,8 +826,8 @@ class ScanditBarcodeNative :
825
826
  }
826
827
 
827
828
  @PluginMethod
828
- fun finishBarcodeCountViewListenerBrushForRecognizedBarcodeNotInList(call: PluginCall) {
829
- val brushJson = call.data.optString("brush", "")
829
+ fun finishBarcodeCountBrushForRecognizedBarcodeNotInList(call: PluginCall) {
830
+ val brushJson = call.data.optString("brushJson", "")
830
831
  val brush = if (brushJson.isNullOrBlank()) null else BrushDeserializer.fromJson(brushJson)
831
832
  val trackedBarcodeId = call.data.getInt("trackedBarcodeId")
832
833
  barcodeCountModule.finishBrushForRecognizedBarcodeNotInListEvent(brush, trackedBarcodeId)
@@ -834,8 +835,8 @@ class ScanditBarcodeNative :
834
835
  }
835
836
 
836
837
  @PluginMethod
837
- fun finishBarcodeCountViewListenerOnBrushForAcceptedBarcode(call: PluginCall) {
838
- val brushJson = call.data.optString("brush", "")
838
+ fun finishBarcodeCountOnBrushForAcceptedBarcode(call: PluginCall) {
839
+ val brushJson = call.data.optString("brushJson", "")
839
840
  val brush = if (brushJson.isNullOrBlank()) null else BrushDeserializer.fromJson(brushJson)
840
841
  val trackedBarcodeId = call.data.getInt("trackedBarcodeId")
841
842
  barcodeCountModule.finishBrushForAcceptedBarcodeEvent(brush, trackedBarcodeId)
@@ -843,8 +844,8 @@ class ScanditBarcodeNative :
843
844
  }
844
845
 
845
846
  @PluginMethod
846
- fun finishBarcodeCountViewListenerOnBrushForRejectedBarcode(call: PluginCall) {
847
- val brushJson = call.data.optString("brush", "")
847
+ fun finishBarcodeCountOnBrushForRejectedBarcode(call: PluginCall) {
848
+ val brushJson = call.data.optString("brushJson", "")
848
849
  val brush = if (brushJson.isNullOrBlank()) null else BrushDeserializer.fromJson(brushJson)
849
850
  val trackedBarcodeId = call.data.getInt("trackedBarcodeId")
850
851
  barcodeCountModule.finishBrushForRejectedBarcodeEvent(brush, trackedBarcodeId)
@@ -853,8 +854,11 @@ class ScanditBarcodeNative :
853
854
 
854
855
  @PluginMethod
855
856
  fun barcodeCountViewEnableHardwareTrigger(call: PluginCall) {
857
+ val hardwareTriggerKeyCode = if (call.data.has("hardwareTriggerKeyCode")) {
858
+ call.data.getInteger("hardwareTriggerKeyCode")
859
+ } else null
856
860
  barcodeCountModule.enableHardwareTrigger(
857
- call.data.getInteger("hardwareTriggerKeyCode"),
861
+ hardwareTriggerKeyCode,
858
862
  CapacitorResult(call)
859
863
  )
860
864
  }
@@ -974,16 +978,6 @@ class ScanditBarcodeNative :
974
978
  barcodeFindModule.removeBarcodeFindViewListener(CapacitorResult(call))
975
979
  }
976
980
 
977
- @PluginMethod
978
- fun barcodeFindViewOnPause(call: PluginCall) {
979
- barcodeFindModule.viewOnPause(CapacitorResult(call))
980
- }
981
-
982
- @PluginMethod
983
- fun barcodeFindViewOnResume(call: PluginCall) {
984
- barcodeFindModule.viewOnResume(CapacitorResult(call))
985
- }
986
-
987
981
  @PluginMethod
988
982
  fun barcodeFindSetItemList(call: PluginCall) {
989
983
  barcodeFindModule.setItemList(
@@ -1047,7 +1041,7 @@ class ScanditBarcodeNative :
1047
1041
 
1048
1042
  @PluginMethod
1049
1043
  fun submitBarcodeFindTransformerResult(call: PluginCall) {
1050
- val transformedBarcode = call.data.optString("transformedBarcode", null)
1044
+ val transformedBarcode = call.data.getString("transformedBarcode", null)
1051
1045
  barcodeFindModule.submitBarcodeFindTransformerResult(transformedBarcode, CapacitorResult(call))
1052
1046
  }
1053
1047
 
@@ -1372,7 +1366,8 @@ class ScanditBarcodeNative :
1372
1366
 
1373
1367
  @PluginMethod
1374
1368
  fun prepareSparkScanViewScanning(call: PluginCall) {
1375
- sparkScanModule.onResume(CapacitorResult(call))
1369
+ // Noop
1370
+ call.resolve()
1376
1371
  }
1377
1372
 
1378
1373
  @PluginMethod
@@ -1388,7 +1383,7 @@ class ScanditBarcodeNative :
1388
1383
 
1389
1384
  @PluginMethod
1390
1385
  fun stopSparkScanViewScanning(call: PluginCall) {
1391
- sparkScanModule.onPause()
1386
+ // Noop
1392
1387
  call.resolve()
1393
1388
  }
1394
1389