Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Fabric #598

Merged
merged 1 commit into from
Aug 10, 2020
Merged
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
7 changes: 0 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
google()
jcenter()
}


dependencies {
classpath 'com.android.tools.build:gradle:4.0.1'
classpath 'io.fabric.tools:gradle:1.28.1'
}
}

apply plugin: "com.android.application"
apply plugin: 'io.fabric'

android {
compileSdkVersion 28
Expand Down Expand Up @@ -126,7 +123,6 @@ dependencies {
google()
mavenCentral()
mavenLocal()
maven { url 'https://maven.fabric.io/public' }
maven { url 'http://dl.bintray.com/megabitdragon/maven' }
maven { url 'https://jitpack.io' }
jcenter()
Expand All @@ -144,9 +140,6 @@ dependencies {
implementation "androidx.media:media:${SUPPORT_LIBRARY_VERSION}"
implementation "androidx.cardview:cardview:${SUPPORT_LIBRARY_VERSION}"
implementation 'com.google.android.gms:play-services-cast-framework:11.6.0'
implementation('com.crashlytics.sdk.android:crashlytics:2.6.6@aar') {
transitive = true
}
implementation 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1'
implementation 'com.github.dmytrodanylyk.android-process-button:library:1.0.4'
implementation 'com.jakewharton.timber:timber:4.7.1'
Expand Down
12 changes: 1 addition & 11 deletions src/main/java/org/amahi/anywhere/AmahiApplication.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatDelegate;

import com.crashlytics.android.Crashlytics;

import org.acra.ACRA;
import org.acra.ReportField;
import org.acra.config.CoreConfigurationBuilder;
Expand All @@ -44,7 +42,6 @@
import org.amahi.anywhere.server.Api;

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

/**
Expand Down Expand Up @@ -76,7 +73,6 @@ public void onCreate() {

instance = this;
setUpLogging();
setUpReporting();
setUpDetecting();

setUpInjections();
Expand Down Expand Up @@ -120,12 +116,6 @@ private boolean isDebugging() {
return BuildConfig.DEBUG;
}

private void setUpReporting() {
if (!isDebugging()) {
Fabric.with(this, new Crashlytics());
}
}

private void setUpDetecting() {
if (isDebugging()) {
StrictMode.enableDefaults();
Expand Down Expand Up @@ -178,7 +168,7 @@ protected void attachBaseContext(Context base) {
super.attachBaseContext(base);
if (isDebugging()) {

if(Api.toSendMail()) {
if (Api.toSendMail()) {
CoreConfigurationBuilder builder = new CoreConfigurationBuilder(this)
.setBuildConfigClass(BuildConfig.class)
.setReportFormat(StringFormat.JSON)
Expand Down
7 changes: 2 additions & 5 deletions src/main/java/org/amahi/anywhere/util/FileManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

import android.content.Context;
import android.net.Uri;
import android.os.AsyncTask;

import androidx.core.content.FileProvider;

import org.amahi.anywhere.bus.BusProvider;
Expand All @@ -10,14 +12,11 @@

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import io.fabric.sdk.android.services.concurrency.AsyncTask;

public class FileManager {

public static final int RECENT_FILE = 0;
Expand Down Expand Up @@ -74,8 +73,6 @@ private void startFileCopying(File sourceLocation, File targetLocation) {
in.close();
out.close();

} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
Expand Down