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
package/android/build.gradle
CHANGED
|
@@ -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 =
|
|
48
|
-
targetCompatibility =
|
|
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.
|
|
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'])
|