scandit-capacitor-datacapture-id-voided-detection 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
+ ScanditIdVoidedDetection is a library that enables Voided ID Detection capabilities.
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)
@@ -15,5 +15,5 @@ Pod::Spec.new do |s|
15
15
  s.swift_version = '5.7'
16
16
 
17
17
  s.dependency 'Capacitor'
18
- s.dependency 'ScanditIdVoidedDetection', '= 7.1.2'
18
+ s.dependency 'ScanditIdVoidedDetection', '= 7.2.0-beta.2'
19
19
  end
@@ -8,10 +8,42 @@ def safeExtGet(prop, fallback) {
8
8
  }
9
9
 
10
10
  buildscript {
11
+ def retrieveCapacitorCompatibility = {
12
+ def appModule = rootProject.findProject(":app")
13
+ if (appModule == null) {
14
+ return
15
+ }
16
+
17
+ def file = appModule.file("capacitor.build.gradle")
18
+ if (file.exists()) {
19
+ def content = file.text
20
+
21
+ def sourceCompatibilityMatch = content =~ /sourceCompatibility\s+JavaVersion.VERSION_(\d+)/
22
+ def targetCompatibilityMatch = content =~ /targetCompatibility\s+JavaVersion.VERSION_(\d+)/
23
+
24
+ if (sourceCompatibilityMatch) {
25
+ ext.rootSourceCompatibility = JavaVersion.toVersion(sourceCompatibilityMatch[0][1])
26
+ } else {
27
+ ext.rootSourceCompatibility = JavaVersion.VERSION_17
28
+ }
29
+
30
+ if (targetCompatibilityMatch) {
31
+ ext.rootTargetCompatibility = JavaVersion.toVersion(targetCompatibilityMatch[0][1])
32
+ } else {
33
+ ext.rootTargetCompatibility = JavaVersion.VERSION_17
34
+ }
35
+ }
36
+ }
37
+
11
38
  ext {
12
39
  kotlin_version = "1.8.20"
13
40
  agp_version = "8.5.1"
41
+ rootSourceCompatibility = JavaVersion.VERSION_17
42
+ rootTargetCompatibility = JavaVersion.VERSION_17
14
43
  }
44
+
45
+ retrieveCapacitorCompatibility()
46
+
15
47
  repositories {
16
48
  google()
17
49
  mavenCentral()
@@ -44,8 +76,8 @@ android {
44
76
  abortOnError false
45
77
  }
46
78
  compileOptions {
47
- sourceCompatibility = JavaVersion.VERSION_17
48
- targetCompatibility = JavaVersion.VERSION_17
79
+ sourceCompatibility = rootSourceCompatibility
80
+ targetCompatibility = rootTargetCompatibility
49
81
  }
50
82
  }
51
83
 
@@ -55,7 +87,7 @@ repositories {
55
87
  }
56
88
 
57
89
  dependencies {
58
- def sdk_version = "7.1.2"
90
+ def sdk_version = "7.2.0-beta.2"
59
91
 
60
92
  implementation fileTree(dir: 'libs', include: ['*.jar'])
61
93
  implementation fileTree(dir: 'library', include: ['*.aar'])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scandit-capacitor-datacapture-id-voided-detection",
3
- "version": "7.1.2",
3
+ "version": "7.2.0-beta.2",
4
4
  "description": "Scandit Data Capture SDK for Capacitor",
5
5
  "files": [
6
6
  "android/",