Skip to content

Commit 47bfb54

Browse files
author
maskara
committed
Add Traceur for getting meaningful RxJava stack traces
1 parent b17957d commit 47bfb54

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

app/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ dependencies {
6262
testImplementation 'com.squareup.okhttp3:mockwebserver:3.8.1'
6363
implementation 'com.dinuscxj:circleprogressbar:1.1.1'
6464

65+
implementation 'com.tspoon.traceur:traceur:1.0.1'
6566
implementation 'com.caverock:androidsvg:1.2.1'
6667
implementation 'com.github.bumptech.glide:glide:4.7.1'
6768
kapt 'com.github.bumptech.glide:compiler:4.7.1'

app/src/main/java/fr/free/nrw/commons/CommonsApplication.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
import com.facebook.stetho.Stetho;
1111
import com.squareup.leakcanary.LeakCanary;
1212
import com.squareup.leakcanary.RefWatcher;
13+
import com.tspoon.traceur.Traceur;
14+
import com.tspoon.traceur.TraceurConfig;
1315

1416
import org.acra.ACRA;
1517
import org.acra.ReportingInteractionMode;
@@ -69,6 +71,8 @@ public class CommonsApplication extends MultiDexApplication {
6971
@Override
7072
public void onCreate() {
7173
super.onCreate();
74+
Traceur.enableLogging();
75+
7276
ApplicationlessInjection
7377
.getInstance(this)
7478
.getCommonsApplicationComponent()

0 commit comments

Comments
 (0)