-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Darwin API review fixes for MTRSetupPayload and MTROptionalQRCodeInfo. #23403
Merged
bzbarsky-apple
merged 2 commits into
project-chip:master
from
bzbarsky-apple:darwin-reland-PR-22566
Nov 1, 2022
Merged
Darwin API review fixes for MTRSetupPayload and MTROptionalQRCodeInfo. #23403
bzbarsky-apple
merged 2 commits into
project-chip:master
from
bzbarsky-apple:darwin-reland-PR-22566
Nov 1, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is a re-landing of PR 22566 but with some changes made for backwards compat. * Add MTRDiscoveryCapabilitiesUnknown to indicate capabilities unknown (e.g. manual setup code). * In MTROptionalQRCodeInfo add a "type" which is just MTROptionalQRCodeInfoType, not NSNumber. * In MTRSetupPayload, add a discoveryCapabilities which is just a MTRDiscoveryCapabilities value, not nullable NSNumber, with MTRDiscoveryCapabilitiesUnknown meaning unknown. When parsing QR code, if the value ends up as 0, reset it to MTRDiscoveryCapabilitiesOnNetwork. * Add setupPasscode as a better-named alias for setUpPINCode. * Change some QR codes in the test that had version set to 5, since the new API we're using to parse them does not allow invalid (e.g. version != 0) payloads.
PR #23403: Size comparison from 81a64dc to 3acaa33 Increases (10 builds for bl602, bl702, esp32, k32w, psoc6, telink)
Decreases (3 builds for bl702, esp32, qpg)
Full report (49 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
jtung-apple
approved these changes
Nov 1, 2022
PR #23403: Size comparison from 81a64dc to 22d9424 Increases (3 builds for k32w, psoc6)
Decreases (5 builds for cyw30739, esp32, nrfconnect, telink)
Full report (49 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
* Move Deprecated categories to the bottoms of headers. * Fix unsignedIntegerValue use. * Make sure we consistently treat a boxed 0 as "on-network" for rendezvousInformation. * Make the NSSecureCoding serialization of MTRSetupPayload backwards-compatible.
22d9424
to
8a60d41
Compare
PR #23403: Size comparison from 16f49ea to 8a60d41 Increases (11 builds for bl602, bl702, psoc6, telink)
Decreases (2 builds for esp32, nrfconnect)
Full report (49 builds for bl602, bl702, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, psoc6, qpg, telink)
|
woody-apple
approved these changes
Nov 1, 2022
adbridge
pushed a commit
to ARM-software/connectedhomeip
that referenced
this pull request
Nov 18, 2022
project-chip#23403) * Darwin API review fixes for MTRSetupPayload and MTROptionalQRCodeInfo. This is a re-landing of PR 22566 but with some changes made for backwards compat. * Add MTRDiscoveryCapabilitiesUnknown to indicate capabilities unknown (e.g. manual setup code). * In MTROptionalQRCodeInfo add a "type" which is just MTROptionalQRCodeInfoType, not NSNumber. * In MTRSetupPayload, add a discoveryCapabilities which is just a MTRDiscoveryCapabilities value, not nullable NSNumber, with MTRDiscoveryCapabilitiesUnknown meaning unknown. When parsing QR code, if the value ends up as 0, reset it to MTRDiscoveryCapabilitiesOnNetwork. * Add setupPasscode as a better-named alias for setUpPINCode. * Change some QR codes in the test that had version set to 5, since the new API we're using to parse them does not allow invalid (e.g. version != 0) payloads. * Address review comments: * Move Deprecated categories to the bottoms of headers. * Fix unsignedIntegerValue use. * Make sure we consistently treat a boxed 0 as "on-network" for rendezvousInformation. * Make the NSSecureCoding serialization of MTRSetupPayload backwards-compatible.
adbridge
pushed a commit
to ARM-software/connectedhomeip
that referenced
this pull request
Nov 18, 2022
project-chip#23403) * Darwin API review fixes for MTRSetupPayload and MTROptionalQRCodeInfo. This is a re-landing of PR 22566 but with some changes made for backwards compat. * Add MTRDiscoveryCapabilitiesUnknown to indicate capabilities unknown (e.g. manual setup code). * In MTROptionalQRCodeInfo add a "type" which is just MTROptionalQRCodeInfoType, not NSNumber. * In MTRSetupPayload, add a discoveryCapabilities which is just a MTRDiscoveryCapabilities value, not nullable NSNumber, with MTRDiscoveryCapabilitiesUnknown meaning unknown. When parsing QR code, if the value ends up as 0, reset it to MTRDiscoveryCapabilitiesOnNetwork. * Add setupPasscode as a better-named alias for setUpPINCode. * Change some QR codes in the test that had version set to 5, since the new API we're using to parse them does not allow invalid (e.g. version != 0) payloads. * Address review comments: * Move Deprecated categories to the bottoms of headers. * Fix unsignedIntegerValue use. * Make sure we consistently treat a boxed 0 as "on-network" for rendezvousInformation. * Make the NSSecureCoding serialization of MTRSetupPayload backwards-compatible.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a re-landing of PR 22566 but with some changes made for backwards compat.