- 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
173 lines
6.7 KiB
Java
173 lines
6.7 KiB
Java
package com.fyber.inneractive.sdk.ignite;
|
|
|
|
import android.text.TextUtils;
|
|
import androidx.core.app.NotificationCompat;
|
|
import com.digitalturbine.ignite.cl.aidl.IIgniteServiceCallback;
|
|
import com.fyber.inneractive.sdk.config.IAConfigManager;
|
|
import com.fyber.inneractive.sdk.flow.p;
|
|
import com.fyber.inneractive.sdk.ignite.c;
|
|
import com.fyber.inneractive.sdk.ignite.g;
|
|
import com.fyber.inneractive.sdk.network.j0;
|
|
import com.fyber.inneractive.sdk.network.r;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import com.unity3d.ads.core.domain.HandleInvocationsFromAdViewer;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class p extends IIgniteServiceCallback.Stub {
|
|
public final o a;
|
|
public final g.a b;
|
|
|
|
public p(o oVar, c.a aVar) {
|
|
this.a = oVar;
|
|
this.b = aVar;
|
|
}
|
|
|
|
/* JADX WARN: Can't wrap try/catch for region: R(12:3|4|5|6|7|(6:9|11|12|(1:14)|16|17)|20|11|12|(0)|16|17) */
|
|
/* JADX WARN: Removed duplicated region for block: B:14:0x003b A[Catch: Exception -> 0x0041, TRY_LEAVE, TryCatch #2 {Exception -> 0x0041, blocks: (B:12:0x0030, B:14:0x003b), top: B:11:0x0030 }] */
|
|
@Override // com.digitalturbine.ignite.cl.aidl.IIgniteServiceCallback
|
|
/*
|
|
Code decompiled incorrectly, please refer to instructions dump.
|
|
To view partially-correct add '--show-bad-code' argument
|
|
*/
|
|
public final void onError(java.lang.String r6) {
|
|
/*
|
|
r5 = this;
|
|
java.lang.String r0 = "data"
|
|
java.lang.Object[] r1 = new java.lang.Object[]{r6}
|
|
java.lang.String r2 = "InstallCallback onError %s"
|
|
com.fyber.inneractive.sdk.util.IAlog.a(r2, r1)
|
|
com.fyber.inneractive.sdk.ignite.o r1 = r5.a
|
|
if (r1 == 0) goto L46
|
|
r1 = 0
|
|
org.json.JSONObject r2 = new org.json.JSONObject // Catch: java.lang.Exception -> L1c
|
|
r2.<init>(r6) // Catch: java.lang.Exception -> L1c
|
|
java.lang.String r3 = "taskId"
|
|
java.lang.String r2 = r2.optString(r3) // Catch: java.lang.Exception -> L1c
|
|
goto L1d
|
|
L1c:
|
|
r2 = r1
|
|
L1d:
|
|
org.json.JSONObject r3 = new org.json.JSONObject // Catch: java.lang.Exception -> L2f
|
|
r3.<init>(r6) // Catch: java.lang.Exception -> L2f
|
|
org.json.JSONObject r3 = r3.optJSONObject(r0) // Catch: java.lang.Exception -> L2f
|
|
if (r3 == 0) goto L2f
|
|
java.lang.String r4 = "message"
|
|
java.lang.String r3 = r3.optString(r4) // Catch: java.lang.Exception -> L2f
|
|
goto L30
|
|
L2f:
|
|
r3 = r1
|
|
L30:
|
|
org.json.JSONObject r4 = new org.json.JSONObject // Catch: java.lang.Exception -> L41
|
|
r4.<init>(r6) // Catch: java.lang.Exception -> L41
|
|
org.json.JSONObject r6 = r4.optJSONObject(r0) // Catch: java.lang.Exception -> L41
|
|
if (r6 == 0) goto L41
|
|
java.lang.String r0 = "code"
|
|
java.lang.String r1 = r6.optString(r0) // Catch: java.lang.Exception -> L41
|
|
L41:
|
|
com.fyber.inneractive.sdk.ignite.o r6 = r5.a
|
|
r6.a(r2, r3, r1)
|
|
L46:
|
|
return
|
|
*/
|
|
throw new UnsupportedOperationException("Method not decompiled: com.fyber.inneractive.sdk.ignite.p.onError(java.lang.String):void");
|
|
}
|
|
|
|
@Override // com.digitalturbine.ignite.cl.aidl.IIgniteServiceCallback
|
|
public final void onProgress(String str) {
|
|
String str2;
|
|
JSONObject optJSONObject;
|
|
IAlog.a("InstallCallback onProgress %s", str);
|
|
try {
|
|
str2 = new JSONObject(str).optString("taskId");
|
|
} catch (Exception unused) {
|
|
str2 = null;
|
|
}
|
|
try {
|
|
JSONObject optJSONObject2 = new JSONObject(str).optJSONObject("data");
|
|
if (optJSONObject2 == null || (optJSONObject = optJSONObject2.optJSONObject(NotificationCompat.CATEGORY_PROGRESS)) == null) {
|
|
return;
|
|
}
|
|
int optInt = optJSONObject.optInt("action");
|
|
double optDouble = optJSONObject.optDouble("value");
|
|
o oVar = this.a;
|
|
if (oVar != null) {
|
|
oVar.a(str2, optInt, optDouble);
|
|
}
|
|
} catch (Exception unused2) {
|
|
IAlog.a("Failed to resolve progress data", new Object[0]);
|
|
}
|
|
}
|
|
|
|
@Override // com.digitalturbine.ignite.cl.aidl.IIgniteServiceCallback
|
|
public final void onScheduled(String str) {
|
|
String str2;
|
|
IAlog.a("InstallCallback onScheduled %s", str);
|
|
String str3 = null;
|
|
try {
|
|
str2 = new JSONObject(str).optString("taskId");
|
|
} catch (Exception unused) {
|
|
str2 = null;
|
|
}
|
|
try {
|
|
str3 = new JSONObject(str).getJSONObject("application").optString(HandleInvocationsFromAdViewer.KEY_PACKAGE_NAME);
|
|
} catch (Exception unused2) {
|
|
}
|
|
try {
|
|
o oVar = this.a;
|
|
if (oVar != null) {
|
|
oVar.a(str2, str3);
|
|
}
|
|
} catch (Exception unused3) {
|
|
IAlog.a("Failed to resolve taskId", new Object[0]);
|
|
}
|
|
}
|
|
|
|
@Override // com.digitalturbine.ignite.cl.aidl.IIgniteServiceCallback
|
|
public final void onStart(String str) {
|
|
String str2;
|
|
IAlog.a("InstallCallback onStart %s", str);
|
|
if (this.a != null) {
|
|
try {
|
|
str2 = new JSONObject(str).optString("taskId");
|
|
} catch (Exception unused) {
|
|
str2 = null;
|
|
}
|
|
this.a.b(str2);
|
|
}
|
|
}
|
|
|
|
@Override // com.digitalturbine.ignite.cl.aidl.IIgniteServiceCallback
|
|
public final void onSuccess(String str) {
|
|
String str2;
|
|
IAlog.a("InstallCallback onSuccess %s", str);
|
|
if (this.a != null) {
|
|
try {
|
|
str2 = new JSONObject(str).optString("taskId");
|
|
} catch (Exception unused) {
|
|
str2 = null;
|
|
}
|
|
this.a.a(str2);
|
|
g.a aVar = this.b;
|
|
if (aVar != null) {
|
|
c.a aVar2 = (c.a) aVar;
|
|
c cVar = c.this;
|
|
String str3 = aVar2.a.a;
|
|
cVar.getClass();
|
|
if (!TextUtils.isEmpty(str3)) {
|
|
IAConfigManager.L.r.a(new j0(new e(str3), str3));
|
|
}
|
|
c.C0073c c0073c = aVar2.a;
|
|
com.fyber.inneractive.sdk.flow.p<?> pVar = c0073c.b;
|
|
l lVar = c0073c.c;
|
|
p.a aVar3 = pVar.h;
|
|
r rVar = r.IGNITE_FLOW_INSTALL_DONE;
|
|
if (lVar == null) {
|
|
lVar = l.SINGLE_TAP;
|
|
}
|
|
aVar3.a(rVar, lVar);
|
|
}
|
|
}
|
|
}
|
|
}
|