Move dagger classes to injection directory
This commit is contained in:
@@ -5,6 +5,10 @@ import android.content.Context;
|
||||
|
||||
import org.acra.annotation.ReportsCrashes;
|
||||
|
||||
import eu.kanade.mangafeed.injection.component.AppComponent;
|
||||
import eu.kanade.mangafeed.injection.module.AppModule;
|
||||
import eu.kanade.mangafeed.injection.ComponentReflectionInjector;
|
||||
import eu.kanade.mangafeed.injection.component.DaggerAppComponent;
|
||||
import timber.log.Timber;
|
||||
|
||||
@ReportsCrashes(
|
||||
@@ -46,14 +50,6 @@ public class App extends Application {
|
||||
return mComponentInjector;
|
||||
}
|
||||
|
||||
public static ComponentReflectionInjector<AppComponent> getComponentReflection(Context context) {
|
||||
return get(context).getComponentReflection();
|
||||
}
|
||||
|
||||
public static AppComponent getComponent(Context context) {
|
||||
return get(context).getComponent();
|
||||
}
|
||||
|
||||
// Needed to replace the component with a test specific one
|
||||
public void setComponent(AppComponent applicationComponent) {
|
||||
mApplicationComponent = applicationComponent;
|
||||
|
||||
Reference in New Issue
Block a user