refactor: Migrate plugin to Kotlin#845
Conversation
…dle configuration
…lin and update Gradle configuration
…ate Gradle configuration
…nd update Gradle configuration
…guage ID, Smart Reply, Translation, Pose Detection, and other plugins to Kotlin
|
|
Updated @fbernaly |
There was a problem hiding this comment.
Pull request overview
This PR migrates multiple Google ML Kit Flutter plugins from Java to Kotlin across numerous packages. The migration includes rewriting all Android plugin implementations and updating build configurations to support Kotlin.
Changes:
- Migrated 20+ ML Kit plugins from Java to Kotlin with equivalent functionality
- Updated build.gradle files to include Kotlin plugin support and dependencies
- Added Gradle wrapper configurations for gradle-9.0-milestone-1
- Removed Java source files and added Kotlin replacements
Reviewed changes
Copilot reviewed 124 out of 125 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| google_mlkit_translation | Translated TextTranslator and plugin to Kotlin |
| google_mlkit_text_recognition | Migrated text recognition implementation |
| google_mlkit_subject_segmentation | Converted segmentation with typo in channel name |
| google_mlkit_smart_reply | Migrated smart reply handler |
| google_mlkit_selfie_segmentation | Converted selfie segmentation logic |
| google_mlkit_pose_detection | Migrated pose detection |
| google_mlkit_object_detection | Converted plugin file only |
| google_mlkit_language_id | Migrated language identification |
| google_mlkit_image_labeling | Converted image labeling logic |
| google_mlkit_genai_* | Migrated all genai packages (summarization, speech recognition, rewriting, proofreading, prompt, image description) |
| google_mlkit_face_* | Migrated face mesh and face detection |
| google_mlkit_entity_extraction | Converted entity extraction |
| google_mlkit_document_scanner | Migrated document scanning with activity handling |
| google_mlkit_digital_ink_recognition | Converted digital ink recognition |
| google_mlkit_barcode_scanning | Migrated barcode scanning |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
...rc/main/kotlin/com/google_mlkit_subject_segmentation/GoogleMlKitSubjectSegmentationPlugin.kt
Outdated
Show resolved
Hide resolved
...gmentation/android/src/main/kotlin/com/google_mlkit_subject_segmentation/SubjectSegmenter.kt
Outdated
Show resolved
Hide resolved
...ocument_scanner/android/src/main/kotlin/com/google_mlkit_document_scanner/DocumentScanner.kt
Outdated
Show resolved
Hide resolved
...enai_proofreading/android/src/main/kotlin/com/google_mlkit_genai_proofreading/Proofreader.kt
Show resolved
Hide resolved
|
@bensonarafat: address Copilot's review comments, thanks. |
…le ML Kit packages
|
@fbernaly Fixed |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 124 out of 125 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
No description provided.