Thank you for considering contributing to the Android Inventory Agent! Your contributions help improve the project and ensure its success. Please follow the guidelines below to ensure a smooth and productive collaboration.
By participating in this project, you agree to abide by the Code of Conduct. Please treat others with respect and professionalism.
- Search existing issues: Before reporting a bug, check if it has already been reported.
- Create a new issue: If no similar issue exists, open a new issue and provide:
- A clear and descriptive title.
- Steps to reproduce the issue.
- Expected vs. actual behavior.
- Environment details (e.g., Android version, device model).
- Attach logs and screenshots: If applicable, include logs or screenshots to help diagnose the issue.
- Fork the repository and create a new branch for your changes:
git checkout -b feature/your-feature-name
- Make your changes while adhering to the Code Style guidelines.
- Ensure all tests pass and write new tests for your changes.
- Commit your changes with clear and descriptive messages:
git commit -m "feat: add new feature description"
- Push your branch and create a Pull Request against the
main
branch.
To set up the project locally:
- Clone the repository:
git clone https://github.com/glpi-project/android-inventory-agent.git
- Open the project in Android Studio.
- Sync Gradle and resolve dependencies.
- Build and run the project using the preferred emulator or physical device.
- Follow Android's official Kotlin/Java coding standards.
- Use meaningful variable, method, and class names.
- Format your code using Android Studio's built-in formatter.
- Add comments to explain complex logic or algorithms.
- Use JUnit and / or Espresso for writing unit and UI tests.
- Place your tests in the appropriate directories:
<flavor>/src/test/
for unit tests.<flavor>/src/androidTest/
for instrumentation tests.
- To run all tests, execute the following command:
./gradlew test ./gradlew connectedAndroidTest
- Tests are automatically run using Firebase Test Lab via GitHub Actions for all Pull Requests.
For questions or discussions, feel free to:
- Open an issue.
- Join the GLPI community forums.
- Reach out to the maintainers directly on GitHub.
We appreciate your interest in improving Android Inventory Agent. Thank you for contributing!