Skip to content

Commit

Permalink
Restore public visibility of classes containing swazzled code
Browse files Browse the repository at this point in the history
  • Loading branch information
bidetofevil committed Jan 17, 2025
1 parent 69faac8 commit dfea178
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @hide
*/
@InternalApi
final class WebViewChromeClientSwazzledHooks {
public final class WebViewChromeClientSwazzledHooks {

private WebViewChromeClientSwazzledHooks() {
}
Expand Down
15 changes: 15 additions & 0 deletions embrace-android-sdk/api/embrace-android-sdk.api
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,18 @@ public final class io/embrace/android/embracesdk/Embrace$Companion {
public final fun getInstance ()Lio/embrace/android/embracesdk/Embrace;
}

public final class io/embrace/android/embracesdk/ViewSwazzledHooks {
}

public final class io/embrace/android/embracesdk/ViewSwazzledHooks$OnClickListener {
public static fun _preOnClick (Landroid/view/View$OnClickListener;Landroid/view/View;)V
}

public final class io/embrace/android/embracesdk/ViewSwazzledHooks$OnLongClickListener {
public static fun _preOnLongClick (Landroid/view/View$OnLongClickListener;Landroid/view/View;)V
}

public final class io/embrace/android/embracesdk/WebViewClientSwazzledHooks {
public static fun _preOnPageStarted (Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V
}

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* @hide
*/
@InternalApi
final class ViewSwazzledHooks {
public final class ViewSwazzledHooks {

private static final String UNKNOWN_ELEMENT_NAME = "Unknown element";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
package io.embrace.android.embracesdk;

import androidx.annotation.Nullable;

import io.embrace.android.embracesdk.annotation.InternalApi;

/**
* @hide
*/
@InternalApi
final class WebViewClientSwazzledHooks {
public final class WebViewClientSwazzledHooks {

private WebViewClientSwazzledHooks() {
}

@SuppressWarnings("MethodNameCheck")
public static void _preOnPageStarted(android.webkit.WebView view,
java.lang.String url,
android.graphics.Bitmap favicon) {
public static void _preOnPageStarted(@Nullable android.webkit.WebView view,
@Nullable java.lang.String url,
@Nullable android.graphics.Bitmap favicon) {
Embrace.getInstance().logWebView(url);
}
}

0 comments on commit dfea178

Please sign in to comment.