From 7814aa97b423ff14c6a7b55cbc2e3d4f0ff231e4 Mon Sep 17 00:00:00 2001 From: Viktor Radchenko Date: Mon, 20 Aug 2018 21:22:15 -0700 Subject: [PATCH] Exclude crash section from the Privacy --- Trust/Settings/Types/Analitics.swift | 4 ---- .../Settings/ViewControllers/PrivacyViewController.swift | 8 -------- Trust/Settings/ViewModels/AnaliticsViewModel.swift | 2 -- 3 files changed, 14 deletions(-) diff --git a/Trust/Settings/Types/Analitics.swift b/Trust/Settings/Types/Analitics.swift index 3a9f1bfd1d..cdde963f04 100644 --- a/Trust/Settings/Types/Analitics.swift +++ b/Trust/Settings/Types/Analitics.swift @@ -3,7 +3,6 @@ import UIKit enum Analitics: String { - case crashlytics case branch case answer @@ -11,14 +10,11 @@ enum Analitics: String { switch self { case .answer: return R.string.localizable.dailyUsage() case .branch: return R.string.localizable.deferredDeepLinking() - case .crashlytics: return R.string.localizable.crashReports() } } var description: String { switch self { - case .crashlytics: - return R.string.localizable.settingsAnaliticsCrashlyticsDescription() case .branch: return R.string.localizable.settingsAnaliticsBranchDescription() case .answer: diff --git a/Trust/Settings/ViewControllers/PrivacyViewController.swift b/Trust/Settings/ViewControllers/PrivacyViewController.swift index 29851510d6..26829853ed 100644 --- a/Trust/Settings/ViewControllers/PrivacyViewController.swift +++ b/Trust/Settings/ViewControllers/PrivacyViewController.swift @@ -35,13 +35,5 @@ final class PrivacyViewController: FormViewController { self?.viewModel.branch.update(with: enabled) Branch.setTrackingDisabled(!enabled) } - form +++ Section(footer: viewModel.crashlytics.description) - - <<< SwitchRow { - $0.title = viewModel.crashlytics.title - $0.value = viewModel.crashlytics.isEnabled - }.onChange { [weak self] row in - self?.viewModel.crashlytics.update(with: row.value ?? false) - } } } diff --git a/Trust/Settings/ViewModels/AnaliticsViewModel.swift b/Trust/Settings/ViewModels/AnaliticsViewModel.swift index 572c6093e3..35c92a96da 100644 --- a/Trust/Settings/ViewModels/AnaliticsViewModel.swift +++ b/Trust/Settings/ViewModels/AnaliticsViewModel.swift @@ -8,8 +8,6 @@ struct AnaliticsViewModel { let branch = Analitics.branch - let crashlytics = Analitics.crashlytics - var title: String { return NSLocalizedString("settings.privacy.title", value: "Privacy", comment: "") }