Several utility classes that I like to use in my Android projects.
A base Fragment class containing several utilities, such as methods for handling the included dialogs. Almost all of the app's fragments should implement this class.
Several generic dialogs. Use BaseFragment to open them.
Several utility classes. To use SharedPrefUtil or ConnectivityChecker, you need to inject their dependencies using Dagger2.
To use in a project, add Jitpack to your project level gradle file:
allprojects {
repositories {
jcenter() //add this line
maven { url "https://jitpack.io" } //add this line
}
}
And in your app's gradle file, add:
dependencies {
implementation 'com.github.gohlinka2:gohlinka2_utils:{current release}' //add this line
}
And replace {current release}
with the release you want.
That's it!