react-native-pdf417-scanner 1.0.0
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 +304 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/results.bin +1 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/pdf417scanner/BuildConfig.dex +0 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/pdf417scanner/PDF417CameraManager$1.dex +0 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/pdf417scanner/PDF417CameraManager$2.dex +0 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/pdf417scanner/PDF417CameraManager$3.dex +0 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/pdf417scanner/PDF417CameraManager.dex +0 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/pdf417scanner/PDF417ScannerConfig.dex +0 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/pdf417scanner/PDF417ScannerModule.dex +0 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/pdf417scanner/PDF417ScannerPackage.dex +0 -0
- package/android/build/.transforms/9b66633dab4e9d17bdb8e8633f202036/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/.transforms/d503444439e8ad92acf84485353ac7d0/results.bin +1 -0
- package/android/build/.transforms/d503444439e8ad92acf84485353ac7d0/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/generated/source/buildConfig/debug/com/pdf417scanner/BuildConfig.java +10 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/AndroidManifest.xml +20 -0
- package/android/build/intermediates/aapt_friendly_merged_manifests/debug/processDebugManifest/aapt/output-metadata.json +18 -0
- package/android/build/intermediates/aar_metadata/debug/writeDebugAarMetadata/aar-metadata.properties +6 -0
- package/android/build/intermediates/annotation_processor_list/debug/javaPreCompileDebug/annotationProcessors.json +1 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/compile_r_class_jar/debug/generateDebugRFile/R.jar +0 -0
- package/android/build/intermediates/compile_symbol_list/debug/generateDebugRFile/R.txt +0 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/compile-file-map.properties +1 -0
- package/android/build/intermediates/incremental/debug/packageDebugResources/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugAssets/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugJniLibFolders/merger.xml +2 -0
- package/android/build/intermediates/incremental/mergeDebugShaders/merger.xml +2 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/pdf417scanner/BuildConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/pdf417scanner/PDF417CameraManager$1.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/pdf417scanner/PDF417CameraManager$2.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/pdf417scanner/PDF417CameraManager$3.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/pdf417scanner/PDF417CameraManager.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/pdf417scanner/PDF417ScannerConfig.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/pdf417scanner/PDF417ScannerModule.class +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/pdf417scanner/PDF417ScannerPackage.class +0 -0
- package/android/build/intermediates/local_only_symbol_list/debug/parseDebugLocalResources/R-def.txt +2 -0
- package/android/build/intermediates/manifest_merge_blame_file/debug/processDebugManifest/manifest-merger-blame-debug-report.txt +33 -0
- package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml +20 -0
- package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json +1 -0
- package/android/build/intermediates/nested_resources_validation_report/debug/generateDebugResources/nestedResourcesValidationReport.txt +1 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/pdf417scanner/BuildConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/pdf417scanner/PDF417CameraManager$1.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/pdf417scanner/PDF417CameraManager$2.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/pdf417scanner/PDF417CameraManager$3.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/pdf417scanner/PDF417CameraManager.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/pdf417scanner/PDF417ScannerConfig.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/pdf417scanner/PDF417ScannerModule.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/pdf417scanner/PDF417ScannerPackage.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/symbol_list_with_package_name/debug/generateDebugRFile/package-aware-r.txt +1 -0
- package/android/build/outputs/logs/manifest-merger-debug-report.txt +43 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/build.gradle +31 -0
- package/android/src/main/AndroidManifest.xml +18 -0
- package/android/src/main/java/com/pdf417scanner/PDF417CameraManager.java +283 -0
- package/android/src/main/java/com/pdf417scanner/PDF417ScannerConfig.java +49 -0
- package/android/src/main/java/com/pdf417scanner/PDF417ScannerModule.java +138 -0
- package/android/src/main/java/com/pdf417scanner/PDF417ScannerPackage.java +28 -0
- package/lib/index.d.ts +60 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +125 -0
- package/lib/index.js.map +1 -0
- package/package.json +34 -0
package/README.md
ADDED
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
# React Native PDF417 Scanner SDK
|
|
2
|
+
|
|
3
|
+
A comprehensive React Native SDK for live PDF417 barcode scanning using native Android implementation with ZXing library.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
- **Live PDF417 Scanning**: Real-time barcode detection using device camera
|
|
8
|
+
- **Native Performance**: Optimized native Android implementation with ZXing
|
|
9
|
+
- **Camera Management**: Automatic camera permission handling and lifecycle management
|
|
10
|
+
- **Advanced Controls**: Autofocus, torch/flashlight control, scan timeout
|
|
11
|
+
- **Event-Driven API**: Clean React Native bridge with events and callbacks
|
|
12
|
+
- **Error Handling**: Comprehensive error reporting and recovery
|
|
13
|
+
- **TypeScript Support**: Full TypeScript definitions included
|
|
14
|
+
|
|
15
|
+
## Installation
|
|
16
|
+
|
|
17
|
+
### 1. Install the Package
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install react-native-pdf417-scanner
|
|
21
|
+
# or
|
|
22
|
+
yarn add react-native-pdf417-scanner
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### 2. Android Configuration
|
|
26
|
+
|
|
27
|
+
#### Add to `android/settings.gradle`:
|
|
28
|
+
```gradle
|
|
29
|
+
include ':react-native-pdf417-scanner'
|
|
30
|
+
project(':react-native-pdf417-scanner').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-pdf417-scanner/android')
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### Add to `android/app/build.gradle`:
|
|
34
|
+
```gradle
|
|
35
|
+
dependencies {
|
|
36
|
+
implementation project(':react-native-pdf417-scanner')
|
|
37
|
+
// ... other dependencies
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
#### Register the Package in `MainApplication.java/kt`:
|
|
42
|
+
```kotlin
|
|
43
|
+
import com.pdf417scanner.PDF417ScannerPackage
|
|
44
|
+
|
|
45
|
+
// In the packages list:
|
|
46
|
+
add(PDF417ScannerPackage())
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### Add Permissions to `AndroidManifest.xml`:
|
|
50
|
+
```xml
|
|
51
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
52
|
+
<uses-permission android:name="android.permission.FLASHLIGHT" />
|
|
53
|
+
<uses-permission android:name="android.permission.VIBRATE" />
|
|
54
|
+
|
|
55
|
+
<uses-feature
|
|
56
|
+
android:name="android.hardware.camera"
|
|
57
|
+
android:required="true" />
|
|
58
|
+
<uses-feature
|
|
59
|
+
android:name="android.hardware.camera.autofocus"
|
|
60
|
+
android:required="false" />
|
|
61
|
+
<uses-feature
|
|
62
|
+
android:name="android.hardware.camera.flash"
|
|
63
|
+
android:required="false" />
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Usage
|
|
67
|
+
|
|
68
|
+
### Basic Implementation
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
import React, { useEffect, useState } from 'react';
|
|
72
|
+
import { View, Button, Alert } from 'react-native';
|
|
73
|
+
import PDF417Scanner, { PDF417ScanResult, PDF417ScanError } from 'react-native-pdf417-scanner';
|
|
74
|
+
|
|
75
|
+
const ScannerComponent = () => {
|
|
76
|
+
const [isScanning, setIsScanning] = useState(false);
|
|
77
|
+
|
|
78
|
+
useEffect(() => {
|
|
79
|
+
// Set up event listeners
|
|
80
|
+
const scanResultUnsubscribe = PDF417Scanner.onScanResult(handleScanResult);
|
|
81
|
+
const scanErrorUnsubscribe = PDF417Scanner.onScanError(handleScanError);
|
|
82
|
+
const cameraReadyUnsubscribe = PDF417Scanner.onCameraReady(handleCameraReady);
|
|
83
|
+
|
|
84
|
+
return () => {
|
|
85
|
+
scanResultUnsubscribe();
|
|
86
|
+
scanErrorUnsubscribe();
|
|
87
|
+
cameraReadyUnsubscribe();
|
|
88
|
+
};
|
|
89
|
+
}, []);
|
|
90
|
+
|
|
91
|
+
const handleScanResult = (result: PDF417ScanResult) => {
|
|
92
|
+
console.log('Scanned:', result.data);
|
|
93
|
+
Alert.alert('Scanned', result.data);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
const handleScanError = (error: PDF417ScanError) => {
|
|
97
|
+
console.error('Scan error:', error);
|
|
98
|
+
Alert.alert('Error', error.message);
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const handleCameraReady = () => {
|
|
102
|
+
console.log('Camera is ready');
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
const startScanning = async () => {
|
|
106
|
+
try {
|
|
107
|
+
await PDF417Scanner.startScanning({
|
|
108
|
+
enableAutoFocus: true,
|
|
109
|
+
enableTorch: false,
|
|
110
|
+
scanTimeout: 30000,
|
|
111
|
+
enableBeep: true,
|
|
112
|
+
enableVibration: true,
|
|
113
|
+
});
|
|
114
|
+
setIsScanning(true);
|
|
115
|
+
} catch (error) {
|
|
116
|
+
Alert.alert('Error', `Failed to start scanning: ${error}`);
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
const stopScanning = async () => {
|
|
121
|
+
try {
|
|
122
|
+
await PDF417Scanner.stopScanning();
|
|
123
|
+
setIsScanning(false);
|
|
124
|
+
} catch (error) {
|
|
125
|
+
Alert.alert('Error', `Failed to stop scanning: ${error}`);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
return (
|
|
130
|
+
<View>
|
|
131
|
+
<Button
|
|
132
|
+
title={isScanning ? 'Stop Scanning' : 'Start Scanning'}
|
|
133
|
+
onPress={isScanning ? stopScanning : startScanning}
|
|
134
|
+
/>
|
|
135
|
+
</View>
|
|
136
|
+
);
|
|
137
|
+
};
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## API Reference
|
|
141
|
+
|
|
142
|
+
### Methods
|
|
143
|
+
|
|
144
|
+
#### `startScanning(config?: PDF417ScannerConfig): Promise<void>`
|
|
145
|
+
Starts the PDF417 scanning process.
|
|
146
|
+
|
|
147
|
+
**Parameters:**
|
|
148
|
+
- `config` (optional): Configuration object for scanning behavior
|
|
149
|
+
|
|
150
|
+
**Configuration Options:**
|
|
151
|
+
```typescript
|
|
152
|
+
interface PDF417ScannerConfig {
|
|
153
|
+
enableAutoFocus?: boolean; // Default: true
|
|
154
|
+
enableTorch?: boolean; // Default: false
|
|
155
|
+
scanTimeout?: number; // Default: 30000 (30 seconds)
|
|
156
|
+
enableBeep?: boolean; // Default: true
|
|
157
|
+
enableVibration?: boolean; // Default: true
|
|
158
|
+
}
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
#### `stopScanning(): Promise<void>`
|
|
162
|
+
Stops the scanning process and releases camera resources.
|
|
163
|
+
|
|
164
|
+
#### `setTorchEnabled(enabled: boolean): Promise<void>`
|
|
165
|
+
Controls the device flashlight/torch.
|
|
166
|
+
|
|
167
|
+
#### `isCurrentlyScanning(): boolean`
|
|
168
|
+
Returns the current scanning state.
|
|
169
|
+
|
|
170
|
+
#### `requestCameraPermission(): Promise<boolean>`
|
|
171
|
+
Requests camera permission from the user.
|
|
172
|
+
|
|
173
|
+
#### `hasCameraPermission(): Promise<boolean>`
|
|
174
|
+
Checks if camera permission is granted.
|
|
175
|
+
|
|
176
|
+
### Events
|
|
177
|
+
|
|
178
|
+
#### `onScanResult(callback: (result: PDF417ScanResult) => void): () => void`
|
|
179
|
+
Listens for successful scan results.
|
|
180
|
+
|
|
181
|
+
**Result Object:**
|
|
182
|
+
```typescript
|
|
183
|
+
interface PDF417ScanResult {
|
|
184
|
+
data: string; // The decoded barcode data
|
|
185
|
+
format: string; // Barcode format (PDF_417)
|
|
186
|
+
timestamp: number; // Scan timestamp
|
|
187
|
+
}
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
#### `onScanError(callback: (error: PDF417ScanError) => void): () => void`
|
|
191
|
+
Listens for scan errors.
|
|
192
|
+
|
|
193
|
+
**Error Object:**
|
|
194
|
+
```typescript
|
|
195
|
+
interface PDF417ScanError {
|
|
196
|
+
code: string; // Error code
|
|
197
|
+
message: string; // Error description
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
#### `onCameraReady(callback: () => void): () => void`
|
|
202
|
+
Listens for camera ready events.
|
|
203
|
+
|
|
204
|
+
## Error Codes
|
|
205
|
+
|
|
206
|
+
| Code | Description |
|
|
207
|
+
|------|-------------|
|
|
208
|
+
| `PERMISSION_DENIED` | Camera permission not granted |
|
|
209
|
+
| `CAMERA_ERROR` | Camera hardware or configuration error |
|
|
210
|
+
| `START_SCANNING_ERROR` | Failed to start scanning process |
|
|
211
|
+
| `STOP_SCANNING_ERROR` | Failed to stop scanning process |
|
|
212
|
+
| `TORCH_ERROR` | Failed to control flashlight |
|
|
213
|
+
|
|
214
|
+
## Performance Optimization
|
|
215
|
+
|
|
216
|
+
### Best Practices
|
|
217
|
+
|
|
218
|
+
1. **Lifecycle Management**: Always stop scanning when the component unmounts
|
|
219
|
+
2. **Permission Handling**: Check permissions before starting scanning
|
|
220
|
+
3. **Event Cleanup**: Unsubscribe from events to prevent memory leaks
|
|
221
|
+
4. **Error Recovery**: Implement proper error handling and recovery mechanisms
|
|
222
|
+
|
|
223
|
+
### Example with Lifecycle Management
|
|
224
|
+
|
|
225
|
+
```typescript
|
|
226
|
+
import React, { useEffect, useRef } from 'react';
|
|
227
|
+
import { AppState } from 'react-native';
|
|
228
|
+
import PDF417Scanner from 'react-native-pdf417-scanner';
|
|
229
|
+
|
|
230
|
+
const ScannerWithLifecycle = () => {
|
|
231
|
+
const appState = useRef(AppState.currentState);
|
|
232
|
+
const [isScanning, setIsScanning] = useState(false);
|
|
233
|
+
|
|
234
|
+
useEffect(() => {
|
|
235
|
+
const handleAppStateChange = (nextAppState: string) => {
|
|
236
|
+
if (appState.current.match(/inactive|background/) && nextAppState === 'active') {
|
|
237
|
+
// App has come to the foreground
|
|
238
|
+
if (isScanning) {
|
|
239
|
+
restartScanning();
|
|
240
|
+
}
|
|
241
|
+
} else if (nextAppState.match(/inactive|background/)) {
|
|
242
|
+
// App has gone to the background
|
|
243
|
+
if (isScanning) {
|
|
244
|
+
PDF417Scanner.stopScanning();
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
appState.current = nextAppState;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
const subscription = AppState.addEventListener('change', handleAppStateChange);
|
|
251
|
+
return () => subscription?.remove();
|
|
252
|
+
}, [isScanning]);
|
|
253
|
+
|
|
254
|
+
// ... rest of component
|
|
255
|
+
};
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
## Troubleshooting
|
|
259
|
+
|
|
260
|
+
### Common Issues
|
|
261
|
+
|
|
262
|
+
1. **Camera Permission Denied**
|
|
263
|
+
- Ensure permissions are declared in AndroidManifest.xml
|
|
264
|
+
- Request permissions before starting scanning
|
|
265
|
+
- Handle permission denial gracefully
|
|
266
|
+
|
|
267
|
+
2. **Build Errors**
|
|
268
|
+
- Verify all Gradle configurations are correct
|
|
269
|
+
- Ensure ZXing dependencies are properly resolved
|
|
270
|
+
- Clean and rebuild the project
|
|
271
|
+
|
|
272
|
+
3. **Scanner Not Working**
|
|
273
|
+
- Check device camera functionality
|
|
274
|
+
- Verify proper lighting conditions
|
|
275
|
+
- Ensure PDF417 barcode is clearly visible
|
|
276
|
+
|
|
277
|
+
### Debug Mode
|
|
278
|
+
|
|
279
|
+
Enable debug logging by setting the log level in your native module configuration.
|
|
280
|
+
|
|
281
|
+
## Requirements
|
|
282
|
+
|
|
283
|
+
- React Native >= 0.60
|
|
284
|
+
- Android API Level >= 21
|
|
285
|
+
- Camera hardware with autofocus support (recommended)
|
|
286
|
+
|
|
287
|
+
## License
|
|
288
|
+
|
|
289
|
+
MIT License - see LICENSE file for details.
|
|
290
|
+
|
|
291
|
+
## Contributing
|
|
292
|
+
|
|
293
|
+
1. Fork the repository
|
|
294
|
+
2. Create a feature branch
|
|
295
|
+
3. Make your changes
|
|
296
|
+
4. Add tests if applicable
|
|
297
|
+
5. Submit a pull request
|
|
298
|
+
|
|
299
|
+
## Support
|
|
300
|
+
|
|
301
|
+
For issues and questions:
|
|
302
|
+
- Create an issue on GitHub
|
|
303
|
+
- Check existing documentation
|
|
304
|
+
- Review the demo application for implementation examples
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
o/bundleLibRuntimeToDirDebug
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
o/classes
|
|
Binary file
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Automatically generated file. DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
package com.pdf417scanner;
|
|
5
|
+
|
|
6
|
+
public final class BuildConfig {
|
|
7
|
+
public static final boolean DEBUG = Boolean.parseBoolean("true");
|
|
8
|
+
public static final String LIBRARY_PACKAGE_NAME = "com.pdf417scanner";
|
|
9
|
+
public static final String BUILD_TYPE = "debug";
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
package="com.pdf417scanner" >
|
|
4
|
+
|
|
5
|
+
<uses-sdk android:minSdkVersion="24" />
|
|
6
|
+
|
|
7
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
8
|
+
<uses-permission android:name="android.permission.FLASHLIGHT" />
|
|
9
|
+
|
|
10
|
+
<uses-feature
|
|
11
|
+
android:name="android.hardware.camera"
|
|
12
|
+
android:required="true" />
|
|
13
|
+
<uses-feature
|
|
14
|
+
android:name="android.hardware.camera.autofocus"
|
|
15
|
+
android:required="false" />
|
|
16
|
+
<uses-feature
|
|
17
|
+
android:name="android.hardware.camera.flash"
|
|
18
|
+
android:required="false" />
|
|
19
|
+
|
|
20
|
+
</manifest>
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"artifactType": {
|
|
4
|
+
"type": "AAPT_FRIENDLY_MERGED_MANIFESTS",
|
|
5
|
+
"kind": "Directory"
|
|
6
|
+
},
|
|
7
|
+
"applicationId": "com.pdf417scanner",
|
|
8
|
+
"variantName": "debug",
|
|
9
|
+
"elements": [
|
|
10
|
+
{
|
|
11
|
+
"type": "SINGLE",
|
|
12
|
+
"filters": [],
|
|
13
|
+
"attributes": [],
|
|
14
|
+
"outputFile": "AndroidManifest.xml"
|
|
15
|
+
}
|
|
16
|
+
],
|
|
17
|
+
"elementType": "File"
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
Binary file
|
|
Binary file
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#Wed Dec 31 12:14:07 IST 2025
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<merger version="3"><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="main" generated-set="main$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="debug" generated-set="debug$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\debug\res"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated$Generated" generated="true" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\build\generated\res\resValues\debug"/></dataSet><dataSet aapt-namespace="http://schemas.android.com/apk/res-auto" config="generated" generated-set="generated$Generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\build\generated\res\resValues\debug"/></dataSet><mergedItems/></merger>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\assets"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\debug\assets"/></dataSet><dataSet config="generated" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\build\intermediates\shader_assets\debug\compileDebugShaders\out"/></dataSet></merger>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\jniLibs"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\debug\jniLibs"/></dataSet></merger>
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<merger version="3"><dataSet config="main" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\shaders"/></dataSet><dataSet config="debug" ignore_pattern="!.svn:!.git:!.ds_store:!*.scc:.*:<dir>_*:!CVS:!thumbs.db:!picasa.ini:!*~"><source path="G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\debug\shaders"/></dataSet></merger>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
1<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
2<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
3 package="com.pdf417scanner" >
|
|
4
|
+
4
|
|
5
|
+
5 <uses-sdk android:minSdkVersion="24" />
|
|
6
|
+
6
|
|
7
|
+
7 <uses-permission android:name="android.permission.CAMERA" />
|
|
8
|
+
7-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:5:5-65
|
|
9
|
+
7-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:5:22-62
|
|
10
|
+
8 <uses-permission android:name="android.permission.FLASHLIGHT" />
|
|
11
|
+
8-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:6:5-69
|
|
12
|
+
8-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:6:22-66
|
|
13
|
+
9
|
|
14
|
+
10 <uses-feature
|
|
15
|
+
10-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:8:5-10:35
|
|
16
|
+
11 android:name="android.hardware.camera"
|
|
17
|
+
11-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:9:9-47
|
|
18
|
+
12 android:required="true" />
|
|
19
|
+
12-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:10:9-32
|
|
20
|
+
13 <uses-feature
|
|
21
|
+
13-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:11:5-13:36
|
|
22
|
+
14 android:name="android.hardware.camera.autofocus"
|
|
23
|
+
14-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:12:9-57
|
|
24
|
+
15 android:required="false" />
|
|
25
|
+
15-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:13:9-33
|
|
26
|
+
16 <uses-feature
|
|
27
|
+
16-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:14:5-16:36
|
|
28
|
+
17 android:name="android.hardware.camera.flash"
|
|
29
|
+
17-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:15:9-53
|
|
30
|
+
18 android:required="false" />
|
|
31
|
+
18-->G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:16:9-33
|
|
32
|
+
19
|
|
33
|
+
20</manifest>
|
package/android/build/intermediates/merged_manifest/debug/processDebugManifest/AndroidManifest.xml
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
package="com.pdf417scanner" >
|
|
4
|
+
|
|
5
|
+
<uses-sdk android:minSdkVersion="24" />
|
|
6
|
+
|
|
7
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
8
|
+
<uses-permission android:name="android.permission.FLASHLIGHT" />
|
|
9
|
+
|
|
10
|
+
<uses-feature
|
|
11
|
+
android:name="android.hardware.camera"
|
|
12
|
+
android:required="true" />
|
|
13
|
+
<uses-feature
|
|
14
|
+
android:name="android.hardware.camera.autofocus"
|
|
15
|
+
android:required="false" />
|
|
16
|
+
<uses-feature
|
|
17
|
+
android:name="android.hardware.camera.flash"
|
|
18
|
+
android:required="false" />
|
|
19
|
+
|
|
20
|
+
</manifest>
|
package/android/build/intermediates/navigation_json/debug/extractDeepLinksDebug/navigation.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0 Warning/Error
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
com.pdf417scanner
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
-- Merging decision tree log ---
|
|
2
|
+
manifest
|
|
3
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:2:1-18:12
|
|
4
|
+
INJECTED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:2:1-18:12
|
|
5
|
+
package
|
|
6
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:3:5-32
|
|
7
|
+
INJECTED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml
|
|
8
|
+
xmlns:android
|
|
9
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:2:11-69
|
|
10
|
+
uses-permission#android.permission.CAMERA
|
|
11
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:5:5-65
|
|
12
|
+
android:name
|
|
13
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:5:22-62
|
|
14
|
+
uses-permission#android.permission.FLASHLIGHT
|
|
15
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:6:5-69
|
|
16
|
+
android:name
|
|
17
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:6:22-66
|
|
18
|
+
uses-feature#android.hardware.camera
|
|
19
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:8:5-10:35
|
|
20
|
+
android:required
|
|
21
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:10:9-32
|
|
22
|
+
android:name
|
|
23
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:9:9-47
|
|
24
|
+
uses-feature#android.hardware.camera.autofocus
|
|
25
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:11:5-13:36
|
|
26
|
+
android:required
|
|
27
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:13:9-33
|
|
28
|
+
android:name
|
|
29
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:12:9-57
|
|
30
|
+
uses-feature#android.hardware.camera.flash
|
|
31
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:14:5-16:36
|
|
32
|
+
android:required
|
|
33
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:16:9-33
|
|
34
|
+
android:name
|
|
35
|
+
ADDED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml:15:9-53
|
|
36
|
+
uses-sdk
|
|
37
|
+
INJECTED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml reason: use-sdk injection requested
|
|
38
|
+
INJECTED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml
|
|
39
|
+
INJECTED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml
|
|
40
|
+
android:targetSdkVersion
|
|
41
|
+
INJECTED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml
|
|
42
|
+
android:minSdkVersion
|
|
43
|
+
INJECTED from G:\React Naive\PDF417\PDF417ScannerDemo\node_modules\react-native-pdf417-scanner\android\src\main\AndroidManifest.xml
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
apply plugin: 'com.android.library'
|
|
2
|
+
|
|
3
|
+
def safeExtGet(prop, fallback) {
|
|
4
|
+
rootProject.ext.has(prop) ? rootProject.ext.get(prop) : fallback
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
android {
|
|
8
|
+
compileSdkVersion safeExtGet('compileSdkVersion', 34)
|
|
9
|
+
|
|
10
|
+
defaultConfig {
|
|
11
|
+
minSdkVersion safeExtGet('minSdkVersion', 21)
|
|
12
|
+
targetSdkVersion safeExtGet('targetSdkVersion', 34)
|
|
13
|
+
versionCode 1
|
|
14
|
+
versionName "1.0.0"
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
compileOptions {
|
|
18
|
+
sourceCompatibility JavaVersion.VERSION_1_8
|
|
19
|
+
targetCompatibility JavaVersion.VERSION_1_8
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
dependencies {
|
|
24
|
+
implementation 'com.facebook.react:react-native:+'
|
|
25
|
+
implementation 'androidx.camera:camera-core:1.3.1'
|
|
26
|
+
implementation 'androidx.camera:camera-camera2:1.3.1'
|
|
27
|
+
implementation 'androidx.camera:camera-lifecycle:1.3.1'
|
|
28
|
+
implementation 'androidx.camera:camera-view:1.3.1'
|
|
29
|
+
implementation 'com.google.zxing:core:3.5.2'
|
|
30
|
+
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
|
31
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
|
3
|
+
package="com.pdf417scanner">
|
|
4
|
+
|
|
5
|
+
<uses-permission android:name="android.permission.CAMERA" />
|
|
6
|
+
<uses-permission android:name="android.permission.FLASHLIGHT" />
|
|
7
|
+
|
|
8
|
+
<uses-feature
|
|
9
|
+
android:name="android.hardware.camera"
|
|
10
|
+
android:required="true" />
|
|
11
|
+
<uses-feature
|
|
12
|
+
android:name="android.hardware.camera.autofocus"
|
|
13
|
+
android:required="false" />
|
|
14
|
+
<uses-feature
|
|
15
|
+
android:name="android.hardware.camera.flash"
|
|
16
|
+
android:required="false" />
|
|
17
|
+
|
|
18
|
+
</manifest>
|