当前位置: 首页>>代码示例>>Java>>正文


Java LeakCanary.install方法代码示例

本文整理汇总了Java中com.squareup.leakcanary.LeakCanary.install方法的典型用法代码示例。如果您正苦于以下问题:Java LeakCanary.install方法的具体用法?Java LeakCanary.install怎么用?Java LeakCanary.install使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.squareup.leakcanary.LeakCanary的用法示例。


在下文中一共展示了LeakCanary.install方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    Fresco.initialize(this);//Init Fresco
    applicationComponent = DaggerApplicationComponent.builder()
            .applicationModule(new ApplicationModule(this))
            .contextModule(new ContextModule(this))
            .databaseModule(new DatabaseModule())
            .networkModule(new NetworkModule())
            .build();
    applicationComponent.inject(this);
    CalligraphyConfig.initDefault(calligraphyConfig);
    Timber.plant(new Timber.DebugTree());
    LeakCanary.install(this);

}
 
开发者ID:graviton57,项目名称:DOUSalaries,代码行数:17,代码来源:DouApp.java

示例2: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
  super.onCreate();

  initializeDependencies();

  if (BuildConfig.DEBUG) {
    Timber.plant(new Timber.DebugTree());
    Stetho.initializeWithDefaults(this);
  }

  if (LeakCanary.isInAnalyzerProcess(this)) {
    return;
  }
  LeakCanary.install(this);
}
 
开发者ID:quangctkm9207,项目名称:mvp-android-arch-component,代码行数:17,代码来源:AndroidApplication.java

示例3: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate()
{
    super.onCreate();
    if (LeakCanary.isInAnalyzerProcess(this))
    {
        // This process is dedicated to LeakCanary for heap analysis.
        // You should not init your app in this process.
        return;
    }
    setupGraph();
    Iconify.with(new FontAwesomeModule());
    if (!BuildConfig.DEBUG)
        Bugsnag.init(this);
    else
        LeakCanary.install(this);

    // Empty string while RxSocialConnect's disk cache is not working
    RxSocialConnect.register(this, "")
            .using(new GsonSpeaker());
    NavigationDrawerBuilder.initialiseMaterialDrawerImageLoader();
}
 
开发者ID:jbmlaird,项目名称:DiscogsBrowser,代码行数:23,代码来源:App.java

示例4: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    if (LeakCanary.isInAnalyzerProcess(this)) {
        mRefWatcher = RefWatcher.DISABLED;
    } else {
        mRefWatcher = LeakCanary.install(this);
    }

    if (isInMainProcess()) {
        instance = this;

        Thread.setDefaultUncaughtExceptionHandler(new AppCrashHandler(this));

        initModule();
    }

}
 
开发者ID:hushengjun,项目名称:FastAndroid,代码行数:19,代码来源:BaseApp.java

示例5: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
  super.onCreate();
  if (LeakCanary.isInAnalyzerProcess(this)) {
    // This process is dedicated to LeakCanary for heap analysis.
    // You should not init your app in this process.
    return;
  }

  if (BuildConfig.DEBUG) {
    Timber.plant(new Timber.DebugTree());
  }

  LeakCanary.install(this);
  initializeLogger();
  Mapbox.getInstance(this, getString(R.string.mapbox_access_token));
  Timber.plant(new Timber.DebugTree());

  // TODO remove when 5.2.1 is released
  FileSource.getInstance(this).activate();
}
 
开发者ID:mapbox,项目名称:mapbox-plugins-android,代码行数:22,代码来源:PluginApplication.java

示例6: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
    context = getApplicationContext();
    if (LeakCanary.isInAnalyzerProcess(this)) {
        return;
    }
    LeakCanary.install(this);
}
 
开发者ID:coopese,项目名称:qmui,代码行数:9,代码来源:QDApplication.java

示例7: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    if (LeakCanary.isInAnalyzerProcess(this)) {
        return;
    }
    LeakCanary.install(this);
}
 
开发者ID:stdnull,项目名称:RunMap,代码行数:9,代码来源:AppSubApplication.java

示例8: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();

    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);
}
 
开发者ID:olivierg13,项目名称:EspressoMockitoDaggerLeakCanary,代码行数:12,代码来源:EmdlcApplication.java

示例9: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    context = getApplicationContext();
    if (LeakCanary.isInAnalyzerProcess(this)) {
        return;
    }
    LeakCanary.install(this);

    QDUpgradeManager.getInstance(this).check();
}
 
开发者ID:QMUI,项目名称:QMUI_Android,代码行数:12,代码来源:QDApplication.java

示例10: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();

    CustomActivityOnCrash.install(this);

    if (LeakCanary.isInAnalyzerProcess(this)) {
        return;
    }
    LeakCanary.install(this);
}
 
开发者ID:BigSea001,项目名称:PhotoPickApp,代码行数:12,代码来源:MyApp.java

示例11: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override public void onCreate() {
  super.onCreate();
  if (LeakCanary.isInAnalyzerProcess(this)) {
    // This process is dedicated to LeakCanary for heap analysis.
    // You should not init your app in this process.
    return;
  }
  mailComponent = DaggerMailAppComponent.create();
  refWatcher = LeakCanary.install(this);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:MailApplication.java

示例12: initLeakCanary

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
private void initLeakCanary(){
    if (LeakCanary.isInAnalyzerProcess(this)) {

    }else{
        LeakCanary.install(this);
    }
}
 
开发者ID:albertopeam,项目名称:Android-Infrastructure,代码行数:8,代码来源:App.java

示例13: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override public void onCreate() {
  super.onCreate();
  if (LeakCanary.isInAnalyzerProcess(this)) {
    // This process is dedicated to LeakCanary for heap analysis.
    // You should not init your app in this process.
    return;
  }
  refWatcher = LeakCanary.install(this);
  Timber.d("Starting Application");
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:SampleApplication.java

示例14: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    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);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:11,代码来源:App.java

示例15: onCreate

import com.squareup.leakcanary.LeakCanary; //导入方法依赖的package包/类
@Override public void onCreate() {
    super.onCreate();
    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);
}
 
开发者ID:simplezhli,项目名称:ChangeTabLayout,代码行数:10,代码来源:MyApplication.java


注:本文中的com.squareup.leakcanary.LeakCanary.install方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。