Skip to content

Commit 14930fc

Browse files
Update ZAP to pick up swiftUnavailable changes. (#28085)
And mark some Darwin codegen bits as swiftUnavailable.
1 parent 1694d34 commit 14930fc

File tree

6 files changed

+27
-7
lines changed

6 files changed

+27
-7
lines changed

integrations/docker/images/chip-cert-bins/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ARG COMMITHASH=7b99e6399c6069037c613782d78132c69b9dcabb
88
# ZAP Development install, so that it runs on both x64 and arm64
99
# Generally this should match with the ZAP version that is used for codegen within the
1010
# specified SHA
11-
ARG ZAP_VERSION=v2023.05.22-nightly
11+
ARG ZAP_VERSION=v2023.07.19-nightly
1212

1313
# Ensure TARGETPLATFORM is set
1414
RUN case ${TARGETPLATFORM} in \

scripts/setup/zap.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
"mac-amd64",
99
"windows-amd64"
1010
],
11-
"tags": ["version:2@v2023.05.22-nightly.1"]
11+
"tags": ["version:2@v2023.07.19-nightly.1"]
1212
},
1313
{
1414
"_comment": "Always get the amd64 version on mac until usable arm64 zap build is available",
1515
"path": "fuchsia/third_party/zap/mac-amd64",
1616
"platforms": ["mac-arm64"],
17-
"tags": ["version:2@v2023.05.22-nightly.1"]
17+
"tags": ["version:2@v2023.07.19-nightly.1"]
1818
}
1919
]
2020
}

scripts/setup/zap.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2023.05.22-nightly
1+
v2023.07.19-nightly

scripts/tools/zap/zap_execution.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Use scripts/tools/zap/version_update.py to manage ZAP versioning as many
2424
# files may need updating for versions
2525
#
26-
MIN_ZAP_VERSION = '2023.5.22'
26+
MIN_ZAP_VERSION = '2023.7.19'
2727

2828

2929
class ZapTool:

src/darwin/Framework/CHIP/templates/availability.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@
5454
# Please examine codegen carefully when using "removed" to make
5555
# sure all the things that should have been removed have been.
5656
#
57+
# * "swiftUnavailable": Can contain clusters, commands, attributes, etc as
58+
# described above for "introduced" and "deprecated". This
59+
# can be used to mark APIs with NS_SWIFT_UNAVAILABLE,
60+
# typically when an API was renamed between two names that
61+
# map to the same Swift name and then both names were
62+
# deprecated.
63+
#
5764
# * "provisional": Can contain clusters, commands, attributes, etc as described
5865
# above for "introduced" and "deprecated". Items can be
5966
# defined as provisional to prevent code generation for them.
@@ -7394,6 +7401,18 @@
73947401
ModeSelect:
73957402
Feature:
73967403
OnOff: DEPONOFF
7404+
swiftUnavailable:
7405+
bitmap values:
7406+
NetworkCommissioning:
7407+
WiFiSecurity:
7408+
# The bitmap got renamed to WiFiSecurityBitmap, so now both
7409+
# the Wpa* and WPA* names on WiFiSecurity are deprecated.
7410+
# They get mapped to Swift with identical names, which leads
7411+
# to the names being ambiguous. Mark the "Wpa*" as
7412+
# unavailable to Swift to work around this.
7413+
- WpaPersonal
7414+
- Wpa2Personal
7415+
- Wpa3Personal
73977416
provisional:
73987417
clusters:
73997418
## Not ready at cutoff

src/darwin/Framework/CHIP/zap-generated/MTRBaseClusters.h

+3-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)