The following project is a template for building a Clean-Architecture-based Android app.
To import the template in Android Studio, follow the next steps:
- Copy the folder templates/CleanArchitecture in ${ANDROID_STUDIO_HOME}/plugins/android/lib/templates/other
- Restart Android Studio
- Create a new project: File -> New -> New Project... and choose Add No Activity (min API 19)
- Then create the Clean Architecture app: File -> New -> Activity -> and choose Clean Architecture application
- Replace the .gitignore file with the root/.gitignore template file
- Replace the gradle.properties file with the root/gradle.properties template file
- Replace the gradle/wrapper/gradle-wrapper.properties file with the root/gradle-wrapper.properties template file
- Replace the app/proguard-rules.pro file with the root/proguard-rules.pro template file
- Sync project
- Make project
- Run it!