rn-document-scanner-vision 1.0.7 → 1.0.9

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.
@@ -4,7 +4,7 @@ buildscript {
4
4
  mavenCentral()
5
5
  }
6
6
  dependencies {
7
- classpath 'com.android.tools.build:gradle:8.4.2'
7
+ classpath 'com.android.tools.build:gradle:7.2.2'
8
8
  }
9
9
  }
10
10
 
@@ -15,13 +15,9 @@ def safeExtGet(prop, fallback) {
15
15
  }
16
16
 
17
17
  def resolveReactNativeDirectory() {
18
- // Try multiple possible locations for react-native
19
18
  def locations = [
20
- // When used as a dependency in another project
21
19
  "${rootProject.projectDir}/../node_modules/react-native/android",
22
- // Fallback for monorepos
23
20
  "${rootProject.projectDir}/../../node_modules/react-native/android",
24
- // Direct parent node_modules
25
21
  new File(projectDir, "../../../node_modules/react-native/android").canonicalPath
26
22
  ]
27
23
 
@@ -38,14 +34,10 @@ repositories {
38
34
  google()
39
35
  mavenCentral()
40
36
 
41
- // React Native's maven repository
42
37
  def reactNativeDir = resolveReactNativeDirectory()
43
38
  if (reactNativeDir != null) {
44
39
  maven { url reactNativeDir }
45
40
  }
46
-
47
- // Maven Central hosts react-android for newer RN versions
48
- maven { url "https://repo1.maven.org/maven2/" }
49
41
  }
50
42
 
51
43
  android {
@@ -68,8 +60,8 @@ android {
68
60
  }
69
61
 
70
62
  compileOptions {
71
- sourceCompatibility JavaVersion.VERSION_17
72
- targetCompatibility JavaVersion.VERSION_17
63
+ sourceCompatibility JavaVersion.VERSION_11
64
+ targetCompatibility JavaVersion.VERSION_11
73
65
  }
74
66
 
75
67
  lint {
@@ -78,10 +70,11 @@ android {
78
70
  }
79
71
 
80
72
  dependencies {
81
- // Use compileOnly for react-android to avoid bundling React Native
82
- // The host app will provide the React Native runtime at build time
83
- compileOnly "com.facebook.react:react-android:+"
73
+ // For React Native < 0.71, use react-native from local maven
74
+ // For React Native >= 0.71, use react-android
75
+ // compileOnly ensures the host app provides React Native at runtime
76
+ compileOnly "com.facebook.react:react-native:+"
84
77
 
85
- implementation "androidx.appcompat:appcompat:1.7.0"
78
+ implementation "androidx.appcompat:appcompat:1.6.1"
86
79
  implementation "com.websitebeaver:documentscanner:1.3.4"
87
80
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-document-scanner-vision",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "A React Native library for scanning documents on iOS and Android",
5
5
  "main": "lib/commonjs/index.js",
6
6
  "module": "lib/module/index.js",