rn-document-scanner-vision 1.0.0 → 1.0.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 CHANGED
@@ -16,13 +16,13 @@ A React Native library for scanning documents on iOS and Android. This library p
16
16
  ## Installation
17
17
 
18
18
  ```sh
19
- npm install react-native-document-scanner
19
+ npm install rn-document-scanner-vision
20
20
  ```
21
21
 
22
22
  or
23
23
 
24
24
  ```sh
25
- yarn add react-native-document-scanner
25
+ yarn add rn-document-scanner-vision
26
26
  ```
27
27
 
28
28
  ### iOS Setup
@@ -1,5 +1,18 @@
1
- plugins {
2
- id 'com.android.library'
1
+ buildscript {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ }
6
+ dependencies {
7
+ classpath 'com.android.tools.build:gradle:8.4.2'
8
+ }
9
+ }
10
+
11
+ apply plugin: 'com.android.library'
12
+
13
+ repositories {
14
+ google()
15
+ mavenCentral()
3
16
  }
4
17
 
5
18
  android {
@@ -31,13 +44,11 @@ android {
31
44
  }
32
45
  }
33
46
 
34
- repositories {
35
- google()
36
- mavenCentral()
37
- }
38
-
39
47
  dependencies {
40
- implementation 'com.facebook.react:react-android'
48
+ // Use compileOnly for react-android to avoid bundling React Native
49
+ // The host app will provide the React Native runtime
50
+ compileOnly 'com.facebook.react:react-android'
51
+
41
52
  implementation "androidx.appcompat:appcompat:1.7.0"
42
53
  implementation "com.websitebeaver:documentscanner:1.3.4"
43
54
  }
@@ -0,0 +1,16 @@
1
+ pluginManagement {
2
+ repositories {
3
+ google()
4
+ mavenCentral()
5
+ gradlePluginPortal()
6
+ }
7
+ }
8
+
9
+ dependencyResolutionManagement {
10
+ repositories {
11
+ google()
12
+ mavenCentral()
13
+ }
14
+ }
15
+
16
+ rootProject.name = "rn-document-scanner-vision"
@@ -1,4 +1,6 @@
1
- <manifest xmlns:android="http://schemas.android.com/apk/res/android">
1
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android"
2
+ package="com.rndocumentscanner">
3
+
2
4
  <uses-permission android:name="android.permission.CAMERA" />
3
5
  <uses-feature android:name="android.hardware.camera" android:required="false" />
4
6
  <uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rn-document-scanner-vision",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
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",
@@ -12,7 +12,7 @@
12
12
  "lib",
13
13
  "android",
14
14
  "ios",
15
- "react-native-document-scanner.podspec",
15
+ "rn-document-scanner-vision.podspec",
16
16
  "README.md",
17
17
  "LICENSE"
18
18
  ],
@@ -3,7 +3,7 @@ require "json"
3
3
  package = JSON.parse(File.read(File.join(__dir__, "package.json")))
4
4
 
5
5
  Pod::Spec.new do |s|
6
- s.name = "react-native-document-scanner"
6
+ s.name = "rn-document-scanner-vision"
7
7
  s.version = package["version"]
8
8
  s.summary = package["description"]
9
9
  s.homepage = package["homepage"]