8000
Skip to content

[AI] Lower minimum required deployment targets#15928

Merged
andrewheard merged 6 commits intomainfrom
ah/ai-deployment-target
Mar 12, 2026
Merged

[AI] Lower minimum required deployment targets#15928
andrewheard merged 6 commits intomainfrom
ah/ai-deployment-target

Conversation

@andrewheard
Copy link
Copy Markdown
Contributor
@andrewheard andrewheard commented Mar 11, 2026

This lowers the minimum required deployment target for the Firebase AI Logic APIs to match the rest of the Firebase SDKs, where possible:

platforms: [.iOS(.v15), .macCatalyst(.v15), .macOS(.v10_15), .tvOS(.v15), .watchOS(.v7)],

Specifically, this drops the macOS requirement from macOS 12.0 to 10.15 and watchOS 8.0 to 7.0. The streaming APIs rely on a macOS 12+ / watchOS+ 8.0 APIs under the hood and availability annotations remain on those.

The primary motivation of this PR is to reduce development friction by dropping hundreds of @available(...) annotations throughout the codebase. Older platform support is an added bonus.

#no-changelog

@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

Customization

To customize 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 counter productive. 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.

@andrewheard andrewheard changed the title [AI] Reduce minimum deployment target [AI] Lower minimum required deployment targets Mar 12, 2026
Copy link
Copy Markdown
Contributor
@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request effectively lowers the minimum deployment targets for macOS and watchOS, which is a significant improvement for developer experience. The changes are extensive, primarily involving the removal of @available annotations, and have been executed with care. I've identified one critical issue concerning an incorrect availability annotation that could lead to a crash on older macOS versions, and I've provided a fix. Additionally, I've included a minor suggestion to enhance code clarity. Overall, this is excellent work on a large-scale refactoring task.

@andrewheard andrewheard marked this pull request as ready for review March 12, 2026 22:32
@andrewheard andrewheard requested a review from a team as a code owner March 12, 2026 22:32
@andrewheard andrewheard merged commit 150698e into main Mar 12, 2026
169 checks passed
@andrewheard andrewheard deleted the ah/ai-deployment-target branch March 12, 2026 22:33
@ncooke3
Copy link
Copy Markdown
Member
ncooke3 commented Mar 16, 2026

@andrewheard @paulb777 , just confirming, this commit is not supposed to be in the release, right? It currently is not staged in release. I just want to double check that is the intention.

@paulb777
Copy link
Copy Markdown
Member

Confirmed. No rush

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0