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

Rename setters for lifecycle state #40462

Merged
merged 1 commit into from Mar 20, 2023

Conversation

gspencergoog
Copy link
Contributor

Description

This renames PlatformConfiguration::UpdateLifecycleState and RuntimeController::SetLifecycleState to PlatformConfiguration::UpdateInitialLifecycleState and RuntimeController::SetInitialLifecycleState, respectively, and some associated private functions.

This is because calling this function really only updates the initial state that the binding loads when it initializes, it doesn't continuously update the lifecycle state.

Tests

  • No tests changed. This is a rename of the API, and currently doesn't appear to have any direct test dependencies.

One note: These appear to both be deprecated APIs. Perhaps it would be better to just remove them? The only thing is I'm not sure what the deprecation message means by "persistent isolate data", and what the replacement code would be.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@Hixie
Copy link
Contributor

Hixie commented Mar 20, 2023

test-exempt: code refactor with no semantic change

@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Mar 20, 2023
@auto-submit auto-submit bot merged commit 2a60f5f into flutter:main Mar 20, 2023
36 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App needs tests
Projects
None yet
3 participants