First off, thank you for considering contributing to AppDimens! It’s contributions like yours that make the developer experience better for everyone handling Android's screen fragmentation.
If you find a calculation error, a rendering glitch, or a crash:
- Check the Issues page to see if it has already been reported.
- If not, open a new issue. Please include:
- The device model or screen density (DPI) where the issue occurred.
- A brief code snippet or XML layout showing how the library was used.
- The expected vs. actual result.
Have an idea for a new scaling strategy or support for more screen buckets?
- Open an issue with the tag
enhancement. - Explain the use case and how it benefits other developers using the SDPS pattern.
Ready to contribute code? Follow these steps:
- Fork the repository.
- Create a Branch for your feature or fix (
git checkout -b feature/amazing-feature). - Commit your changes with clear messages (e.g.,
fix: adjust scaling for xxhdpi tablets). - Push to the branch (
git push origin feature/amazing-feature). - Open a Pull Request.
- Code Style: Follow standard Kotlin/Compose coding conventions.
- Documentation: If you add a new scaling method or parameter, please update the README or add KDoc comments.
- Precision: Since this library focuses on UI precision, ensure that any changes to dimension calculations are tested across multiple screen configurations.
By contributing, you agree that your contributions will be licensed under the project's Apache License 2.0.