benjamindean / flutter_vibration

Handle vibration on iOS and Android in Flutter apps
217 stars 67 forks source link

Deprecation warning #87

Open aluedtke7 opened 1 year ago

aluedtke7 commented 1 year ago

Since today I'm using vibration version 1.8.1 and I get the following message when I compile my app on Linux for Android:

Note: /home/al/.pub-cache/hosted/pub.dev/vibration-1.8.1/android/src/main/java/com/benjaminabel/vibration/VibrationPlugin.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

If you need other infos, please let me know.

benjamindean commented 1 year ago

Hey! This is an expected message (for now) since some of the vibration methods are marked as deprecated on newer APIs. But they should still work on older versions. Does it cause any issues when compiling?

aluedtke7 commented 1 year ago

No, it's just a warning. The compiled apk works as expected.

masus04 commented 4 months ago

Any update on this? The package is currently working as expected, but it has been 9 months and at some point the deprecated API will break it.