First of all, thanks for contributing! We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
Have you fixed a bug or written a new check and want to share it? Many thanks!
We use Github Flow, so all changes happen through pull requests.
- Fork the repo and create your branch from master.
- If you've added code, add tests.
- If you've changed APIs, update the documentation.
- If you've changed public facing behavior, update the changelog.
- Ensure the test suite passes.
- Make sure your code lints.
- Have a proper commit history (we advise you to rebase and amend rather than fixup).
- Issue that pull request against the
main
branch!
Please, take a moment to write meaningful commit messages. Here is a well-known citation on how to write great commit message:
Well-crafted Git commit message is the best way to communicate context about a change to fellow developers (and indeed to their future selves). A diff will tell you what changed, but only the commit message can properly tell you why.
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how
Chris Beams - How to Write a Git Commit Message
- Download Android Studio or IntelliJ with Android tools
- Use Java 8 or below to run Gradle commands
- Building project:
./gradlew build
- Running Java tests:
./gradlew check
- Running Android tests:
./gradlew connectedCheck
app
: test application to try the SDKpublisher-sdk
: the Android SDK and its testspublisher-sdk-tests
: activities for Android tests of the SDKtest-utils
: helping module to assist both Java and Android tests
New codes are expected to be written in Kotlin rather than in Java.
If using IntelliJ or Android Studio, please use the coding style stored in this repository:
.idea/codeStyles
.
For Java code, the coding style roughly follows the Google Java Style Guide
For Kotlin code, the coding style follows the Android Kotlin Style Guide
By contributing, you agree that your contributions will be licensed under its MIT License.