- 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
102 lines
3.1 KiB
Java
102 lines
3.1 KiB
Java
package com.fyber.inneractive.sdk.network;
|
|
|
|
import android.content.Context;
|
|
import com.fyber.inneractive.sdk.external.InvalidAppIdException;
|
|
import com.fyber.inneractive.sdk.util.IAlog;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public class g0<T> extends f0<T> {
|
|
public final Context p;
|
|
public final com.fyber.inneractive.sdk.cache.a<T> q;
|
|
public v<T> r;
|
|
|
|
public g0(w<T> wVar, Context context, com.fyber.inneractive.sdk.cache.a<T> aVar) {
|
|
this(wVar, context, aVar, x.a().b());
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public b0 a(j jVar, Map<String, List<String>> map, int i) throws Exception {
|
|
b0 b0Var = new b0();
|
|
try {
|
|
String stringBuffer = com.fyber.inneractive.sdk.util.t.a(jVar.c).toString();
|
|
b0Var.a = this.q.a(stringBuffer);
|
|
b0Var.b = stringBuffer;
|
|
return b0Var;
|
|
} catch (Exception e) {
|
|
IAlog.a("failed parse cacheable network request", e, new Object[0]);
|
|
if (e instanceof InvalidAppIdException) {
|
|
throw e;
|
|
}
|
|
throw new a0(e);
|
|
}
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.f0, com.fyber.inneractive.sdk.network.c0
|
|
public final String b() {
|
|
return this.q.b();
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final p0 d() {
|
|
return p0.LOW;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final boolean g() {
|
|
return false;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final z getMethod() {
|
|
return z.GET;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final String getUrl() {
|
|
return this.q.getUrl();
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.f0, com.fyber.inneractive.sdk.network.c0
|
|
public final a<T> o() {
|
|
v<T> vVar = new v<>(this.p, this.q);
|
|
this.r = vVar;
|
|
com.fyber.inneractive.sdk.cache.k<T> a = vVar.a();
|
|
String str = a.b;
|
|
T t = a.a;
|
|
this.q.b();
|
|
return new a<>(str, t);
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.c0
|
|
public final int s() {
|
|
return 0;
|
|
}
|
|
|
|
public g0(w<T> wVar, Context context, com.fyber.inneractive.sdk.cache.a<T> aVar, g gVar) {
|
|
super(wVar, gVar);
|
|
this.p = context;
|
|
this.q = aVar;
|
|
}
|
|
|
|
@Override // com.fyber.inneractive.sdk.network.f0, com.fyber.inneractive.sdk.network.c0
|
|
public final void a(b0 b0Var, String str, String str2) {
|
|
v<T> vVar = this.r;
|
|
if (vVar != null) {
|
|
if (vVar.c == null) {
|
|
vVar.c = vVar.a.getSharedPreferences("IAConfigurationPreferences", 0);
|
|
}
|
|
vVar.c.edit().putString(vVar.b.a(), str2).apply();
|
|
if (b0Var == null || b0Var.b.isEmpty() || str.isEmpty()) {
|
|
return;
|
|
}
|
|
if (!this.r.a(str, b0Var.b)) {
|
|
IAlog.b("Failed to cache file", new Object[0]);
|
|
} else {
|
|
this.q.a((com.fyber.inneractive.sdk.cache.a<T>) b0Var.a);
|
|
}
|
|
}
|
|
}
|
|
}
|