aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--Firestore/Example/SwiftBuildTest/main.swift2
-rwxr-xr-xscripts/if_changed.sh4
2 files changed, 3 insertions, 3 deletions
diff --git a/Firestore/Example/SwiftBuildTest/main.swift b/Firestore/Example/SwiftBuildTest/main.swift
index 87b6cb4..00839c4 100644
--- a/Firestore/Example/SwiftBuildTest/main.swift
+++ b/Firestore/Example/SwiftBuildTest/main.swift
@@ -304,7 +304,7 @@ func listenToDocuments(matching query: Query) {
func listenToQueryDiffs(onQuery query: Query) {
let listener = query.addSnapshotListener { snap, error in
if let snap = snap {
- for change in snap.documentChanges() {
+ for change in snap.documentChanges {
switch change.type {
case .added:
print("New document: \(change.document.data())")
diff --git a/scripts/if_changed.sh b/scripts/if_changed.sh
index 08ca96d..b075a97 100755
--- a/scripts/if_changed.sh
+++ b/scripts/if_changed.sh
@@ -50,11 +50,11 @@ else
;;
Firestore-xcodebuild)
- check_changes '^Firestore/(core|third_party)'
+ check_changes '^Firestore'
;;
Firestore-cmake)
- check_changes '^Firestore'
+ check_changes '^Firestore/(core|third_party)'
;;
*)