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.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);
}

@@ -126,16 +126,68 @@
 Module;%0A
+import com.joker.fourfun.ui.fragment.MediaFragment;%0A
 import c
@@ -755,11 +755,53 @@
 agment);
+%0A%0A    void inject(MediaFragment fragment);
 %0A%7D%0A

add MediaFragment dependenc inject