edufolly / flutter_mobile_vision

Flutter implementation of Google Mobile Vision.
MIT License
455 stars 168 forks source link

GraphicOverlay.java uses unchecked or unsafe operations #18

Closed artob closed 5 years ago

artob commented 6 years ago

After adding this package to a Flutter project, flutter run outputs -Xlint:deprecation and -Xlint:unchecked warnings from the Java compilation:

$ flutter run
Launching lib/main.dart on Android SDK built for x86 in debug mode...
Initializing gradle...                                       4.9s
Resolving dependencies...                                    3.3s
Running 'gradlew assembleDebug'...                               
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: ~/.pub-cache/hosted/pub.dartlang.org/flutter_mobile_vision-0.1.1/android/src/main/java/io/github/edufolly/fluttermobilevision/ui/GraphicOverlay.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Built build/app/outputs/apk/debug/app-debug.apk.
Installing build/app/outputs/apk/app.apk...                  3.4s
Syncing files to device Android SDK built for x86...             

Ideally, these complaints could be fixed or at least silenced such that the new user experience for this package doesn't raise undue concerns and red flags.

edufolly commented 6 years ago

How we could do this? Maybe a pull request helps.

artob commented 5 years ago

@edufolly I've submitted a PR to silence these warnings. It's a single-line change to the source file in question.