package com.joker.fourfun.di.component;

import android.support.v7.app.AppCompatActivity;

import com.joker.fourfun.di.PerActivity;
import com.joker.fourfun.di.module.ActivityModule;
import com.joker.fourfun.ui.MainActivity;
import com.joker.fourfun.ui.PictureDetailActivity;
import com.joker.fourfun.ui.SplashActivity;

import dagger.Component;

/**
 * Created by joker on 2016/11/28.
 */
@PerActivity
@Component(dependencies = AppComponent.class, modules = ActivityModule.class)
public interface ActivityComponent {
    AppCompatActivity activity();

    void inject(SplashActivity activity);

    void inject(MainActivity activity);

    void inject(PictureDetailActivity activity);
}

@@ -208,63 +208,201 @@
 .ui.
-MainActivity;%0Aimport com.joker.fourfun.ui.PictureDetail
+LoginActivity;%0Aimport com.joker.fourfun.ui.MainActivity;%0Aimport com.joker.fourfun.ui.MovieDetailActivity;%0Aimport com.joker.fourfun.ui.PictureDetailActivity;%0Aimport com.joker.fourfun.ui.Register
 Acti
@@ -816,11 +816,146 @@
 tivity);
+%0A%0A    void inject(LoginActivity activity);%0A%0A    void inject(RegisterActivity activity);%0A%0A    void inject(MovieDetailActivity activity);
 %0A%7D%0A

add activity di