Skip to content

Commit

Permalink
Set the right versions for the initial Darwin API in availability.yam…
Browse files Browse the repository at this point in the history
…l. (#24116)

This should add availability annotations to all the code-generated
APIs that did not have them yet.
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Oct 27, 2023
1 parent 22c47af commit 9839617
Show file tree
Hide file tree
Showing 10 changed files with 16,943 additions and 10,390 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/zap_regeneration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

runs-on: ubuntu-20.04
container:
image: connectedhomeip/chip-build:0.6.21
image: connectedhomeip/chip-build:0.6.22
defaults:
run:
shell: sh
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/zap_templates.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

runs-on: ubuntu-20.04
container:
image: connectedhomeip/chip-build:0.6.21
image: connectedhomeip/chip-build:0.6.22
defaults:
run:
shell: sh
Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/templates/MTRBaseClusters.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ NS_ASSUME_NONNULL_BEGIN
*
* {{description}}
*/
{{availability (asUpperCamelCase name preserveAcronyms=true)~}}
{{availability (asUpperCamelCase name preserveAcronyms=true)}}
@interface MTRBaseCluster{{asUpperCamelCase name preserveAcronyms=true}} : MTRCluster

- (instancetype _Nullable)initWithDevice:(MTRBaseDevice *)device
Expand Down
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/templates/MTRClusters.zapt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ NS_ASSUME_NONNULL_BEGIN
* Cluster {{name}}
* {{description}}
*/
{{availability (asUpperCamelCase name preserveAcronyms=true)~}}
{{availability (asUpperCamelCase name preserveAcronyms=true)}}
@interface MTRCluster{{asUpperCamelCase name preserveAcronyms=true}} : MTRCluster

- (instancetype _Nullable)initWithDevice:(MTRDevice *)device
Expand Down
14 changes: 7 additions & 7 deletions src/darwin/Framework/CHIP/templates/availability.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@
# introduced/deprecated, not the construct itself.
# * "global attributes": An array of names of global attributes.
# * "apis": An array of API labels that codegen can use.
# * "renames": Can contain clusters, attributes, etc as described above, with
# the one difference that instead of an array the value is a hash
# with new names as keys and old names as values.

- release: "Initial release"
versions:
""
# For now initial versions are "" to minimize changes to generated code
# until after the initial landing.
# ios: "16.1"
# macos: "13.0"
# watchos: "9.1"
# tvos: "16.1"
ios: "16.1"
macos: "13.0"
watchos: "9.1"
tvos: "16.1"
introduced:
clusters:
- Identify
Expand Down
14,380 changes: 9,245 additions & 5,135 deletions src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

Large diffs are not rendered by default.

6,029 changes: 3,219 additions & 2,810 deletions src/darwin/Framework/CHIP/zap-generated/MTRClusterConstants.h

Large diffs are not rendered by default.

4,731 changes: 3,167 additions & 1,564 deletions src/darwin/Framework/CHIP/zap-generated/MTRClusters.h

Large diffs are not rendered by default.

1,465 changes: 874 additions & 591 deletions src/darwin/Framework/CHIP/zap-generated/MTRCommandPayloadsObjc.h

Large diffs are not rendered by default.

706 changes: 427 additions & 279 deletions src/darwin/Framework/CHIP/zap-generated/MTRStructsObjc.h

Large diffs are not rendered by default.

0 comments on commit 9839617

Please sign in to comment.