Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Latest commit

 

History

History
51 lines (36 loc) · 1.38 KB

contributing.md

File metadata and controls

51 lines (36 loc) · 1.38 KB

General Contributing Guidelines

The Bottom Dialogs contributing policies and procedures can be found in the main Bottom Dialogs documentation repository’s contributing page.

To make a contribution, you'll need to be able to build the library from source and run our tests.

Building From Source

Take a look at our instructions on how to build the library from source.

Running Tests

Bottom Dialogs for Android has JVM tests as well as Emulator tests.

To run the JVM tests, do:

./gradlew test

To run the emulator tests, ensure you have a virtual device set up and do:

./gradlew connectedAndroidTest

Code Conventions

Since we all want to spend more time coding and less time fiddling with whitespace, Bottom Dialogs uses code conventions and styles to encourage consistency. Code with a consistent style is easier (and less error-prone!) to review, maintain, and understand.

Be consistent

If the style guide is not explicit about a particular situation, the cardinal rule is to be consistent. For example, take a look at the surrounding code and follow its lead, or look for similar cases elsewhere in the codebase.