This repository has been archived by the owner. It is now read-only.
Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
69 additions
and 0 deletions.
- +4 −0 Client.xcodeproj/project.pbxproj
- +4 −0 Client/Application/AppDelegate.swift
- +14 −0 Cliqz/Services/SettingsPrefs.swift
- +14 −0 Cliqz/Settings/CliqzAppSettingsOptions.swift
- +1 −0 Cliqz/Settings/CliqzAppSettingsTableViewController.swift
- +32 −0 Cliqz/Settings/Custom Settings/SendCrashReportsTableViewController.swift
| @@ -0,0 +1,32 @@ | ||
| // | ||
| // SendCrashReportsTableViewController.swift | ||
| // Client | ||
| // | ||
| // Created by Mahmoud Adam on 3/20/18. | ||
| // Copyright © 2018 Cliqz. All rights reserved. | ||
| // | ||
| import UIKit | ||
|
|
||
| class SendCrashReportsTableViewController: ToggleSubSettingsTableViewController { | ||
| // MARK:- Abstract methods Implementation | ||
| override func getViewName() -> String { | ||
| return "crash_reports" | ||
| } | ||
|
|
||
| override func getToggles() -> [Bool] { | ||
| return [SettingsPrefs.shared.getAutoForgetTabPref()] | ||
| } | ||
|
|
||
| override func getToggleTitles() -> [String] { | ||
| return [self.title ?? ""] | ||
| } | ||
|
|
||
| override func getSectionFooters() -> [String] { | ||
| return [NSLocalizedString("We use opensource software Sentry (http://sentry.io) for our crash reports. these reports do not contain any personal data.", tableName: "Cliqz", comment: "[Settings -> Send Crash Reports] Footer text")] | ||
| } | ||
|
|
||
| override func saveToggles(isOn: Bool, atIndex: Int) { | ||
| SettingsPrefs.shared.updateSendCrashReportsPref(isOn) | ||
| } | ||
| } |