Skip to content

Commit

Permalink
Fix demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kean committed Aug 27, 2024
1 parent 528f5ba commit 2f313fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Demo/Sources/iOS/Pulse_Demo_iOSApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ private final class AppViewModel: ObservableObject {
let log = OSLog(subsystem: "app", category: "AppViewModel")

init() {
// URLSessionProxyDelegate.enableAutomaticRegistration(logger: NetworkLogger(store: .demo))
// URLSessionProxyDelegate.enableAutomaticRegistration(logger: NetworkLogger(store: .demo))
// DispatchQueue.main.asyncAfter(deadline: .now() + .seconds(3)) {
// sendRequest()
// }
Expand All @@ -38,7 +38,9 @@ private final class AppViewModel: ObservableObject {
}

private func sendRequest() {
let session = URLSession(configuration: .default)
let session = URLSession(configuration: .default, delegate: DemoSessionDelegate(), delegateQueue: nil)
let task = session.dataTask(with: URLRequest(url: URL(string: "https://github.com/kean/Nuke/archive/refs/tags/11.0.0.zip")!))
task.resume()
}

private final class DemoSessionDelegate: NSObject, URLSessionDelegate {}

0 comments on commit 2f313fe

Please sign in to comment.