npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

generator-android-hipster

v1.1.1

Published

Android generator based on MVP, Dagger2, RxJava, Java & Kotlin Stack and usefull libraries for Android

Downloads

43

Readme

generator-android-hipster

Android generator based on MVP, Dagger2, RxJava, Java/Kotlin Stack and usefull libraries for Android

Latest version: 1.0.1

Update with npm update -g generator-android-hipster

Info with npm info generator-android-hipster


How it works?

It provides a generator to create and maintain a android application based on the latests frameworks and patterns used by the community.

Stack:

Some of these technologies are optional, and you can choose what you want to use answering the questions when you create the project. Some of them are mandatory, but can be optional soon. If you have any questions, please create a new issue and we will discuss.


What you can do after create a project:

  • Create a new Activity

    • Create new Activity (including resources and AndroidManifest.xml update)
    • Create a new Dagger2 Component / Module or use the ApplicationComponent
    • Create a Fragment (optional)
    • For all cases, create the presenter
    • Inject the presenter into Activity / Fragment
    • Create a View interface for communication between Presenter -> View
  • Create a new Entity

    • It will create a model (AutoParcel), an Entity class for REST / DB communication, and a converter to parse from Entity <- -> Model class.
  • Create a Interactor

    • Create a base interactor.
    • Use with or without Interface
    • Interface use @Provides in ApplicationModule
  • Create a UseCase

    • Same as Interactor, but different name =)
    • It equal to Interactor generation, future changes proof.
    • Use with or without Interface
    • Interface use @Provides in ApplicationModule
  • Create a repository

    • Create a repository layer (To manage calls to Remote / Local Repository without exposing them to Interactors / UseCases)
    • Can create a RemoteRepository class (for REST)
    • Can create a LocalRepository class (for local DB)
    • Use with or without Interface
    • Interface use @Provides in ApplicationModule
  • Create a Push architecture:

    • Create the classes to handle push notifications like this article
  • Update gradle dependencies

    • Update gradle dependencies to latest stable versions with just one command.

Check this article

Any suggestions? Please let me know!

Sample:

Sample Project


Installation

First, install Yeoman and generator-android-hipster using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-android-hipster

Available commands:

Create new project:

yo android-hipster

Update gradle dependencies:

yo android-hipster:update-dependencies

Create a new activity:

yo android-hipster:activity

Create a new fragment:

yo android-hipster:fragment

Create a new interactor:

yo android-hipster:interactor

Create a new use case:

yo android-hipster:usecase

Create a new repository:

yo android-hipster:repository

Create a new entity:

yo android-hipster:entity

Create a new push support like this article:

yo android-hipster:push

License

© esparta-io