Kufar v3.2.0版本的 MD5 值为:6a4d203db1c561c7e3bcd50d23fed59f
以下内容为反编译后的 b.java 源代码,内容仅作参考
package by.kufar.re.ui.widget.webview;
import android.content.Context;
import androidx.compose.runtime.internal.StabilityInferred;
import com.google.android.gms.common.internal.ServiceSpecificExtraArgs;
import e80.t;
import java.net.URL;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.s;
@StabilityInferred(parameters = 0)
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010 \n\u0002\b\n\bÇ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0015\u0010\u0016J\u0016\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004J\u000e\u0010\b\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u0004J\u000e\u0010\f\u001a\u00020\u000b2\u0006\u0010\n\u001a\u00020\tR\u001a\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00040\r8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u000e\u0010\u000fR\u0018\u0010\u0012\u001a\u0004\u0018\u00010\t8\u0002@\u0002X\u0082\u000e¢\u0006\u0006\n\u0004\b\b\u0010\u0011R\u0013\u0010\u0014\u001a\u0004\u0018\u00010\t8F¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u0013¨\u0006\u0017"}, d2 = {"Lby/kufar/re/ui/widget/webview/b;", "", "Landroid/content/Context;", "context", "", "url", "", "a", "c", "Lby/kufar/re/ui/widget/webview/c;", ServiceSpecificExtraArgs.CastExtraArgs.LISTENER, "", "d", "", "b", "Ljava/util/List;", "ALLOW_AUTH_HEADERS_HOSTS", "Lby/kufar/re/ui/widget/webview/c;", "_webViewEventListener", "()Lby/kufar/re/ui/widget/webview/c;", "webViewEventListener", "<init>", "()V", "kufar-ui_googleRelease"}, k = 1, mv = {1, 9, 0})
public final class b {
public static c _webViewEventListener;
public static final b f15471a = new b();
public static final List<String> ALLOW_AUTH_HEADERS_HOSTS = t.p("www.kufar.by", "kufar.by", "support.kufar.by", "pre.kuf.by", "www.pre.kuf.by");
public static final int f15474d = 8;
public final boolean a(Context context, String url) {
s.j(context, "context");
s.j(url, "url");
by.kufar.re.ui.widget.webview.chrome.a aVar = by.kufar.re.ui.widget.webview.chrome.a.f15478a;
if (!aVar.e(context)) {
return false;
}
if (c(url)) {
return aVar.d(context);
}
return true;
}
public final c b() {
return _webViewEventListener;
}
public final boolean c(String url) {
s.j(url, "url");
try {
return ALLOW_AUTH_HEADERS_HOSTS.contains(new URL(url).getHost());
} catch (Exception e11) {
wc0.a.INSTANCE.d(e11);
return false;
}
}
public final void d(c listener) {
s.j(listener, "listener");
_webViewEventListener = listener;
}
}