Awesome
THIS REPO IS NOT MAINTAINED ANY MORE. USE AT YOUR OWN RISK!
generator-android
Yeoman generator for Android.
Getting Started
Invite Yeoman
Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.
$ npm install -g yo
Android Generator
Install generator-android
:
npm install -g generator-android
Make a new directory and cd
into it:
mkdir my-shiny-project && cd $_
Finally, initiate the generator:
$ yo android
Generators
Available generators:
Note: Generators are to be run from the root directory of your project.
App
Sets up a new Android application project in the current directory. Project is configured to build with Eclipse and ant, soon it will include gradle (#2). The following libraries are included by default:
- android-support-v4
- Mechanoid
- Universal Image Loader
- and more (just ask for)
By default an optimization proguard configuration is enabled with rules for common libraries and issues.
Note: this will change in future version to create several subdirectories where the Android application and test project will be created
Library
Sets up a new Android library in the current directory. The generator creates a subdirectory where the library source lives in and another subdirectory for test project. Build environments that are included:
- Ant
- Eclipse
- Gradle
There are no runtime libraries included, only test libraries:
The test project is based on Robolectric so it can run without emulator.
By default an optimization proguard configuration is enabled with rules for common libraries and issues.