diff --git a/app/build.gradle b/app/build.gradle index c5a519f..cc3eb2b 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -113,6 +113,5 @@ dependencies { implementation 'com.journeyapps:zxing-android-embedded:4.3.0' implementation 'androidx.core:core:1.7.0' - devImplementation 'io.sentry:sentry-android:5.4.0' coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5' } diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index ebfc2b6..a70a432 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -59,7 +59,5 @@ - - - \ No newline at end of file + diff --git a/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java b/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java index 92da728..eaef0c1 100644 --- a/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java +++ b/app/src/main/java/net/foucry/pilldroid/AlarmReceiver.java @@ -18,8 +18,6 @@ import java.time.LocalTime; import java.util.Date; import java.util.List; -import io.sentry.Sentry; - public class AlarmReceiver extends BroadcastReceiver { @@ -56,7 +54,6 @@ public class AlarmReceiver extends BroadcastReceiver { catch (Exception e){ Log.e(TAG, e.toString()); e.printStackTrace(); - Sentry.captureException(e); } if (firstDrug != null) { @@ -118,7 +115,6 @@ public class AlarmReceiver extends BroadcastReceiver { // Exception Create That Error Object and throw it //E.g: FileNotFoundException ,etc e.printStackTrace(); - Sentry.captureException(e); } } } @@ -154,4 +150,4 @@ public class AlarmReceiver extends BroadcastReceiver { if (BuildConfig.DEBUG) { Toast.makeText(context, "Alarm scheduled for " + UtilDate.convertDate(calendar.getTimeInMillis()), Toast.LENGTH_SHORT).show(); } } -} \ No newline at end of file +} diff --git a/app/src/main/java/net/foucry/pilldroid/DBDrugs.java b/app/src/main/java/net/foucry/pilldroid/DBDrugs.java index a0af4e2..7dc1047 100644 --- a/app/src/main/java/net/foucry/pilldroid/DBDrugs.java +++ b/app/src/main/java/net/foucry/pilldroid/DBDrugs.java @@ -13,8 +13,6 @@ import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; -import io.sentry.Sentry; - /** * Created by jfoucry on 5/25/16. @@ -52,7 +50,6 @@ class DBDrugs extends SQLiteOpenHelper { myContext.getDatabasePath(String.valueOf(database)); } catch (final Exception e){ - Sentry.captureException(e); return false; } return true; @@ -107,7 +104,6 @@ class DBDrugs extends SQLiteOpenHelper { assetDB.close(); } catch (IOException e) { e.printStackTrace(); - Sentry.captureException(e); } } @@ -188,7 +184,6 @@ class DBDrugs extends SQLiteOpenHelper { } catch(Exception e) { e.printStackTrace(); - Sentry.captureException(e); } return cip13; } diff --git a/app/src/main/java/net/foucry/pilldroid/DBHelper.java b/app/src/main/java/net/foucry/pilldroid/DBHelper.java index ada378c..5d9954e 100644 --- a/app/src/main/java/net/foucry/pilldroid/DBHelper.java +++ b/app/src/main/java/net/foucry/pilldroid/DBHelper.java @@ -13,8 +13,6 @@ import java.util.ArrayList; import java.util.Comparator; import java.util.List; -import io.sentry.Sentry; - /** * Created by jacques on 24/04/16. */ @@ -404,7 +402,6 @@ class DBHelper extends SQLiteOpenHelper { } catch(Exception e) { e.printStackTrace(); - Sentry.captureException(e); } return value; } diff --git a/app/src/main/java/net/foucry/pilldroid/PillDroidJobService.java b/app/src/main/java/net/foucry/pilldroid/PillDroidJobService.java index eb0e5cf..4a5d5e6 100644 --- a/app/src/main/java/net/foucry/pilldroid/PillDroidJobService.java +++ b/app/src/main/java/net/foucry/pilldroid/PillDroidJobService.java @@ -13,9 +13,6 @@ import androidx.core.app.NotificationManagerCompat; import java.util.List; -import io.sentry.Sentry; - - /** * Created by jacques on 17/09/16. */ @@ -58,7 +55,6 @@ public class PillDroidJobService extends JobService { catch (Exception e){ Log.e(TAG, e.toString()); e.printStackTrace(); - Sentry.captureException(e); } if (firstDrug != null) { @@ -133,8 +129,7 @@ public class PillDroidJobService extends JobService { // Exception Create That Error Object and throw it //E.g: FileNotFoundException ,etc e.printStackTrace(); - Sentry.captureException(e); } } } -} \ No newline at end of file +} diff --git a/app/src/main/java/net/foucry/pilldroid/Utils.java b/app/src/main/java/net/foucry/pilldroid/Utils.java index c07fb5f..f46ed9f 100644 --- a/app/src/main/java/net/foucry/pilldroid/Utils.java +++ b/app/src/main/java/net/foucry/pilldroid/Utils.java @@ -5,8 +5,6 @@ import java.io.InputStream; import java.io.OutputStream; import java.util.Random; -import io.sentry.Sentry; - public class Utils { private static final String TAG = UtilDate.class.getName(); @@ -25,7 +23,6 @@ public class Utils { } } catch (IOException e) { e.printStackTrace(); - Sentry.captureException(e); } } @@ -41,4 +38,4 @@ public class Utils { return r.nextInt(max - min) +max; } -} \ No newline at end of file +}