-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Move Timestamp class from Firestore to Firebase Core #13221
Conversation
Apple API Diff ReportCommit: ae746d4 [BUILD ERROR] FirebaseFirestoreFirebaseCoreClasses[ADDED] FIRTimestamp[ADDED] FIRTimestampSwift:
+ class Timestamp : NSObject , NSCopying
+ init ( seconds : Int64 , nanoseconds : Int32 )
+ convenience init ( date : Date )
+ convenience init ()
+ func dateValue () -> Date
+ func compare ( _ other : Timestamp ) -> ComparisonResult
+ var seconds : Int64 { get }
+ var nanoseconds : Int32 { get }
Objective-C:
+ @interface FIRTimestamp : NSObject < NSCopying >
+ - ( nonnull instancetype ) initWithSeconds :( int64_t ) seconds nanoseconds :( int32_t ) nanoseconds ;
+ + ( nonnull instancetype ) timestampWithSeconds :( int64_t ) seconds nanoseconds :( int32_t ) nanoseconds ;
+ + ( nonnull instancetype ) timestampWithDate :( nonnull NSDate * ) date ;
+ + ( nonnull instancetype ) timestamp ;
+ - ( nonnull NSDate * ) dateValue ;
+ - ( NSComparisonResult ) compare :( nonnull FIRTimestamp * ) other ;
+ @property ( nonatomic , readonly ) int64_t seconds ;
+ @property ( nonatomic , readonly ) int32_t nanoseconds ; [BUILD ERROR] FirebaseFirestoreInternal |
Coverage Report 1Affected Products
Test Logs |
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.
Good to merge to main after July 8th.
It can merge to the release-11.0 branch before that.
Hi @paulb777 , just want to double check, I can merge to |
Yes - 10.29.0 is releasing and the release-11.0 branch has merged to main. It looks like there are some conflicts. Let icore know if you have any questions about them. |
- [changed] Move `Timestamp` class into `FirebaseCore`. `FirebaseFirestore.Timestamp` | ||
was changed to `FirebaseCore.Timestamp`. (#13221) |
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.
FirebaseFirestore.Timestamp
was changed toFirebaseCore.Timestamp
.
@paulb777 – This is a small break, but I believe we could add:
@_exported import class FirebaseCore.Timestamp
to selectively import and re-export that class so it stills appears under the FirebaseFirestore
namespace (like what was done with Swift extensions post-consolidation). This would make the move non-breaking.
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.
SGTM. It should minimize the break.
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.
Should I create a new PR to add this line in FirebaseFirestoreSwift.swift
or there is a pr working in progress?
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.
@cherylEnkidu, sure! I haven't started anything. For all the files in this PR where you needed to add import FirebaseCore
, I think you should be able to just replace those with @_exported import class FirebaseCore.Timestamp
.
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.
Got it, I will send you a PR shortly.
Move
Timestamp
class intoFirebaseCore
.FirebaseFirestore.Timestamp
was changed toFirebaseCore.Timestamp
.