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