Mappy
š§ Mappy is an Annotation Processor to auto-generate mapper functions for your architecture layer models. It creates mappers for database Entities and UI models.
Install / Use
/learn @kl3jvi/MappyREADME
<img src="https://raw.githubusercontent.com/kl3jvi/mappy/764dd6626852d563e21472f4cef30c640a188ff1/assets/mappy.svg">
<p align="center">
š§ Mappy is a Annotation Processor to auto-generate mapper functions for your architecture layer models. It creates mappers for database Entities and UI models.
</p>
Why Mappy?
Mappy generates extension functions for each different model. You can reduce writing repeated mapper classes for every different model by auto-generating based on annotation processor.<br><br>
You can massively reduce writing repeated files such as _Mapper classes.
Note-Usage: The names of field to be excluded should be exactly the same as their defined name on data class.
Gradle Setup
To use Mappy library in your project, you need to follow steps below.
Step 1. Add the JitPack repository to your build file
<details open> <summary>Kotlin DSL</summary>allprojects {
repositories {
maven (url = "https://jitpack.io")
}
}
</details>
<details>
<summary>Groovy</summary>
allprojects {
repositories {
maven {url = 'https://jitpack.io' }
}
}
</details>
Step 2. Add the dependency
implementation("com.github.kl3jvi.mappy:mappy-core:1.0.1")
kapt("com.github.kl3jvi.mappy:mappy-processor:1.0.1")
