Files
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

78 lines
2.1 KiB
Java

package com.fyber.inneractive.sdk.util;
import android.net.Uri;
import android.text.TextUtils;
import androidx.core.net.MailTo;
import com.fyber.inneractive.sdk.config.IAConfigManager;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
/* loaded from: classes2.dex */
public final class a0 extends o {
public static final class a {
public final d a;
public final Throwable b;
public a(d dVar, Throwable th) {
this.a = dVar;
this.b = th;
}
}
public static final class b extends Exception {
public b(String str) {
super(str);
}
}
public enum c {
DO_NOT_OPEN_IN_INTERNAL_BROWSER,
OPEN_EVERYTHING
}
public enum d {
FAILED,
OPENED_IN_INTERNAL_BROWSER,
OPEN_IN_EXTERNAL_APPLICATION,
OPEN_IN_EXTERNAL_BROWSER,
OPENED_USING_CHROME_NAVIGATE,
OPENED_INTERNAL_STORE
}
public static HashMap a(Uri uri) {
HashMap hashMap = new HashMap();
for (String str : uri.getQueryParameterNames()) {
hashMap.put(str, uri.getQueryParameter(str));
}
return hashMap;
}
public static boolean d(String str) {
return str.startsWith("http%3A%2F%2F") || str.startsWith("https%3A%2F%2F") || str.startsWith("%");
}
public static boolean e(String str) {
if (!str.startsWith("tel:") && !str.startsWith("voicemail:") && !str.startsWith("sms:") && !str.startsWith(MailTo.MAILTO_SCHEME) && !str.startsWith("geo:") && !str.startsWith("google.streetview:")) {
try {
new URL(str);
return false;
} catch (MalformedURLException unused) {
IAlog.f("Failed to open Url: %s", str);
}
}
return true;
}
public static boolean f(String str) {
if (TextUtils.isEmpty(str)) {
return true;
}
if (!s.a() || IAConfigManager.L.q) {
return (str.startsWith("http://") || str.startsWith("http%3A%2F%2F")) ? false : true;
}
return true;
}
}