Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Turning off auto resolution now prevents several methods from running in the background when they should not have been #173

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

Closed
oddgamesdaniel wants to merge 1 commit into googlesamples:master from oddgamesdaniel:master

Conversation

Copy link
Contributor

@oddgamesdaniel oddgamesdaniel commented Dec 14, 2018

Methods that used to be hooked into the editor update tick are now able to be unhooked and will not automatically be assigned via the PlayServicesResolver's static constructor if auto resolution is turned off in the settings

...le to be unhooked and will not automatically be assigned via the PlayServicesResolver's static constructor if auto resoltution is turned off in the settings
Copy link

Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here (e.g. I signed it!) and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

Copy link
Contributor Author

CLA Signed

Copy link

CLAs look good, thanks!

@oddgamesdaniel oddgamesdaniel changed the title (削除) Turning off auto resolution now prevents several methods from running in the background when they should now have been (削除ここまで) (追記) Turning off auto resolution now prevents several methods from running in the background when they should not have been (追記ここまで) Dec 14, 2018
Copy link
Contributor

@stewartmiles stewartmiles left a comment

Choose a reason for hiding this comment

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

Thanks for the pull request, much appreciated!

I had one minor nit and was wondering whether you could reformat your commit message to follow the typically accepted style e.g https://github.com/erlang/otp/wiki/writing-good-commit-messages

public static void UnlinkAutoResolution() {
// Unregister events to monitor build system changes for the Android Resolver and other
// plugins.
RunOnMainThread.OnUpdate -= PollBundleId;
Copy link
Contributor

@stewartmiles stewartmiles Dec 14, 2018

Choose a reason for hiding this comment

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

In general this all looks good. However, Firebase and some other plugins rely upon the bundle ID notification to keep other configuration files up to date. So turning off auto-resolution should probably not turn off bundle ID polling. Any chance we could keep this unconditionally enabled?

Copy link
Contributor Author

@oddgamesdaniel oddgamesdaniel Dec 17, 2018

Choose a reason for hiding this comment

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

From what I observed, the really heavy hitter was the polling for the android ABIs, so long as that doesn't run all the time the bulk majority of the allocations should go away. I'd trust your judgement on this one regarding polling the bundleid, I just removed any events that hooked into editor update tick. Not really sure how I can reformat my commit message, is that possible with Git?

Copy link
Contributor

@stewartmiles stewartmiles Dec 17, 2018

Choose a reason for hiding this comment

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

Yeah you can reformat your commit message with "git commit --amend", save a new commit message and force push the change to the head of your review repo.

Copy link
Contributor

@oddgamesdaniel I've done some reformatting of your commit and commit message but it's pretty much the same. You're also still credited in the commit message.

stewartmiles pushed a commit that referenced this pull request Dec 18, 2018
Methods that used to be hooked into the editor update tick are now able to be
unhooked and will not automatically be assigned via the PlayServicesResolver's
static constructor if auto resoltution is turned off in the settings.
Original: #173
Change-Id: I91f5019f2dec77f9470f38ac8c9fb978a022d7a6
Copy link
Contributor

I ended up merging this in e6d3a26

@googlesamples googlesamples locked and limited conversation to collaborators Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Reviewers
1 more reviewer

@stewartmiles stewartmiles stewartmiles left review comments

Reviewers whose approvals may not affect merge requirements
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /