Remove Sentry.io

This commit is contained in:
Jacques Foucry 2022-01-31 21:30:19 +01:00 committed by jacques
parent 1a34a015fa
commit 8ac3a79639
7 changed files with 4 additions and 27 deletions

View file

@ -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'
}

View file

@ -59,7 +59,5 @@
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
<meta-data android:name="io.sentry.dsn" android:value="https://ba17f240b58144e398c862bb953256ef@o755123.ingest.sentry.io/5792286" />
</application>
</manifest>
</manifest>

View file

@ -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(); }
}
}
}

View file

@ -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;
}

View file

@ -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;
}

View file

@ -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);
}
}
}
}
}

View file

@ -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;
}
}
}