From ea2953135a957b74eb318b862fa1b8403ed0765c Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Thu, 21 Mar 2024 15:31:38 -0700 Subject: [PATCH] Making this new protocol optional, so as to not break clients (#32676) --- .../Framework/CHIP/MTRDeviceController+XPC.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/src/darwin/Framework/CHIP/MTRDeviceController+XPC.h b/src/darwin/Framework/CHIP/MTRDeviceController+XPC.h index 46543090951080..23844afb9afb33 100644 --- a/src/darwin/Framework/CHIP/MTRDeviceController+XPC.h +++ b/src/darwin/Framework/CHIP/MTRDeviceController+XPC.h @@ -94,14 +94,6 @@ typedef void (^MTRValuesHandler)(id _Nullable values, NSError * _Nullable error) */ @protocol MTRDeviceControllerServerProtocol -@optional -/** - * Gets device controller ID corresponding to a specific fabric ID - */ -- (void)getDeviceControllerWithFabricId:(uint64_t)fabricId - completion:(MTRDeviceControllerGetterHandler)completion - MTR_DEPRECATED("This never called.", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); - @required /** * Gets any available device controller ID @@ -184,6 +176,15 @@ typedef void (^MTRValuesHandler)(id _Nullable values, NSError * _Nullable error) attributeId:(NSNumber * _Nullable)attributeId completion:(MTRValuesHandler)completion; +@optional + +/** + * Gets device controller ID corresponding to a specific fabric ID + */ +- (void)getDeviceControllerWithFabricId:(uint64_t)fabricId + completion:(MTRDeviceControllerGetterHandler)completion + MTR_DEPRECATED("This never called.", ios(16.1, 16.4), macos(13.0, 13.3), watchos(9.1, 9.4), tvos(16.1, 16.4)); + /** * Requests downloading some logs */