- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
77 lines
1.9 KiB
Java
77 lines
1.9 KiB
Java
package com.ironsource;
|
|
|
|
import android.annotation.SuppressLint;
|
|
import android.os.Build;
|
|
import android.webkit.WebView;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public interface qj {
|
|
|
|
public static final class a implements qj {
|
|
private WebView a;
|
|
private boolean b;
|
|
|
|
public a() {
|
|
this(0, 1, null);
|
|
}
|
|
|
|
public a(int i) {
|
|
this.b = i >= 19;
|
|
}
|
|
|
|
public /* synthetic */ a(int i, int i2, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i2 & 1) != 0 ? Build.VERSION.SDK_INT : i);
|
|
}
|
|
|
|
@SuppressLint({"NewApi"})
|
|
private final void b(String str) {
|
|
WebView webView = this.a;
|
|
if (webView != null) {
|
|
webView.evaluateJavascript(str, null);
|
|
}
|
|
}
|
|
|
|
private final void c(String str) {
|
|
WebView webView = this.a;
|
|
if (webView != null) {
|
|
webView.loadUrl("javascript:" + str);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.qj
|
|
public void a(WebView webView) {
|
|
Intrinsics.checkNotNullParameter(webView, "webView");
|
|
this.a = webView;
|
|
}
|
|
|
|
@Override // com.ironsource.qj
|
|
public void a(String script) {
|
|
Intrinsics.checkNotNullParameter(script, "script");
|
|
try {
|
|
if (this.b) {
|
|
b(script);
|
|
} else {
|
|
c(script);
|
|
}
|
|
} catch (Throwable th) {
|
|
i9.d().a(th);
|
|
this.b = false;
|
|
c(script);
|
|
}
|
|
}
|
|
|
|
@Override // com.ironsource.qj
|
|
public boolean a() {
|
|
return this.a != null;
|
|
}
|
|
}
|
|
|
|
void a(WebView webView);
|
|
|
|
void a(String str);
|
|
|
|
boolean a();
|
|
}
|