davidmartos96 / sqflite_sqlcipher

SQLite flutter plugin
BSD 2-Clause "Simplified" License
99 stars 44 forks source link

warning: [deprecation] Registrar in PluginRegistry has been deprecated #50

Closed Chakib-Temal closed 3 years ago

Chakib-Temal commented 3 years ago

there is a Warning when compiling project

/Users/xxx/.pub-cache/hosted/pub.dartlang.org/sqflite_sqlcipher-2.0.0/android/src/main/java/com/davidmartos96/sqflite_sqlcipher/SqfliteSqlCipherPlugin.java:37: warning: [deprecation] Registrar in PluginRegistry has been deprecated

import io.flutter.plugin.common.PluginRegistry.Registrar;

in my pubspec.yaml sqflite_sqlcipher: 2.0.0

Flutter version : Flutter 2.2.3 • channel stable Framework • revision f4abaa0735 (10 weeks ago) • 2021-07-01 12:46:11 -0700 Engine • revision 241c87ad80 Tools • Dart 2.13.4

davidmartos96 commented 3 years ago

Duplicate of : https://github.com/davidmartos96/sqflite_sqlcipher/issues/49 You can safely ignore the warning. The library is already using the non deprecated method, but there is still code to make it work with old versions of Flutter, hence the warning. This code will be removed once it gets deleted from the Flutter framework