yas-okadatech / sample_dagger2_android_simple

Dagger2 Example: Android Simple (for Android Studio)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sample_dagger2_android_simple

Just converting android_simple exmple to Android Studio.

Example: Android Simple

This example demonstrates how to structure an Android application with Dagger.

A custom Application class is used to manage a global object graph of objects. Modules are assembled with a getModules method on the application that can be overridden to add additional modules in development versions of your applications or in tests.

Injection of activities is done automatically in a base activity.

Note: The app does not actually do anything when it is run. It is only to show how you can structure Dagger within an Android app

Note: The app is in transition to Dagger 2 and may not reflect recommended patterns. Before we release Dagger 2.0 it will, but until this note is removed, please do not rely on this example as a strong recommendation.

About

Dagger2 Example: Android Simple (for Android Studio)


Languages

Language:Java 100.0%