package org.hogel.naroubrowser;

import android.app.Application;
import android.content.Context;
import com.splunk.mint.Mint;
import org.hogel.naroubrowser.di.BrowserComponent;

public class BrowserApplication extends Application {

    private BrowserComponent component;

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

        Mint.initAndStartSession(this, BuildConfig.MINT_API_KEY);
        if (BuildConfig.DEBUG) {
            Mint.enableDebug();
            Mint.flush();
        }

        buildComponentAndInject();
    }

    public void buildComponentAndInject() {
        component = BrowserComponent.Initializer.init(this);
    }

    public static BrowserComponent component(Context context) {
        return ((BrowserApplication) context.getApplicationContext()).component;
    }
}

@@ -90,16 +90,47 @@
 ontext;%0A
+import android.webkit.WebView;%0A
 import c
@@ -524,16 +524,75 @@
 flush();
+%0A%0A            WebView.setWebContentsDebuggingEnabled(true);
 %0A       

Enable debug webview