Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 2.32 KB

README.md

File metadata and controls

32 lines (22 loc) · 2.32 KB

Android Arsenal

Base App Android

Base skeleton structure to start every new project, based on the design patters suggested by Robert C. Martin (aka Uncle Bob) on his clean architecture.

base_app_android is the project which we use at Refineria Web to start any new Android project. It presents a structure of 3 layers, domain, data and presentation; this approach has been chosen with the purpose of creating an application that conducts unit testing and also allow the portability between platforms, mainly iOS.

The application implements a minimal example using the Github Api. The purpose is to illustrate in a simple way the natural workflow derived from this kind of architecture, using the classes created in the foundation packages in every one of the 3 layers.

To facility the use of this project as a common base one for any new project, a gradle task called freshStart has been created. This task removes the earlier mentioned minimal example, leaving the appliaction in an optimal state to start any new project.

Just run the next command from any terminal located at the root project:

$ ./gradlew freshStart

After that, build and clean project

Some considerations:

    $ nano ~/.bash_profile
	export JAVA8_HOME=/Library/Java/JavaVirtualMachines/jdk8_etc/Contents/Home
	export JAVA7_HOME=/Library/Java/JavaVirtualMachines/jdk7_etc/Contents/Home
	export PATH=$PATH:$JAVA8_HOME:$JAVA7_HOME

Also, specify in Android Studio the JDK Location pointing to jdk8 /Library/Java/JavaVirtualMachines/jdk8_etc/Contents/Home