diff options
author | Gil <mcg@google.com> | 2017-10-04 20:45:10 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-04 20:45:10 -0700 |
commit | 4dd7ec8e4d6243820d4f877ccfd76c5b4a076dd5 (patch) | |
tree | 0eb9d88d38dc600778a414a761fb647efdda5360 /Firestore | |
parent | 5496eff88f3d1c386f10a3765afa0373cff12e17 (diff) |
Add an NS_SWIFT_NAME for FIRSnapshotMetadata (#334)
Fixes b/67332554
Note that this is a breaking change for Swift users of the API.
Diffstat (limited to 'Firestore')
-rw-r--r-- | Firestore/CHANGELOG.md | 3 | ||||
-rw-r--r-- | Firestore/Example/SwiftBuildTest/main.swift | 17 | ||||
-rw-r--r-- | Firestore/Source/Public/FIRSnapshotMetadata.h | 3 |
3 files changed, 21 insertions, 2 deletions
diff --git a/Firestore/CHANGELOG.md b/Firestore/CHANGELOG.md index 3630619..53d222e 100644 --- a/Firestore/CHANGELOG.md +++ b/Firestore/CHANGELOG.md @@ -1,2 +1,5 @@ +# Unreleased +- [fixed] Add an NS_SWIFT_NAME for FIRSnapshotMetadata + # 2017-10-03 -- v0.8.0 - Initial public release. diff --git a/Firestore/Example/SwiftBuildTest/main.swift b/Firestore/Example/SwiftBuildTest/main.swift index ff6c0dd..3b8219b 100644 --- a/Firestore/Example/SwiftBuildTest/main.swift +++ b/Firestore/Example/SwiftBuildTest/main.swift @@ -275,10 +275,23 @@ func transactions() { func types() { // Just highlighting the types of everything, though devs can/will often omit them. - let _: Firestore; + // This list comes from: + // + // grep -r ^FIR_SWIFT_NAME Firestore/Source/Public | sed 's/.*(/let _: /; s/)/;/' let _: CollectionReference; + let _: DocumentChange; + let _: DocumentListenOptions; let _: DocumentReference; - let _: Query; let _: DocumentSnapshot; + let _: FieldPath; + let _: FieldValue; + let _: Firestore; + let _: FirestoreSettings; + let _: GeoPoint; + let _: QueryListenOptions; + let _: Query; let _: QuerySnapshot; + let _: SnapshotMetadata; + let _: Transaction; + let _: WriteBatch; } diff --git a/Firestore/Source/Public/FIRSnapshotMetadata.h b/Firestore/Source/Public/FIRSnapshotMetadata.h index 7fdd49c..04a6b45 100644 --- a/Firestore/Source/Public/FIRSnapshotMetadata.h +++ b/Firestore/Source/Public/FIRSnapshotMetadata.h @@ -16,9 +16,12 @@ #import <Foundation/Foundation.h> +#import "FIRFirestoreSwiftNameSupport.h" + NS_ASSUME_NONNULL_BEGIN /** Metadata about a snapshot, describing the state of the snapshot. */ +FIR_SWIFT_NAME(SnapshotMetadata) @interface FIRSnapshotMetadata : NSObject - (instancetype)init NS_UNAVAILABLE; |