Skip to content

CottaCush/AndroidBaseProject

Repository files navigation

AndroidBaseProject

A base project to fast track mobile development.This project is setup to implement the Model-View-Presenter architecture for mobile development, it is also suggested to follow the packaging by feature style of structure.

Libraries Setup Include:

Contribution guide

Guide to contributing to CottaCush Android Projects

CheckStyle:

Exisiting projects

To Setup CheckStyle for Already existing projects kindly follow the instructions below:

  • cd to the root directory of your project

  • do mkdir config && cd "$_" ( You can also do mkdir config then subsequently cd config or whichever way is convenient for you to create the config directory and cd into it)

  • do curl -L -O https://link/to/raw/baseproject/checkstyle.xml and curl -L -O https://link/to/raw/baseproject/prepush-checks.sh to download the checkstyle and prepush script respectively into your config directory.

  • In your app/build.gradle file, add the line apply from: '../config/quality.gradle' at the top just below apply plugin: 'com.android.application'

  • In your project's build.gradle file, add the checkstyle dependency 'com.puppycrawl.tools:checkstyle:7.1.2'

  • In your root directory do chmod u+x config/prepush-checks.sh

  • Then do ln -s $PWD/config/prepush-checks.sh .git/hooks/pre-push

    For fresh projects

    To Setup CheckStyle for fresh projects that are offsprings of this baseproject's post-lint era (i.e have the scripts in the appropriate directory)

  • In your root directory do chmod u+x config/prepush-checks.sh

  • Then do ln -s $PWD/config/prepush-checks.sh .git/hooks/pre-push

Subsequently git pushes to the master repo will either fail or pass. For failed pushes find the issues at <path-to-repo/app/build/reports/checkstyle/checkstyle.xml and handle accordingly

Note :The appropriate Url for the checkstyle.xml and prepush check scripts will be updated after both files are hosted on this repository and this Note will be removed

About

A base project to fast track mobile development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published