Skip to content

Commit

Permalink
Merge pull request Purus#40 from lukaskurz/master
Browse files Browse the repository at this point in the history
Suppress deprecation warning due to v1 backwards compatibility
  • Loading branch information
Purus authored Aug 15, 2022
2 parents 88118c8 + 7f3bf98 commit 8dde464
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -37,7 +37,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());
}

Expand Down

0 comments on commit 8dde464

Please sign in to comment.