Skip to content

Commit

Permalink
release: SDK 1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaud-roland committed Feb 1, 2023
1 parent 9624dae commit ba16441
Show file tree
Hide file tree
Showing 5 changed files with 8,926 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
minSdkVersion 15
targetSdkVersion 33
versionCode 1
versionName "1.19.3"
versionName "1.19.4"
buildConfigField "String", SDK_VERSION, "\"$versionName\""
buildConfigField "Integer", API_LEVEL, '51'
buildConfigField "Integer", MESSAGING_API_LEVEL, '12'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class DispatcherSerializer {
public static final String MIXPANEL_DISPATCHER_NAME = "mixpanel";
public static final String GOOGLE_ANALYTICS_DISPATCHER_NAME = "google_analytics";
public static final String BATCH_PLUGINS_DISPATCHER_NAME = "batch_plugins";
public static final String BATCH_PIANO_NAME = "piano";

private static final String CUSTOM_DISPATCHER_NAME = "other";

Expand All @@ -29,7 +30,8 @@ public class DispatcherSerializer {
AT_INTERNET_DISPATCHER_NAME,
MIXPANEL_DISPATCHER_NAME,
GOOGLE_ANALYTICS_DISPATCHER_NAME,
BATCH_PLUGINS_DISPATCHER_NAME
BATCH_PLUGINS_DISPATCHER_NAME,
BATCH_PIANO_NAME
);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,22 @@ public boolean onCreateWindow(
if (!isDialog && isUserGesture && actionListener != null) {
// A link with target="_blank" has been clicked
WebView.HitTestResult result = view.getHitTestResult();
actionListener.onOpenDeeplinkAction(result.getExtra(), null, null);
String url = result.getExtra();
// Fix the case where we have an image in a hyperlink and
// 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;
}
}
}
actionListener.onOpenDeeplinkAction(url, null, null);
}
return super.onCreateWindow(view, isDialog, isUserGesture, resultMsg);
}
Expand Down
1 change: 1 addition & 0 deletions proguard-mappings/1.19.4/checksum.sha
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
03f72118d6b80f02081fd222c3653c74bbcf16c1 public-sdk/Batch.aar
Loading

0 comments on commit ba16441

Please sign in to comment.