mgcrea / vision-camera-barcode-scanner

High performance barcode scanner for React Native using VisionCamera
MIT License
87 stars 11 forks source link

vision-camera-code-scanner:compileDebugJavaWithJava #37

Open RadheSwil opened 1 month ago

RadheSwil commented 1 month ago

/Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:10: error: cannot find symbol import com.google.mlkit.vision.barcode.Barcode; ^ symbol: class Barcode location: package com.google.mlkit.vision.barcode /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:49: error: package Barcode does not exist public static WritableNativeArray convertAddressList(@NonNull List addresses) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:59: error: package Barcode does not exist public static WritableNativeArray convertPhoneList(@NonNull List phones) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:69: error: package Barcode does not exist public static WritableNativeArray convertEmailList(@NonNull List emails) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:88: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.Address address) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:108: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.ContactInfo contactInfo) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:122: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.PersonName name) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:136: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.UrlBookmark url) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:145: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.Email email) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:156: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.Phone phone) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:165: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.Sms sms) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:174: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.WiFi wifi) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:184: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.GeoPoint geoPoint) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:193: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.CalendarDateTime calendarDateTime) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:208: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.CalendarEvent calendarEvent) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:222: error: package Barcode does not exist public static WritableNativeMap convertToMap(@NonNull Barcode.DriverLicense driverLicense) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPluginPackage.java:9: error: package com.mrousavy.camera.frameprocessor does not exist import com.mrousavy.camera.frameprocessor.FrameProcessorPlugin; ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:25: error: package com.mrousavy.camera.frameprocessor does not exist import com.mrousavy.camera.frameprocessor.FrameProcessorPlugin; ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:27: error: cannot find symbol import com.google.mlkit.vision.barcode.Barcode; ^ symbol: class Barcode location: package com.google.mlkit.vision.barcode /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:40: error: cannot find symbol public class VisionCameraCodeScannerPlugin extends FrameProcessorPlugin { ^ symbol: class FrameProcessorPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:147: error: cannot find symbol private WritableNativeMap convertContent(@NonNull Barcode barcode) { ^ symbol: class Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:191: error: cannot find symbol private WritableNativeMap convertBarcode(@NonNull Barcode barcode) { ^ symbol: class Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:23: error: reference to convertToMap is ambiguous array.pushMap(convertToMap(point)); ^ both method convertToMap(CalendarEvent) in BarcodeConverter and method convertToMap(DriverLicense) in BarcodeConverter match /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:52: error: package Barcode does not exist for (Barcode.Address address: addresses) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:62: error: package Barcode does not exist for (Barcode.Phone phone: phones) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/BarcodeConverter.java:72: error: package Barcode does not exist for (Barcode.Email email: emails) { ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPluginPackage.java:19: error: cannot find symbol FrameProcessorPlugin.register(new VisionCameraCodeScannerPlugin()); ^ symbol: variable FrameProcessorPlugin location: class VisionCameraCodeScannerPluginPackage /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:45: error: cannot find symbol Barcode.FORMAT_UNKNOWN, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:46: error: cannot find symbol Barcode.FORMAT_ALL_FORMATS, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:47: error: cannot find symbol Barcode.FORMAT_CODE_128, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:48: error: cannot find symbol Barcode.FORMAT_CODE_39, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:49: error: cannot find symbol Barcode.FORMAT_CODE_93, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:50: error: cannot find symbol Barcode.FORMAT_CODABAR, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:51: error: cannot find symbol Barcode.FORMAT_DATA_MATRIX, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:52: error: cannot find symbol Barcode.FORMAT_EAN_13, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:53: error: cannot find symbol Barcode.FORMAT_EAN_8, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:54: error: cannot find symbol Barcode.FORMAT_ITF, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:55: error: cannot find symbol Barcode.FORMAT_QR_CODE, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:56: error: cannot find symbol Barcode.FORMAT_UPC_A, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:57: error: cannot find symbol Barcode.FORMAT_UPC_E, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:58: error: cannot find symbol Barcode.FORMAT_PDF417, ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:59: error: cannot find symbol Barcode.FORMAT_AZTEC ^ symbol: variable Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:62: error: method does not override or implement a method from a supertype @Override ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:69: error: cannot find symbol ArrayList<Task<List>> tasks = new ArrayList<Task<List>>(); ^ symbol: class Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:69: error: cannot find symbol ArrayList<Task<List>> tasks = new ArrayList<Task<List>>(); ^ symbol: class Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:93: error: cannot find symbol ArrayList barcodes = new ArrayList(); ^ symbol: class Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:93: error: cannot find symbol ArrayList barcodes = new ArrayList(); ^ symbol: class Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:94: error: cannot find symbol for (Task<List> task : tasks) { ^ symbol: class Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:99: error: cannot find symbol for (Barcode barcode : barcodes) { ^ symbol: class Barcode location: class VisionCameraCodeScannerPlugin /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:154: error: package Barcode does not exist case Barcode.TYPE_UNKNOWN: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:155: error: package Barcode does not exist case Barcode.TYPE_ISBN: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:156: error: package Barcode does not exist case Barcode.TYPE_TEXT: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:159: error: package Barcode does not exist case Barcode.TYPE_CONTACT_INFO: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:162: error: package Barcode does not exist case Barcode.TYPE_EMAIL: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:165: error: package Barcode does not exist case Barcode.TYPE_PHONE: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:168: error: package Barcode does not exist case Barcode.TYPE_SMS: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:171: error: package Barcode does not exist case Barcode.TYPE_URL: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:174: error: package Barcode does not exist case Barcode.TYPE_WIFI: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:177: error: package Barcode does not exist case Barcode.TYPE_GEO: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:180: error: package Barcode does not exist case Barcode.TYPE_CALENDAR_EVENT: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:183: error: package Barcode does not exist case Barcode.TYPE_DRIVER_LICENSE: ^ /Users/swildev/Documents/GitHub/SwilSORT/node_modules/vision-camera-code-scanner/android/src/main/java/com/visioncameracodescanner/VisionCameraCodeScannerPlugin.java:196: error: reference to convertToMap is ambiguous map.putMap("boundingBox", convertToMap(boundingBox)); ^ both method convertToMap(ContactInfo) in BarcodeConverter and method convertToMap(Address) in BarcodeConverter match 62 errors FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':vision-camera-code-scanner:compileDebugJavaWithJavac'.

Package.json

"dependencies": { "@invertase/react-native-apple-authentication": "^1.1.2", "@react-native-async-storage/async-storage": "2.0.0", "@react-native-community/netinfo": "11.4.1", "@react-navigation/drawer": "^6.4.1", "@react-navigation/native": "^6.0.10", "@react-navigation/native-stack": "^6.6.2", "@reduxjs/toolkit": "^1.9.0", "axios": "^0.27.2", "crypto-js": "^4.1.1", "deprecated-react-native-prop-types": "^4.2.1", "jwt-decode": "^3.1.2", "prop-types": "^15.8.1", "react": "18.2.0", "react-hook-form": "^7.31.3", "react-native": "0.73.8", "react-native-device-info": "^10.6.0", "react-native-dropdown-picker": "^5.4.4", "react-native-eject": "^0.1.2", "react-native-element-dropdown": "^2.5.1", "react-native-exit-app": "^1.1.0", "react-native-gesture-handler": "2.20.0", "react-native-global-props": "^1.1.5", "react-native-inappbrowser-reborn": "^3.7.0", "react-native-linear-gradient": "^2.6.2", "react-native-link": "^4.1.0", "react-native-material-menu": "^2.0.0", "react-native-reanimated": "3.10.0", "react-native-safe-area-context": "4.11.0", "react-native-screens": "3.34.0", "react-native-sound": "^0.11.2", "react-native-splash-screen": "^3.3.0", "react-native-svg": "15.7.1", "react-native-svg-transformer": "^1.1.0", "react-native-swipe-gestures": "^1.0.5", "react-native-toast-message": "^2.1.6", "react-native-uuid": "^2.0.1", "react-native-vector-icons": "^9.2.0", "react-native-vision-camera": "4.5.3", "react-native-webview": "^11.26.0", "react-native-worklets-core": "^0.2.0", "react-redux": "^8.0.5", "redux": "^4.2.0", "redux-logger": "^3.0.6", "redux-persist": "^6.0.0", "redux-persist-filesystem-storage": "^4.1.0", "redux-persist-transform-filter": "^0.0.22", "rn-fetch-blob": "^0.12.0", "vision-camera-code-scanner": "^0.2.0" }, "devDependencies": { "@babel/core": "^7.12.9", "@babel/runtime": "^7.12.5", "@react-native-community/eslint-config": "^2.0.0", "@redux-devtools/core": "^3.13.1", "babel-jest": "^26.6.3", "eslint": "^7.32.0", "jest": "^26.6.3", "jetifier": "^2.0.0", "metro-react-native-babel-preset": "^0.67.0", "react-test-renderer": "17.0.2" },