这是indexloc提供的服务,不要输入任何密码
Skip to content

[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
merged 31 commits into from
Jun 24, 2025
Merged

[Infra] Bump podspec min. versions #15015

merged 31 commits into from
Jun 24, 2025

Conversation

ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Jun 20, 2025

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.

@ncooke3

This comment was marked as outdated.

@ncooke3

This comment was marked as outdated.

@ncooke3

This comment was marked as outdated.

@ncooke3
Copy link
Member Author

ncooke3 commented Jun 23, 2025

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.

@paulb777
Copy link
Member

Agreed that the RTDB integration tests shouldn't block.

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

ncooke3 commented Jun 24, 2025

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
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.

@@ -71,21 +73,28 @@ class StorageUtils {
return string.addingPercentEncoding(withAllowedCharacters: allowedSet)!
}

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

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 {

@ncooke3
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.osx.deployment_target = '10.15'
ss.tvos.deployment_target = '13.0'
ss.ios.deployment_target = '15.0'
Copy link
Contributor

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

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

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

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

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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants