aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Gil <mcg@google.com>2018-04-16 14:46:03 -0700
committerGravatar GitHub <noreply@github.com>2018-04-16 14:46:03 -0700
commit33701fbc9c34d221fef330c934271a028daea0e5 (patch)
tree53108578fc0260cd7ca40bb1ac8d7f8bf6630273
parenta25d05487435d397f3b8cd399ee8355eae497f0d (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.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)'
;;
*)