Fork, then clone the repo:
git clone <repourl>//TODOMake sure the project is working
./gradlew clean build test checkMake your changes and be sure that everything works fine.
./gradlew clean build test checkPush to your fork and submit a pull request.
First way to test the changes you made is writing unit, functional and/or integration tests. We encourage you to write tests for the code you wrote. To run the tests on the project run:
./gradlew testFor manual testing you can use any android project and add the plugin to your project as described on the README.md. After adding the plugin to your project you need to point its location to your local directory. To do this add:
includeBuild('path/to/Android-Checklist-Plugin/checklist'){
dependencySubstitution {
substitute module('com.commencis.checklist:checklist') with project(':')
}
}to your settings.gradle file. After that you can make your changes and run the checklist task on your android project.
If you want to add a new task, there are some steps that need to be done:
- Create your task class inside the related subpackage of
com.commencis.checklist.task - Extend
ChecklistTaskclass - Make your class open so that gradle can create that task
- Override
taskCode,taskDescriptionandtaskActionfields of theChecklistTask - Optionally override
taskTypeif your task should not work on both application and library projects - Add your task's name to the
ChecklistDataclass - Add your task with its name to
ChecklistTaskContainerclass - Make sure that [your changes work](#How to test your changes) as expected and didn't affect the existing functionality