Skip to content

Define the public API and hide all non-public methods and fields #770

@KacperKluka

Description

@KacperKluka

At the moment almost everything is public and accessible by SDK users. This means that the users have access even to the things which were not meant to be visible. If they start modifying them the SDK can go into unexpected states and cause problems. We should only expose the things that are meant to be public and nothing more.

As a reference to what should be public and what should not, we can use the feature spec (there's an IDL in there but it is not complete, unfortunately). Another source of truth may be the docs and tutorials or other SDK APIs (like ably-cocoa)

We should be careful to not modify the already existing APIs so the code changes probably should be limited to changes in fields and methods visibility (e.g. from public to private)

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

Labels

code-qualityAffects the developer experience when working in our codebase.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions