diff options
author | Gil <mcg@google.com> | 2018-04-16 14:46:03 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-16 14:46:03 -0700 |
commit | 33701fbc9c34d221fef330c934271a028daea0e5 (patch) | |
tree | 53108578fc0260cd7ca40bb1ac8d7f8bf6630273 | |
parent | a25d05487435d397f3b8cd399ee8355eae497f0d (diff) |
Fix the build and travis change detection (#1117)
* Fix typo in main.swift
* Fix change detection for Firestore in Travis
-rw-r--r-- | Firestore/Example/SwiftBuildTest/main.swift | 2 | ||||
-rwxr-xr-x | scripts/if_changed.sh | 4 |
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)' ;; *) |