luicfrr / react-native-vision-camera-face-detector

Vision Camera Frame Processor Plugin to detect faces using MLKit Face Detector
https://www.npmjs.com/package/react-native-vision-camera-face-detector
MIT License
75 stars 16 forks source link

Fix vision-camera Android imports #46

Closed AlanQuadros closed 2 months ago

luicfrr commented 2 months ago

Thanks for your PR but this is already fixed on 1.6.0 version

https://github.com/nonam4/react-native-vision-camera-face-detector/blob/3f2008f75be8170645b2d71f8aca45790906950b/android/src/main/java/com/visioncamerafacedetector/VisionCameraFaceDetectorPlugin.kt#L14-L17

You must use this version if you're using latest 4.0.1 vision-camera version 😁

AlanQuadros commented 2 months ago

Hi, thanks for the answer.

I'm using 1.6.1 and for some reason have the old imports in this version.

luicfrr commented 2 months ago

I had to do some tricks in 1.6.1 to get it working. Take a look into it's release notes.