-
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: Address various MTRSetupPayload issues #33286
Darwin: Address various MTRSetupPayload issues #33286
Conversation
PR #33286: Size comparison from fcfc9bc to cac7ccd Decreases (14 builds for cc13x4_26x4, cc32xx, mbed, nrfconnect, qpg, stm32)
Full report (14 builds for cc13x4_26x4, cc32xx, mbed, nrfconnect, qpg, stm32)
|
cac7ccd
to
d6fe2cb
Compare
d6fe2cb
to
4f1a51b
Compare
PR #33286: Size comparison from fcfc9bc to 4f1a51b Decreases (4 builds for cc32xx, mbed, stm32)
Full report (4 builds for cc32xx, mbed, stm32)
|
4f1a51b
to
acd0aec
Compare
PR #33286: Size comparison from fcfc9bc to acd0aec Increases (3 builds for bl702l, linux)
Decreases (69 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
API: - Conform to NSCopying and implement isEqual / hash - Simplify a number of methods to not return NSError - Add initWithPayload: as a replacement for setupPayloadWithOnboardingPayload:error: - Add initWithQRCode: and initWithManualPairingCode: for cases where payload type is known. - Add vendorElements as a replacement for getAllOptionalVendorData: - Add vendorElementWithTag: - Add removeVendorElementWithTag: - Add addOrReplaceVendorElement: Behaviour fixes: - Allow QRCodes with unknown discovery methods to be parsed - Correctly generate a long manualEntryCode when a non-standard flow is indicated - Include vendor elements in qrCodeString - Preserve vendor elements in encodeWithCoder / initWithCoder Also simplify the implementation by acting as a direct wrapper of chip::SetupPayload. Implement parsing in MTRSetupPayload directly and implement the deprecated MTR*PayloadParser classes in terms of it, instead of the other way around.
acd0aec
to
032e1f9
Compare
PR #33286: Size comparison from 062e063 to 032e1f9 Decreases (2 builds for efr32)
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
032e1f9
to
a3466cc
Compare
PR #33286: Size comparison from 062e063 to a3466cc Decreases (2 builds for efr32)
Full report (71 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, mbed, nrfconnect, nxp, psoc6, qpg, stm32, telink)
|
Requesting changes, as we need to keep confirmed to ObjectiveC framework conventions. If we want to produce additional refined for swift things, those should be separate. We should not be mixing worlds. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving pending removal or explanation of the new QRCode initializer.
API:
Behaviour fixes:
Also simplify the implementation by acting as a direct wrapper of chip::SetupPayload.
Implement parsing in MTRSetupPayload directly and implement the deprecated
MTR*PayloadParser
classes in terms of it, instead of the other way around.