Java Code Examples for io.fabric.sdk.android.Fabric#isDebuggable()
The following examples show how to use
io.fabric.sdk.android.Fabric#isDebuggable() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultSettingsController.java From letv with Apache License 2.0 | 6 votes |
public SettingsData loadSettingsData(SettingsCacheBehavior cacheBehavior) { SettingsData toReturn = null; try { if (!(Fabric.isDebuggable() || buildInstanceIdentifierChanged())) { toReturn = getCachedSettingsData(cacheBehavior); } if (toReturn == null) { JSONObject settingsJson = this.settingsSpiCall.invoke(this.settingsRequest); if (settingsJson != null) { toReturn = this.settingsJsonTransform.buildFromJson(this.currentTimeProvider, settingsJson); this.cachedSettingsIo.writeCachedSettings(toReturn.expiresAtMillis, settingsJson); logSettings(settingsJson, "Loaded settings: "); setStoredBuildInstanceIdentifier(getBuildInstanceIdentifierFromContext()); } } if (toReturn == null) { toReturn = getCachedSettingsData(SettingsCacheBehavior.IGNORE_CACHE_EXPIRATION); } } catch (Exception e) { Fabric.getLogger().e(Fabric.TAG, LOAD_ERROR_MESSAGE, e); } return toReturn; }
Example 2
Source File: Crashlytics.java From letv with Apache License 2.0 | 4 votes |
@Deprecated public boolean getDebugMode() { Fabric.getLogger().w(TAG, "Use of Crashlytics.getDebugMode is deprecated."); getFabric(); return Fabric.isDebuggable(); }
Example 3
Source File: CommonUtils.java From letv with Apache License 2.0 | 4 votes |
public static void logOrThrowIllegalStateException(String logTag, String errorMsg) { if (Fabric.isDebuggable()) { throw new IllegalStateException(errorMsg); } Fabric.getLogger().w(logTag, errorMsg); }
Example 4
Source File: CommonUtils.java From letv with Apache License 2.0 | 4 votes |
public static void logOrThrowIllegalArgumentException(String logTag, String errorMsg) { if (Fabric.isDebuggable()) { throw new IllegalArgumentException(errorMsg); } Fabric.getLogger().w(logTag, errorMsg); }
Example 5
Source File: ApiKey.java From letv with Apache License 2.0 | 4 votes |
protected void logErrorOrThrowException(Context context) { if (Fabric.isDebuggable() || CommonUtils.isAppDebuggable(context)) { throw new IllegalArgumentException(buildApiKeyInstructions()); } Fabric.getLogger().e(Fabric.TAG, buildApiKeyInstructions()); }