Skip to content

Conversation

@blasten
Copy link

@blasten blasten commented Oct 21, 2019

Description

Migrate the examples apps to the Android embedding v2.

Related Issues

Fixes #33884

Related to #43220

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read Handling breaking changes). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@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. labels Oct 21, 2019
@codecov
Copy link

codecov bot commented Oct 21, 2019

Codecov Report

Merging #43221 into master will decrease coverage by 0.78%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master   #43221      +/-   ##
==========================================
- Coverage   61.51%   60.73%   -0.79%     
==========================================
  Files         195      195              
  Lines       19016    18954      -62     
==========================================
- Hits        11698    11511     -187     
- Misses       7318     7443     +125
Flag Coverage Δ
#flutter_tool 60.73% <ø> (-0.79%) ⬇️
Impacted Files Coverage Δ
...kages/flutter_tools/lib/src/commands/precache.dart 48.48% <0%> (-42.43%) ⬇️
...r_tools/lib/src/runner/flutter_command_runner.dart 50.63% <0%> (-22.37%) ⬇️
...ges/flutter_tools/lib/src/build_system/source.dart 65.3% <0%> (-21.66%) ⬇️
...ckages/flutter_tools/lib/src/platform_plugins.dart 58% <0%> (-20%) ⬇️
...lutter_tools/lib/src/build_system/targets/web.dart 51.72% <0%> (-6.49%) ⬇️
packages/flutter_tools/lib/src/version.dart 87.43% <0%> (-5.8%) ⬇️
packages/flutter_tools/lib/src/plugins.dart 86.78% <0%> (-3.53%) ⬇️
packages/flutter_tools/lib/src/run_hot.dart 68.46% <0%> (-3.06%) ⬇️
packages/flutter_tools/lib/src/dart/pub.dart 66.36% <0%> (-1.97%) ⬇️
packages/flutter_tools/lib/src/artifacts.dart 70.34% <0%> (-1.28%) ⬇️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a817b4e...8ca92f8. Read the comment docs.

@blasten blasten force-pushed the migrate_examples_new_embedding branch 5 times, most recently from 99d1947 to d847813 Compare October 22, 2019 19:59
@blasten blasten force-pushed the migrate_examples_new_embedding branch from d847813 to 8ca92f8 Compare October 23, 2019 17:09
Copy link
Contributor

@matthew-carroll matthew-carroll 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
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

<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
Copy link
Member

Choose a reason for hiding this comment

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

Was this what we decided as opposed to a string search for import "io.flutter.embedding" in the users' java code?

Copy link
Author

Choose a reason for hiding this comment

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

yeah. wdyt?

Copy link
Member

Choose a reason for hiding this comment

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

Sure, SGTM. What happens when there's mismatches? (false positives or negatives)

Copy link
Author

Choose a reason for hiding this comment

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

I’m hoping we can automize the migration, so apps devs don’t have to modify the manifest manually. But yes, if someone changes this manually without also changing the java code , then the app won’t compile.

Copy link
Member

Choose a reason for hiding this comment

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

Ok, SG

@blasten blasten merged commit b49ffa8 into flutter:master Oct 26, 2019
@blasten blasten deleted the migrate_examples_new_embedding branch October 26, 2019 05:03
blasten pushed a commit that referenced this pull request Oct 28, 2019
blasten pushed a commit that referenced this pull request Oct 28, 2019
@blasten blasten restored the migrate_examples_new_embedding branch October 28, 2019 04:27
blasten pushed a commit to blasten/flutter that referenced this pull request Oct 28, 2019
blasten pushed a commit that referenced this pull request Oct 28, 2019
* Fix device lab tests

* Migrate examples to the Android embedding v2 (#43221)
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
Inconnu08 pushed a commit to Inconnu08/flutter that referenced this pull request Nov 26, 2019
* Fix device lab tests

* Migrate examples to the Android embedding v2 (flutter#43221)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Convert Flutter framework repo to new Android embedding

5 participants