package mobi.cangol.mobile.appcore.demo;


import com.squareup.leakcanary.LeakCanary;

import hugo.weaving.DebugLog;
import mobi.cangol.mobile.CoreApplication;

/**
 * Created by weixuewu on 15/9/14.
 */
@DebugLog
public class MobileApplication extends CoreApplication {
    public void onCreate() {
        this.setDevMode(true);
        this.setAsyncInit(true);
        super.onCreate();
    }

    @Override
    public void init() {
        initLeakCanary();
    }
    private void initLeakCanary() {
        if (LeakCanary.isInAnalyzerProcess(this)) {
            // This process is dedicated to LeakCanary for heap analysis.
            // You should not init your app in this process.
            return;
        }
        LeakCanary.install(this);
    }
}

@@ -152,16 +152,102 @@
 ication;
+%0Aimport mobi.cangol.mobile.stat.StatAgent;%0Aimport mobi.cangol.mobile.utils.DeviceInfo;
 %0A%0A/**%0A *
@@ -537,24 +537,108 @@
 akCanary();%0A
+        if(DeviceInfo.isAppProcess(this))%0A            StatAgent.initInstance(this);%0A
     %7D%0A    pr

update demo