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

[Infra] Bump podspec min. versions #15015

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

Merged
ncooke3 merged 31 commits into main from nc/min-os
Jun 24, 2025
Merged

[Infra] Bump podspec min. versions #15015

ncooke3 merged 31 commits into main from nc/min-os
Jun 24, 2025

Conversation

@ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Jun 20, 2025
edited
Loading

CocoaPods fix for #14732

Copy link
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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue comments and review comments.
Help /gemini help Displays a list of available commands.

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 is currently in preview and 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 to provide feedback.

This comment was marked as outdated.

This comment was marked as outdated.

This comment was marked as outdated.

Copy link
Member Author

ncooke3 commented Jun 23, 2025
edited
Loading

RTDB

  • Restarted RTDB integration tests

Integration tests are silently failing in main. Not sure why this PR surfaced them when nightlies didn't. See silent failure in nightlies: https://github.com/firebase/firebase-ios-sdk/actions/runs/15821265434/job/44590876032#step:8:1595

Update: This requires more investigation, but I don't think it should block this PR.

Copy link
Member

Agreed that the RTDB integration tests shouldn't block.

@ncooke3 ncooke3 requested a review from paulb777 June 24, 2025 16:10
Copy link
Member Author

ncooke3 commented Jun 24, 2025
edited
Loading

Copy link
Member

@paulb777 paulb777 left a comment

Choose a reason for hiding this comment

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

Can be done in a separate PR: The deprecateddynamicLinkDomain should be removed and changelogged.

@ncooke3 ncooke3 merged commit a0fd16d into main Jun 24, 2025
453 of 458 checks passed
@ncooke3 ncooke3 deleted the nc/min-os branch June 24, 2025 17:22
@ncooke3 ncooke3 added this to the Firebase 12 - M167 milestone Jun 24, 2025
Copy link
Member Author

ncooke3 commented Jul 18, 2025

/gemini review

Copy link
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

The pull request bumps the minimum deployment versions for iOS, tvOS, and watchOS across various Firebase podspecs and example projects. It also includes a code change to suppress deprecated declaration warnings in FSRWebSocket.m and adds backward compatibility for older OS versions in StorageUtils.swift.


class func MIMETypeForExtension(_ fileExtension: String?) -> String {
guard let fileExtension = fileExtension else {
static func MIMETypeForExtension(_ fileExtension: String?) -> String {
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot Jul 18, 2025

Choose a reason for hiding this comment

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

low

Changing class func to static func makes the function a type method, which is generally preferred for utility functions that don't rely on instance state. [^1]

Suggested change
static func MIMETypeForExtension(_ fileExtension: String?) -> String {
static func MIMETypeForExtension(_ fileExtension: String?) -> String {

Copy link
Member Author

ncooke3 commented Jul 18, 2025

/gemini review. pay careful attention to the podspec file changes. apart from dependency version changes to 12.0.0, be on the lookout for any possible regressions

Copy link
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 PR bumps the minimum deployment targets for iOS and tvOS to 15.0, and watchOS to 7.0 across the project. The changes are extensive and touch many configuration files.

I've found a critical issue in Firebase.podspec and a few minor issues related to code style and correctness in other files. Please address them to maintain code quality.

ss.ios.deployment_target = '15.0'
ss.osx.deployment_target = '10.15'
ss.tvos.deployment_target = '13.0'
ss.ios.deployment_target = '15.0'
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot Jul 18, 2025

Choose a reason for hiding this comment

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

critical

This appears to be a copy-paste error. The tvos.deployment_target was replaced with another ios.deployment_target. It should be updated for tvOS instead.

 ss.tvos.deployment_target = '15.0'

.takeRetainedValue() {
return mimeType as String
// TODO: Remove `else` when min. supported macOS is 11.0+.
if #available(macOS 11.0, iOS 14.0, tvOS 14.0, *) {
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot Jul 18, 2025

Choose a reason for hiding this comment

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

medium

UTType(filenameExtension:) is available on watchOS 7.0 and later. Add watchOS 7.0 to this availability check to use the modern API on watchOS as well.

Suggested change
if #available(macOS 11.0, iOS 14.0, tvOS 14.0, *) {
if #available(macOS 11.0, iOS 14.0, tvOS 14.0, watchOS 7.0,*) {

Comment on lines +4 to +9
- | Platform | Firebase 12 |
| ------------- | ------------- |
| iOS | **15.0** |
| tvOS | **15.0** |
| macOS | 10.15 |
| watchOS | 7.0 |
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot Jul 18, 2025

Choose a reason for hiding this comment

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

low

The markdown table is malformed, which will cause it to render incorrectly. Here's a corrected version that should render properly as a table within the list item.

Suggested change
- | Platform | Firebase 12 |
| ------------- | -------------|
| iOS | **15.0** |
| tvOS | **15.0** |
| macOS | 10.15 |
| watchOS | 7.0 |
| Platform | Firebase 12 |
|-----------|-------------|
| iOS | **15.0** |
| tvOS | **15.0** |
| macOS | 10.15 |
| watchOS | 7.0 |

Comment on lines +1483 to +1486
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
SecCertificateRef cert = SecTrustGetCertificateAtIndex(secTrust, i);
#pragma clang diagnostic pop
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot Jul 18, 2025

Choose a reason for hiding this comment

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

low

This change adds a pragma to suppress a deprecation warning. While this is correct given the new minimum deployment target of iOS 15.0, consider replacing the deprecated function with its recommended alternative, SecTrustCopyCertificateChain, when time permits.

Comment on lines 22 to +24
s.cocoapods_version = '>= 1.12.0'

s.ios.deployment_target = '12.0'
s.ios.deployment_target = '15.0'
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot Jul 18, 2025

Choose a reason for hiding this comment

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

low

For improved readability, align the = signs.

 s.ios.deployment_target = '15.0'
 s.osx.deployment_target = '10.15'
 s.tvos.deployment_target = '15.0'

@firebase firebase locked and limited conversation to collaborators Jul 24, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

@paulb777 paulb777 paulb777 approved these changes

+1 more reviewer

@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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