From 96656470a09eae98b926c89aa4e5acbfc05dcc0c Mon Sep 17 00:00:00 2001 From: Keerti Parthasarathy Date: Wed, 8 Aug 2018 13:02:41 -0700 Subject: [PATCH] Annotate deprecated methods with @Deprecated (flutter/engine#5976) --- .../platform/android/io/flutter/view/FlutterNativeView.java | 1 + .../shell/platform/android/io/flutter/view/FlutterView.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterNativeView.java b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterNativeView.java index c1ef24fdbe..455ac8c9af 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterNativeView.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterNativeView.java @@ -90,6 +90,7 @@ public class FlutterNativeView implements BinaryMessenger { * Please use runFromBundle with `FlutterRunArguments`. Parameters * `snapshotOverride` and `reuseRuntimeController` have no effect. */ + @Deprecated public void runFromBundle(String bundlePath, String snapshotOverride, String entrypoint, boolean reuseRuntimeController) { runFromBundleInternal(bundlePath, entrypoint, null, null); diff --git a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterView.java b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterView.java index b28ffa054d..10d4c59f1c 100644 --- a/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterView.java +++ b/engine/src/flutter/shell/platform/android/io/flutter/view/FlutterView.java @@ -614,6 +614,7 @@ public class FlutterView extends SurfaceView * Please use runFromBundle with `FlutterRunArguments`. Parameter * `snapshotOverride` has no effect. */ + @Deprecated public void runFromBundle(String bundlePath, String snapshotOverride) { runFromBundle(bundlePath, snapshotOverride, "main", false); } @@ -623,6 +624,7 @@ public class FlutterView extends SurfaceView * Please use runFromBundle with `FlutterRunArguments`. Parameter * `snapshotOverride` has no effect. */ + @Deprecated public void runFromBundle(String bundlePath, String snapshotOverride, String entrypoint) { runFromBundle(bundlePath, snapshotOverride, entrypoint, false); } @@ -632,6 +634,7 @@ public class FlutterView extends SurfaceView * Please use runFromBundle with `FlutterRunArguments`. Parameters * `snapshotOverride` and `reuseRuntimeController` have no effect. */ + @Deprecated public void runFromBundle(String bundlePath, String snapshotOverride, String entrypoint, boolean reuseRuntimeController) { FlutterRunArguments args = new FlutterRunArguments(); args.bundlePath = bundlePath;