Skip to content

Commit

Permalink
release: SDK 1.21.2
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-roland committed Apr 29, 2024
1 parent a5468fb commit 2bd24e4
Show file tree
Hide file tree
Showing 5 changed files with 9,850 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Sources/buildSrc/src/main/java/Consts.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object ProjectConsts {
}

object SDKConsts {
const val VERSION = "1.21.1"
const val VERSION = "1.21.2"
const val API_LEVEL = 70
const val MESSAGING_API_LEVEL = 12

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import androidx.annotation.Nullable;
import androidx.annotation.UiThread;
import androidx.annotation.WorkerThread;
import com.batch.android.core.Logger;
import com.batch.android.core.NamedThreadFactory;
import java.util.LinkedList;
import java.util.Queue;
Expand Down Expand Up @@ -76,11 +77,10 @@ private void produceNextFrame() {
gifDecoder.advance();
FrameInfo nextFrame = new FrameInfo(gifDecoder.getNextFrame(), gifDecoder.getNextDelay());
Message.obtain(mainThreadHandler, MESSAGE_FRAME_PRODUCED, nextFrame).sendToTarget();
} catch (OutOfMemoryError e) {
//TODO: Batch log
} catch (Exception | OutOfMemoryError e) {
ranOutOfMemory = true;
Message.obtain(mainThreadHandler, MESSAGE_RAN_OUT_OF_MEMORY).sendToTarget();
Log.e("GIF", "Ran out of memory " + e);
Logger.error("Failed producing next gif frame.", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,17 +143,22 @@ public boolean onCreateWindow(
// view.getHitTestResult() returns the source of the image
// rather than the url.
if (result.getType() == WebView.HitTestResult.SRC_IMAGE_ANCHOR_TYPE) {
Message href = view.getHandler().obtainMessage();
view.requestFocusNodeHref(href);
Bundle data = href.getData();
if (data != null) {
String imageUrl = data.getString("url");
if (imageUrl != null && !imageUrl.isEmpty()) {
url = imageUrl;
Handler handler = view.getHandler();
if (handler != null) {
Message href = handler.obtainMessage();
view.requestFocusNodeHref(href);
Bundle data = href.getData();
if (data != null) {
String imageUrl = data.getString("url");
if (imageUrl != null && !imageUrl.isEmpty()) {
url = imageUrl;
}
}
}
}
actionListener.onOpenDeeplinkAction(url, null, null);
if (url != null) {
actionListener.onOpenDeeplinkAction(url, null, null);
}
}
return super.onCreateWindow(view, isDialog, isUserGesture, resultMsg);
}
Expand Down
1 change: 1 addition & 0 deletions proguard-mappings/1.21.2/checksum.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4c6d282444bcac8af38b7dfb219ccca92ff8e2e3 public-sdk/Batch.aar
Loading

0 comments on commit 2bd24e4

Please sign in to comment.