104 lines
3.4 KiB
Markdown
104 lines
3.4 KiB
Markdown
|
|
|
|
# KAHelpers
|
|
|
|
### Android extensions and helper classes for easier Kotlin development
|
|
|
|
[](https://jitpack.io/#FunkyMuse/KAHelpers)
|
|
[](https://kotlinlang.org) [](https://developer.android.com/guide/) []( https://twitter.com/intent/tweet?url=https%3A%2F%2Ftwitter.com%2Fintent%2Ftweet%3Fhttps%3A%2F%2Fgithub.com%2FCraZyLegenD%2FSet-Of-Useful-Kotlin-Extensions-and-Helpers&text=Kotlin%20Extensions%20and%20Class%20Helpers)
|
|

|
|

|
|
|
|
### If my noble work has helped you, consider becoming a [](https://github.com/sponsors/FunkyMuse/).
|
|
|
|
## Usage
|
|
1. Add JitPack to your project build.gradle
|
|
|
|
```gradle
|
|
allprojects {
|
|
repositories {
|
|
...
|
|
maven { url 'https://jitpack.io' }
|
|
}
|
|
}
|
|
```
|
|
|
|
2. Add the dependency in the application build.gradle
|
|
|
|
```gradle
|
|
dependencies {
|
|
|
|
def utilsVersion = "2.2.10" // or check the latest from jitpack
|
|
|
|
//biometrics
|
|
implementation "com.github.FunkyMuse.KAHelpers:biometrics:$utilsVersion"
|
|
|
|
//coroutines
|
|
implementation "com.github.FunkyMuse.KAHelpers:coroutines:$utilsVersion"
|
|
|
|
//customviews
|
|
implementation "com.github.FunkyMuse.KAHelpers:customviews:$utilsVersion"
|
|
|
|
//data structures and algorithms
|
|
implementation "com.github.FunkyMuse.KAHelpers:dataStructuresAndAlgorithms:$utilsVersion"
|
|
|
|
//database handlers
|
|
implementation "com.github.FunkyMuse.KAHelpers:database:$utilsVersion"
|
|
|
|
//glide
|
|
implementation "com.github.FunkyMuse.KAHelpers:glide:$utilsVersion"
|
|
|
|
//gson
|
|
implementation "com.github.FunkyMuse.KAHelpers:gson:$utilsVersion"
|
|
|
|
//Joda Date Time
|
|
implementation "com.github.FunkyMuse.KAHelpers:jodaDateTime:$utilsVersion"
|
|
|
|
//the most basic extensions that rely on the basic Android APIs such as context, content providers etc...
|
|
implementation "com.github.FunkyMuse.KAHelpers:kotlinextensions:$utilsVersion"
|
|
|
|
//moshi
|
|
implementation "com.github.FunkyMuse.KAHelpers:moshi:$utilsVersion"
|
|
|
|
//recyclerview
|
|
implementation "com.github.FunkyMuse.KAHelpers:recyclerview:$utilsVersion"
|
|
|
|
//reflection
|
|
implementation "com.github.FunkyMuse.KAHelpers:reflection:$utilsVersion"
|
|
|
|
//retrofit
|
|
implementation "com.github.FunkyMuse.KAHelpers:retrofit:$utilsVersion"
|
|
|
|
//RxJava3
|
|
implementation "com.github.FunkyMuse.KAHelpers:rx:$utilsVersion"
|
|
|
|
//security
|
|
implementation "com.github.FunkyMuse.KAHelpers:security:$utilsVersion"
|
|
|
|
//viewbinding
|
|
implementation "com.github.FunkyMuse.KAHelpers:viewbinding:$utilsVersion"
|
|
|
|
}
|
|
```
|
|
|
|
3. To not run into any issues in your application build.gradle add
|
|
|
|
```gradle
|
|
compileOptions {
|
|
sourceCompatibility = 1.8
|
|
targetCompatibility = 1.8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
```
|
|
|
|
|
|
## Contributing
|
|
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
|
|
|
|
## License
|
|
[MIT](https://choosealicense.com/licenses/mit/)
|