From bb6f3f5c90927e6fc900ea2a7cf3f9700ed7ccb3 Mon Sep 17 00:00:00 2001 From: Mykola Mokhnach Date: Mon, 24 Aug 2026 12:10:02 +0200 Subject: [PATCH] deprecate: mark /calibrate endpoint as deprecated No longer needed after appium-xcuitest-driver handles calibration itself (appium/appium-xcuitest-driver#2948). Kept functional for backward compatibility, logs a deprecation warning on each request. --- WebDriverAgentLib/Routing/FBWebServer.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/WebDriverAgentLib/Routing/FBWebServer.m b/WebDriverAgentLib/Routing/FBWebServer.m index 691ce4499..af0d82b3e 100644 --- a/WebDriverAgentLib/Routing/FBWebServer.m +++ b/WebDriverAgentLib/Routing/FBWebServer.m @@ -269,6 +269,9 @@ - (void)registerServerKeyRouteHandlers [response respondWithString:@"Health Check

I-AM-ALIVE

"]; }]; + // Deprecated: no longer needed since appium-xcuitest-driver handles calibration + // itself (https://github.com/appium/appium-xcuitest-driver/pull/2948). Kept for + // backward compatibility; will be removed in a future major release. NSString *calibrationPage = @"" "{\"x\":null,\"y\":null}" "
" @@ -276,6 +279,7 @@ - (void)registerServerKeyRouteHandlers "
" ""; [self.server get:@"/calibrate" withBlock:^(RouteRequest *request, RouteResponse *response) { + [FBLogger logFmt:@"The /calibrate endpoint is deprecated and will be removed in a future release"]; [response respondWithString:calibrationPage]; }];