Skip to content

kmmraj/androidcleancode-generator

Repository files navigation

Android Clean Code Template Tool - Auto generate needed files from Android Studio

Inspired from Clean Architecture from Uncle Bob, Google Android samples and Clean Swift

This design is chosen with a singular focus - testablity.
Example of this template in action here

Quick Start

  • Clone this project and copy the contents to the following location in your Android Studio

  • Windows : Navigate to the location of the templates folder :
    cd {ANDROID_STUDIO_LOCATION}/plugins/android/lib/templates/other/

  • MacOS: Navigate to the location of the templates folder : cd /Applications/Android\ Studio.app/Contents/plugins/android/lib/templates/other/

  • Restart Android Studio - It should work with out any issues

Contribute

Welcome to contribute, feel free to change and open a PR.

License

MIT License

TODO

  1. Create scaffolding for Fragments
  2. Create scaffolding for TestClasses

Credits

This project ideas aren't new in any way. Credit has to be given to the following projects, listed in autobiographical order.

Clean Architecture

clean-swift

Make your own File Templates in Android Studio