Skip to content

Commit 57b61a8

Browse files
committed
make FIRDocumentListenOptions.includeMetadataChanges private
as discussed in Firestore API discussion, the name clashes creates confusion. Android SDK already not exposing the property; here change iOS SDK to match it.
1 parent 293c6e2 commit 57b61a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Firestore/Source/API/FIRDocumentReference.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ @interface FIRDocumentListenOptions ()
4848
- (instancetype)initWithIncludeMetadataChanges:(BOOL)includeMetadataChanges
4949
NS_DESIGNATED_INITIALIZER;
5050

51+
@property(nonatomic, assign, readonly) BOOL includeMetadataChanges;
52+
5153
@end
5254

5355
@implementation FIRDocumentListenOptions

Firestore/Source/Public/FIRDocumentReference.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ NS_SWIFT_NAME(DocumentListenOptions)
3636

3737
- (instancetype)init;
3838

39-
@property(nonatomic, assign, readonly) BOOL includeMetadataChanges;
40-
4139
/**
4240
* Sets the includeMetadataChanges option which controls whether metadata-only changes (i.e. only
4341
* `FIRDocumentSnapshot.metadata` changed) should trigger snapshot events. Default is NO.

0 commit comments

Comments
 (0)