Collection of Advance Kotlin Extension Functions
KotlinSupplement is a simple library with collection of advance useful Kotlin extension functions.
- Activity
- Context
- Date Format Conversion
- Format Conversion
- Graphics
- Safety Function for String, Array and Collections etc
- String
- Validations
- Misc
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.thesarangal:kotlinsupplement:VERSION_CODE'
}
Done! The first time you request a project JitPack checks out the code, builds it and serves the build artifacts (jar, aar).
Kotlin:
/* Any Class which is extended from Context Class */
toast("Welcome to KotlinSupplement")
/* If there is reference of Context */
context.toast("Welcome to KotlinSupplement")
Contributions to this library are welcome. If you find a bug or have a feature request, please open an issue on the GitHub repository.
This library is released under the MIT License. You are free to use, modify, and distribute the library for commercial and non-commercial purposes, with attribution to the author.