package com.joker.fourfun.di.component;

import com.joker.fourfun.di.PerFragment;
import com.joker.fourfun.di.module.FragmentModule;
import com.joker.fourfun.ui.fragment.MediaFragment;
import com.joker.fourfun.ui.fragment.PictureChildFragment;
import com.joker.fourfun.ui.fragment.PictureFragment;
import com.joker.fourfun.ui.fragment.ReadFragment;

import dagger.Component;
import me.yokeyword.fragmentation.SupportFragment;

/**
 * Created by joker on 2016/12/1.
 */
@PerFragment
@Component(dependencies = AppComponent.class, modules = FragmentModule.class)
public interface FragmentComponent {
    SupportFragment fragment();

    void inject(ReadFragment fragment);

    void inject(PictureFragment fragment);

    void inject(PictureChildFragment fragment);

    void inject(MediaFragment fragment);
}

@@ -163,21 +163,124 @@
 ragment.
-Media
+LoginFragment;%0Aimport com.joker.fourfun.ui.fragment.MediaFragment;%0Aimport com.joker.fourfun.ui.fragment.Mine
 Fragment
@@ -440,24 +440,79 @@
 eadFragment;
+%0Aimport com.joker.fourfun.ui.fragment.RegisterFragment;
 %0A%0Aimport dag
@@ -907,32 +907,32 @@
 ent fragment);%0A%0A
-
     void inject(
@@ -955,11 +955,139 @@
 agment);
+%0A%0A    void inject(MineFragment fragment);%0A%0A    void inject(LoginFragment fragment);%0A%0A    void inject(RegisterFragment fragment);
 %0A%7D%0A

add fragment injection