From e4df189b2292847eedbcdb09441a6a2294c2364b Mon Sep 17 00:00:00 2001 From: Sayaan Saha Date: Tue, 10 Jul 2018 14:40:45 -0700 Subject: [PATCH 1/2] Set SDK Version to 4.1.0 (#206) --- .../src/main/java/com/leanplum/internal/Constants.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AndroidSDKCore/src/main/java/com/leanplum/internal/Constants.java b/AndroidSDKCore/src/main/java/com/leanplum/internal/Constants.java index 7fc6fcaf6..e953c81f8 100644 --- a/AndroidSDKCore/src/main/java/com/leanplum/internal/Constants.java +++ b/AndroidSDKCore/src/main/java/com/leanplum/internal/Constants.java @@ -36,7 +36,7 @@ public class Constants { public static int SOCKET_PORT = 80; public static int NETWORK_TIMEOUT_SECONDS = 10; public static int NETWORK_TIMEOUT_SECONDS_FOR_DOWNLOADS = 10; - public static String LEANPLUM_VERSION = "4.0.4"; + public static String LEANPLUM_VERSION = "4.1.0"; public static String CLIENT = "android"; static final String LEANPLUM_PACKAGE_IDENTIFIER = BuildConfig.LEANPLUM_PACKAGE_IDENTIFIER; From e5b2570f06b73db254bd80cfb5dee19fbaee5f88 Mon Sep 17 00:00:00 2001 From: Sayaan Saha Date: Wed, 11 Jul 2018 22:11:52 -0700 Subject: [PATCH 2/2] Change log level to Info if leanplum-monitoring not included (#209) --- .../java/com/leanplum/monitoring/ExceptionHandler.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/AndroidSDKCore/src/main/java/com/leanplum/monitoring/ExceptionHandler.java b/AndroidSDKCore/src/main/java/com/leanplum/monitoring/ExceptionHandler.java index a3831af41..8bacc0688 100644 --- a/AndroidSDKCore/src/main/java/com/leanplum/monitoring/ExceptionHandler.java +++ b/AndroidSDKCore/src/main/java/com/leanplum/monitoring/ExceptionHandler.java @@ -25,11 +25,14 @@ public void setContext(Context context) { try { exceptionReporter.setContext(context); } catch (Throwable t) { - Log.e("LeanplumCrashHandler", t); + Log.e("LeanplumExceptionHandler", t); } } + } catch (ClassNotFoundException t) { + Log.i("LeanplumExceptionHandler could not initialize Exception Reporting." + + "This is expected if you have not included the leanplum-monitoring module"); } catch (Throwable t) { - Log.e("LeanplumCrashHandler", t); + Log.e("LeanplumExceptionHandler", t); } } @@ -38,7 +41,7 @@ public void reportException(Throwable exception) { try { exceptionReporter.reportException(exception); } catch (Throwable t) { - Log.e("LeanplumCrashHandler", t); + Log.e("LeanplumExceptionHandler", t); } } }