Skip to content

felipejoglar/android-clean-architecture-boilerplate

Repository files navigation

Android Clean Architecture Boilerplate

License Apache 2.0 fjoglar twitter Platform Android

This is intended to be a base project to be used as a base when starting a new project.

Languages, libraries and tools used

Requirements

Getting started

First clone the boilerplate repository. Next, if you want to copy the boilerplate into your own repository follow Clone into your own repository. If you just want to get started with customising things for your own project skip onto Make it your own.

Clone into your own repository

Follow these steps if you have a repository with a branch you'd like to copy the boilerplate project into:

$ cd <path to boilerplate>
$ git remote add newrepo <path to newrepo>
$ git checkout --orphan copy
$ git commit -m "Copying boilerplate"
$ git push newrepo copy:<branch on new repo>

This will copy the boilerplate project without history to your own branch in your repository.

Make it your own

Personalise the boilerplate for your own project:

  1. Rename com.fjoglar.android.boilerplate packages to your own domain's stucture. E.g com.mydomain.myapp. See StackOverflow for steps to easily accomplish this in Android Studio.

  2. Open app/build.gradle and change the following to match your new package names:

    • applicationId "com.mydomain.myapp"
    • testInstrumentationRunner "com.mydomain.myapp.application.ApplicationTestRunner"

References

Thanks to the devs involved with these repos!

License

Copyright 2017 Felipe Joglar Santos

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.