Commit 21576b7547
21576b75478e2a1ff7a2b189e83bcca97403cce3
parent: 253e57bd3b
Verified · cmc
cmc <hello@cleberg.net> · 2026-04-04 00:04 UTC
fix(services): rename unused URLSession delegate params to _
Layout: unified · split
DomainDig.xcodeproj/project.pbxproj
+4 −4
| @@ -265,7 +265,7 @@ |
| 265 | 265 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 266 | 266 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; |
| 267 | 267 | CODE_SIGN_STYLE = Automatic; |
| 268 | | CURRENT_PROJECT_VERSION = 9; |
| 268 | CURRENT_PROJECT_VERSION = 10; |
| 269 | 269 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 270 | 270 | ENABLE_PREVIEWS = YES; |
| 271 | 271 | GENERATE_INFOPLIST_FILE = YES; |
| @@ -282,7 +282,7 @@ |
| 282 | 282 | "$(inherited)", |
| 283 | 283 | "@executable_path/Frameworks", |
| 284 | 284 | ); |
| 285 | | MARKETING_VERSION = 1.7.0; |
| 285 | MARKETING_VERSION = 1.7.1; |
| 286 | 286 | PRODUCT_BUNDLE_IDENTIFIER = net.cleberg.DomainDig; |
| 287 | 287 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 288 | 288 | STRING_CATALOG_GENERATE_SYMBOLS = YES; |
| @@ -301,7 +301,7 @@ |
| 301 | 301 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; |
| 302 | 302 | ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; |
| 303 | 303 | CODE_SIGN_STYLE = Automatic; |
| 304 | | CURRENT_PROJECT_VERSION = 9; |
| 304 | CURRENT_PROJECT_VERSION = 10; |
| 305 | 305 | DEVELOPMENT_TEAM = ZCNAX3VL9D; |
| 306 | 306 | ENABLE_PREVIEWS = YES; |
| 307 | 307 | GENERATE_INFOPLIST_FILE = YES; |
| @@ -318,7 +318,7 @@ |
| 318 | 318 | "$(inherited)", |
| 319 | 319 | "@executable_path/Frameworks", |
| 320 | 320 | ); |
| 321 | | MARKETING_VERSION = 1.7.0; |
| 321 | MARKETING_VERSION = 1.7.1; |
| 322 | 322 | PRODUCT_BUNDLE_IDENTIFIER = net.cleberg.DomainDig; |
| 323 | 323 | PRODUCT_NAME = "$(TARGET_NAME)"; |
| 324 | 324 | STRING_CATALOG_GENERATE_SYMBOLS = YES; |
DomainDig/HTTPHeadersService.swift
+2 −2
| @@ -101,8 +101,8 @@ private final class TaskMetricsDelegate: NSObject, URLSessionTaskDelegate { |
| 101 | 101 | private(set) var metrics: URLSessionTaskMetrics? |
| 102 | 102 | |
| 103 | 103 | func urlSession( |
| 104 | | _ session: URLSession, |
| 105 | | task: URLSessionTask, |
| 104 | _ _: URLSession, |
| 105 | task _: URLSessionTask, |
| 106 | 106 | didFinishCollecting metrics: URLSessionTaskMetrics |
| 107 | 107 | ) { |
| 108 | 108 | self.metrics = metrics |
DomainDig/RedirectChainService.swift
+4 −4
| @@ -70,10 +70,10 @@ struct RedirectChainService { |
| 70 | 70 | |
| 71 | 71 | private final class NoRedirectDelegate: NSObject, URLSessionTaskDelegate, @unchecked Sendable { |
| 72 | 72 | func urlSession( |
| 73 | | _ session: URLSession, |
| 74 | | task: URLSessionTask, |
| 75 | | willPerformHTTPRedirection response: HTTPURLResponse, |
| 76 | | newRequest request: URLRequest, |
| 73 | _ _: URLSession, |
| 74 | task _: URLSessionTask, |
| 75 | willPerformHTTPRedirection _: HTTPURLResponse, |
| 76 | newRequest _: URLRequest, |
| 77 | 77 | completionHandler: @escaping (URLRequest?) -> Void |
| 78 | 78 | ) { |
| 79 | 79 | // Don't follow redirects automatically — return nil to stop |
DomainDig/SSLCheckService.swift
+3 −3
| @@ -352,7 +352,7 @@ final class SSLSessionDelegate: NSObject, URLSessionDelegate, @unchecked Sendabl |
| 352 | 352 | } |
| 353 | 353 | |
| 354 | 354 | func urlSession( |
| 355 | | _ session: URLSession, |
| 355 | _ _: URLSession, |
| 356 | 356 | didReceive challenge: URLAuthenticationChallenge, |
| 357 | 357 | completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void |
| 358 | 358 | ) { |
| @@ -373,8 +373,8 @@ final class SSLSessionDelegate: NSObject, URLSessionDelegate, @unchecked Sendabl |
| 373 | 373 | |
| 374 | 374 | extension SSLSessionDelegate: URLSessionTaskDelegate { |
| 375 | 375 | func urlSession( |
| 376 | | _ session: URLSession, |
| 377 | | task: URLSessionTask, |
| 376 | _ _: URLSession, |
| 377 | task _: URLSessionTask, |
| 378 | 378 | didFinishCollecting metrics: URLSessionTaskMetrics |
| 379 | 379 | ) { |
| 380 | 380 | guard let transaction = metrics.transactionMetrics.last else { |