mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Remove Sentry.io
This commit is contained in:
parent
1a34a015fa
commit
8ac3a79639
7 changed files with 4 additions and 27 deletions
|
@ -113,6 +113,5 @@ dependencies {
|
||||||
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
implementation 'com.journeyapps:zxing-android-embedded:4.3.0'
|
||||||
implementation 'androidx.core:core:1.7.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'
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,5 @@
|
||||||
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
<action android:name="android.intent.action.BOOT_COMPLETED"/>
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
</receiver>
|
</receiver>
|
||||||
<meta-data android:name="io.sentry.dsn" android:value="https://ba17f240b58144e398c862bb953256ef@o755123.ingest.sentry.io/5792286" />
|
|
||||||
</application>
|
</application>
|
||||||
|
</manifest>
|
||||||
</manifest>
|
|
||||||
|
|
|
@ -18,8 +18,6 @@ import java.time.LocalTime;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import io.sentry.Sentry;
|
|
||||||
|
|
||||||
|
|
||||||
public class AlarmReceiver extends BroadcastReceiver {
|
public class AlarmReceiver extends BroadcastReceiver {
|
||||||
|
|
||||||
|
@ -56,7 +54,6 @@ public class AlarmReceiver extends BroadcastReceiver {
|
||||||
catch (Exception e){
|
catch (Exception e){
|
||||||
Log.e(TAG, e.toString());
|
Log.e(TAG, e.toString());
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (firstDrug != null) {
|
if (firstDrug != null) {
|
||||||
|
@ -118,7 +115,6 @@ public class AlarmReceiver extends BroadcastReceiver {
|
||||||
// Exception Create That Error Object and throw it
|
// Exception Create That Error Object and throw it
|
||||||
//E.g: FileNotFoundException ,etc
|
//E.g: FileNotFoundException ,etc
|
||||||
e.printStackTrace();
|
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(); }
|
if (BuildConfig.DEBUG) { Toast.makeText(context, "Alarm scheduled for " + UtilDate.convertDate(calendar.getTimeInMillis()), Toast.LENGTH_SHORT).show(); }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,8 +13,6 @@ import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
||||||
import io.sentry.Sentry;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by jfoucry on 5/25/16.
|
* Created by jfoucry on 5/25/16.
|
||||||
|
@ -52,7 +50,6 @@ class DBDrugs extends SQLiteOpenHelper {
|
||||||
myContext.getDatabasePath(String.valueOf(database));
|
myContext.getDatabasePath(String.valueOf(database));
|
||||||
}
|
}
|
||||||
catch (final Exception e){
|
catch (final Exception e){
|
||||||
Sentry.captureException(e);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
@ -107,7 +104,6 @@ class DBDrugs extends SQLiteOpenHelper {
|
||||||
assetDB.close();
|
assetDB.close();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -188,7 +184,6 @@ class DBDrugs extends SQLiteOpenHelper {
|
||||||
} catch(Exception e)
|
} catch(Exception e)
|
||||||
{
|
{
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
}
|
||||||
return cip13;
|
return cip13;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,8 +13,6 @@ import java.util.ArrayList;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import io.sentry.Sentry;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by jacques on 24/04/16.
|
* Created by jacques on 24/04/16.
|
||||||
*/
|
*/
|
||||||
|
@ -404,7 +402,6 @@ class DBHelper extends SQLiteOpenHelper {
|
||||||
} catch(Exception e)
|
} catch(Exception e)
|
||||||
{
|
{
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,9 +13,6 @@ import androidx.core.app.NotificationManagerCompat;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import io.sentry.Sentry;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Created by jacques on 17/09/16.
|
* Created by jacques on 17/09/16.
|
||||||
*/
|
*/
|
||||||
|
@ -58,7 +55,6 @@ public class PillDroidJobService extends JobService {
|
||||||
catch (Exception e){
|
catch (Exception e){
|
||||||
Log.e(TAG, e.toString());
|
Log.e(TAG, e.toString());
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (firstDrug != null) {
|
if (firstDrug != null) {
|
||||||
|
@ -133,8 +129,7 @@ public class PillDroidJobService extends JobService {
|
||||||
// Exception Create That Error Object and throw it
|
// Exception Create That Error Object and throw it
|
||||||
//E.g: FileNotFoundException ,etc
|
//E.g: FileNotFoundException ,etc
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,6 @@ import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
import io.sentry.Sentry;
|
|
||||||
|
|
||||||
public class Utils {
|
public class Utils {
|
||||||
private static final String TAG = UtilDate.class.getName();
|
private static final String TAG = UtilDate.class.getName();
|
||||||
|
|
||||||
|
@ -25,7 +23,6 @@ public class Utils {
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
Sentry.captureException(e);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -41,4 +38,4 @@ public class Utils {
|
||||||
return r.nextInt(max - min) +max;
|
return r.nextInt(max - min) +max;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue