package com.gyf.immersionbar;

import android.app.Application;

import com.squareup.leakcanary.LeakCanary;
import com.tencent.bugly.crashreport.CrashReport;

/**
 * @author geyifeng
 * @date 2017/8/4
 */
public class MyApp extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
        CrashReport.initCrashReport(getApplicationContext(), "31a5f1f394", false);
        if (LeakCanary.isInAnalyzerProcess(this)) {
            return;
        }
        LeakCanary.install(this);
    }
}

@@ -61,102 +61,8 @@
 n;%0A%0A
-import com.squareup.leakcanary.LeakCanary;%0Aimport com.tencent.bugly.crashreport.CrashReport;%0A%0A
 /**%0A
@@ -217,207 +217,8 @@
 ();%0A
-        CrashReport.initCrashReport(getApplicationContext(), %2231a5f1f394%22, false);%0A        if (LeakCanary.isInAnalyzerProcess(this)) %7B%0A            return;%0A        %7D%0A        LeakCanary.install(this);%0A
     

update demo