Browse Source

Disable feedback reporting in debug builds.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
deba873edc
  1. 6
      Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift

6
Clocker/Preferences/App Feedback/AppFeedbackWindowController.swift

@ -225,13 +225,19 @@ class AppFeedbackWindowController: NSWindowController {
var firebaseDBReference: DatabaseReference!
private func sendDataToFirebase(feedbackInfo info: [String: String]) {
#if DEBUG
Logger.info("Sending a feedback in Debug builds will lead to a no-op")
#endif
guard let identifier = serialNumber else {
assertionFailure("Serial Identifier was unexpectedly nil")
return
}
#if RELEASE
firebaseDBReference = Database.database().reference()
firebaseDBReference.child("Feedback").child(identifier).setValue(info)
#endif
}
private func showSucccessOnSendingInfo() {

Loading…
Cancel
Save