-
Notifications
You must be signed in to change notification settings - Fork 1.6k
[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
Conversation
Using Gemini Code AssistThe 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
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 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.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
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. |
Agreed that the RTDB integration tests shouldn't block. |
|
There was a problem hiding this 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.
/gemini review |
There was a problem hiding this 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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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]
static func MIMETypeForExtension(_ fileExtension: String?) -> String { | |
static func MIMETypeForExtension(_ fileExtension: String?) -> String { |
/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 |
There was a problem hiding this 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' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
.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, *) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- | Platform | Firebase 12 | | ||
| ------------- | ------------- | | ||
| iOS | **15.0** | | ||
| tvOS | **15.0** | | ||
| macOS | 10.15 | | ||
| watchOS | 7.0 | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
- | 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 | |
#pragma clang diagnostic push | ||
#pragma clang diagnostic ignored "-Wdeprecated-declarations" | ||
SecCertificateRef cert = SecTrustGetCertificateAtIndex(secTrust, i); | ||
#pragma clang diagnostic pop |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s.cocoapods_version = '>= 1.12.0' | ||
|
||
s.ios.deployment_target = '12.0' | ||
s.ios.deployment_target = '15.0' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CocoaPods fix for #14732