Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,6 @@ apply plugin: 'com.getkeepsafe.dexcount'
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])

compile('com.crashlytics.sdk.android:crashlytics:2.6.5@aar') {
transitive = true
}

compile 'com.android.support:support-v4:27.1.1'
compile 'com.android.support:appcompat-v7:27.1.1'
compile 'com.android.support:design:27.1.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
import com.blogspot.e_kanivets.moneytracker.di.module.ControllerModule;
import com.blogspot.e_kanivets.moneytracker.di.module.repo.CachedRepoModule;
import com.blogspot.e_kanivets.moneytracker.util.AnswersProxy;
import com.crashlytics.android.Crashlytics;

import io.fabric.sdk.android.Fabric;
import timber.log.Timber;

/**
Expand Down Expand Up @@ -39,7 +37,6 @@ public void onCreate() {
AnswersProxy.get().setEnabled(false);
} else {
Timber.plant(new ReleaseTree());
Fabric.with(this, new Crashlytics());
AnswersProxy.get().setEnabled(true);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

import android.support.annotation.Nullable;

import com.crashlytics.android.answers.Answers;
import com.crashlytics.android.answers.ContentViewEvent;

/**
* Util class that wraps the Answers event analytic, to disable it in Debug mode and simplify
Expand Down Expand Up @@ -39,9 +37,6 @@ public boolean isEnabled() {

public boolean logEvent(@Nullable String eventName) {
if (enabled) {
Answers.getInstance().logContentView(new ContentViewEvent()
.putContentName(eventName)
.putContentType("Event"));
return true;
} else {
return false;
Expand All @@ -50,9 +45,6 @@ public boolean logEvent(@Nullable String eventName) {

public boolean logButton(@Nullable String buttonName) {
if (enabled) {
Answers.getInstance().logContentView(new ContentViewEvent()
.putContentName(buttonName)
.putContentType("Button"));
return true;
} else {
return false;
Expand Down