generator-andy v0.1.0
Andy
Introduction
NOTE: Currently Andy is in heavy development! It's not finished and stable by any means, so expect a lot of bugs and nasty things! You've been warned, pal!
Let's think about how we start a new Android project:
- Open Android Studio.
- Fill the fields (application name, package name…)
- Select what support libraries do you want.
- Wait 'till Android Studio indexes everything.
- Start editing
build.gradleto add dependencies, then your custom deploy code and configurations (and scratch your head thinking why some things don't work as expected!)… - Start coding!
Introducing… ANDY!
Andy helps you to quickly create a well configured, well behaved Android application (including support for Android TV, Android Wear, Glass and project libraries too!). It's the spiritual successor to Android KickstartR project but updated to the modern times!
With Andy you have de facto the following features:
- It will download automatically all required
SDKsandSupport Librariesas necessary because it's configured to use the greatSDK Manager Pluginwritten by the brave and the bold Jake Warthon! - It will create automatically all
androidTest,debugandreleasedirectories! And… as it creates anandroidTestdirectory, it includesExpressoby default! - It creates a
version.propertiesfile to update your app version easily! - It configures
gradleto display a dialog (or password prompt) when signing your application (as Tim Rodes has described in this great post!). - It enables by default the
gradle daemonto speed things up when compiling from terminal (Android Studio enables this by default). - It generates a properly
.gitignorefile. - More to come!
Andy is built using Yeoman, a fantastic tool for creating scaffolds for Web and whatever application you could imagine of!
Getting Started
Installation
As Andy is a Yeoman plugin, it's mandatory to install first Yeoman if you didn't do it before:
$ npm install -g yoOnce the step before is finished, you can install Andy properly:
npm install -g generator-andyUsage
Create a new directory where you want to put your application code and cd into it, then call Andy:
$ yo andyGenerators
By default Andy includes two generators:
Mobile
Create a mobile application!
Finish this section!
Wear
Create a wear application!
Finish this section!
Glass
Create a glass application!
Finish this section!
Library
Create a library component!
Finish this section!
ToDo
There are a lot of things to do, but for now the most important ones are:
- Finish current iteration for generating a complete application project.
- Write the library generator and make it composable with the app generator.
- Write properly tests!
- Create new generators based on Android TV, Android Wear and Glass.
- …
Contributions
Pull requests and issues are very welcome! Keep in mind that main development is done in the develop branch!
Acknowledgements
This project is partially inspired by the work done by Groupsky who started his own generator-android project.
Creator
Aldo Borrero González – aldo@aldoborrero.com
License
Andy source code is released under the MIT License!

