From 763aa651fdc4a99c5a253fc2c2562b2921b94ffe Mon Sep 17 00:00:00 2001 From: Sergey Eremin Date: Tue, 28 Feb 2017 20:16:48 +0300 Subject: [PATCH] Yalp version and name of the app being installed now added to crash report --- .../yeriomin/yalpstore/YalpStoreUncaughtExceptionHandler.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/com/github/yeriomin/yalpstore/YalpStoreUncaughtExceptionHandler.java b/app/src/main/java/com/github/yeriomin/yalpstore/YalpStoreUncaughtExceptionHandler.java index 77b2f6e9..09f51569 100644 --- a/app/src/main/java/com/github/yeriomin/yalpstore/YalpStoreUncaughtExceptionHandler.java +++ b/app/src/main/java/com/github/yeriomin/yalpstore/YalpStoreUncaughtExceptionHandler.java @@ -94,6 +94,10 @@ private String buildBody(Throwable e) { private Map getDeviceInfo() { Map values = new LinkedHashMap<>(); + values.put("YALP.VERSION", BuildConfig.VERSION_NAME); + if (null != DetailsDependentActivity.app) { + values.put("APP.BEING.INSTALLED", DetailsDependentActivity.app.getPackageName()); + } values.putAll(getBuildValues()); values.putAll(getConfigurationValues()); values.putAll(getDisplayMetricsValues());