Skip to content

feat(core): util method for finding window scenes - #16675

Merged
daymxn merged 8 commits into
mainfrom
dlr/find-window-scene-util
Sep 23, 2026
Merged

daymxn merged 8 commits into
mainfrom
dlr/find-window-scene-util

Conversation

@daymxn

@daymxn daymxn commented Sep 21, 2026

Copy link
Copy Markdown
Member

Per b/564463076,

This adds a util method to FIRSceneDelegateFinder for finding the active window scene. I found that there's a lot of existing methods that need this functionality (eg; FIAM has an extension for it, auth has AuthDefaultUIDelegate, and app distro has FIRAppDistributionUIService), and I also needed this method for a migration from UIApplication.statusBarOrientation.

Furthermore, since this method's implementation mirrored the existing findForegroundSceneForApplication so much, I decided to abstract the behavior into a new findForegroundSceneForApplication:matchingSelector: method; which both of the other methods dispatch to.

This PR also renames FIRSceneDelegateFinder to FIRSceneFinder, since its usage has become a bit more generic.

Finally, this PR also includes tests for the added methods, and documentation.

#no-changelog

@daymxn
daymxn requested a review from ncooke3 September 21, 2026 16:22
@daymxn daymxn self-assigned this Sep 21, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

@daymxn
daymxn enabled auto-merge (squash) September 21, 2026 16:22
@daymxn daymxn added this to the Firebase 13 - M187 milestone Sep 21, 2026
@daymxn
daymxn disabled auto-merge September 21, 2026 17:16
@daymxn
daymxn merged commit 28fb2c8 into main Sep 23, 2026
117 of 119 checks passed
@daymxn
daymxn deleted the dlr/find-window-scene-util branch September 23, 2026 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants