From 9e453ddc383aaf43777d8ee81af760c0d943049a Mon Sep 17 00:00:00 2001 From: arunreddy10 <56394019+arunreddy10@users.noreply.github.com> Date: Thu, 10 Dec 2020 19:43:27 +0530 Subject: [PATCH] Make checkPendingAndContinue protected to handle deserialisation crashes (#149) * fix: handling deserialization OOM crash * fix: undo version changes for core and gson * revert: testing changes * bump batching version * version bumping all modules * revert: dependency bumps --- batching-core/build.gradle | 4 ++-- batching-gson/build.gradle | 4 ++-- batching/build.gradle | 4 ++-- .../batching/listener/PersistedBatchReadyListener.java | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/batching-core/build.gradle b/batching-core/build.gradle index 088d7cb..a415051 100644 --- a/batching-core/build.gradle +++ b/batching-core/build.gradle @@ -14,7 +14,7 @@ android { minSdkVersion 14 targetSdkVersion 28 versionCode 1 - versionName "1.3.9" + versionName "1.3.10" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" @@ -29,7 +29,7 @@ android { buildscript { repositories { - maven { url 'http://repo1.maven.org/maven2' } + maven { url 'https://repo1.maven.org/maven2' } maven { url "https://plugins.gradle.org/m2/" } google() } diff --git a/batching-gson/build.gradle b/batching-gson/build.gradle index cacc1e6..e9bbf13 100644 --- a/batching-gson/build.gradle +++ b/batching-gson/build.gradle @@ -3,7 +3,7 @@ apply plugin: 'com.github.dcendents.android-maven' buildscript { repositories { - maven { url 'http://repo1.maven.org/maven2' } + maven { url 'https://repo1.maven.org/maven2' } maven { url "https://plugins.gradle.org/m2/" } google() } @@ -32,7 +32,7 @@ android { minSdkVersion 14 targetSdkVersion 28 versionCode 1 - versionName "1.3.9" + versionName "1.3.10" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" diff --git a/batching/build.gradle b/batching/build.gradle index 0abda2f..b5eb975 100644 --- a/batching/build.gradle +++ b/batching/build.gradle @@ -38,7 +38,7 @@ android { minSdkVersion 14 targetSdkVersion 28 versionCode 1 - versionName "1.3.9" + versionName "1.3.10" } buildTypes { @@ -68,7 +68,7 @@ dependencies { buildscript { repositories { - maven { url 'http://repo1.maven.org/maven2' } + maven { url 'https://repo1.maven.org/maven2' } maven { url "https://plugins.gradle.org/m2/" } google() } diff --git a/batching/src/main/java/com/flipkart/batching/listener/PersistedBatchReadyListener.java b/batching/src/main/java/com/flipkart/batching/listener/PersistedBatchReadyListener.java index 9c38be8..28532b2 100644 --- a/batching/src/main/java/com/flipkart/batching/listener/PersistedBatchReadyListener.java +++ b/batching/src/main/java/com/flipkart/batching/listener/PersistedBatchReadyListener.java @@ -215,7 +215,7 @@ public void run() { }); } - void checkPendingAndContinue() { + protected void checkPendingAndContinue() { initializeIfRequired(); if (queueFile.size() > 0) { try {