Skip to content

Commit

Permalink
feat: log tess error messages to crashlytics
Browse files Browse the repository at this point in the history
  • Loading branch information
renard314 committed Dec 18, 2016
1 parent c786655 commit be65d02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/renard/ocr/TextFairyApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@

import com.crashlytics.android.Crashlytics;
import com.crashlytics.android.ndk.CrashlyticsNdk;
import com.googlecode.tesseract.android.TessBaseAPI;
import com.renard.ocr.analytics.Analytics;
import com.renard.ocr.analytics.AnalyticsFactory;
import com.renard.ocr.util.PreferencesUtils;
import com.squareup.leakcanary.LeakCanary;

import android.app.Application;
import android.os.StrictMode;
import android.util.Log;
import android.view.ViewConfiguration;

import java.lang.reflect.Field;
Expand Down Expand Up @@ -55,9 +55,9 @@ private void createAnalytics() {

private void trackCrashes() {
if (BuildConfig.FLAVOR.contains("playstore")) {
Log.i(LOG_TAG, "Starting Crashlytics");
final Fabric fabric = new Fabric.Builder(this).kits(new Crashlytics(), new CrashlyticsNdk()).debuggable(BuildConfig.DEBUG).build();
Fabric.with(fabric);
TessBaseAPI.initCrashlytics();
}
}

Expand Down

0 comments on commit be65d02

Please sign in to comment.