scandit-react-native-datacapture-id-aamva-barcode-verification 6.23.2 → 6.24.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.
@@ -1,9 +1,10 @@
1
- def safeExtGet(prop, fallback) {
2
- rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
3
- }
1
+ import com.android.Version
2
+
3
+ apply plugin: "com.android.library"
4
+ apply plugin: "kotlin-android"
4
5
 
5
6
  static def supportsNamespace() {
6
- def parsed = com.android.Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
7
+ def parsed = Version.ANDROID_GRADLE_PLUGIN_VERSION.tokenize('.')
7
8
  def major = parsed[0].toInteger()
8
9
  def minor = parsed[1].toInteger()
9
10
 
@@ -16,25 +17,28 @@ static def supportsNamespace() {
16
17
  }
17
18
 
18
19
  buildscript {
19
- ext {
20
- kotlin_version = "1.7.21"
21
- agp_version = "7.2.1"
20
+ // Simple helper that allows the root project to override versions declared by this library.
21
+ ext.safeExtGet = { prop, fallback -> rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback }
22
+
23
+ // Ensures backward compatibility
24
+ ext.getKotlinVersion = {
25
+ if (ext.has("kotlinVersion")) {
26
+ ext.kotlinVersion()
27
+ } else {
28
+ ext.safeExtGet("kotlinVersion", "1.7.21")
29
+ }
22
30
  }
23
31
 
24
32
  repositories {
25
- google()
26
33
  mavenCentral()
34
+ google()
27
35
  }
28
36
 
29
37
  dependencies {
30
- classpath "com.android.tools.build:gradle:$agp_version"
31
- classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
38
+ classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${getKotlinVersion()}")
32
39
  }
33
40
  }
34
41
 
35
- apply plugin: 'com.android.library'
36
- apply plugin: 'kotlin-android'
37
-
38
42
  android {
39
43
  if (supportsNamespace()) {
40
44
  sourceSets {
@@ -44,11 +48,12 @@ android {
44
48
  }
45
49
  namespace "com.scandit.datacapture.reactnative.id_aamva_barcode_verification"
46
50
  }
47
- compileSdkVersion safeExtGet('compileSdkVersion', 32)
51
+
52
+ compileSdkVersion safeExtGet("compileSdkVersion", 33)
48
53
 
49
54
  defaultConfig {
50
- minSdkVersion safeExtGet('minSdkVersion', 23)
51
- targetSdkVersion safeExtGet('targetSdkVersion', 32)
55
+ minSdkVersion safeExtGet("minSdkVersion", 23)
56
+ targetSdkVersion safeExtGet("targetSdkVersion", 33)
52
57
  versionCode 1
53
58
  versionName "1.0"
54
59
  }
@@ -59,7 +64,7 @@ android {
59
64
  }
60
65
 
61
66
  dependencies {
62
- def sdk_version = "6.23.2"
67
+ def sdk_version = "6.24.0-beta.2"
63
68
 
64
69
  println("Version of the native sdk used in this build: ${safeExtGet('global_sdk_version', sdk_version)}")
65
70
  api "com.scandit.datacapture:id-aamva-barcode-verification:${safeExtGet('global_sdk_version', sdk_version)}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scandit-react-native-datacapture-id-aamva-barcode-verification",
3
- "version": "6.23.2",
3
+ "version": "6.24.0-beta.2",
4
4
  "description": "Scandit Data Capture SDK for React Native",
5
5
  "homepage": "https://github.com/Scandit/scandit-react-native-datacapture-id-aamva-barcode-verification",
6
6
  "main": "index.js",
@@ -15,7 +15,7 @@ Pod::Spec.new do |s|
15
15
  s.requires_arc = true
16
16
  s.module_name = "ScanditDataCaptureIdAamvaBarcodeVerification"
17
17
  s.header_dir = "ScanditDataCaptureIdAamvaBarcodeVerification"
18
- s.dependency 'ScanditIdAamvaBarcodeVerification', '= 6.23.2'
18
+ s.dependency 'ScanditIdAamvaBarcodeVerification', '= 6.24.0-beta.2'
19
19
  s.source_files = "ios/Sources/**/*.{h,m,swift}"
20
20
  s.dependency "React"
21
21
  end