This is a template library to be used in android projects as a model for others libraries
Lint
Report
- Artifactory library publication
- Unit tests
- CI/CD
To add it in your project, follow the steps below:
-
Open your root
build.gradle
and add the following artifactory repository in theallprojects
section:allprojects { repositories { ... maven { url 'http://artifactory.private.cd.vivareal.io/artifactory/releases' } } }
-
Add the dependency to your app
build.gradle
:dependencies { implementation '<com.olxbr.YOURLIBRARY>:<version>' }
Visit artifactory to find the latest version of this library
-
PUT YOUR LIBRARY INSTRUCTIONS HERE
You can run the sample project using the Android Studio or using the following command on terminal:
./gradlew :sample:installDebug
Every time you perform a pull request, the pull request workflow on github actions will run unit tests automatically.
If you want to run tests locally, just use the following command on terminal:
./gradlew :lib:testDebugUnitTest
When you finished to implement a new feature and committed changes, just open a PR:
For example, if you implemented a bugfix and the PR title contains the fix:
prefix, then semantic_release fastlane plugin will bump version with patch. So, if project version is 1.0.0, the plugin will updated target versions to 1.0.1 automatically.
After reviewing and merging, the CI system will publish the new version of the aar library in the artifactory. 🚀