forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Darwin API review fixes for MTRSetupPayload and MTROptionalQRCodeInfo. (
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.
- Loading branch information
1 parent
8e63ca5
commit f88f7bb
Showing
16 changed files
with
1,389 additions
and
1,228 deletions.
There are no files selected for viewing
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 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 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 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 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 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 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
Oops, something went wrong.