Skip to content

Commit 039b564

Browse files
Merge branch 'master' into tv-casting-app-stop-connect-when-user-navigates-back-before-confirming-passcode-in-commission
2 parents b6fe65e + fb64160 commit 039b564

10 files changed

+14
-15
lines changed

src/darwin/Framework/CHIP/MTRCommissioneeInfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ NS_ASSUME_NONNULL_BEGIN
2525
* Information read from the commissionee device during commissioning.
2626
*/
2727
NS_SWIFT_SENDABLE
28-
MTR_NEWLY_AVAILABLE
28+
MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4))
2929
@interface MTRCommissioneeInfo : NSObject <NSCopying, NSSecureCoding>
3030

3131
/**

src/darwin/Framework/CHIP/MTRCommissioningParameters.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
100100
* Read device type information from all endpoints during commissioning.
101101
* Defaults to NO.
102102
*/
103-
@property (nonatomic, assign) BOOL readEndpointInformation MTR_NEWLY_AVAILABLE;
103+
@property (nonatomic, assign) BOOL readEndpointInformation MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));
104104

105105
@end
106106

src/darwin/Framework/CHIP/MTRDeviceController.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
273273
* Forget any information we have about the device with the given node ID. That
274274
* includes clearing any information we have stored about it.
275275
*/
276-
- (void)forgetDeviceWithNodeID:(NSNumber *)nodeID MTR_NEWLY_AVAILABLE;
276+
- (void)forgetDeviceWithNodeID:(NSNumber *)nodeID MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));
277277

278278
/**
279279
* Compute a PASE verifier for the desired setup passcode.

src/darwin/Framework/CHIP/MTRDeviceControllerDelegate.h

+2-3
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,11 @@ MTR_AVAILABLE(ios(16.4), macos(13.3), watchos(9.4), tvos(16.4))
9494
* so the information delivered by this notification should not be trusted.
9595
*/
9696
- (void)controller:(MTRDeviceController *)controller
97-
readCommissioneeInfo:(MTRCommissioneeInfo *)info MTR_NEWLY_AVAILABLE;
97+
readCommissioneeInfo:(MTRCommissioneeInfo *)info MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));
9898

9999
- (void)controller:(MTRDeviceController *)controller
100100
readCommissioningInfo:(MTRProductIdentity *)info
101-
MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
102-
MTR_NEWLY_DEPRECATED("Use controller:readCommissioneeInfo:");
101+
MTR_DEPRECATED("Use controller:readCommissioneeInfo:", ios(17.0, 18.4), macos(14.0, 15.4), watchos(10.0, 11.4), tvos(17.0, 18.4));
103102

104103
/**
105104
* Notify the delegate when the suspended state changed of the controller, after this happens

src/darwin/Framework/CHIP/MTRDeviceType.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ MTR_AVAILABLE(ios(18.2), macos(15.2), watchos(11.2), tvos(18.2))
5555

5656
@end
5757

58-
MTR_NEWLY_AVAILABLE
58+
MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4))
5959
@interface MTRDeviceType () <NSCopying>
6060
@end
6161

src/darwin/Framework/CHIP/MTRDeviceTypeRevision.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ MTR_AVAILABLE(ios(17.6), macos(14.6), watchos(10.6), tvos(17.6))
4444
/**
4545
* Initializes the receiver based on the values in the specified struct.
4646
*/
47-
- (nullable instancetype)initWithDeviceTypeStruct:(MTRDescriptorClusterDeviceTypeStruct *)deviceTypeStruct MTR_NEWLY_AVAILABLE;
47+
- (nullable instancetype)initWithDeviceTypeStruct:(MTRDescriptorClusterDeviceTypeStruct *)deviceTypeStruct MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));
4848

4949
@property (nonatomic, copy, readonly) NSNumber * deviceTypeID;
5050
@property (nonatomic, copy, readonly) NSNumber * deviceTypeRevision;
@@ -53,11 +53,11 @@ MTR_AVAILABLE(ios(17.6), macos(14.6), watchos(10.6), tvos(17.6))
5353
* Returns the MTRDeviceType corresponding to deviceTypeID,
5454
* or nil if deviceTypeID does not represent a known device type.
5555
*/
56-
@property (nonatomic, copy, readonly, nullable) MTRDeviceType * typeInformation MTR_NEWLY_AVAILABLE;
56+
@property (nonatomic, copy, readonly, nullable) MTRDeviceType * typeInformation MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));
5757

5858
@end
5959

60-
MTR_NEWLY_AVAILABLE
60+
MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4))
6161
@interface MTRDeviceTypeRevision () <NSSecureCoding>
6262
@end
6363

src/darwin/Framework/CHIP/MTREndpointInfo.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ NS_ASSUME_NONNULL_BEGIN
2424
* Meta-data about an endpoint of a Matter node.
2525
*/
2626
NS_SWIFT_SENDABLE
27-
MTR_NEWLY_AVAILABLE
27+
MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4))
2828
@interface MTREndpointInfo : NSObject <NSCopying, NSSecureCoding>
2929

3030
- (instancetype)init NS_UNAVAILABLE;

src/darwin/Framework/CHIP/MTRProductIdentity.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ MTR_AVAILABLE(ios(17.0), macos(14.0), watchos(10.0), tvos(17.0))
3535

3636
@end
3737

38-
MTR_NEWLY_AVAILABLE
38+
MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4))
3939
@interface MTRProductIdentity () <NSCopying, NSSecureCoding>
4040
@end
4141

src/darwin/Framework/CHIP/MTRSetupPayload.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
175175
/**
176176
* Generate a random Matter-valid setup PIN.
177177
*/
178-
+ (NSUInteger)generateRandomPIN MTR_NEWLY_DEPRECATED("Please use generateRandomSetupPasscode");
178+
+ (NSUInteger)generateRandomPIN MTR_DEPRECATED("Please use generateRandomSetupPasscode", ios(16.1, 18.4), macos(13.0, 15.4), watchos(9.1, 11.4), tvos(16.1, 18.4));
179179

180180
/**
181181
* Generate a random Matter-valid setup passcode.
@@ -218,7 +218,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
218218
* Check whether the provided setup passcode (represented as an unsigned
219219
* integer) is a valid setup passcode.
220220
*/
221-
+ (BOOL)isValidSetupPasscode:(NSNumber *)setupPasscode MTR_NEWLY_AVAILABLE;
221+
+ (BOOL)isValidSetupPasscode:(NSNumber *)setupPasscode MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));
222222

223223
@end
224224

src/darwin/Framework/CHIP/XPC Protocol/MTRXPCServerProtocol.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ MTR_AVAILABLE(ios(18.3), macos(15.3), watchos(11.3), tvos(18.3))
7171
// - (oneway void)deviceController:(NSUUID *)controller addServerEndpoint:(MTRServerEndpoint *)endpoint withReply:(void (^)(BOOL success))reply;
7272
// - (oneway void)deviceController:(NSUUID *)controller removeServerEndpoint:(MTRServerEndpoint *)endpoint;
7373

74-
- (oneway void)deviceController:(NSUUID *)controller deleteNodeID:(NSNumber *)nodeID MTR_NEWLY_AVAILABLE;
74+
- (oneway void)deviceController:(NSUUID *)controller deleteNodeID:(NSNumber *)nodeID MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));
7575

7676
- (oneway void)deviceController:(NSUUID *)controller registerNodeID:(NSNumber *)nodeID;
7777
- (oneway void)deviceController:(NSUUID *)controller unregisterNodeID:(NSNumber *)nodeID;

0 commit comments

Comments
 (0)