ShapeShift
  • Overview
  • Introduction
    • Installation
    • Quick Start
  • API Documentation
    • Annotations
    • Kotlin DSL
    • Java Builder
  • Features
    • Transformers
    • Auto Mapping
    • Conditions
    • Decorators
    • Object Suppliers
    • Mapping Strategy
  • Guides
    • Implicit Transformers
    • Instance Mapping
    • Advanced Mapping
    • Spring Usage
    • Android Usage
Powered by GitBook
On this page
  • Installation
  • Usage

Was this helpful?

Export as PDF
  1. Guides

Android Usage

Using ShapeShift with an Android project.

PreviousSpring Usage

Last updated 2 years ago

Was this helpful?

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.

Quick Start
Annotations
Kotlin DSL
Java Builder