package net.kwmt27.codesearch;

import android.app.Application;

import com.google.android.gms.ads.MobileAds;

public class App extends Application {

    private static App sInstance;
    private static ModelLocator sModelLocator;

    @Override
    public void onCreate() {
        super.onCreate();
        sInstance = this;
        MobileAds.initialize(getApplicationContext(), BuildConfig.ADMOB_APP_ID);


        sModelLocator = new ModelLocator();
    }

    public static App getInstance() {
        return sInstance;
    }

    public static ModelLocator getModelLocator() {
        return sModelLocator;
    }
}

@@ -102,16 +102,59 @@
 bileAds;
+%0Aimport com.squareup.leakcanary.LeakCanary;
 %0A%0Apublic
@@ -334,24 +334,58 @@
 onCreate();%0A
+        LeakCanary.install(this);%0A
         sIns

add leakcanary