當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。