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.
Fix Darwin availability bits for command payloads:
1) Add missing isForCommandPayload=true to declarations of the old command payload names. Otherwise we were ending up with SetUtcTime being marked provisional, which is not backwards-compatible. 2) We need to declare fields in the old-name command payloads with the right availability, since the availability in the super-class is "too new". The implementation then needs to use @dynamic. This is similar to how structs work. 3) SetUTCTime cannot be provisional (and hence unavailable) if SetUtcTime is supposed to be available and inherits from it. This requires exposing SetUTCTime and its fields in the first release where we started doing "provisionally available". Items 1 and 2 are handled by using "completeDecl" for both the old and new name.
- Loading branch information
1 parent
7b4df1c
commit 7aab094
Showing
5 changed files
with
1,583 additions
and
191 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
Oops, something went wrong.