package io.github.kobakei.androidhowtotest;

import android.app.Application;

import io.github.kobakei.androidhowtotest.di.ApiModule;
import io.github.kobakei.androidhowtotest.di.DaggerMyComponent;
import io.github.kobakei.androidhowtotest.di.MyComponent;
import io.github.kobakei.androidhowtotest.di.AdditionModule;
import io.github.kobakei.androidhowtotest.di.UseCaseModule;

/**
 * Created by keisuke on 16/03/03.
 */
public class MyApplication extends Application {

    private MyComponent component;

    @Override
    public void onCreate() {
        super.onCreate();

        // Create object graph for dependency injection.
        // Modules which are declared in MyComponent.java will be used.
        component = DaggerMyComponent.builder().build();
    }

    /**
     * Return Dagger2 component.
     *
     * @return
     */
    public MyComponent getComponent() {
        return component;
    }
}

@@ -75,64 +75,8 @@
 n;%0A%0A
-import io.github.kobakei.androidhowtotest.di.ApiModule;%0A
 impo
@@ -197,132 +197,164 @@
 nt;%0A
-import io.github.kobakei.androidhowtotest.di.AdditionModule;%0Aimport io.github.kobakei.androidhowtotest.di.UseCaseModule;%0A%0A/*
+%0A/**%0A * Application class.%0A * In onCreate, it creates Dagger object graph.%0A * Activity classes can access Dagger component through this Application class.%0A 
 *%0A *

Fix comment