- 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
222 lines
7.1 KiB
Java
222 lines
7.1 KiB
Java
package com.applovin.impl;
|
|
|
|
import android.view.View;
|
|
import android.webkit.WebView;
|
|
import com.applovin.impl.sdk.AppLovinAdBase;
|
|
import com.applovin.impl.sdk.utils.StringUtils;
|
|
import com.applovin.sdk.AppLovinSdkUtils;
|
|
import com.facebook.internal.security.CertificateUtil;
|
|
import com.iab.omid.library.applovin.adsession.AdEvents;
|
|
import com.iab.omid.library.applovin.adsession.AdSession;
|
|
import com.iab.omid.library.applovin.adsession.AdSessionConfiguration;
|
|
import com.iab.omid.library.applovin.adsession.AdSessionContext;
|
|
import com.iab.omid.library.applovin.adsession.ErrorType;
|
|
import java.util.Collections;
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes.dex */
|
|
public abstract class mg {
|
|
protected final AppLovinAdBase a;
|
|
protected final com.applovin.impl.sdk.j b;
|
|
protected final com.applovin.impl.sdk.n c;
|
|
protected final String d;
|
|
protected boolean e;
|
|
protected AdSession f;
|
|
protected AdEvents g;
|
|
|
|
public abstract AdSessionConfiguration a();
|
|
|
|
public abstract AdSessionContext a(WebView webView);
|
|
|
|
public void a(AdSession adSession) {
|
|
}
|
|
|
|
public mg(AppLovinAdBase appLovinAdBase) {
|
|
this.a = appLovinAdBase;
|
|
this.b = appLovinAdBase.getSdk();
|
|
this.c = appLovinAdBase.getSdk().J();
|
|
String str = "AdEventTracker:" + appLovinAdBase.getAdIdNumber();
|
|
if (StringUtils.isValidString(appLovinAdBase.getDspName())) {
|
|
str = str + CertificateUtil.DELIMITER + appLovinAdBase.getDspName();
|
|
}
|
|
this.d = str;
|
|
}
|
|
|
|
public void e() {
|
|
c(null);
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void b(WebView webView) {
|
|
AdSessionContext a;
|
|
if (!this.a.isOpenMeasurementEnabled()) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.d(this.d, "Skip starting session - Open Measurement disabled");
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (this.f != null) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.k(this.d, "Attempting to start session again for ad: " + this.a);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.d, "Starting session");
|
|
}
|
|
AdSessionConfiguration a2 = a();
|
|
if (a2 == null || (a = a(webView)) == null) {
|
|
return;
|
|
}
|
|
try {
|
|
AdSession createAdSession = AdSession.createAdSession(a2, a);
|
|
this.f = createAdSession;
|
|
try {
|
|
this.g = AdEvents.createAdEvents(createAdSession);
|
|
a(this.f);
|
|
this.f.start();
|
|
this.e = true;
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.d, "Session started");
|
|
}
|
|
} catch (Throwable th) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.d, "Failed to create ad events", th);
|
|
}
|
|
}
|
|
} catch (Throwable th2) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.d, "Failed to create session", th2);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void d() {
|
|
this.g.loaded();
|
|
}
|
|
|
|
public void h() {
|
|
b("track loaded", new Runnable() { // from class: com.applovin.impl.mg$$ExternalSyntheticLambda6
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
mg.this.d();
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void c() {
|
|
this.g.impressionOccurred();
|
|
}
|
|
|
|
public void g() {
|
|
b("track impression event", new Runnable() { // from class: com.applovin.impl.mg$$ExternalSyntheticLambda4
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
mg.this.c();
|
|
}
|
|
});
|
|
}
|
|
|
|
public void f() {
|
|
b("stop session", new Runnable() { // from class: com.applovin.impl.mg$$ExternalSyntheticLambda0
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
mg.this.b();
|
|
}
|
|
});
|
|
}
|
|
|
|
public void c(final WebView webView) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.mg$$ExternalSyntheticLambda5
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
mg.this.b(webView);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(String str, Runnable runnable) {
|
|
try {
|
|
if (this.e) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.d, "Running operation: " + str);
|
|
}
|
|
runnable.run();
|
|
}
|
|
} catch (Throwable th) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.d, "Failed to run operation: " + str, th);
|
|
}
|
|
}
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void b() {
|
|
this.e = false;
|
|
this.f.finish();
|
|
this.f = null;
|
|
this.g = null;
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(String str) {
|
|
this.f.error(ErrorType.VIDEO, str);
|
|
}
|
|
|
|
public void b(final String str, final Runnable runnable) {
|
|
AppLovinSdkUtils.runOnUiThread(new Runnable() { // from class: com.applovin.impl.mg$$ExternalSyntheticLambda2
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
mg.this.a(str, runnable);
|
|
}
|
|
});
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: private */
|
|
public /* synthetic */ void a(View view, List list) {
|
|
this.f.registerAdView(view);
|
|
this.f.removeAllFriendlyObstructions();
|
|
Iterator it = list.iterator();
|
|
while (it.hasNext()) {
|
|
og ogVar = (og) it.next();
|
|
if (ogVar.c() != null) {
|
|
try {
|
|
this.f.addFriendlyObstruction(ogVar.c(), ogVar.b(), ogVar.a());
|
|
} catch (Throwable th) {
|
|
if (com.applovin.impl.sdk.n.a()) {
|
|
this.c.a(this.d, "Failed to add friendly obstruction (" + ogVar + ")", th);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
public void b(final String str) {
|
|
b("track error", new Runnable() { // from class: com.applovin.impl.mg$$ExternalSyntheticLambda1
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
mg.this.a(str);
|
|
}
|
|
});
|
|
}
|
|
|
|
public void a(View view) {
|
|
b(view, Collections.emptyList());
|
|
}
|
|
|
|
public void b(final View view, final List list) {
|
|
b("update main view: " + view, new Runnable() { // from class: com.applovin.impl.mg$$ExternalSyntheticLambda3
|
|
@Override // java.lang.Runnable
|
|
public final void run() {
|
|
mg.this.a(view, list);
|
|
}
|
|
});
|
|
}
|
|
}
|