Skip to content

onyxvd/generator-android

 
 

Repository files navigation

generator-android

Yeoman generator for Android.

  • Build Status
  • Dependency Status
  • devDependency Status
  • Stories in Ready

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:

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.

License

MIT License

Analytics

About

Yeoman based android scaffolding

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.2%
  • JavaScript 1.1%
  • Groovy 0.7%