Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS Background Platform Channels #29665

Merged
merged 3 commits into from
Nov 19, 2021

Conversation

gaaclarke
Copy link
Member

@gaaclarke gaaclarke commented Nov 11, 2021

issue: flutter/flutter#91635

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@google-cla google-cla bot added the cla: yes label Nov 11, 2021
@gaaclarke gaaclarke force-pushed the ios_background_platform_messages branch 2 times, most recently from 0e26a3a to e96fac1 Compare November 13, 2021 01:00
@CaseyHillers CaseyHillers changed the base branch from master to main November 15, 2021 18:11
@gaaclarke gaaclarke force-pushed the ios_background_platform_messages branch 6 times, most recently from 8f9bdc2 to 0ba85eb Compare November 18, 2021 23:58
@gaaclarke gaaclarke marked this pull request as ready for review November 19, 2021 00:02
Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

LGTM with nit

codec:codec
taskQueue:taskQueue];
FlutterMessageHandler handler = ^(id _Nullable message, FlutterReply callback) {
NSLog(@"hey");
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: avoid extra logs even in tests

Copy link
Member Author

Choose a reason for hiding this comment

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

done

Comment on lines 92 to 94
// Called from any thread.
// TODO(gaaclarke: This vestigal from the Android implementation, find a way
// to migrate this to PlatformMessageHandlerAndroid.
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe just make it not purely virtual and have a no-op implementation in the base class?

Copy link
Member Author

Choose a reason for hiding this comment

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

That just puts wallpaper over the issue. I'd like this to stick out like a sore thumb since it should be fixed. It's just a pain given how things are divided up.

@dnfield
Copy link
Contributor

dnfield commented Nov 19, 2021

...once CI is happy

@jmagman
Copy link
Member

jmagman commented Nov 19, 2021

The luci link is missing but the Mac Unopt failure is https://ci.chromium.org/p/flutter/builders/try/Mac%20Unopt/6227.
Rebase onto #29668

@gaaclarke gaaclarke force-pushed the ios_background_platform_messages branch from 15b6415 to 02293bb Compare November 19, 2021 18:59
@gaaclarke gaaclarke added the waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land. label Nov 19, 2021
@CaseyHillers CaseyHillers changed the base branch from master to main November 19, 2021 21:52
@gaaclarke
Copy link
Member Author

I'm landing this with luci-engine on red. It's not red if you actually check the status and autoroller PRs are landing and that check is not showing up red for them.

dnfield added a commit that referenced this pull request Dec 12, 2021
gaaclarke added a commit to gaaclarke/engine that referenced this pull request Jan 5, 2022
gaaclarke added a commit that referenced this pull request Jan 12, 2022
* iOS Background Platform Channels (#29665)

* added test that passes before this change, and fails after it

* started supporting backwards compatible usage of setting handlers
JsouLiang pushed a commit to JsouLiang/engine that referenced this pull request Jan 14, 2022
* iOS Background Platform Channels (flutter#29665)

* added test that passes before this change, and fails after it

* started supporting backwards compatible usage of setting handlers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes platform-ios platform-macos waiting for tree to go green This PR is approved and tested, but waiting for the tree to be green to land.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants