Skip to content

Commit

Permalink
Fix SwiftLint
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Apr 11, 2024
1 parent b43a468 commit 6885adc
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"location" : "https://github.com/DuckDuckGo/BrowserServicesKit",
"state" : {
"branch" : "dominik/sentry-appstore",
"revision" : "e55997d7e19741f8e393877893f3e4fe41a9c22b"
"revision" : "f6ac4b52028be3b60fadc4cd2bb7d2c11fcf59cf"
}
},
{
Expand Down
14 changes: 0 additions & 14 deletions DuckDuckGo/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,20 +156,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
}
}

// DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
// guard let viewController = self.window?.rootViewController else {
// return
// }
// let dataPayloads = ["test report details test report details test report details test report details test report details\n\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details".data(using: .utf8)!]
// let crashReportUploaderOnboarding = CrashCollectionOnboarding(appSettings: AppDependencyProvider.shared.appSettings)
// crashReportUploaderOnboarding.presentOnboardingIfNeeded(for: dataPayloads, from: viewController) { shouldSend in
// if shouldSend {
// print("sending")
// }
// }
// self.crashReportUploaderOnboarding = crashReportUploaderOnboarding
// }

clearTmp()

_ = DefaultUserAgentManager.shared
Expand Down
1 change: 1 addition & 0 deletions DuckDuckGo/CrashCollectionOnboardingView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ private struct ScrollDisabledIfAvailable: ViewModifier {

#Preview {
let model = CrashCollectionOnboardingViewModel(appSettings: AppDependencyProvider.shared.appSettings)
// swiftlint:disable:next line_length
model.setReportDetails(with: ["test report details test report details test report details test report details test report details\n\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details\ntest report details".data(using: .utf8)!])
return CrashCollectionOnboardingView(model: model)
}

0 comments on commit 6885adc

Please sign in to comment.