Skip to content

Commit 293cd97

Browse files
authored
Add a deprecation javadoc note to the old FlutterActivity (flutter#15156)
1 parent 3a9121b commit 293cd97

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

shell/platform/android/io/flutter/app/FlutterActivity.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,17 @@
1616
import io.flutter.view.FlutterNativeView;
1717
import io.flutter.view.FlutterView;
1818

19+
// This uses a javadoc deprecation instead of a deprecation annotation because we don't want to show
20+
// a build-time warning yet. Revise once v2 embedding usage volume increases.
1921
/**
2022
* Base class for activities that use Flutter.
23+
*
24+
* @deprecated As of Flutter v1.12, this class is deprecated in favor of {@link io.flutter.embedding.android.FlutterActivity}.
25+
* See https://flutter.dev/go/android-project-migration for migration details.
2126
*/
2227
public class FlutterActivity extends Activity implements FlutterView.Provider, PluginRegistry, ViewFactory {
2328
private static final String TAG = "FlutterActivity";
24-
29+
2530
private final FlutterActivityDelegate delegate = new FlutterActivityDelegate(this, this);
2631

2732
// These aliases ensure that the methods we forward to the delegate adhere

0 commit comments

Comments
 (0)