Skip to content
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

Use Objective-C naming convention for Cluster method names #6442

Merged
merged 9 commits into from
May 4, 2021

Conversation

sagar-apple
Copy link
Contributor

@sagar-apple sagar-apple commented May 4, 2021

Problem

The Cluster APIs don't follow Objective-C naming convention. This results in less than perfect Swift interoperability.

Summary of Changes

  1. Added "WithXYZ" to "label" the first argument of each API
  2. Renamed completionHandler to responseHandler

@sagar-apple
Copy link
Contributor Author

Link to the only meaningful commit here: 6588850

@sagar-apple sagar-apple changed the title Use Objective-C naming convention for Cluster Method names Use Objective-C naming convention for Cluster method names May 4, 2021
@sagar-apple sagar-apple force-pushed the naming_convention branch from 8d24238 to 36f0406 Compare May 4, 2021 15:55
@woody-apple
Copy link
Contributor

@sagar-apple Darwin CI broken :)

@sagar-apple sagar-apple force-pushed the naming_convention branch from 648a360 to f5eb402 Compare May 4, 2021 17:38
@woody-apple woody-apple merged commit 9a31fbf into project-chip:master May 4, 2021
@sagar-apple sagar-apple deleted the naming_convention branch May 4, 2021 20:30
bzbarsky-apple added a commit to bzbarsky-apple/connectedhomeip that referenced this pull request May 5, 2021
This is due to a merge conflict between PR project-chip#6233 nd PR project-chip#6442.  The
completion handlers got renamed to response handlers in the latter,
but the former is still calling one of them completionHandler.
andy31415 pushed a commit that referenced this pull request May 6, 2021
This is due to a merge conflict between PR #6233 nd PR #6442.  The
completion handlers got renamed to response handlers in the latter,
but the former is still calling one of them completionHandler.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants