25
25
static const BOOL kDefaultPersistenceEnabled = YES ;
26
26
static const int64_t kDefaultCacheSizeBytes = 100 * 1024 * 1024 ;
27
27
static const int64_t kMinimumCacheSizeBytes = 1 * 1024 * 1024 ;
28
- // TODO(b/73820332): flip the default.
29
- static const BOOL kDefaultTimestampsInSnapshotsEnabled = NO ;
28
+ static const BOOL kDefaultTimestampsInSnapshotsEnabled = YES ;
30
29
31
30
@implementation FIRFirestoreSettings
32
31
@@ -54,7 +53,10 @@ - (BOOL)isEqual:(id)other {
54
53
self.isSSLEnabled == otherSettings.isSSLEnabled &&
55
54
self.dispatchQueue == otherSettings.dispatchQueue &&
56
55
self.isPersistenceEnabled == otherSettings.isPersistenceEnabled &&
56
+ #pragma clang diagnostic push
57
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
57
58
self.timestampsInSnapshotsEnabled == otherSettings.timestampsInSnapshotsEnabled &&
59
+ #pragma clang diagnostic pop
58
60
self.cacheSizeBytes == otherSettings.cacheSizeBytes ;
59
61
}
60
62
@@ -63,7 +65,10 @@ - (NSUInteger)hash {
63
65
result = 31 * result + (self.isSSLEnabled ? 1231 : 1237 );
64
66
// Ignore the dispatchQueue to avoid having to deal with sizeof(dispatch_queue_t).
65
67
result = 31 * result + (self.isPersistenceEnabled ? 1231 : 1237 );
68
+ #pragma clang diagnostic push
69
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
66
70
result = 31 * result + (self.timestampsInSnapshotsEnabled ? 1231 : 1237 );
71
+ #pragma clang diagnostic pop
67
72
result = 31 * result + (NSUInteger )self.cacheSizeBytes ;
68
73
return result;
69
74
}
@@ -74,7 +79,10 @@ - (id)copyWithZone:(nullable NSZone *)zone {
74
79
copy.sslEnabled = _sslEnabled;
75
80
copy.dispatchQueue = _dispatchQueue;
76
81
copy.persistenceEnabled = _persistenceEnabled;
82
+ #pragma clang diagnostic push
83
+ #pragma clang diagnostic ignored "-Wdeprecated-declarations"
77
84
copy.timestampsInSnapshotsEnabled = _timestampsInSnapshotsEnabled;
85
+ #pragma clang diagnostic pop
78
86
copy.cacheSizeBytes = _cacheSizeBytes;
79
87
return copy;
80
88
}
0 commit comments