mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 17:05:34 +00:00
feat(android): Additional Sentry integration
Revert intentional crash from #2778 Now that the call stack in Sentry is tested on Release build http://sentry.keyman.com/organizations/keyman/issues/61/?project=7 The temporary menu to generate the intentional crash can be removed. Also disable monitoring Application Not Responding (ANR)
This commit is contained in:
parent
e284fc1b34
commit
69bbc73971
3 changed files with 4 additions and 16 deletions
|
|
@ -27,6 +27,9 @@
|
|||
<!-- how to enable Sentry's debug mode-->
|
||||
<meta-data
|
||||
android:name="io.sentry.debug" android:value="true" />
|
||||
<!-- Disable monitoring "Application Not Responding" (ANR). Too many reports at the default 4000 ms -->
|
||||
<meta-data
|
||||
android:name="io.sentry.anr.enable" android:value="false" />
|
||||
|
||||
<service
|
||||
android:name="com.keyman.android.SystemKeyboard"
|
||||
|
|
|
|||
|
|
@ -480,9 +480,6 @@ public class MainActivity extends AppCompatActivity implements OnKeyboardEventLi
|
|||
case R.id.action_settings:
|
||||
showSettings();
|
||||
return true;
|
||||
case R.id.action_crash:
|
||||
showCrash();
|
||||
return true;
|
||||
case R.id.action_update_keyboards:
|
||||
KMManager.getUpdateTool().executeOpenUpdates();
|
||||
return true;
|
||||
|
|
@ -919,11 +916,6 @@ public class MainActivity extends AppCompatActivity implements OnKeyboardEventLi
|
|||
startActivity(settingsIntent);
|
||||
}
|
||||
|
||||
// Temporary menu item to intentionally generate crashes for Sentry
|
||||
private void showCrash() {
|
||||
throw new NullPointerException("MainActivity throwing null");
|
||||
}
|
||||
|
||||
public static Drawable getActionBarDrawable(Context context) {
|
||||
Point size = new Point();
|
||||
WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
|
||||
|
|
|
|||
|
|
@ -34,17 +34,10 @@
|
|||
app:showAsAction="never"
|
||||
android:icon="@drawable/ic_settings" />
|
||||
|
||||
<!-- temp item to generate intentional crashes for Sentry -->
|
||||
<item
|
||||
android:id="@+id/action_crash"
|
||||
android:title="Crash"
|
||||
app:showAsAction="never"
|
||||
android:icon="@drawable/ic_action_close" />
|
||||
|
||||
<item
|
||||
android:id="@+id/action_update_keyboards"
|
||||
android:title="@string/action_install_updates"
|
||||
app:showAsAction="never"
|
||||
android:icon="@drawable/ic_cloud_download"/>
|
||||
|
||||
</menu>
|
||||
</menu>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue