- 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
464 lines
16 KiB
Java
464 lines
16 KiB
Java
package com.ironsource;
|
|
|
|
import android.content.Context;
|
|
import android.graphics.drawable.Drawable;
|
|
import android.view.View;
|
|
import android.webkit.WebView;
|
|
import com.ironsource.v8;
|
|
import kotlin.Result;
|
|
import kotlin.ResultKt;
|
|
import kotlin.Unit;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class dg {
|
|
private final String a;
|
|
private final String b;
|
|
private final String c;
|
|
private final String d;
|
|
private final Drawable e;
|
|
private final WebView f;
|
|
private final View g;
|
|
|
|
public static final class a {
|
|
private final sg a;
|
|
private final u2 b;
|
|
|
|
public a(sg imageLoader, u2 adViewManagement) {
|
|
Intrinsics.checkNotNullParameter(imageLoader, "imageLoader");
|
|
Intrinsics.checkNotNullParameter(adViewManagement, "adViewManagement");
|
|
this.a = imageLoader;
|
|
this.b = adViewManagement;
|
|
}
|
|
|
|
private final Result a(String str) {
|
|
Object m4060constructorimpl;
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
hg a = this.b.a(str);
|
|
WebView presentingView = a != null ? a.getPresentingView() : null;
|
|
if (presentingView == null) {
|
|
Result.Companion companion = Result.Companion;
|
|
m4060constructorimpl = Result.m4060constructorimpl(ResultKt.createFailure(new Exception("missing adview for id: '" + str + '\'')));
|
|
} else {
|
|
m4060constructorimpl = Result.m4060constructorimpl(presentingView);
|
|
}
|
|
return Result.m4059boximpl(m4060constructorimpl);
|
|
}
|
|
|
|
private final Result b(String str) {
|
|
if (str == null) {
|
|
return null;
|
|
}
|
|
return Result.m4059boximpl(this.a.a(str));
|
|
}
|
|
|
|
public final b a(Context activityContext, JSONObject json) {
|
|
String str;
|
|
String str2;
|
|
String str3;
|
|
String str4;
|
|
String b;
|
|
String b2;
|
|
String b3;
|
|
String b4;
|
|
Intrinsics.checkNotNullParameter(activityContext, "activityContext");
|
|
Intrinsics.checkNotNullParameter(json, "json");
|
|
JSONObject optJSONObject = json.optJSONObject("title");
|
|
if (optJSONObject != null) {
|
|
b4 = eg.b(optJSONObject, "text");
|
|
str = b4;
|
|
} else {
|
|
str = null;
|
|
}
|
|
JSONObject optJSONObject2 = json.optJSONObject(v8.h.F0);
|
|
if (optJSONObject2 != null) {
|
|
b3 = eg.b(optJSONObject2, "text");
|
|
str2 = b3;
|
|
} else {
|
|
str2 = null;
|
|
}
|
|
JSONObject optJSONObject3 = json.optJSONObject("body");
|
|
if (optJSONObject3 != null) {
|
|
b2 = eg.b(optJSONObject3, "text");
|
|
str3 = b2;
|
|
} else {
|
|
str3 = null;
|
|
}
|
|
JSONObject optJSONObject4 = json.optJSONObject("cta");
|
|
if (optJSONObject4 != null) {
|
|
b = eg.b(optJSONObject4, "text");
|
|
str4 = b;
|
|
} else {
|
|
str4 = null;
|
|
}
|
|
JSONObject optJSONObject5 = json.optJSONObject("icon");
|
|
String b5 = optJSONObject5 != null ? eg.b(optJSONObject5, "url") : null;
|
|
JSONObject optJSONObject6 = json.optJSONObject("media");
|
|
String b6 = optJSONObject6 != null ? eg.b(optJSONObject6, "adViewId") : null;
|
|
JSONObject optJSONObject7 = json.optJSONObject(v8.h.J0);
|
|
return new b(new b.a(str, str2, str3, str4, b(b5), a(b6), lo.a.a(activityContext, optJSONObject7 != null ? eg.b(optJSONObject7, "url") : null, this.a)));
|
|
}
|
|
}
|
|
|
|
@SourceDebugExtension({"SMAP\nISNNativeAdData.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ISNNativeAdData.kt\ncom/ironsource/sdk/nativeAd/ISNNativeAdData$Report\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,110:1\n1#2:111\n*E\n"})
|
|
public static final class b {
|
|
private final a a;
|
|
|
|
public static final class a {
|
|
private final String a;
|
|
private final String b;
|
|
private final String c;
|
|
private final String d;
|
|
private final Result e;
|
|
private final Result f;
|
|
private final View g;
|
|
|
|
public a(String str, String str2, String str3, String str4, Result result, Result result2, View privacyIcon) {
|
|
Intrinsics.checkNotNullParameter(privacyIcon, "privacyIcon");
|
|
this.a = str;
|
|
this.b = str2;
|
|
this.c = str3;
|
|
this.d = str4;
|
|
this.e = result;
|
|
this.f = result2;
|
|
this.g = privacyIcon;
|
|
}
|
|
|
|
public static /* synthetic */ a a(a aVar, String str, String str2, String str3, String str4, Result result, Result result2, View view, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = aVar.a;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str2 = aVar.b;
|
|
}
|
|
String str5 = str2;
|
|
if ((i & 4) != 0) {
|
|
str3 = aVar.c;
|
|
}
|
|
String str6 = str3;
|
|
if ((i & 8) != 0) {
|
|
str4 = aVar.d;
|
|
}
|
|
String str7 = str4;
|
|
if ((i & 16) != 0) {
|
|
result = aVar.e;
|
|
}
|
|
Result result3 = result;
|
|
if ((i & 32) != 0) {
|
|
result2 = aVar.f;
|
|
}
|
|
Result result4 = result2;
|
|
if ((i & 64) != 0) {
|
|
view = aVar.g;
|
|
}
|
|
return aVar.a(str, str5, str6, str7, result3, result4, view);
|
|
}
|
|
|
|
public final a a(String str, String str2, String str3, String str4, Result result, Result result2, View privacyIcon) {
|
|
Intrinsics.checkNotNullParameter(privacyIcon, "privacyIcon");
|
|
return new a(str, str2, str3, str4, result, result2, privacyIcon);
|
|
}
|
|
|
|
public final String a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final String b() {
|
|
return this.b;
|
|
}
|
|
|
|
public final String c() {
|
|
return this.c;
|
|
}
|
|
|
|
public final String d() {
|
|
return this.d;
|
|
}
|
|
|
|
public final Result e() {
|
|
return this.e;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof a)) {
|
|
return false;
|
|
}
|
|
a aVar = (a) obj;
|
|
return Intrinsics.areEqual(this.a, aVar.a) && Intrinsics.areEqual(this.b, aVar.b) && Intrinsics.areEqual(this.c, aVar.c) && Intrinsics.areEqual(this.d, aVar.d) && Intrinsics.areEqual(this.e, aVar.e) && Intrinsics.areEqual(this.f, aVar.f) && Intrinsics.areEqual(this.g, aVar.g);
|
|
}
|
|
|
|
public final Result f() {
|
|
return this.f;
|
|
}
|
|
|
|
public final View g() {
|
|
return this.g;
|
|
}
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public final dg h() {
|
|
Drawable drawable;
|
|
String str = this.a;
|
|
String str2 = this.b;
|
|
String str3 = this.c;
|
|
String str4 = this.d;
|
|
Result result = this.e;
|
|
if (result != null) {
|
|
Object m4067unboximpl = result.m4067unboximpl();
|
|
if (Result.m4064isFailureimpl(m4067unboximpl)) {
|
|
m4067unboximpl = null;
|
|
}
|
|
drawable = (Drawable) m4067unboximpl;
|
|
} else {
|
|
drawable = null;
|
|
}
|
|
Result result2 = this.f;
|
|
if (result2 != null) {
|
|
Object m4067unboximpl2 = result2.m4067unboximpl();
|
|
r5 = Result.m4064isFailureimpl(m4067unboximpl2) ? null : m4067unboximpl2;
|
|
}
|
|
return new dg(str, str2, str3, str4, drawable, r5, this.g);
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.a;
|
|
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
|
|
String str2 = this.b;
|
|
int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
|
|
String str3 = this.c;
|
|
int hashCode3 = (hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
|
|
String str4 = this.d;
|
|
int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
|
|
Result result = this.e;
|
|
int m4063hashCodeimpl = (hashCode4 + (result == null ? 0 : Result.m4063hashCodeimpl(result.m4067unboximpl()))) * 31;
|
|
Result result2 = this.f;
|
|
return ((m4063hashCodeimpl + (result2 != null ? Result.m4063hashCodeimpl(result2.m4067unboximpl()) : 0)) * 31) + this.g.hashCode();
|
|
}
|
|
|
|
public final String i() {
|
|
return this.b;
|
|
}
|
|
|
|
public final String j() {
|
|
return this.c;
|
|
}
|
|
|
|
public final String k() {
|
|
return this.d;
|
|
}
|
|
|
|
public final Result l() {
|
|
return this.e;
|
|
}
|
|
|
|
public final Result m() {
|
|
return this.f;
|
|
}
|
|
|
|
public final View n() {
|
|
return this.g;
|
|
}
|
|
|
|
public final String o() {
|
|
return this.a;
|
|
}
|
|
|
|
public String toString() {
|
|
return "Data(title=" + this.a + ", advertiser=" + this.b + ", body=" + this.c + ", cta=" + this.d + ", icon=" + this.e + ", media=" + this.f + ", privacyIcon=" + this.g + ')';
|
|
}
|
|
}
|
|
|
|
public b(a data) {
|
|
Intrinsics.checkNotNullParameter(data, "data");
|
|
this.a = data;
|
|
}
|
|
|
|
private static final void a(JSONObject jSONObject, String str) {
|
|
jSONObject.put(str, new JSONObject().put("success", true));
|
|
}
|
|
|
|
private static final <T> void a(JSONObject jSONObject, String str, Object obj) {
|
|
JSONObject jSONObject2 = new JSONObject();
|
|
jSONObject2.put("success", Result.m4065isSuccessimpl(obj));
|
|
Throwable m4062exceptionOrNullimpl = Result.m4062exceptionOrNullimpl(obj);
|
|
if (m4062exceptionOrNullimpl != null) {
|
|
String message = m4062exceptionOrNullimpl.getMessage();
|
|
if (message == null) {
|
|
message = "unknown reason";
|
|
}
|
|
jSONObject2.put("reason", message);
|
|
}
|
|
Unit unit = Unit.INSTANCE;
|
|
jSONObject.put(str, jSONObject2);
|
|
}
|
|
|
|
public final a a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final JSONObject b() {
|
|
JSONObject jSONObject = new JSONObject();
|
|
if (this.a.o() != null) {
|
|
a(jSONObject, "title");
|
|
}
|
|
if (this.a.i() != null) {
|
|
a(jSONObject, v8.h.F0);
|
|
}
|
|
if (this.a.j() != null) {
|
|
a(jSONObject, "body");
|
|
}
|
|
if (this.a.k() != null) {
|
|
a(jSONObject, "cta");
|
|
}
|
|
Result l = this.a.l();
|
|
if (l != null) {
|
|
a(jSONObject, "icon", l.m4067unboximpl());
|
|
}
|
|
Result m = this.a.m();
|
|
if (m != null) {
|
|
a(jSONObject, "media", m.m4067unboximpl());
|
|
}
|
|
return jSONObject;
|
|
}
|
|
}
|
|
|
|
public dg(String str, String str2, String str3, String str4, Drawable drawable, WebView webView, View privacyIcon) {
|
|
Intrinsics.checkNotNullParameter(privacyIcon, "privacyIcon");
|
|
this.a = str;
|
|
this.b = str2;
|
|
this.c = str3;
|
|
this.d = str4;
|
|
this.e = drawable;
|
|
this.f = webView;
|
|
this.g = privacyIcon;
|
|
}
|
|
|
|
public static /* synthetic */ dg a(dg dgVar, String str, String str2, String str3, String str4, Drawable drawable, WebView webView, View view, int i, Object obj) {
|
|
if ((i & 1) != 0) {
|
|
str = dgVar.a;
|
|
}
|
|
if ((i & 2) != 0) {
|
|
str2 = dgVar.b;
|
|
}
|
|
String str5 = str2;
|
|
if ((i & 4) != 0) {
|
|
str3 = dgVar.c;
|
|
}
|
|
String str6 = str3;
|
|
if ((i & 8) != 0) {
|
|
str4 = dgVar.d;
|
|
}
|
|
String str7 = str4;
|
|
if ((i & 16) != 0) {
|
|
drawable = dgVar.e;
|
|
}
|
|
Drawable drawable2 = drawable;
|
|
if ((i & 32) != 0) {
|
|
webView = dgVar.f;
|
|
}
|
|
WebView webView2 = webView;
|
|
if ((i & 64) != 0) {
|
|
view = dgVar.g;
|
|
}
|
|
return dgVar.a(str, str5, str6, str7, drawable2, webView2, view);
|
|
}
|
|
|
|
public final dg a(String str, String str2, String str3, String str4, Drawable drawable, WebView webView, View privacyIcon) {
|
|
Intrinsics.checkNotNullParameter(privacyIcon, "privacyIcon");
|
|
return new dg(str, str2, str3, str4, drawable, webView, privacyIcon);
|
|
}
|
|
|
|
public final String a() {
|
|
return this.a;
|
|
}
|
|
|
|
public final String b() {
|
|
return this.b;
|
|
}
|
|
|
|
public final String c() {
|
|
return this.c;
|
|
}
|
|
|
|
public final String d() {
|
|
return this.d;
|
|
}
|
|
|
|
public final Drawable e() {
|
|
return this.e;
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (!(obj instanceof dg)) {
|
|
return false;
|
|
}
|
|
dg dgVar = (dg) obj;
|
|
return Intrinsics.areEqual(this.a, dgVar.a) && Intrinsics.areEqual(this.b, dgVar.b) && Intrinsics.areEqual(this.c, dgVar.c) && Intrinsics.areEqual(this.d, dgVar.d) && Intrinsics.areEqual(this.e, dgVar.e) && Intrinsics.areEqual(this.f, dgVar.f) && Intrinsics.areEqual(this.g, dgVar.g);
|
|
}
|
|
|
|
public final WebView f() {
|
|
return this.f;
|
|
}
|
|
|
|
public final View g() {
|
|
return this.g;
|
|
}
|
|
|
|
public final String h() {
|
|
return this.b;
|
|
}
|
|
|
|
public int hashCode() {
|
|
String str = this.a;
|
|
int hashCode = (str == null ? 0 : str.hashCode()) * 31;
|
|
String str2 = this.b;
|
|
int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
|
|
String str3 = this.c;
|
|
int hashCode3 = (hashCode2 + (str3 == null ? 0 : str3.hashCode())) * 31;
|
|
String str4 = this.d;
|
|
int hashCode4 = (hashCode3 + (str4 == null ? 0 : str4.hashCode())) * 31;
|
|
Drawable drawable = this.e;
|
|
int hashCode5 = (hashCode4 + (drawable == null ? 0 : drawable.hashCode())) * 31;
|
|
WebView webView = this.f;
|
|
return ((hashCode5 + (webView != null ? webView.hashCode() : 0)) * 31) + this.g.hashCode();
|
|
}
|
|
|
|
public final String i() {
|
|
return this.c;
|
|
}
|
|
|
|
public final String j() {
|
|
return this.d;
|
|
}
|
|
|
|
public final Drawable k() {
|
|
return this.e;
|
|
}
|
|
|
|
public final WebView l() {
|
|
return this.f;
|
|
}
|
|
|
|
public final View m() {
|
|
return this.g;
|
|
}
|
|
|
|
public final String n() {
|
|
return this.a;
|
|
}
|
|
|
|
public String toString() {
|
|
return "ISNNativeAdData(title=" + this.a + ", advertiser=" + this.b + ", body=" + this.c + ", cta=" + this.d + ", icon=" + this.e + ", mediaView=" + this.f + ", privacyIcon=" + this.g + ')';
|
|
}
|
|
}
|