diff --git a/android/src/main/java/com/iyaffle/launchreview/LaunchReviewPlugin.java b/android/src/main/java/com/iyaffle/launchreview/LaunchReviewPlugin.java index 75257ae..584fa60 100644 --- a/android/src/main/java/com/iyaffle/launchreview/LaunchReviewPlugin.java +++ b/android/src/main/java/com/iyaffle/launchreview/LaunchReviewPlugin.java @@ -8,7 +8,7 @@ import io.flutter.plugin.common.MethodChannel.MethodCallHandler; import io.flutter.plugin.common.MethodChannel.Result; import io.flutter.plugin.common.MethodCall; -import io.flutter.plugin.common.PluginRegistry.Registrar; +import io.flutter.plugin.common.PluginRegistry; import android.app.Activity; import android.content.ActivityNotFoundException; @@ -38,7 +38,8 @@ private static LaunchReviewPlugin register(LaunchReviewPlugin plugin, BinaryMess /** * Plugin registration. */ - public static void registerWith(Registrar registrar) { + @SuppressWarnings("deprecation") + public static void registerWith(PluginRegistry.Registrar registrar) { register(new LaunchReviewPlugin(), registrar.messenger(), registrar.activity()); }