Skip to content

Commit

Permalink
[CLEANUP] #29 - Removed apt plugin, because switching to release bu…
Browse files Browse the repository at this point in the history
…ild type now workk.
  • Loading branch information
hossain-khan committed Sep 25, 2016
1 parent 145d4da commit 55e9e2d
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,30 @@

import android.app.Application;

import info.hossainkhan.android.core.dagger.components.AppComponent;
import info.hossainkhan.android.core.dagger.components.DaggerAppComponent;
import info.hossainkhan.android.core.dagger.modules.InteractorsModule;
import info.hossainkhan.android.core.dagger.modules.NetworkModule;

/**
* Extended {@link Application} that is shared among all the android application modules.
*/
public class CoreApplication extends Application {

private static AppComponent sAppComponent;

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

initAppComponent();
}

private void initAppComponent() {
sAppComponent = DaggerAppComponent.builder()
.interactorsModule(new InteractorsModule())
.networkModule(new NetworkModule())
.build();

}
}

0 comments on commit 55e9e2d

Please sign in to comment.