Skip to content

Update Android activities because plugin registration is now done by FlutterActivity.configureFlutterEngine#50841

Merged
fluttergithubbot merged 1 commit intoflutter:masterfrom
jason-simmons:configure_engine_super
Feb 28, 2020
Merged

Update Android activities because plugin registration is now done by FlutterActivity.configureFlutterEngine#50841
fluttergithubbot merged 1 commit intoflutter:masterfrom
jason-simmons:configure_engine_super

Conversation

@jason-simmons
Copy link
Copy Markdown
Member

See #49365

@fluttergithubbot fluttergithubbot added d: examples Sample code and demos c: contributor-productivity Team-specific productivity, code health, technical debt. customer: gallery Relating to flutter/gallery repository. Please transfer non-framework issues there. tool Affects the "flutter" command-line tool. See also t: labels. labels Feb 15, 2020
@jason-simmons jason-simmons requested a review from mklim February 15, 2020 00:14
Copy link
Copy Markdown
Member

@xster xster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want bonus points, we can actually toggle the AndroidManifest to straight up point the activity to io.flutter.embedding.android.FlutterActivity :) but that probably takes a few more tooling changes

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I brought this up with I think @blasten earlier. He mentioned that it would be relatively difficult to change to tool to just never generate a file like this based on the embedding flag. I think it's okay to generate an empty MainActivity, it provides an easy entry point for anyone who wants to customize it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah that was the piece I was missing, whether the tool makes it hard to toggle. This LG then.

Copy link
Copy Markdown

@blasten blasten left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Contributor

@mklim mklim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LG, thanks! Can this be tested at all?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I brought this up with I think @blasten earlier. He mentioned that it would be relatively difficult to change to tool to just never generate a file like this based on the embedding flag. I think it's okay to generate an empty MainActivity, it provides an easy entry point for anyone who wants to customize it.

@fluttergithubbot fluttergithubbot merged commit d499d61 into flutter:master Feb 28, 2020
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt. customer: gallery Relating to flutter/gallery repository. Please transfer non-framework issues there. d: examples Sample code and demos tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants