Skip to content

Commit

Permalink
Update Darwin availability annotations. (#28092)
Browse files Browse the repository at this point in the history
* Add availability for DeadFront feature of OnOff cluster.
* Remove provisional annotations for replaceable monitoring clusters that have
  been removed outright.
* Mark FaultInjection and the Proxy* clusters as removed, not just provisional,
  since they should not be shipping in something like their current form at all.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Feb 6, 2024
1 parent 70120ae commit 3413cb3
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 529 deletions.
6 changes: 3 additions & 3 deletions src/darwin/Framework/CHIP/templates/MTRClusterConstants.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ MTRCluster{{compatClusterNameRemapping label}}ID {{availability (compatClusterNa
{{#zcl_clusters}}
{{#if (isSupported (asUpperCamelCase label preserveAcronyms=true) isForIds=true)}}
{{~#*inline "cluster"}}{{asUpperCamelCase label preserveAcronyms=true}}{{/inline~}}
MTRClusterIDType{{>cluster}}ID {{availability (asUpperCamelCase label preserveAcronyms=true) minimalRelease="First major API revamp" isForIds=true}} = {{asMEI manufacturerCode code}},
MTRClusterIDType{{>cluster}}ID {{availability (asUpperCamelCase label preserveAcronyms=true) minimalRelease="First major API revamp" isForIds=true deprecationMessage=(concat "The " (asUpperCamelCase label preserveAcronyms=true) " cluster will be removed")}} = {{asMEI manufacturerCode code}},
{{/if}}
{{/zcl_clusters}}
};
Expand Down Expand Up @@ -89,7 +89,7 @@ MTRClusterGlobalAttribute{{asUpperCamelCase label}}ID,
{{#if (and (isSupported (asUpperCamelCase ../clusterName preserveAcronyms=true) attribute=(asUpperCamelCase label preserveAcronyms=true) isForIds=true)
(or clusterRef
(isSupported "" globalAttribute=(asUpperCamelCase label preserveAcronyms=true) isForIds=true)))}}
MTRAttributeIDTypeCluster{{>cluster}}Attribute{{>attribute}}ID {{availability (asUpperCamelCase ../clusterName preserveAcronyms=true) attribute=(asUpperCamelCase label preserveAcronyms=true) minimalRelease="First major API revamp" isForIds=true}} =
MTRAttributeIDTypeCluster{{>cluster}}Attribute{{>attribute}}ID {{availability (asUpperCamelCase ../clusterName preserveAcronyms=true) attribute=(asUpperCamelCase label preserveAcronyms=true) minimalRelease="First major API revamp" isForIds=true deprecationMessage=(concat "The " (asUpperCamelCase label preserveAcronyms=true) " attribute will be removed")}} =
{{#if clusterRef}}
{{asMEI manufacturerCode code}},
{{else}}
Expand Down Expand Up @@ -152,7 +152,7 @@ MTRCluster{{cluster}}Command{{command}}ID
{{! Takes two arguments: cluster name and command name, plus the ambient state where the command is "this" }}
{{#*inline "commandIdDecl"}}
{{#if (isSupported cluster command=command isForIds=true)}}
MTRCommandIDTypeCluster{{cluster}}Command{{command}}ID {{availability cluster command=command minimalRelease="First major API revamp" isForIds=true}} = {{asMEI manufacturerCode code}},
MTRCommandIDTypeCluster{{cluster}}Command{{command}}ID {{availability cluster command=command minimalRelease="First major API revamp" isForIds=true deprecationMessage=(concat "The " command " command will be removed")}} = {{asMEI manufacturerCode code}},
{{/if}}
{{/inline}}
{{> commandIdDecl cluster=(asUpperCamelCase ../clusterName preserveAcronyms=true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface MTR{{cluster}}Cluster{{command}}Params : NSObject <NSCopying>
{{#zcl_command_arguments}}

{{> struct_field_decl cluster=parent.parent.name type=type label=label}} {{availability ../cluster command=../command commandField=(asStructPropertyName label)}};
{{> struct_field_decl cluster=parent.parent.name type=type label=label}} {{availability ../cluster command=../command commandField=(asStructPropertyName label) deprecationMessage=(concat "The " (asStructPropertyName label) " field will be removed")}};
{{#*inline "oldNameFieldDecl"}}

{{> struct_field_decl cluster=parent.parent.name type=type label=commandField}} {{availability ../cluster command=../command commandField=commandField deprecationMessage=(concat "Please use " (asStructPropertyName label))}};
Expand Down
78 changes: 14 additions & 64 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4139,13 +4139,6 @@
- ValueA
- ValueB
- ValueC
FaultInjection:
FaultType:
- Unspecified
- SystemFault
- InetFault
- ChipFault
- CertFault
bitmaps:
Groups:
- GroupClusterFeature
Expand Down Expand Up @@ -4670,10 +4663,6 @@
clusters:
- PulseWidthModulation
- TimeSynchronization
- ProxyConfiguration
- ProxyDiscovery
- ProxyValid
- FaultInjection
attributes:
PulseWidthModulation:
- GeneratedCommandList
Expand All @@ -4697,40 +4686,10 @@
- LocalTime
- TimeZoneDatabase
- NtpServerPort
ProxyConfiguration:
- GeneratedCommandList
- AcceptedCommandList
- AttributeList
- FeatureMap
- ClusterRevision
ProxyDiscovery:
- GeneratedCommandList
- AcceptedCommandList
- AttributeList
- FeatureMap
- ClusterRevision
ProxyValid:
- GeneratedCommandList
- AcceptedCommandList
- AttributeList
- FeatureMap
- ClusterRevision
FaultInjection:
- GeneratedCommandList
- AcceptedCommandList
- AttributeList
- FeatureMap
- ClusterRevision
commands:
FaultInjection:
- FailAtFault
- FailRandomlyAtFault
TimeSynchronization:
- SetUtcTime
command payloads:
FaultInjection:
- FailAtFault
- FailRandomlyAtFault
TimeSynchronization:
- SetUtcTime
global attributes:
Expand All @@ -4746,10 +4705,6 @@
clusters:
- PulseWidthModulation
- TimeSynchronization
- ProxyConfiguration
- ProxyDiscovery
- ProxyValid
- FaultInjection

- release: "First dot-release"
versions:
Expand Down Expand Up @@ -7462,17 +7417,6 @@
- TotalColiformBacteriaConcentrationMeasurement
- TotalTrihalomethanesConcentrationMeasurement
- TurbidityConcentrationMeasurement
## Officially marked provisional: many replaceable monitoring clusters
- CeramicFilterMonitoring
- ElectrostaticFilterMonitoring
- UVFilterMonitoring
- IonizingFilterMonitoring
- ZeoliteFilterMonitoring
- OzoneFilterMonitoring
- WaterTankMonitoring
- FuelTankMonitoring
- InkCartridgeMonitoring
- TonerCartridgeMonitoring
## Not ready to be public API yet.
- ICDManagement
- LaundryWasherMode
Expand Down Expand Up @@ -7554,12 +7498,6 @@
- EventList
UserLabel:
- EventList
ProxyConfiguration:
- EventList
ProxyDiscovery:
- EventList
ProxyValid:
- EventList
BooleanState:
- EventList
ModeSelect:
Expand Down Expand Up @@ -7626,8 +7564,6 @@
- EventList
UnitTesting:
- EventList
FaultInjection:
- EventList
BasicInformation:
- EventList
BridgedDeviceBasicInformation:
Expand Down Expand Up @@ -7708,3 +7644,17 @@

- release: "Future"
versions: "future"
introduced:
bitmap values:
OnOff:
Feature:
- DeadFront
removed:
clusters:
# Clusters that really should just not be exposed, even if they're in our XML.
- FaultInjection
# Clusters that are not going to end up shipping in their current form,
# so we should not be exposing the bits we expose now.
- ProxyConfiguration
- ProxyDiscovery
- ProxyValid
8 changes: 0 additions & 8 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

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

70 changes: 0 additions & 70 deletions src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.h

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

50 changes: 0 additions & 50 deletions src/darwin/Framework/CHIP/zap-generated/MTRCallbackBridge.mm

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

Loading

0 comments on commit 3413cb3

Please sign in to comment.