brianmtully / flutter_google_ml_vision

Flutter Plugin for Google ML Kit Vision
BSD 3-Clause "New" or "Revised" License
47 stars 48 forks source link

Thank you for this! #7

Closed acoutts closed 3 years ago

acoutts commented 3 years ago

The official firebase_ml_vision package has been dead/unmaintained for months now. This was a very easy switch-out and everything seems to work as before.

Thank you for creating this!

hmarat commented 3 years ago

@acoutts It does not work for me. Can you help me to configure it?

nirbar89 commented 3 years ago

@acoutts It does not work for me. Can you help me to configure it?

Sure, where is the issue?

festapp86 commented 3 years ago

The plugin works fine for Android. But if we want to flutter run the ios project we are receiving this error for the file FLTGoogleMlVisionPlugin.h:

` ...Debug-iphoneos/google_ml_vision/google_ml_vision.framework/Headers/FLTGoogleMlVisionPlugin.h:7:1: error: use of '@import' when C++ modules are disabled, consider using -fmodules and -fcxx-modules @import MLKitVision; ^ .../Debug-iphoneos/google_ml_vision/google_ml_vision.framework/Headers/FLTGoogleMlVisionPlugin.h:16:26: error: expected a type

We have enabled modules C and Objective-C in our Target Build Settings, but it is still not working image

festapp86 commented 3 years ago

It seems like I was able to fix it by replacing @import MKKitVision with #import <MLKitVision/MLKitVision.h>