Lightning browser with I2P configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

33 lines
759 B

package acr.browser.lightning.app;
import android.app.Application;
import android.content.Context;
import com.squareup.leakcanary.LeakCanary;
public class BrowserApp extends Application {
private static Context context;
private static AppComponent appComponent;
@Override
public void onCreate() {
super.onCreate();
context = getApplicationContext();
LeakCanary.install(this);
buildDepencyGraph();
}
public static Context getAppContext() {
return context;
}
public static AppComponent getAppComponent() {
return appComponent;
}
private void buildDepencyGraph() {
appComponent = DaggerAppComponent.builder().appModule(new AppModule(this)).build();
}
}