-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathApp.java
More file actions
31 lines (24 loc) · 832 Bytes
/
App.java
File metadata and controls
31 lines (24 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import android.support.multidex.MultiDexApplication;
import android.support.v7.app.AppCompatDelegate;
import com.crashlytics.android.Crashlytics;
import io.fabric.sdk.android.Fabric;
public class App extends MultiDexApplication implements IHasComponent {
private AppComponent appComponent;
@Override
public void onCreate() {
super.onCreate();
Fabric.with(this, new Crashlytics());
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);
initComponents();
}
private void initComponents() {
appComponent = DaggerAppComponent.builder()
.appModule(new AppModule(this))
.networkModule(new NetworkModule())
.build();
}
@Override
public AppComponent getAppComponent() {
return appComponent;
}
}