Answering issues, participating in discussions is a great way to help, get familiar with the library, and shape its direction.
- Open the folder in Xcode (or your preferred editor with Swift support)
You can run tests using the Swift CLI by running swift test
in the root of the project.
You can also execute tests in Xcode by switching to the Test navigator and executing one or more tests.
- Get familiar with the Swift API Design Guidelines.
- Spaces, not tabs.
- Whitespace-only lines are not trimmed.
- We use SwiftLint to ensure a consistent look and feel of the library code. Your changes should contain no SwiftLint errors or warnings. Please run and check SwiftLint on any code contributions before submitting.
- Avoid bringing in new libraries or dependencies without good justification. Any PR that brings in a new library needs to make the case for why it is necessary.
All major architectural decisions are captured in our ADRs. It is worth reading these to gain context of our direction and general approach to the SDK, before writing code and submitting a PR.
All methods and types that the library makes public, should have a meaningful description and information on how to use.
It is recommended to include unit tests covering your changes.
We use Jazzy for our documentation page. To update the docs, execute ./Scripts/updatedocs.sh
We'd love it if you'd talk to us over on the Fediverse! Current maintainers and admins for TootSDK are: