├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.yml │ └── config.yml ├── dependabot.yml └── workflows │ ├── code-analysis.yml │ ├── inactive-issues.yml │ └── semantic-pr.yml ├── .gitignore ├── .metadata ├── AUTHORS ├── CHANGELOG.md ├── LICENSE ├── README.md ├── analyze.sh ├── packages ├── example │ ├── .gitignore │ ├── .metadata │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── app │ │ │ ├── build.gradle.kts │ │ │ └── src │ │ │ │ ├── debug │ │ │ │ └── AndroidManifest.xml │ │ │ │ ├── main │ │ │ │ ├── AndroidManifest.xml │ │ │ │ ├── kotlin │ │ │ │ │ └── com │ │ │ │ │ │ └── google │ │ │ │ │ │ └── ml │ │ │ │ │ │ └── kit │ │ │ │ │ │ └── flutter │ │ │ │ │ │ └── example │ │ │ │ │ │ └── MainActivity.kt │ │ │ │ └── res │ │ │ │ │ ├── drawable-v21 │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── drawable │ │ │ │ │ └── launch_background.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values-night │ │ │ │ │ └── styles.xml │ │ │ │ │ └── values │ │ │ │ │ └── styles.xml │ │ │ │ └── profile │ │ │ │ └── AndroidManifest.xml │ │ ├── build.gradle.kts │ │ ├── gradle.properties │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ └── settings.gradle.kts │ ├── assets │ │ ├── images │ │ │ ├── barcode1.webp │ │ │ ├── barcode2.png │ │ │ ├── bird1.jpeg │ │ │ ├── child_dog.jpg │ │ │ ├── daisy.jpg │ │ │ ├── dandelion.jpg │ │ │ ├── face1.webp │ │ │ ├── face2.webp │ │ │ ├── face3.webp │ │ │ ├── friends.jpg │ │ │ ├── landmark1.jpeg │ │ │ ├── landmark2.jpeg │ │ │ ├── mushroom1.jpeg │ │ │ ├── pose1.jpeg │ │ │ ├── roses.jpg │ │ │ ├── sunflower.jpg │ │ │ ├── text1.png │ │ │ ├── text2.png │ │ │ ├── text3.jpeg │ │ │ ├── text4.jpeg │ │ │ ├── text5.jpeg │ │ │ └── tulips.jpg │ │ └── ml │ │ │ ├── lite-model_aiy_vision_classifier_birds_V1_3.tflite │ │ │ ├── lite-model_aiy_vision_classifier_food_V1_1.tflite │ │ │ ├── lite-model_aiy_vision_classifier_plants_V1_3.tflite │ │ │ ├── lite-model_models_mushroom-identification_v1_1.tflite │ │ │ ├── lite-model_on_device_vision_classifier_landmarks_classifier_north_america_V1_1.tflite │ │ │ ├── object_labeler.tflite │ │ │ ├── object_labeler_flowers.tflite │ │ │ └── object_labeler_fruits.tflite │ ├── ios │ │ ├── .gitignore │ │ ├── Flutter │ │ │ ├── AppFrameworkInfo.plist │ │ │ ├── Debug.xcconfig │ │ │ └── Release.xcconfig │ │ ├── Podfile │ │ ├── Podfile.lock │ │ ├── Runner.xcodeproj │ │ │ ├── project.pbxproj │ │ │ ├── project.xcworkspace │ │ │ │ ├── contents.xcworkspacedata │ │ │ │ └── xcshareddata │ │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ │ └── WorkspaceSettings.xcsettings │ │ │ └── xcshareddata │ │ │ │ └── xcschemes │ │ │ │ └── Runner.xcscheme │ │ ├── Runner.xcworkspace │ │ │ ├── contents.xcworkspacedata │ │ │ └── xcshareddata │ │ │ │ ├── IDEWorkspaceChecks.plist │ │ │ │ └── WorkspaceSettings.xcsettings │ │ └── Runner │ │ │ ├── AppDelegate.swift │ │ │ ├── Assets.xcassets │ │ │ ├── AppIcon.appiconset │ │ │ │ ├── Contents.json │ │ │ │ ├── Icon-App-1024x1024@1x.png │ │ │ │ ├── Icon-App-20x20@1x.png │ │ │ │ ├── Icon-App-20x20@2x.png │ │ │ │ ├── Icon-App-20x20@3x.png │ │ │ │ ├── Icon-App-29x29@1x.png │ │ │ │ ├── Icon-App-29x29@2x.png │ │ │ │ ├── Icon-App-29x29@3x.png │ │ │ │ ├── Icon-App-40x40@1x.png │ │ │ │ ├── Icon-App-40x40@2x.png │ │ │ │ ├── Icon-App-40x40@3x.png │ │ │ │ ├── Icon-App-60x60@2x.png │ │ │ │ ├── Icon-App-60x60@3x.png │ │ │ │ ├── Icon-App-76x76@1x.png │ │ │ │ ├── Icon-App-76x76@2x.png │ │ │ │ └── Icon-App-83.5x83.5@2x.png │ │ │ └── LaunchImage.imageset │ │ │ │ ├── Contents.json │ │ │ │ ├── LaunchImage.png │ │ │ │ ├── LaunchImage@2x.png │ │ │ │ ├── LaunchImage@3x.png │ │ │ │ └── README.md │ │ │ ├── Base.lproj │ │ │ ├── LaunchScreen.storyboard │ │ │ └── Main.storyboard │ │ │ ├── Info.plist │ │ │ ├── Runner-Bridging-Header.h │ │ │ └── main.m │ ├── lib │ │ ├── activity_indicator │ │ │ └── activity_indicator.dart │ │ ├── main.dart │ │ ├── nlp_detector_views │ │ │ ├── entity_extraction_view.dart │ │ │ ├── language_identifier_view.dart │ │ │ ├── language_translator_view.dart │ │ │ └── smart_reply_view.dart │ │ └── vision_detector_views │ │ │ ├── barcode_scanner_view.dart │ │ │ ├── camera_view.dart │ │ │ ├── detector_view.dart │ │ │ ├── digital_ink_recognizer_view.dart │ │ │ ├── document_scanner_view.dart │ │ │ ├── face_detector_view.dart │ │ │ ├── face_mesh_detector_view.dart │ │ │ ├── gallery_view.dart │ │ │ ├── label_detector_view.dart │ │ │ ├── object_detector_view.dart │ │ │ ├── painters │ │ │ ├── barcode_detector_painter.dart │ │ │ ├── coordinates_translator.dart │ │ │ ├── face_detector_painter.dart │ │ │ ├── face_mesh_detector_painter.dart │ │ │ ├── label_detector_painter.dart │ │ │ ├── object_detector_painter.dart │ │ │ ├── pose_painter.dart │ │ │ ├── segmentation_painter.dart │ │ │ ├── subject_segmentation_painter.dart │ │ │ └── text_detector_painter.dart │ │ │ ├── pose_detector_view.dart │ │ │ ├── selfie_segmenter_view.dart │ │ │ ├── subject_segmenter_view.dart │ │ │ ├── text_detector_view.dart │ │ │ ├── text_from_widget_view.dart │ │ │ └── utils.dart │ ├── pubspec.lock │ └── pubspec.yaml ├── google_ml_kit │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── example │ │ └── README.md │ ├── lib │ │ ├── google_ml_kit.dart │ │ └── src │ │ │ ├── google_ml_kit.dart │ │ │ ├── natural_language.dart │ │ │ └── vision.dart │ └── pubspec.yaml ├── google_mlkit_barcode_scanning │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_barcode_scanning │ │ │ ├── BarcodeScanner.java │ │ │ └── GoogleMlKitBarcodeScanningPlugin.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitBarcodeScanningPlugin.h │ │ │ └── GoogleMlKitBarcodeScanningPlugin.m │ │ └── google_mlkit_barcode_scanning.podspec │ ├── lib │ │ ├── google_mlkit_barcode_scanning.dart │ │ └── src │ │ │ └── barcode_scanner.dart │ └── pubspec.yaml ├── google_mlkit_commons │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_commons │ │ │ ├── GenericModelManager.java │ │ │ ├── GoogleMlKitCommonsPlugin.java │ │ │ └── InputImageConverter.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GenericModelManager.h │ │ │ ├── GenericModelManager.m │ │ │ ├── GoogleMlKitCommonsPlugin.h │ │ │ ├── GoogleMlKitCommonsPlugin.m │ │ │ └── MLKVisionImage+FlutterPlugin.m │ │ └── google_mlkit_commons.podspec │ ├── lib │ │ ├── google_mlkit_commons.dart │ │ └── src │ │ │ ├── input_image.dart │ │ │ ├── model_manager.dart │ │ │ └── rect.dart │ └── pubspec.yaml ├── google_mlkit_digital_ink_recognition │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_digital_ink_recognition │ │ │ ├── DigitalInkRecognizer.java │ │ │ └── GoogleMlKitDigitalInkRecognitionPlugin.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitDigitalInkRecognitionPlugin.h │ │ │ └── GoogleMlKitDigitalInkRecognitionPlugin.m │ │ └── google_mlkit_digital_ink_recognition.podspec │ ├── lib │ │ ├── google_mlkit_digital_ink_recognition.dart │ │ └── src │ │ │ └── digital_ink_recognizer.dart │ └── pubspec.yaml ├── google_mlkit_document_scanner │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_document_scanner │ │ │ ├── DocumentScanner.java │ │ │ └── GoogleMlKitDocumentScannerPlugin.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitDocumentScannerPlugin.h │ │ │ └── GoogleMlKitDocumentScannerPlugin.m │ │ └── google_mlkit_document_scanner.podspec │ ├── lib │ │ ├── google_mlkit_document_scanner.dart │ │ └── src │ │ │ └── document_scanner.dart │ └── pubspec.yaml ├── google_mlkit_entity_extraction │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_entity_extraction │ │ │ ├── EntityExtractor.java │ │ │ └── GoogleMlKitEntityExtractionPlugin.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitEntityExtractionPlugin.h │ │ │ └── GoogleMlKitEntityExtractionPlugin.m │ │ └── google_mlkit_entity_extraction.podspec │ ├── lib │ │ ├── google_mlkit_entity_extraction.dart │ │ └── src │ │ │ └── entity_extractor.dart │ └── pubspec.yaml ├── google_mlkit_face_detection │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_face_detection │ │ │ ├── FaceDetector.java │ │ │ └── GoogleMlKitFaceDetectionPlugin.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitFaceDetectionPlugin.h │ │ │ └── GoogleMlKitFaceDetectionPlugin.m │ │ └── google_mlkit_face_detection.podspec │ ├── lib │ │ ├── google_mlkit_face_detection.dart │ │ └── src │ │ │ └── face_detector.dart │ └── pubspec.yaml ├── google_mlkit_face_mesh_detection │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_face_mesh_detection │ │ │ ├── FaceMeshDetector.java │ │ │ └── GoogleMlKitFaceMeshDetectionPlugin.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitFaceMeshDetectionPlugin.h │ │ │ └── GoogleMlKitFaceMeshDetectionPlugin.m │ │ └── google_mlkit_face_mesh_detection.podspec │ ├── lib │ │ ├── google_mlkit_face_mesh_detection.dart │ │ └── src │ │ │ └── face_mesh_detector.dart │ └── pubspec.yaml ├── google_mlkit_image_labeling │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_image_labeling │ │ │ ├── GoogleMlKitImageLabelingPlugin.java │ │ │ └── ImageLabelDetector.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitImageLabelingPlugin.h │ │ │ ├── GoogleMlKitImageLabelingPlugin.m │ │ │ └── MlKitEnums.h │ │ └── google_mlkit_image_labeling.podspec │ ├── lib │ │ ├── google_mlkit_image_labeling.dart │ │ └── src │ │ │ └── image_labeler.dart │ └── pubspec.yaml ├── google_mlkit_language_id │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_language_id │ │ │ ├── GoogleMlKitLanguageIdPlugin.java │ │ │ └── LanguageDetector.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitLanguageIdPlugin.h │ │ │ └── GoogleMlKitLanguageIdPlugin.m │ │ └── google_mlkit_language_id.podspec │ ├── lib │ │ ├── google_mlkit_language_id.dart │ │ └── src │ │ │ └── language_identifier.dart │ └── pubspec.yaml ├── google_mlkit_object_detection │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_object_detection │ │ │ ├── GoogleMlKitObjectDetectionPlugin.java │ │ │ └── ObjectDetector.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitObjectDetectionPlugin.h │ │ │ ├── GoogleMlKitObjectDetectionPlugin.m │ │ │ └── MlKitEnums.h │ │ └── google_mlkit_object_detection.podspec │ ├── lib │ │ ├── google_mlkit_object_detection.dart │ │ └── src │ │ │ └── object_detector.dart │ └── pubspec.yaml ├── google_mlkit_pose_detection │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_pose_detection │ │ │ ├── GoogleMlKitPoseDetectionPlugin.java │ │ │ └── PoseDetector.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitPoseDetectionPlugin.h │ │ │ └── GoogleMlKitPoseDetectionPlugin.m │ │ └── google_mlkit_pose_detection.podspec │ ├── lib │ │ ├── google_mlkit_pose_detection.dart │ │ └── src │ │ │ └── pose_detector.dart │ └── pubspec.yaml ├── google_mlkit_selfie_segmentation │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_selfie_segmentation │ │ │ ├── GoogleMlKitSelfieSegmentationPlugin.java │ │ │ └── SelfieSegmenter.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitSelfieSegmentationPlugin.h │ │ │ └── GoogleMlKitSelfieSegmentationPlugin.m │ │ └── google_mlkit_selfie_segmentation.podspec │ ├── lib │ │ ├── google_mlkit_selfie_segmentation.dart │ │ └── src │ │ │ └── selfie_segmenter.dart │ └── pubspec.yaml ├── google_mlkit_smart_reply │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_smart_reply │ │ │ ├── GoogleMlKitSmartReplyPlugin.java │ │ │ └── SmartReply.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitSmartReplyPlugin.h │ │ │ └── GoogleMlKitSmartReplyPlugin.m │ │ └── google_mlkit_smart_reply.podspec │ ├── lib │ │ ├── google_mlkit_smart_reply.dart │ │ └── src │ │ │ └── smart_reply.dart │ └── pubspec.yaml ├── google_mlkit_subject_segmentation │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── gradle │ │ │ └── wrapper │ │ │ │ └── gradle-wrapper.properties │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_subject_segmentation │ │ │ ├── GoogleMlKitSubjectSegmentationPlugin.java │ │ │ └── SubjectSegmenter.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitSubjectSegmentationPlugin.h │ │ │ └── GoogleMlKitSubjectSegmentationPlugin.m │ │ └── google_mlkit_subject_segmentation.podspec │ ├── lib │ │ ├── google_mlkit_subject_segmentation.dart │ │ └── src │ │ │ └── subject_segmenter.dart │ └── pubspec.yaml ├── google_mlkit_text_recognition │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ │ ├── .gitignore │ │ ├── build.gradle │ │ ├── settings.gradle │ │ └── src │ │ │ └── main │ │ │ ├── AndroidManifest.xml │ │ │ └── java │ │ │ └── com │ │ │ └── google_mlkit_text_recognition │ │ │ ├── GoogleMlKitTextRecognitionPlugin.java │ │ │ └── TextRecognizer.java │ ├── example │ │ └── README.md │ ├── ios │ │ ├── .gitignore │ │ ├── Assets │ │ │ └── .gitkeep │ │ ├── Classes │ │ │ ├── GoogleMlKitTextRecognitionPlugin.h │ │ │ └── GoogleMlKitTextRecognitionPlugin.m │ │ └── google_mlkit_text_recognition.podspec │ ├── lib │ │ ├── google_mlkit_text_recognition.dart │ │ └── src │ │ │ └── text_recognizer.dart │ └── pubspec.yaml └── google_mlkit_translation │ ├── .gitignore │ ├── .metadata │ ├── CHANGELOG.md │ ├── LICENSE │ ├── README.md │ ├── analysis_options.yaml │ ├── android │ ├── .gitignore │ ├── build.gradle │ ├── settings.gradle │ └── src │ │ └── main │ │ ├── AndroidManifest.xml │ │ └── java │ │ └── com │ │ └── google_mlkit_translation │ │ ├── GoogleMlKitTranslationPlugin.java │ │ └── TextTranslator.java │ ├── example │ └── README.md │ ├── ios │ ├── .gitignore │ ├── Assets │ │ └── .gitkeep │ ├── Classes │ │ ├── GoogleMlKitTranslationPlugin.h │ │ └── GoogleMlKitTranslationPlugin.m │ └── google_mlkit_translation.podspec │ ├── lib │ ├── google_mlkit_translation.dart │ └── src │ │ └── on_device_translator.dart │ └── pubspec.yaml ├── publish.sh ├── resources └── build_settings_01.png └── update_libs.sh /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | blank_issues_enabled: false 2 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | 3 | updates: 4 | - package-ecosystem: "github-actions" 5 | directory: "/" 6 | schedule: 7 | interval: "daily" 8 | - package-ecosystem: "gradle" 9 | directory: "/" 10 | schedule: 11 | interval: "daily" 12 | -------------------------------------------------------------------------------- /.github/workflows/inactive-issues.yml: -------------------------------------------------------------------------------- 1 | name: Close inactive issues 2 | 3 | on: 4 | schedule: 5 | - cron: "0 12 * * *" 6 | 7 | jobs: 8 | close-issues: 9 | runs-on: ubuntu-latest 10 | permissions: 11 | issues: write 12 | pull-requests: write 13 | steps: 14 | - uses: actions/stale@v9 15 | with: 16 | days-before-issue-stale: 30 17 | days-before-issue-close: 14 18 | stale-issue-label: "stale" 19 | close-issue-label: "close-inactivity" 20 | stale-issue-message: "This issue is stale because it has been open for 30 days with no activity." 21 | close-issue-message: "This issue was closed because it has been inactive for 14 days since being marked as stale." 22 | days-before-pr-stale: 14 23 | days-before-pr-close: 7 24 | stale-pr-label: "stale" 25 | close-pr-label: "close-inactivity" 26 | stale-pr-message: "This PR is stale because it has been open for 14 days with no activity." 27 | close-pr-message: "This PR was closed because it has been inactive for 14 days since being marked as stale." 28 | operations-per-run: 100 29 | repo-token: ${{ secrets.GITHUB_TOKEN }} 30 | -------------------------------------------------------------------------------- /.github/workflows/semantic-pr.yml: -------------------------------------------------------------------------------- 1 | name: Semantic PRs 2 | 3 | on: 4 | pull_request_target: 5 | types: 6 | - opened 7 | - edited 8 | - synchronize 9 | 10 | jobs: 11 | main: 12 | name: Validate PR title 13 | runs-on: ubuntu-latest 14 | steps: 15 | - uses: amannn/action-semantic-pull-request@v5 16 | env: 17 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} 18 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 1aafb3a8b9b0c36241c5f5b34ee914770f015818 8 | channel: stable 9 | 10 | project_type: plugin 11 | -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- 1 | # Below is a list of people and organizations that have contributed 2 | # to the Flutter project. Names should be added to the list like so: 3 | # 4 | # Name/Organization 5 | 6 | Francisco Bernal 7 | Benson Arafat 8 | Bharat Biradar 9 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 Bharat Biradar and Francisco Bernal. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /analyze.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | dart format --set-exit-if-changed . 4 | flutter analyze . 5 | -------------------------------------------------------------------------------- /packages/example/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | ./android/app/google-services.json 13 | .swiftpm/ 14 | migrate_working_dir/ 15 | 16 | # IntelliJ related 17 | *.iml 18 | *.ipr 19 | *.iws 20 | .idea/ 21 | 22 | # The .vscode folder contains launch configuration and tasks you configure in 23 | # VS Code which you may wish to be included in version control, so this line 24 | # is commented out by default. 25 | .vscode/ 26 | 27 | # Flutter/Dart/Pub related 28 | **/doc/api/ 29 | **/ios/Flutter/.last_build_id 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | .pub-cache/ 34 | .pub/ 35 | /build/ 36 | 37 | # Symbolication related 38 | app.*.symbols 39 | 40 | # Obfuscation related 41 | app.*.map.json 42 | 43 | # Android Studio will place build artifacts here 44 | /android/app/debug 45 | /android/app/profile 46 | /android/app/release 47 | -------------------------------------------------------------------------------- /packages/example/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf" 8 | channel: "stable" 9 | 10 | project_type: app 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 17 | base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 18 | - platform: android 19 | create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 20 | base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 21 | - platform: ios 22 | create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 23 | base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 24 | 25 | # User provided section 26 | 27 | # List of Local paths (relative to this file) that should be 28 | # ignored by the migrate tool. 29 | # 30 | # Files that are not part of the templates will be ignored by default. 31 | unmanaged_files: 32 | - 'lib/main.dart' 33 | - 'ios/Runner.xcodeproj/project.pbxproj' 34 | -------------------------------------------------------------------------------- /packages/example/README.md: -------------------------------------------------------------------------------- 1 | # google_ml_kit example app 2 | 3 | Demonstrates how to use the google_mlkit plugins. 4 | 5 | This example app is not production code, its purpose is to demonstrate some of the functionality of all the plugins found [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master). If you find any issue with it fell free to contribute. Pull request are always welcome. 6 | 7 | ## Getting Started with Flutter 8 | 9 | A few resources to get you started if this is your first Flutter project: 10 | 11 | - [Lab: Write your first Flutter app](https://flutter.dev/docs/get-started/codelab) 12 | - [Cookbook: Useful Flutter samples](https://flutter.dev/docs/cookbook) 13 | 14 | For help getting started with Flutter, view the 15 | [online documentation](https://flutter.dev/docs), which offers tutorials, 16 | samples, guidance on mobile development, and a full API reference. 17 | -------------------------------------------------------------------------------- /packages/example/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | 3 | linter: 4 | rules: 5 | avoid_print: false 6 | prefer_const_constructors: false 7 | prefer_const_constructors_in_immutables: false 8 | prefer_const_declarations: false 9 | prefer_const_literals_to_create_immutables: false 10 | use_key_in_widget_constructors: false 11 | -------------------------------------------------------------------------------- /packages/example/android/.gitignore: -------------------------------------------------------------------------------- 1 | gradle-wrapper.jar 2 | /.gradle 3 | /captures/ 4 | /gradlew 5 | /gradlew.bat 6 | /local.properties 7 | GeneratedPluginRegistrant.java 8 | .cxx/ 9 | 10 | # Remember to never publicly share your keystore. 11 | # See https://flutter.dev/to/reference-keystore 12 | key.properties 13 | **/*.keystore 14 | **/*.jks 15 | -------------------------------------------------------------------------------- /packages/example/android/app/src/debug/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/example/android/app/src/main/kotlin/com/google/ml/kit/flutter/example/MainActivity.kt: -------------------------------------------------------------------------------- 1 | package com.google.ml.kit.flutter.example 2 | 3 | import io.flutter.embedding.android.FlutterActivity 4 | 5 | class MainActivity : FlutterActivity() 6 | -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/drawable-v21/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/drawable/launch_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 12 | 13 | -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/android/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/android/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/values-night/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /packages/example/android/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 15 | 18 | 19 | -------------------------------------------------------------------------------- /packages/example/android/app/src/profile/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/example/android/build.gradle.kts: -------------------------------------------------------------------------------- 1 | allprojects { 2 | repositories { 3 | google() 4 | mavenCentral() 5 | } 6 | } 7 | 8 | val newBuildDir: Directory = rootProject.layout.buildDirectory.dir("../../build").get() 9 | rootProject.layout.buildDirectory.value(newBuildDir) 10 | 11 | subprojects { 12 | val newSubprojectBuildDir: Directory = newBuildDir.dir(project.name) 13 | project.layout.buildDirectory.value(newSubprojectBuildDir) 14 | } 15 | subprojects { 16 | project.evaluationDependsOn(":app") 17 | } 18 | 19 | tasks.register("clean") { 20 | delete(rootProject.layout.buildDirectory) 21 | } 22 | -------------------------------------------------------------------------------- /packages/example/android/gradle.properties: -------------------------------------------------------------------------------- 1 | org.gradle.jvmargs=-Xmx8G -XX:MaxMetaspaceSize=4G -XX:ReservedCodeCacheSize=512m -XX:+HeapDumpOnOutOfMemoryError 2 | android.useAndroidX=true 3 | android.enableJetifier=true 4 | -------------------------------------------------------------------------------- /packages/example/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | zipStoreBase=GRADLE_USER_HOME 4 | zipStorePath=wrapper/dists 5 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-all.zip 6 | -------------------------------------------------------------------------------- /packages/example/android/settings.gradle.kts: -------------------------------------------------------------------------------- 1 | pluginManagement { 2 | val flutterSdkPath = run { 3 | val properties = java.util.Properties() 4 | file("local.properties").inputStream().use { properties.load(it) } 5 | val flutterSdkPath = properties.getProperty("flutter.sdk") 6 | require(flutterSdkPath != null) { "flutter.sdk not set in local.properties" } 7 | flutterSdkPath 8 | } 9 | 10 | includeBuild("$flutterSdkPath/packages/flutter_tools/gradle") 11 | 12 | repositories { 13 | google() 14 | mavenCentral() 15 | gradlePluginPortal() 16 | } 17 | } 18 | 19 | plugins { 20 | id("dev.flutter.flutter-plugin-loader") version "1.0.0" 21 | id("com.android.application") version "8.7.0" apply false 22 | id("org.jetbrains.kotlin.android") version "2.1.0" apply false 23 | } 24 | 25 | include(":app") 26 | -------------------------------------------------------------------------------- /packages/example/assets/images/barcode1.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/barcode1.webp -------------------------------------------------------------------------------- /packages/example/assets/images/barcode2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/barcode2.png -------------------------------------------------------------------------------- /packages/example/assets/images/bird1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/bird1.jpeg -------------------------------------------------------------------------------- /packages/example/assets/images/child_dog.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/child_dog.jpg -------------------------------------------------------------------------------- /packages/example/assets/images/daisy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/daisy.jpg -------------------------------------------------------------------------------- /packages/example/assets/images/dandelion.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/dandelion.jpg -------------------------------------------------------------------------------- /packages/example/assets/images/face1.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/face1.webp -------------------------------------------------------------------------------- /packages/example/assets/images/face2.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/face2.webp -------------------------------------------------------------------------------- /packages/example/assets/images/face3.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/face3.webp -------------------------------------------------------------------------------- /packages/example/assets/images/friends.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/friends.jpg -------------------------------------------------------------------------------- /packages/example/assets/images/landmark1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/landmark1.jpeg -------------------------------------------------------------------------------- /packages/example/assets/images/landmark2.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/landmark2.jpeg -------------------------------------------------------------------------------- /packages/example/assets/images/mushroom1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/mushroom1.jpeg -------------------------------------------------------------------------------- /packages/example/assets/images/pose1.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/pose1.jpeg -------------------------------------------------------------------------------- /packages/example/assets/images/roses.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/roses.jpg -------------------------------------------------------------------------------- /packages/example/assets/images/sunflower.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/sunflower.jpg -------------------------------------------------------------------------------- /packages/example/assets/images/text1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/text1.png -------------------------------------------------------------------------------- /packages/example/assets/images/text2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/text2.png -------------------------------------------------------------------------------- /packages/example/assets/images/text3.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/text3.jpeg -------------------------------------------------------------------------------- /packages/example/assets/images/text4.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/text4.jpeg -------------------------------------------------------------------------------- /packages/example/assets/images/text5.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/text5.jpeg -------------------------------------------------------------------------------- /packages/example/assets/images/tulips.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/images/tulips.jpg -------------------------------------------------------------------------------- /packages/example/assets/ml/lite-model_aiy_vision_classifier_birds_V1_3.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/ml/lite-model_aiy_vision_classifier_birds_V1_3.tflite -------------------------------------------------------------------------------- /packages/example/assets/ml/lite-model_aiy_vision_classifier_food_V1_1.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/ml/lite-model_aiy_vision_classifier_food_V1_1.tflite -------------------------------------------------------------------------------- /packages/example/assets/ml/lite-model_aiy_vision_classifier_plants_V1_3.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/ml/lite-model_aiy_vision_classifier_plants_V1_3.tflite -------------------------------------------------------------------------------- /packages/example/assets/ml/lite-model_models_mushroom-identification_v1_1.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/ml/lite-model_models_mushroom-identification_v1_1.tflite -------------------------------------------------------------------------------- /packages/example/assets/ml/lite-model_on_device_vision_classifier_landmarks_classifier_north_america_V1_1.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/ml/lite-model_on_device_vision_classifier_landmarks_classifier_north_america_V1_1.tflite -------------------------------------------------------------------------------- /packages/example/assets/ml/object_labeler.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/ml/object_labeler.tflite -------------------------------------------------------------------------------- /packages/example/assets/ml/object_labeler_flowers.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/ml/object_labeler_flowers.tflite -------------------------------------------------------------------------------- /packages/example/assets/ml/object_labeler_fruits.tflite: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/assets/ml/object_labeler_fruits.tflite -------------------------------------------------------------------------------- /packages/example/ios/.gitignore: -------------------------------------------------------------------------------- 1 | **/dgph 2 | *.mode1v3 3 | *.mode2v3 4 | *.moved-aside 5 | *.pbxuser 6 | *.perspectivev3 7 | **/*sync/ 8 | .sconsign.dblite 9 | .tags* 10 | **/.vagrant/ 11 | **/DerivedData/ 12 | Icon? 13 | **/Pods/ 14 | **/.symlinks/ 15 | profile 16 | xcuserdata 17 | **/.generated/ 18 | Flutter/App.framework 19 | Flutter/Flutter.framework 20 | Flutter/Flutter.podspec 21 | Flutter/Generated.xcconfig 22 | Flutter/ephemeral/ 23 | Flutter/app.flx 24 | Flutter/app.zip 25 | Flutter/flutter_assets/ 26 | Flutter/flutter_export_environment.sh 27 | ServiceDefinitions.json 28 | Runner/GeneratedPluginRegistrant.* 29 | 30 | # Exceptions to above rules. 31 | !default.mode1v3 32 | !default.mode2v3 33 | !default.pbxuser 34 | !default.perspectivev3 35 | -------------------------------------------------------------------------------- /packages/example/ios/Flutter/AppFrameworkInfo.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | App 9 | CFBundleIdentifier 10 | io.flutter.flutter.app 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | App 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1.0 23 | MinimumOSVersion 24 | 12.0 25 | 26 | 27 | -------------------------------------------------------------------------------- /packages/example/ios/Flutter/Debug.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /packages/example/ios/Flutter/Release.xcconfig: -------------------------------------------------------------------------------- 1 | #include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" 2 | #include "Generated.xcconfig" 3 | -------------------------------------------------------------------------------- /packages/example/ios/Runner.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /packages/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/example/ios/Runner.xcodeproj/project.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/example/ios/Runner.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /packages/example/ios/Runner.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | IDEDidComputeMac32BitWarning 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/example/ios/Runner.xcworkspace/xcshareddata/WorkspaceSettings.xcsettings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PreviewsEnabled 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /packages/example/ios/Runner/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | import Flutter 2 | import UIKit 3 | 4 | @main 5 | @objc class AppDelegate: FlutterAppDelegate { 6 | override func application( 7 | _ application: UIApplication, 8 | didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? 9 | ) -> Bool { 10 | GeneratedPluginRegistrant.register(with: self) 11 | return super.application(application, didFinishLaunchingWithOptions: launchOptions) 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-1024x1024@1x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@1x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@2x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-20x20@3x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@1x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@2x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-29x29@3x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@1x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@2x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-40x40@3x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@2x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-60x60@3x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@1x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-76x76@2x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/AppIcon.appiconset/Icon-App-83.5x83.5@2x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "filename" : "LaunchImage.png", 6 | "scale" : "1x" 7 | }, 8 | { 9 | "idiom" : "universal", 10 | "filename" : "LaunchImage@2x.png", 11 | "scale" : "2x" 12 | }, 13 | { 14 | "idiom" : "universal", 15 | "filename" : "LaunchImage@3x.png", 16 | "scale" : "3x" 17 | } 18 | ], 19 | "info" : { 20 | "version" : 1, 21 | "author" : "xcode" 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@2x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/LaunchImage@3x.png -------------------------------------------------------------------------------- /packages/example/ios/Runner/Assets.xcassets/LaunchImage.imageset/README.md: -------------------------------------------------------------------------------- 1 | # Launch Screen Assets 2 | 3 | You can customize the launch screen with your own desired assets by replacing the image files in this directory. 4 | 5 | You can also do it by opening your Flutter project's Xcode project with `open ios/Runner.xcworkspace`, selecting `Runner/Assets.xcassets` in the Project Navigator and dropping in the desired images. -------------------------------------------------------------------------------- /packages/example/ios/Runner/Runner-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | #import "GeneratedPluginRegistrant.h" 2 | -------------------------------------------------------------------------------- /packages/example/ios/Runner/main.m: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "AppDelegate.h" 4 | 5 | int main(int argc, char* argv[]) { 6 | @autoreleasepool { 7 | return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /packages/example/lib/vision_detector_views/utils.dart: -------------------------------------------------------------------------------- 1 | import 'dart:io'; 2 | 3 | import 'package:flutter/services.dart'; 4 | import 'package:path/path.dart'; 5 | import 'package:path_provider/path_provider.dart'; 6 | 7 | Future getAssetPath(String asset) async { 8 | final path = await getLocalPath(asset); 9 | await Directory(dirname(path)).create(recursive: true); 10 | final file = File(path); 11 | if (!await file.exists()) { 12 | final byteData = await rootBundle.load(asset); 13 | await file.writeAsBytes(byteData.buffer 14 | .asUint8List(byteData.offsetInBytes, byteData.lengthInBytes)); 15 | } 16 | return file.path; 17 | } 18 | 19 | Future getLocalPath(String path) async { 20 | return '${(await getApplicationSupportDirectory()).path}/$path'; 21 | } 22 | -------------------------------------------------------------------------------- /packages/google_ml_kit/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | migrate_working_dir/ 12 | 13 | # IntelliJ related 14 | *.iml 15 | *.ipr 16 | *.iws 17 | .idea/ 18 | 19 | # The .vscode folder contains launch configuration and tasks you configure in 20 | # VS Code which you may wish to be included in version control, so this line 21 | # is commented out by default. 22 | #.vscode/ 23 | 24 | # Flutter/Dart/Pub related 25 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 26 | /pubspec.lock 27 | **/doc/api/ 28 | .dart_tool/ 29 | .flutter-plugins 30 | .flutter-plugins-dependencies 31 | build/ 32 | -------------------------------------------------------------------------------- /packages/google_ml_kit/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf" 8 | channel: "stable" 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /packages/google_ml_kit/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_ml_kit/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: package:flutter_lints/flutter.yaml 2 | 3 | linter: 4 | rules: 5 | prefer_relative_imports: true 6 | avoid_print: true 7 | avoid_renaming_method_parameters: true 8 | overridden_fields: false 9 | prefer_typing_uninitialized_variables: true 10 | hash_and_equals: true 11 | directives_ordering: true 12 | curly_braces_in_flow_control_structures: true 13 | prefer_interpolation_to_compose_strings: true 14 | prefer_adjacent_string_concatenation: true 15 | prefer_collection_literals: true 16 | prefer_final_fields: true 17 | prefer_final_in_for_each: true 18 | prefer_final_locals: true 19 | prefer_single_quotes: true 20 | unnecessary_getters_setters: true 21 | unnecessary_lambdas: true 22 | use_build_context_synchronously: false 23 | -------------------------------------------------------------------------------- /packages/google_ml_kit/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_ml_kit/lib/src/google_ml_kit.dart: -------------------------------------------------------------------------------- 1 | import 'natural_language.dart'; 2 | import 'vision.dart'; 3 | 4 | class GoogleMlKit { 5 | GoogleMlKit._(); 6 | 7 | static final Vision vision = Vision.instance; 8 | static final NaturalLanguage nlp = NaturalLanguage.instance; 9 | } 10 | -------------------------------------------------------------------------------- /packages/google_ml_kit/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_ml_kit 2 | description: "A Flutter plugin to use all APIs from Google's standalone ML Kit for mobile platforms." 3 | version: 0.20.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_ml_kit 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.8.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | # Vision APIs 16 | google_mlkit_commons: ^0.11.0 17 | google_mlkit_barcode_scanning: ^0.14.1 18 | google_mlkit_digital_ink_recognition: ^0.14.1 19 | google_mlkit_face_detection: ^0.13.1 20 | google_mlkit_face_mesh_detection: ^0.4.1 21 | google_mlkit_image_labeling: ^0.14.1 22 | google_mlkit_object_detection: ^0.15.0 23 | google_mlkit_pose_detection: ^0.14.0 24 | google_mlkit_selfie_segmentation: ^0.10.0 25 | google_mlkit_text_recognition: ^0.15.0 26 | 27 | # Natural Language APIs 28 | google_mlkit_entity_extraction: ^0.15.1 29 | google_mlkit_language_id: ^0.13.0 30 | google_mlkit_translation: ^0.13.0 31 | google_mlkit_smart_reply: ^0.13.0 32 | 33 | dev_dependencies: 34 | flutter_test: 35 | sdk: flutter 36 | flutter_lints: ^5.0.0 37 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_barcode_scanning" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_barcode_scanning" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:barcode-scanning:17.3.0") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_barcode_scanning' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/android/src/main/java/com/google_mlkit_barcode_scanning/GoogleMlKitBarcodeScanningPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_barcode_scanning; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitBarcodeScanningPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_barcode_scanning"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new BarcodeScanner(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_barcode_scanning/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/ios/Classes/GoogleMlKitBarcodeScanningPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitBarcodeScanningPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/ios/google_mlkit_barcode_scanning.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/BarcodeScanning', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/lib/google_mlkit_barcode_scanning.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/barcode_scanner.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_barcode_scanning/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_barcode_scanning 2 | description: "A Flutter plugin to use Google's ML Kit Barcode Scanning to read data encoded using most standard barcode formats." 3 | version: 0.14.1 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_barcode_scanning 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_barcode_scanning 26 | pluginClass: GoogleMlKitBarcodeScanningPlugin 27 | ios: 28 | pluginClass: GoogleMlKitBarcodeScanningPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: "c23637390482d4cf9598c3ce3f2be31aa7332daf" 8 | channel: "stable" 9 | 10 | project_type: plugin 11 | 12 | # Tracks metadata for the flutter migrate command 13 | migration: 14 | platforms: 15 | - platform: root 16 | create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 17 | base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 18 | - platform: android 19 | create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 20 | base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 21 | - platform: ios 22 | create_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 23 | base_revision: c23637390482d4cf9598c3ce3f2be31aa7332daf 24 | 25 | # User provided section 26 | 27 | # List of Local paths (relative to this file) that should be 28 | # ignored by the migrate tool. 29 | # 30 | # Files that are not part of the templates will be ignored by default. 31 | unmanaged_files: 32 | - 'lib/main.dart' 33 | - 'ios/Runner.xcodeproj/project.pbxproj' 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_commons" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_commons" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:vision-common:17.3.0") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_commons' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/android/src/main/java/com/google_mlkit_commons/GoogleMlKitCommonsPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_commons; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodCall; 7 | import io.flutter.plugin.common.MethodChannel; 8 | 9 | public class GoogleMlKitCommonsPlugin implements FlutterPlugin, MethodChannel.MethodCallHandler { 10 | private MethodChannel channel; 11 | private static final String channelName = "google_mlkit_commons"; 12 | 13 | @Override 14 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 15 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 16 | channel.setMethodCallHandler(this); 17 | } 18 | 19 | @Override 20 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 21 | channel.setMethodCallHandler(null); 22 | } 23 | 24 | @Override 25 | public void onMethodCall(@NonNull MethodCall call, @NonNull MethodChannel.Result result) { 26 | result.notImplemented(); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_commons/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_commons/ios/Classes/GenericModelManager.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | 4 | @interface GenericModelManager : NSObject 5 | - (void)manageModel:(MLKRemoteModel*)model call:(FlutterMethodCall*)call result:(FlutterResult)result; 6 | @end 7 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/ios/Classes/GoogleMlKitCommonsPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | #import 3 | #import "GenericModelManager.h" 4 | 5 | @interface GoogleMlKitCommonsPlugin : NSObject 6 | @end 7 | 8 | @interface MLKVisionImage(FlutterPlugin) 9 | + (MLKVisionImage *)visionImageFromData:(NSDictionary *)imageData; 10 | @end 11 | 12 | static FlutterError *getFlutterError(NSError *error) { 13 | return [FlutterError errorWithCode:[NSString stringWithFormat:@"Error %d", (int)error.code] 14 | message:error.domain 15 | details:error.localizedDescription]; 16 | } 17 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/ios/Classes/GoogleMlKitCommonsPlugin.m: -------------------------------------------------------------------------------- 1 | #import "GoogleMlKitCommonsPlugin.h" 2 | 3 | #define channelName @"google_mlkit_commons" 4 | 5 | @implementation GoogleMlKitCommonsPlugin 6 | 7 | + (void)registerWithRegistrar:(NSObject*)registrar { 8 | FlutterMethodChannel* channel = [FlutterMethodChannel 9 | methodChannelWithName:channelName 10 | binaryMessenger:[registrar messenger]]; 11 | GoogleMlKitCommonsPlugin* instance = [[GoogleMlKitCommonsPlugin alloc] init]; 12 | [registrar addMethodCallDelegate:instance channel:channel]; 13 | } 14 | 15 | - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result { 16 | result(FlutterMethodNotImplemented); 17 | } 18 | 19 | @end 20 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/ios/google_mlkit_commons.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'MLKitVision' 19 | s.platform = :ios, '15.5' 20 | s.ios.deployment_target = '15.5' 21 | s.static_framework = true 22 | s.swift_version = '5.0' 23 | 24 | # Flutter.framework does not contain a i386 slice. 25 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 26 | end 27 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/lib/google_mlkit_commons.dart: -------------------------------------------------------------------------------- 1 | export 'src/input_image.dart'; 2 | export 'src/model_manager.dart'; 3 | export 'src/rect.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/lib/src/rect.dart: -------------------------------------------------------------------------------- 1 | import 'dart:ui'; 2 | 3 | extension RectJson on Rect { 4 | /// Returns an instance of [Rect] from a given [json]. 5 | static Rect fromJson(Map json) { 6 | return Rect.fromLTRB( 7 | json['left']?.toDouble() ?? 0, 8 | json['top']?.toDouble() ?? 0, 9 | json['right']?.toDouble() ?? 0, 10 | json['bottom']?.toDouble() ?? 0, 11 | ); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /packages/google_mlkit_commons/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_commons 2 | description: "A Flutter plugin with commons files to implement google's standalone ml kit made for mobile platform." 3 | version: 0.11.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_commons 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | flutter_lints: ^5.0.0 19 | 20 | flutter: 21 | plugin: 22 | platforms: 23 | android: 24 | package: com.google_mlkit_commons 25 | pluginClass: GoogleMlKitCommonsPlugin 26 | ios: 27 | pluginClass: GoogleMlKitCommonsPlugin 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_digital_ink_recognition" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_digital_ink_recognition" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:digital-ink-recognition:18.1.0") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_digital_ink_recognition' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/android/src/main/java/com/google_mlkit_digital_ink_recognition/GoogleMlKitDigitalInkRecognitionPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_digital_ink_recognition; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitDigitalInkRecognitionPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_digital_ink_recognizer"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new DigitalInkRecognizer()); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_digital_ink_recognition/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/ios/Classes/GoogleMlKitDigitalInkRecognitionPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitDigitalInkRecognitionPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/ios/google_mlkit_digital_ink_recognition.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/DigitalInkRecognition', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/lib/google_mlkit_digital_ink_recognition.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/digital_ink_recognizer.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_digital_ink_recognition/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_digital_ink_recognition 2 | description: "A Flutter plugin to use Google's ML Kit Digital Ink Recognition to recognize handwritten text on a digital surface in hundreds of languages, as well as classify sketches." 3 | version: 0.14.1 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_digital_ink_recognition 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_digital_ink_recognition 26 | pluginClass: GoogleMlKitDigitalInkRecognitionPlugin 27 | ios: 28 | pluginClass: GoogleMlKitDigitalInkRecognitionPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.4.0 2 | 3 | * Increase android sdk compile version to 35 4 | * Updates Java compatibility version to 11 5 | 6 | ## 0.3.0 7 | 8 | * Update README. 9 | 10 | ## 0.2.1 11 | 12 | * Update dependencies. 13 | 14 | ## 0.2.0 15 | 16 | * Update README. 17 | 18 | ## 0.1.0 19 | 20 | * Update README. 21 | 22 | ## 0.0.1 23 | 24 | * Initial release. 25 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Francisco Bernal and Benson Arafat. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_document_scanner" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_document_scanner" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.android.gms:play-services-mlkit-document-scanner:16.0.0-beta1") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_document_scanner' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_document_scanner/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/ios/Classes/GoogleMlKitDocumentScannerPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitDocumentScannerPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/ios/Classes/GoogleMlKitDocumentScannerPlugin.m: -------------------------------------------------------------------------------- 1 | #import "GoogleMlKitDocumentScannerPlugin.h" 2 | 3 | @implementation GoogleMlKitDocumentScannerPlugin 4 | + (void)registerWithRegistrar:(NSObject*)registrar { 5 | FlutterMethodChannel* channel = [FlutterMethodChannel 6 | methodChannelWithName:@"google_mlkit_document_scanner" 7 | binaryMessenger:[registrar messenger]]; 8 | GoogleMlKitDocumentScannerPlugin* instance = [[GoogleMlKitDocumentScannerPlugin alloc] init]; 9 | [registrar addMethodCallDelegate:instance channel:channel]; 10 | } 11 | 12 | - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { 13 | if ([@"getPlatformVersion" isEqualToString:call.method]) { 14 | result([@"iOS " stringByAppendingString:[[UIDevice currentDevice] systemVersion]]); 15 | } else { 16 | result(FlutterMethodNotImplemented); 17 | } 18 | } 19 | 20 | @end 21 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/ios/google_mlkit_document_scanner.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.author = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | # s.dependency 'GoogleMLKit/DocumentScanner', '~> 5.0.0' 19 | s.platform = :ios, '15.5' 20 | s.ios.deployment_target = '15.5' 21 | s.static_framework = true 22 | s.swift_version = '5.0' 23 | 24 | # Flutter.framework does not contain a i386 slice. 25 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 26 | end 27 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/lib/google_mlkit_document_scanner.dart: -------------------------------------------------------------------------------- 1 | export 'src/document_scanner.dart'; 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_document_scanner/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_document_scanner 2 | description: "A Flutter plugin to use the ML Kit document scanner API to easily add a document scanner feature to your app." 3 | version: 0.4.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_document_scanner 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | flutter_lints: ^5.0.0 19 | 20 | flutter: 21 | plugin: 22 | platforms: 23 | android: 24 | package: com.google_mlkit_document_scanner 25 | pluginClass: GoogleMlKitDocumentScannerPlugin 26 | ios: 27 | pluginClass: GoogleMlKitDocumentScannerPlugin 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_entity_extraction" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_entity_extraction" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:entity-extraction:16.0.0-beta5") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_entity_extraction' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/android/src/main/java/com/google_mlkit_entity_extraction/GoogleMlKitEntityExtractionPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_entity_extraction; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitEntityExtractionPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_entity_extractor"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new EntityExtractor()); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_entity_extraction/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/ios/Classes/GoogleMlKitEntityExtractionPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitEntityExtractionPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/ios/google_mlkit_entity_extraction.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/EntityExtraction', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/lib/google_mlkit_entity_extraction.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/entity_extractor.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_entity_extraction/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_entity_extraction 2 | description: "A Flutter plugin to use Google's ML Kit Entity Extractor API to recognize specific entities within static text." 3 | version: 0.15.1 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_entity_extraction 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_entity_extraction 26 | pluginClass: GoogleMlKitEntityExtractionPlugin 27 | ios: 28 | pluginClass: GoogleMlKitEntityExtractionPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.13.1 2 | 3 | * Increase android sdk compile version to 35 4 | * Updates Java compatibility version to 11 5 | * Update dependencies. 6 | 7 | ## 0.12.0 8 | 9 | * Update dependencies. 10 | * Update README. 11 | 12 | ## 0.11.1 13 | 14 | * Update dependencies. 15 | 16 | ## 0.11.0 17 | 18 | * Update dependencies. 19 | * Update README. 20 | 21 | ## 0.10.1 22 | 23 | * Update README. 24 | 25 | ## 0.10.0 26 | 27 | * Update dependencies. 28 | * Update SDK constraint. 29 | 30 | ## 0.9.0 31 | 32 | * Fix: Update build.gradle, support AGP 8. 33 | * Update README. 34 | 35 | ## 0.8.0 36 | 37 | * Update README. 38 | * Update dependencies. 39 | 40 | ## 0.7.0 41 | 42 | * Update dependencies. 43 | 44 | ## 0.6.0 45 | 46 | * Update dependencies. 47 | 48 | ## 0.5.0 49 | 50 | * Update dependencies. 51 | 52 | ## 0.4.0 53 | 54 | * Update dependencies. 55 | 56 | ## 0.3.0 57 | 58 | * Allow multiple instances in native layer. 59 | 60 | ## 0.2.0 61 | 62 | * Fix: return after closing detector in iOS. 63 | 64 | ## 0.1.0 65 | 66 | * Update documentation. 67 | 68 | ## 0.0.2 69 | 70 | * Fix: Close detector. 71 | * Update documentation. 72 | 73 | ## 0.0.1 74 | 75 | * Initial release. 76 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_face_detection" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_face_detection" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:face-detection:16.1.7") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_face_detection' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/android/src/main/java/com/google_mlkit_face_detection/GoogleMlKitFaceDetectionPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_face_detection; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitFaceDetectionPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_face_detector"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new FaceDetector(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_face_detection/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/ios/Classes/GoogleMlKitFaceDetectionPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitFaceDetectionPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/ios/google_mlkit_face_detection.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/FaceDetection', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/lib/google_mlkit_face_detection.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/face_detector.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_detection/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_face_detection 2 | description: "A Flutter plugin to use Google's ML Kit Face Detection to detect faces in an image, identify key facial features, and get the contours of detected faces." 3 | version: 0.13.1 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_face_detection 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_face_detection 26 | pluginClass: GoogleMlKitFaceDetectionPlugin 27 | ios: 28 | pluginClass: GoogleMlKitFaceDetectionPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.4.1 2 | 3 | * Increase android sdk compile version to 35 4 | * Updates Java compatibility version to 11 5 | * Update dependencies. 6 | 7 | ## 0.3.0 8 | 9 | * Update README. 10 | 11 | ## 0.2.1 12 | 13 | * Update dependencies. 14 | 15 | ## 0.2.0 16 | 17 | * Update README. 18 | 19 | ## 0.1.1 20 | 21 | * Update README. 22 | 23 | ## 0.1.0 24 | 25 | * Update dependencies. 26 | * Update SDK constraint. 27 | 28 | ## 0.0.2 29 | 30 | * Fix: Update build.gradle, support AGP 8. 31 | * Update README. 32 | 33 | ## 0.0.1 34 | 35 | * Initial release. 36 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_face_mesh_detection" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_face_mesh_detection" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:face-mesh-detection:16.0.0-beta2") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_face_mesh_detection' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/android/src/main/java/com/google_mlkit_face_mesh_detection/GoogleMlKitFaceMeshDetectionPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_face_mesh_detection; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitFaceMeshDetectionPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_face_mesh_detector"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new FaceMeshDetector(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_face_mesh_detection/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/ios/Classes/GoogleMlKitFaceMeshDetectionPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitFaceMeshDetectionPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/ios/google_mlkit_face_mesh_detection.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | # s.dependency 'GoogleMLKit/FaceMeshDetection', '~> 5.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/lib/google_mlkit_face_mesh_detection.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/face_mesh_detector.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_face_mesh_detection/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_face_mesh_detection 2 | description: "A Flutter plugin to use Google's ML Kit Face Mesh Detection." 3 | version: 0.4.1 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_face_mesh_detection 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_face_mesh_detection 26 | pluginClass: GoogleMlKitFaceMeshDetectionPlugin 27 | ios: 28 | pluginClass: GoogleMlKitFaceMeshDetectionPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_image_labeling" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_image_labeling" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:image-labeling:17.0.9") 40 | implementation("com.google.mlkit:image-labeling-custom:17.0.3") 41 | implementation("com.google.mlkit:linkfirebase:17.0.0") 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_image_labeling' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/android/src/main/java/com/google_mlkit_image_labeling/GoogleMlKitImageLabelingPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_image_labeling; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitImageLabelingPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_image_labeler"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new ImageLabelDetector(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_image_labeling/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/ios/Classes/GoogleMlKitImageLabelingPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitImageLabelingPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/ios/Classes/MlKitEnums.h: -------------------------------------------------------------------------------- 1 | // 2 | // MlKitEnums.h 3 | // Pods 4 | // 5 | // Created by Andrew Coutts on 7/13/22. 6 | // 7 | 8 | #ifndef MLKIT_FIREBASE_MODELS 9 | #define MLKIT_FIREBASE_MODELS 0 10 | #endif 11 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/ios/google_mlkit_image_labeling.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/ImageLabeling', '~> 7.0.0' 19 | s.dependency 'GoogleMLKit/ImageLabelingCustom', '~> 7.0.0' 20 | s.dependency 'google_mlkit_commons' 21 | s.platform = :ios, '15.5' 22 | s.ios.deployment_target = '15.5' 23 | s.static_framework = true 24 | s.swift_version = '5.0' 25 | 26 | # Flutter.framework does not contain a i386 slice. 27 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 28 | end 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/lib/google_mlkit_image_labeling.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/image_labeler.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_image_labeling/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_image_labeling 2 | description: "A Flutter plugin to use Google's ML Kit Image Labeling to detect and extract information about entities in an image across a broad group of categories." 3 | version: 0.14.1 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_image_labeling 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_image_labeling 26 | pluginClass: GoogleMlKitImageLabelingPlugin 27 | ios: 28 | pluginClass: GoogleMlKitImageLabelingPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.13.0 2 | 3 | * Increase android sdk compile version to 35 4 | * Updates Java compatibility version to 11 5 | 6 | ## 0.12.0 7 | 8 | * Update dependencies. 9 | * Update README. 10 | 11 | ## 0.11.1 12 | 13 | * Update dependencies. 14 | 15 | ## 0.11.0 16 | 17 | * Update dependencies. 18 | * Update README. 19 | 20 | ## 0.10.1 21 | 22 | * Update README. 23 | 24 | ## 0.10.0 25 | 26 | * Update dependencies. 27 | * Update SDK constraint. 28 | 29 | ## 0.9.0 30 | 31 | * Fix: Update build.gradle, support AGP 8. 32 | * Update README. 33 | 34 | ## 0.8.0 35 | 36 | * Update README. 37 | * Update dependencies. 38 | 39 | ## 0.7.0 40 | 41 | * Fix: Pass `id` to native API when calling `identifyLanguage`. 42 | * Update dependencies. 43 | 44 | ## 0.6.0 45 | 46 | * Update dependencies. 47 | 48 | ## 0.5.0 49 | 50 | * Update dependencies. 51 | 52 | ## 0.4.0 53 | 54 | * Update dependencies. 55 | 56 | ## 0.3.0 57 | 58 | * Allow multiple instances in native layer. 59 | 60 | ## 0.2.0 61 | 62 | * Fix: return after closing detector in iOS. 63 | 64 | ## 0.1.0 65 | 66 | * Update documentation. 67 | 68 | ## 0.0.2 69 | 70 | * Fix: Close detector. 71 | * Update documentation. 72 | 73 | ## 0.0.1 74 | 75 | * Initial release. 76 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_language_id" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_language_id" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:language-id:17.0.6") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_language_id' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/android/src/main/java/com/google_mlkit_language_id/GoogleMlKitLanguageIdPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_language_id; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitLanguageIdPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_language_identifier"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new LanguageDetector()); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_language_id/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/ios/Classes/GoogleMlKitLanguageIdPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitLanguageIdPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/ios/google_mlkit_language_id.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/LanguageID', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/lib/google_mlkit_language_id.dart: -------------------------------------------------------------------------------- 1 | export 'src/language_identifier.dart'; 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_language_id/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_language_id 2 | description: "A Flutter plugin to use Google's ML Kit Language Identification to determine the language of a string of text." 3 | version: 0.13.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_language_id 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | flutter_lints: ^5.0.0 19 | 20 | flutter: 21 | plugin: 22 | platforms: 23 | android: 24 | package: com.google_mlkit_language_id 25 | pluginClass: GoogleMlKitLanguageIdPlugin 26 | ios: 27 | pluginClass: GoogleMlKitLanguageIdPlugin 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_object_detection" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_object_detection" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:object-detection:17.0.2") 40 | implementation("com.google.mlkit:object-detection-custom:17.0.2") 41 | implementation("com.google.mlkit:linkfirebase:17.0.0") 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_object_detection' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/android/src/main/java/com/google_mlkit_object_detection/GoogleMlKitObjectDetectionPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_object_detection; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitObjectDetectionPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_object_detector"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new ObjectDetector(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_object_detection/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/ios/Classes/GoogleMlKitObjectDetectionPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitObjectDetectionPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/ios/Classes/MlKitEnums.h: -------------------------------------------------------------------------------- 1 | // 2 | // MlKitEnums.h 3 | // Pods 4 | // 5 | // Created by Andrew Coutts on 7/13/22. 6 | // 7 | 8 | #ifndef MLKIT_FIREBASE_MODELS 9 | #define MLKIT_FIREBASE_MODELS 0 10 | #endif 11 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/ios/google_mlkit_object_detection.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/ObjectDetection', '~> 7.0.0' 19 | s.dependency 'GoogleMLKit/ObjectDetectionCustom', '~> 7.0.0' 20 | s.dependency 'google_mlkit_commons' 21 | s.platform = :ios, '15.5' 22 | s.ios.deployment_target = '15.5' 23 | s.static_framework = true 24 | s.swift_version = '5.0' 25 | 26 | # Flutter.framework does not contain a i386 slice. 27 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 28 | end 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/lib/google_mlkit_object_detection.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/object_detector.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_object_detection/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_object_detection 2 | description: "A Flutter plugin to use Google's ML Kit Object Detection and Tracking to detect and track objects in an image or live camera feed." 3 | version: 0.15.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_object_detection 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_object_detection 26 | pluginClass: GoogleMlKitObjectDetectionPlugin 27 | ios: 28 | pluginClass: GoogleMlKitObjectDetectionPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.14.0 2 | 3 | * Increase android sdk compile version to 35 4 | * Updates Java compatibility version to 11 5 | * Update dependencies. 6 | 7 | ## 0.13.0 8 | 9 | * Update dependencies. 10 | * Update README. 11 | 12 | ## 0.12.1 13 | 14 | * Update dependencies. 15 | 16 | ## 0.12.0 17 | 18 | * Update dependencies. 19 | * Update README. 20 | 21 | ## 0.11.1 22 | 23 | * Update README. 24 | 25 | ## 0.11.0 26 | 27 | * Update dependencies. 28 | * Update SDK constraint. 29 | 30 | ## 0.10.0 31 | 32 | * Fix: Update build.gradle, support AGP 8. 33 | * Update README. 34 | 35 | ## 0.9.0 36 | 37 | * Update dependencies. 38 | 39 | ## 0.8.0 40 | 41 | * Update README. 42 | * Update dependencies. 43 | 44 | ## 0.7.0 45 | 46 | * Update dependencies. 47 | 48 | ## 0.6.0 49 | 50 | * Update dependencies. 51 | 52 | ## 0.5.0 53 | 54 | * Update dependencies. 55 | 56 | ## 0.4.0 57 | 58 | * Update dependencies. 59 | 60 | ## 0.3.0 61 | 62 | * Allow multiple instances in native layer. 63 | 64 | ## 0.2.0 65 | 66 | * Fix: return after closing detector in iOS. 67 | 68 | ## 0.1.0 69 | 70 | * Update documentation. 71 | 72 | ## 0.0.2 73 | 74 | * Fix: Close detector. 75 | * Update documentation. 76 | 77 | ## 0.0.1 78 | 79 | * Initial release. 80 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_pose_detection" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_pose_detection" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:pose-detection:18.0.0-beta5") 40 | implementation("com.google.mlkit:pose-detection-accurate:18.0.0-beta5") 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_pose_detection' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/android/src/main/java/com/google_mlkit_pose_detection/GoogleMlKitPoseDetectionPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_pose_detection; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitPoseDetectionPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_pose_detector"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new PoseDetector(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_pose_detection/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/ios/Classes/GoogleMlKitPoseDetectionPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitPoseDetectionPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/ios/google_mlkit_pose_detection.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/PoseDetection', '~> 7.0.0' 19 | s.dependency 'GoogleMLKit/PoseDetectionAccurate', '~> 7.0.0' 20 | s.dependency 'google_mlkit_commons' 21 | s.platform = :ios, '15.5' 22 | s.ios.deployment_target = '15.5' 23 | s.static_framework = true 24 | s.swift_version = '5.0' 25 | 26 | # Flutter.framework does not contain a i386 slice. 27 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 28 | end 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/lib/google_mlkit_pose_detection.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/pose_detector.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_pose_detection/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_pose_detection 2 | description: "A Flutter plugin to use Google's ML Kit Pose Detection to detect the pose of a subject's body in real time from a continuous video or static image." 3 | version: 0.14.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_pose_detection 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_pose_detection 26 | pluginClass: GoogleMlKitPoseDetectionPlugin 27 | ios: 28 | pluginClass: GoogleMlKitPoseDetectionPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.10.0 2 | 3 | * Increase android sdk compile version to 35 4 | * Updates Java compatibility version to 11 5 | * Update dependencies. 6 | 7 | ## 0.9.0 8 | 9 | * Update dependencies. 10 | * Update README. 11 | 12 | ## 0.8.1 13 | 14 | * Update dependencies. 15 | 16 | ## 0.8.0 17 | 18 | * Update dependencies. 19 | * Update README. 20 | 21 | ## 0.7.1 22 | 23 | * Update README. 24 | 25 | ## 0.7.0 26 | 27 | * Update dependencies. 28 | * Update SDK constraint. 29 | 30 | ## 0.6.0 31 | 32 | * Fix: Update build.gradle, support AGP 8. 33 | * Update README. 34 | 35 | ## 0.5.0 36 | 37 | * fix: Selfie Segmentation data casting. 38 | * Update README. 39 | * Update dependencies. 40 | 41 | ## 0.4.0 42 | 43 | * Update dependencies. 44 | 45 | ## 0.3.0 46 | 47 | * Update dependencies. 48 | 49 | ## 0.2.1 50 | 51 | * Optimize android result callback time 52 | 53 | ## 0.2.0 54 | 55 | * Update dependencies. 56 | 57 | ## 0.1.0 58 | 59 | * Update dependencies. 60 | 61 | ## 0.0.1 62 | 63 | * Initial release. 64 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_selfie_segmentation" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_selfie_segmentation" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:segmentation-selfie:16.0.0-beta6") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_selfie_segmentation' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/android/src/main/java/com/google_mlkit_selfie_segmentation/GoogleMlKitSelfieSegmentationPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_selfie_segmentation; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitSelfieSegmentationPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_selfie_segmenter"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new SelfieSegmenter(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_selfie_segmentation/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/ios/Classes/GoogleMlKitSelfieSegmentationPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitSelfieSegmentationPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/ios/google_mlkit_selfie_segmentation.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/SegmentationSelfie', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/lib/google_mlkit_selfie_segmentation.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/selfie_segmenter.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_selfie_segmentation/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_selfie_segmentation 2 | description: "Flutter plugin to use Google's ML Kit Selfie Segmentation API to easily separate the background from users within a scene and focus on what matters." 3 | version: 0.10.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_selfie_segmentation 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_selfie_segmentation 26 | pluginClass: GoogleMlKitSelfieSegmentationPlugin 27 | ios: 28 | pluginClass: GoogleMlKitSelfieSegmentationPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.13.0 2 | 3 | * Increase android sdk compile version to 35 4 | * Updates Java compatibility version to 11 5 | 6 | ## 0.12.0 7 | 8 | * Update dependencies. 9 | * Update README. 10 | 11 | ## 0.11.1 12 | 13 | * Update dependencies. 14 | 15 | ## 0.11.0 16 | 17 | * Update dependencies. 18 | * Update README. 19 | 20 | ## 0.10.1 21 | 22 | * Update README. 23 | 24 | ## 0.10.0 25 | 26 | * Update dependencies. 27 | * Update SDK constraint. 28 | 29 | ## 0.9.0 30 | 31 | * Fix: Update build.gradle, support AGP 8. 32 | * Update README. 33 | 34 | ## 0.8.0 35 | 36 | * Update README. 37 | * Update dependencies. 38 | 39 | ## 0.7.0 40 | 41 | * Update dependencies. 42 | 43 | ## 0.6.0 44 | 45 | * Update dependencies. 46 | 47 | ## 0.5.0 48 | 49 | * Update dependencies. 50 | 51 | ## 0.4.0 52 | 53 | * Update dependencies. 54 | 55 | ## 0.3.0 56 | 57 | * Allow multiple instances in native layer. 58 | 59 | ## 0.2.0 60 | 61 | * Fix: return after closing detector in iOS. 62 | 63 | ## 0.1.0 64 | 65 | * Update documentation. 66 | 67 | ## 0.0.2 68 | 69 | * Fix: Close detector. 70 | * Update documentation. 71 | 72 | ## 0.0.1 73 | 74 | * Initial release. 75 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_smart_reply" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_smart_reply" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:smart-reply:17.0.4") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_smart_reply' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/android/src/main/java/com/google_mlkit_smart_reply/GoogleMlKitSmartReplyPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_smart_reply; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitSmartReplyPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_smart_reply"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new SmartReply()); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_smart_reply/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/ios/Classes/GoogleMlKitSmartReplyPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitSmartReplyPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/ios/google_mlkit_smart_reply.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/SmartReply', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/lib/google_mlkit_smart_reply.dart: -------------------------------------------------------------------------------- 1 | export 'src/smart_reply.dart'; 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_smart_reply/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_smart_reply 2 | description: "A Flutter plugin to use Google's ML Kit Smart Reply API to automatically generate relevant replies to messages." 3 | version: 0.13.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_smart_reply 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | 15 | dev_dependencies: 16 | flutter_test: 17 | sdk: flutter 18 | flutter_lints: ^5.0.0 19 | 20 | flutter: 21 | plugin: 22 | platforms: 23 | android: 24 | package: com.google_mlkit_smart_reply 25 | pluginClass: GoogleMlKitSmartReplyPlugin 26 | ios: 27 | pluginClass: GoogleMlKitSmartReplyPlugin 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## 0.0.2 2 | 3 | * Increase android sdk compile version to 35 4 | * Updates Java compatibility version to 11 5 | * Update dependencies. 6 | 7 | ## 0.0.1 8 | 9 | * Initial release. 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Francisco Bernal and Benson Arafat. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_subject_segmentation" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_subject_segmentation" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 24 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.android.gms:play-services-mlkit-subject-segmentation:16.0.0-beta1") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/android/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionBase=GRADLE_USER_HOME 2 | distributionPath=wrapper/dists 3 | distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip 4 | networkTimeout=10000 5 | validateDistributionUrl=true 6 | zipStoreBase=GRADLE_USER_HOME 7 | zipStorePath=wrapper/dists 8 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_subject_segmentation' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/android/src/main/java/com/google_mlkit_subject_segmentation/GoogleMlKitSubjectSegmentationPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_subject_segmentation; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitSubjectSegmentationPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_subject_segmentation"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new SubjectSegmenter(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_subject_segmentation/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/ios/Classes/GoogleMlKitSubjectSegmentationPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitSubjectSegmentationPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/ios/Classes/GoogleMlKitSubjectSegmentationPlugin.m: -------------------------------------------------------------------------------- 1 | #import "GoogleMlKitSubjectSegmentationPlugin.h" 2 | 3 | @implementation GoogleMlKitSubjectSegmentationPlugin 4 | + (void)registerWithRegistrar:(NSObject*)registrar { 5 | FlutterMethodChannel* channel = [FlutterMethodChannel 6 | methodChannelWithName:@"google_mlkit_subject_segmentation" 7 | binaryMessenger:[registrar messenger]]; 8 | GoogleMlKitSubjectSegmentationPlugin* instance = [[GoogleMlKitSubjectSegmentationPlugin alloc] init]; 9 | [registrar addMethodCallDelegate:instance channel:channel]; 10 | } 11 | 12 | - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result { 13 | result(FlutterMethodNotImplemented); 14 | } 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/ios/google_mlkit_subject_segmentation.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.author = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | # s.dependency 'GoogleMLKit/SubjectSegmentation', '~> 6.0.0' 19 | s.platform = :ios, '15.5' 20 | s.ios.deployment_target = '15.5' 21 | s.static_framework = true 22 | s.swift_version = '5.0' 23 | 24 | # Flutter.framework does not contain a i386 slice. 25 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 26 | end 27 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/lib/google_mlkit_subject_segmentation.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/subject_segmenter.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_subject_segmentation/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_subject_segmentation 2 | description: "A Flutter plugin to use Google's ML Kit Selfie Segmentation API to easily separate the background from users within a scene and focus on what matters." 3 | version: 0.0.2 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_subject_segmentation 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_subject_segmentation 26 | pluginClass: GoogleMlKitSubjectSegmentationPlugin 27 | ios: 28 | pluginClass: GoogleMlKitSubjectSegmentationPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_text_recognition" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_text_recognition" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:text-recognition:16.0.1") 40 | compileOnly("com.google.mlkit:text-recognition-chinese:16.0.1") 41 | compileOnly("com.google.mlkit:text-recognition-devanagari:16.0.1") 42 | compileOnly("com.google.mlkit:text-recognition-japanese:16.0.1") 43 | compileOnly("com.google.mlkit:text-recognition-korean:16.0.1") 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_text_recognition' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/android/src/main/java/com/google_mlkit_text_recognition/GoogleMlKitTextRecognitionPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_text_recognition; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitTextRecognitionPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_text_recognizer"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new TextRecognizer(flutterPluginBinding.getApplicationContext())); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_text_recognition/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/ios/Classes/GoogleMlKitTextRecognitionPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitTextRecognitionPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/ios/google_mlkit_text_recognition.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/TextRecognition', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/lib/google_mlkit_text_recognition.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/text_recognizer.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_text_recognition/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_text_recognition 2 | description: "A Flutter plugin to use Google's ML Kit Text Recognition to recognize text in any Chinese, Devanagari, Japanese, Korean and Latin character set." 3 | version: 0.15.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_text_recognition 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_text_recognition 26 | pluginClass: GoogleMlKitTextRecognitionPlugin 27 | ios: 28 | pluginClass: GoogleMlKitTextRecognitionPlugin 29 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .build/ 9 | .buildlog/ 10 | .history 11 | .svn/ 12 | .swiftpm/ 13 | migrate_working_dir/ 14 | 15 | # IntelliJ related 16 | *.iml 17 | *.ipr 18 | *.iws 19 | .idea/ 20 | 21 | # The .vscode folder contains launch configuration and tasks you configure in 22 | # VS Code which you may wish to be included in version control, so this line 23 | # is commented out by default. 24 | #.vscode/ 25 | 26 | # Flutter/Dart/Pub related 27 | # Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. 28 | /pubspec.lock 29 | **/doc/api/ 30 | .dart_tool/ 31 | .flutter-plugins 32 | .flutter-plugins-dependencies 33 | build/ 34 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Francisco Bernal and Bharat Biradar. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/analysis_options.yaml: -------------------------------------------------------------------------------- 1 | include: ../google_ml_kit/analysis_options.yaml 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/android/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .cxx 10 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/android/build.gradle: -------------------------------------------------------------------------------- 1 | group = "com.google_mlkit_translation" 2 | version = "1.0" 3 | 4 | buildscript { 5 | repositories { 6 | google() 7 | mavenCentral() 8 | } 9 | 10 | dependencies { 11 | classpath("com.android.tools.build:gradle:8.7.0") 12 | } 13 | } 14 | 15 | rootProject.allprojects { 16 | repositories { 17 | google() 18 | mavenCentral() 19 | } 20 | } 21 | 22 | apply plugin: "com.android.library" 23 | 24 | android { 25 | namespace = "com.google_mlkit_translation" 26 | 27 | compileSdk = 35 28 | 29 | compileOptions { 30 | sourceCompatibility = JavaVersion.VERSION_11 31 | targetCompatibility = JavaVersion.VERSION_11 32 | } 33 | 34 | defaultConfig { 35 | minSdk = 21 36 | } 37 | 38 | dependencies { 39 | implementation("com.google.mlkit:translate:17.0.3") 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/android/settings.gradle: -------------------------------------------------------------------------------- 1 | rootProject.name = 'google_mlkit_translation' 2 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/android/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/android/src/main/java/com/google_mlkit_translation/GoogleMlKitTranslationPlugin.java: -------------------------------------------------------------------------------- 1 | package com.google_mlkit_translation; 2 | 3 | import androidx.annotation.NonNull; 4 | 5 | import io.flutter.embedding.engine.plugins.FlutterPlugin; 6 | import io.flutter.plugin.common.MethodChannel; 7 | 8 | public class GoogleMlKitTranslationPlugin implements FlutterPlugin { 9 | private MethodChannel channel; 10 | private static final String channelName = "google_mlkit_on_device_translator"; 11 | 12 | @Override 13 | public void onAttachedToEngine(@NonNull FlutterPluginBinding flutterPluginBinding) { 14 | channel = new MethodChannel(flutterPluginBinding.getBinaryMessenger(), channelName); 15 | channel.setMethodCallHandler(new TextTranslator()); 16 | } 17 | 18 | @Override 19 | public void onDetachedFromEngine(@NonNull FlutterPluginBinding binding) { 20 | channel.setMethodCallHandler(null); 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/example/README.md: -------------------------------------------------------------------------------- 1 | ## Example app 2 | 3 | Find the example app [here](https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/example). 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/ios/.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .vagrant/ 3 | .sconsign.dblite 4 | .svn/ 5 | 6 | .DS_Store 7 | *.swp 8 | profile 9 | 10 | DerivedData/ 11 | build/ 12 | GeneratedPluginRegistrant.h 13 | GeneratedPluginRegistrant.m 14 | 15 | .generated/ 16 | 17 | *.pbxuser 18 | *.mode1v3 19 | *.mode2v3 20 | *.perspectivev3 21 | 22 | !default.pbxuser 23 | !default.mode1v3 24 | !default.mode2v3 25 | !default.perspectivev3 26 | 27 | xcuserdata 28 | 29 | *.moved-aside 30 | 31 | *.pyc 32 | *sync/ 33 | Icon? 34 | .tags* 35 | 36 | /Flutter/Generated.xcconfig 37 | /Flutter/ephemeral/ 38 | /Flutter/flutter_export_environment.sh 39 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/ios/Assets/.gitkeep: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/packages/google_mlkit_translation/ios/Assets/.gitkeep -------------------------------------------------------------------------------- /packages/google_mlkit_translation/ios/Classes/GoogleMlKitTranslationPlugin.h: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | @interface GoogleMlKitTranslationPlugin : NSObject 4 | @end 5 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/ios/google_mlkit_translation.podspec: -------------------------------------------------------------------------------- 1 | require 'yaml' 2 | 3 | pubspec = YAML.load_file(File.join('..', 'pubspec.yaml')) 4 | library_version = pubspec['version'].gsub('+', '-') 5 | 6 | Pod::Spec.new do |s| 7 | s.name = pubspec['name'] 8 | s.version = library_version 9 | s.summary = pubspec['description'] 10 | s.description = pubspec['description'] 11 | s.homepage = pubspec['homepage'] 12 | s.license = { :file => '../LICENSE' } 13 | s.authors = 'Multiple Authors' 14 | s.source = { :path => '.' } 15 | s.source_files = 'Classes/**/*' 16 | s.public_header_files = 'Classes/**/*.h' 17 | s.dependency 'Flutter' 18 | s.dependency 'GoogleMLKit/Translate', '~> 7.0.0' 19 | s.dependency 'google_mlkit_commons' 20 | s.platform = :ios, '15.5' 21 | s.ios.deployment_target = '15.5' 22 | s.static_framework = true 23 | s.swift_version = '5.0' 24 | 25 | # Flutter.framework does not contain a i386 slice. 26 | s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' } 27 | end 28 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/lib/google_mlkit_translation.dart: -------------------------------------------------------------------------------- 1 | export 'package:google_mlkit_commons/google_mlkit_commons.dart'; 2 | 3 | export 'src/on_device_translator.dart'; 4 | -------------------------------------------------------------------------------- /packages/google_mlkit_translation/pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: google_mlkit_translation 2 | description: "A Flutter plugin to use Google's ML Kit On-Device Translation to dynamically translate text between more than 50 languages." 3 | version: 0.13.0 4 | homepage: https://github.com/flutter-ml/google_ml_kit_flutter 5 | repository: https://github.com/flutter-ml/google_ml_kit_flutter/tree/master/packages/google_mlkit_translation 6 | 7 | environment: 8 | sdk: ">=2.16.0 <4.0.0" 9 | flutter: ">=2.5.0" 10 | 11 | dependencies: 12 | flutter: 13 | sdk: flutter 14 | google_mlkit_commons: ^0.11.0 15 | 16 | dev_dependencies: 17 | flutter_test: 18 | sdk: flutter 19 | flutter_lints: ^5.0.0 20 | 21 | flutter: 22 | plugin: 23 | platforms: 24 | android: 25 | package: com.google_mlkit_translation 26 | pluginClass: GoogleMlKitTranslationPlugin 27 | ios: 28 | pluginClass: GoogleMlKitTranslationPlugin 29 | -------------------------------------------------------------------------------- /resources/build_settings_01.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/flutter-ml/google_ml_kit_flutter/ad64d83ffba00e5304728371d81547927901f8f5/resources/build_settings_01.png -------------------------------------------------------------------------------- /update_libs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cd packages 4 | 5 | cd google_mlkit_commons 6 | flutter pub get 7 | 8 | cd ../google_mlkit_barcode_scanning 9 | flutter pub get 10 | 11 | cd ../google_mlkit_digital_ink_recognition 12 | flutter pub get 13 | 14 | cd ../google_mlkit_document_scanner 15 | flutter pub get 16 | 17 | cd ../google_mlkit_entity_extraction 18 | flutter pub get 19 | 20 | cd ../google_mlkit_face_detection 21 | flutter pub get 22 | 23 | cd ../google_mlkit_face_mesh_detection 24 | flutter pub get 25 | 26 | cd ../google_mlkit_image_labeling 27 | flutter pub get 28 | 29 | cd ../google_mlkit_language_id 30 | flutter pub get 31 | 32 | cd ../google_mlkit_object_detection 33 | flutter pub get 34 | 35 | cd ../google_mlkit_pose_detection 36 | flutter pub get 37 | 38 | cd ../google_mlkit_selfie_segmentation 39 | flutter pub get 40 | 41 | cd ../google_mlkit_subject_segmentation 42 | flutter pub get 43 | 44 | cd ../google_mlkit_smart_reply 45 | flutter pub get 46 | 47 | cd ../google_mlkit_text_recognition 48 | flutter pub get 49 | 50 | cd ../google_mlkit_translation 51 | flutter pub get 52 | 53 | cd ../google_ml_kit 54 | flutter pub get 55 | 56 | cd ../example 57 | flutter pub get 58 | 59 | cd ios 60 | pod install 61 | --------------------------------------------------------------------------------