DEV Community

Cover image for Android Clean Architecture Boilerplate Code Generator
Arundhati Gupta
Arundhati Gupta

Posted on • Updated on

Android Clean Architecture Boilerplate Code Generator

Clean Architecture

"Good architecture makes the system easy to understand, easy to develop, easy to maintain, and easy to deploy. The ultimate goal is to minimize the lifetime cost of the system and to maximize programmer productivity."
― Robert C. Martin

Assuming, that you are aware of what clean architecture is, I would jump over to the subject of the blog i.e. the Generator for Android Clean Architecture Boilerplate.

I don't know

Haha! Just in case, you are a newbie or are curious what clean architecture is you might want to have a look at an excellent blog on Clean Architecture and then proceed.

Have you been an app developer who has been writing code (or maybe copying code from exiting apps) while beginning to develop a new app? Then, the Android Clean Architecture Code Generator is here to save your time!

Good architecture is a must in today's fast-growing world of technology. You might have to write a bit more code (that obviously requires extra effort) in the beginning, but as you continue with development, you realise that it is worth your time.

In an effort to reduce this recurrent effort in the beginning, I have tried to come up with a code generator that provides a base Android application boilerplate based on the principles of clean architecture.

Technical Stack Used

Kotlin
RxJava and RxAndroid
Retrofit/OkHttp
Gson
Dagger 2
Timber
Stetho

Installation

Assuming you have pre-installed node.js, perform the following steps:

Install Yeoman

npm install -g yo

Install the generator-android-clean-architecture-boilerplate

npm install -g generator-android-clean-architecture-boilerplate

Generate your new project as follows:

mkdir NewApp
cd NewApp
yo android-clean-architecture-boilerplate

You may check out the complete code on GitHub. πŸ˜ƒ

Top comments (0)