Skip to content

Instantly share code, notes, and snippets.

@theapache64
Created November 15, 2020 18:41
Show Gist options
  • Save theapache64/36a556d3fbbcdaa00c8cbe9911110d91 to your computer and use it in GitHub Desktop.
Save theapache64/36a556d3fbbcdaa00c8cbe9911110d91 to your computer and use it in GitHub Desktop.
Add this to your .bashrc file
function mvvmize () {
# to hold local data source classes such as room,sqlite,realm etc.
mkdir -p data/local &&
# to hold remote data source such as Retrofit, OkHttp etc
mkdir -p data/remote &&
# to hold repository classes that will manage both local and remote data sources
mkdir -p data/repositories &&
# to hold dagger modules
mkdir -p di/modules &&
# to hold common utility packages
mkdir utils &&
# store featurs
mkdir -p features/main && mv MainActivity.kt features/main/
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment