Skip to content

Commit

Permalink
Update Darwin availability annotations. (#36807)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored Dec 11, 2024
1 parent 41a9dea commit 572a799
Show file tree
Hide file tree
Showing 9 changed files with 910 additions and 902 deletions.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/MTRAttributeValueWaiter.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ MTR_AVAILABLE(ios(18.3), macos(15.3), watchos(11.3), tvos(18.3))
*/
- (void)cancel;

@property (readonly, nonatomic) NSUUID * UUID MTR_NEWLY_AVAILABLE;
@property (readonly, nonatomic) NSUUID * UUID MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));

@end

Expand Down
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
/**
* Network commissioning features supported by the device.
*/
@property (nonatomic, readonly) MTRNetworkCommissioningFeature networkCommissioningFeatures MTR_NEWLY_AVAILABLE;
@property (nonatomic, readonly) MTRNetworkCommissioningFeature networkCommissioningFeatures MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));

/**
* Set the delegate to receive asynchronous callbacks about the device.
Expand Down Expand Up @@ -228,7 +228,7 @@ MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
* data-values (as described in the documentation for
* MTRDeviceResponseHandler) as values.
*/
- (NSDictionary<MTRAttributePath *, NSDictionary<NSString *, id> *> *)descriptorClusters MTR_NEWLY_AVAILABLE;
- (NSDictionary<MTRAttributePath *, NSDictionary<NSString *, id> *> *)descriptorClusters MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));

/**
* Invoke a command with a designated command path
Expand Down
5 changes: 3 additions & 2 deletions src/darwin/Framework/CHIP/MTRKeypair.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,18 +31,19 @@ NS_ASSUME_NONNULL_BEGIN
* Implementations of the keypair methods must not call into any Matter
* framework APIs.
*/
MTR_AVAILABLE(ios(16.1), macos(13.0), watchos(9.1), tvos(16.1))
@protocol MTRKeypair <NSObject>

@optional
/**
* @brief Returns a copy of the public key for the keypair.
*/
- (SecKeyRef)copyPublicKey MTR_NEWLY_AVAILABLE;
- (SecKeyRef)copyPublicKey MTR_AVAILABLE(ios(18.4), macos(15.4), watchos(11.4), tvos(18.4));

/**
* @brief Returns public key for the keypair without adding a reference. DEPRECATED - please use copyPublicKey, otherwise this will leak.
*/
- (SecKeyRef)publicKey MTR_NEWLY_DEPRECATED("Please implement copyPublicKey, this will leak otherwise");
- (SecKeyRef)publicKey MTR_DEPRECATED("Please implement copyPublicKey, this will leak otherwise", ios(16.1, 18.4), macos(13.0, 15.4), watchos(9.1, 11.4), tvos(16.1, 18.4));

/**
* @brief A function to sign a message using ECDSA
Expand Down
11 changes: 9 additions & 2 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10008,8 +10008,12 @@
- XY
- ColorTemperature

- release: "Future"
versions: "future"
- release: "8377F965-9A14-4120-AAC4-4F296BA64949"
versions:
iOS: "18.4"
macOS: "15.4"
watchOS: "11.4"
tvOS: "18.4"
introduced:
clusters:
- DishwasherAlarm
Expand Down Expand Up @@ -10632,3 +10636,6 @@
# The one bit in this bitmap is marked X in the spec, but we can't have
# an empty bitmap.
- Feature

- release: "Future"
versions: "future"
920 changes: 460 additions & 460 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

Large diffs are not rendered by default.

298 changes: 149 additions & 149 deletions src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h

Large diffs are not rendered by default.

320 changes: 160 additions & 160 deletions src/darwin/Framework/CHIP/zap-generated/MTRClusters.h

Large diffs are not rendered by default.

126 changes: 63 additions & 63 deletions src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h

Large diffs are not rendered by default.

126 changes: 63 additions & 63 deletions src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 572a799

Please sign in to comment.