benjamindean/flutter_vibration

Deprecation warning

Opened this issue · 3 comments

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.

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?

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

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.