Skip to content

Commit

Permalink
Add a deprecation javadoc note to the old FlutterActivity (flutter#15156
Browse files Browse the repository at this point in the history
)
  • Loading branch information
xster authored Jan 8, 2020
1 parent 3a9121b commit 293cd97
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion shell/platform/android/io/flutter/app/FlutterActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,17 @@
import io.flutter.view.FlutterNativeView;
import io.flutter.view.FlutterView;

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

private final FlutterActivityDelegate delegate = new FlutterActivityDelegate(this, this);

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

0 comments on commit 293cd97

Please sign in to comment.