In this guide we will see how we can use ShapeShift in an Android project.
Installation
Include the following dependency in your build.gradle file.
implementation 'dev.krud:shapeshift:0.8.0'
// Add Maven Central to your repositories if needed
repositories {
mavenCentral()
}
Usage
All of ShapeShift's features are available in Android. Continue to the guide or jump directly to the , or APIs.
ShapeShift uses reflection for its mapping functionality. If ProGuard is enabled in the project then mapped models should be excluded from obfuscation in order for the mapping to work.