未验证 提交 78f8bcac 编写于 作者: K Keerti Parthasarathy 提交者: GitHub

Annotate deprecated methods with @Deprecated (#5976)

上级 4c7e5d5a
......@@ -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);
......
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册