Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,170 @@
package com.applovin.impl;
import android.content.Context;
import android.os.Bundle;
import android.widget.ListAdapter;
import android.widget.ListView;
import com.applovin.impl.dc;
import com.applovin.impl.ec;
import com.applovin.sdk.AppLovinSdkConfiguration;
import com.applovin.sdk.R;
import com.facebook.internal.AnalyticsEvents;
import java.util.ArrayList;
import java.util.List;
/* loaded from: classes.dex */
public abstract class op extends se {
private com.applovin.impl.sdk.j a;
private ec b;
public enum c {
DESCRIPTION,
CONSENT_FLOW_GEOGRAPHY,
DEBUG_USER_GEOGRAPHY
}
public enum d {
SETTINGS,
GDPR_APPLICABILITY
}
public enum e {
PRIVACY_POLICY_URL,
TERMS_OF_SERVICE_URL
}
/* JADX INFO: Access modifiers changed from: private */
public List c() {
ArrayList arrayList = new ArrayList(e.values().length);
arrayList.add(b());
arrayList.add(d());
return arrayList;
}
@Override // com.applovin.impl.se
public com.applovin.impl.sdk.j getSdk() {
return this.a;
}
public class a extends ec {
@Override // com.applovin.impl.ec
public int b() {
return d.values().length;
}
public a(Context context) {
super(context);
}
@Override // com.applovin.impl.ec
public int d(int i) {
if (i == d.SETTINGS.ordinal()) {
return e.values().length;
}
return c.values().length;
}
@Override // com.applovin.impl.ec
public dc e(int i) {
if (i == d.SETTINGS.ordinal()) {
return new fj("SETTINGS");
}
return new fj("GDPR APPLICABILITY");
}
@Override // com.applovin.impl.ec
public List c(int i) {
return i == d.SETTINGS.ordinal() ? op.this.c() : op.this.a();
}
}
public void initialize(com.applovin.impl.sdk.j jVar) {
this.a = jVar;
a aVar = new a(this);
this.b = aVar;
aVar.a(new b(jVar));
this.b.notifyDataSetChanged();
}
public class b implements ec.a {
final /* synthetic */ com.applovin.impl.sdk.j a;
public b(com.applovin.impl.sdk.j jVar) {
this.a = jVar;
}
@Override // com.applovin.impl.ec.a
public void a(lb lbVar, dc dcVar) {
if (lbVar.b() == d.SETTINGS.ordinal()) {
if (lbVar.a() == e.PRIVACY_POLICY_URL.ordinal()) {
if (this.a.u().h() != null) {
tp.a(this.a.u().h(), com.applovin.impl.sdk.j.l(), this.a);
return;
} else {
yp.a("Missing Privacy Policy URL", "You cannot use the AppLovin SDK's consent flow without defining a Privacy Policy URL", op.this);
return;
}
}
if (lbVar.a() != e.TERMS_OF_SERVICE_URL.ordinal() || this.a.u().i() == null) {
return;
}
tp.a(this.a.u().i(), com.applovin.impl.sdk.j.l(), this.a);
}
}
}
@Override // com.applovin.impl.se, android.app.Activity
public void onCreate(Bundle bundle) {
super.onCreate(bundle);
setContentView(R.layout.mediation_debugger_list_view);
setTitle("MAX Terms and Privacy Policy Flow");
((ListView) findViewById(R.id.listView)).setAdapter((ListAdapter) this.b);
}
@Override // com.applovin.impl.se, android.app.Activity
public void onDestroy() {
super.onDestroy();
ec ecVar = this.b;
if (ecVar != null) {
ecVar.a((ec.a) null);
}
}
private dc d() {
dc.b d2 = dc.a().d("Terms of Service URL");
if (this.a.u().i() != null) {
d2.a(R.drawable.applovin_ic_check_mark_bordered);
d2.b(t3.a(R.color.applovin_sdk_checkmarkColor, this));
d2.a(true);
} else {
d2.c("None");
d2.a(false);
}
return d2.a();
}
private dc a(AppLovinSdkConfiguration.ConsentFlowUserGeography consentFlowUserGeography, boolean z) {
return dc.a().d("Consent Flow Geography").c(consentFlowUserGeography == AppLovinSdkConfiguration.ConsentFlowUserGeography.GDPR ? "GDPR" : consentFlowUserGeography == AppLovinSdkConfiguration.ConsentFlowUserGeography.OTHER ? "Other" : AnalyticsEvents.PARAMETER_DIALOG_OUTCOME_VALUE_UNKNOWN).b(z).a();
}
private dc b(AppLovinSdkConfiguration.ConsentFlowUserGeography consentFlowUserGeography, boolean z) {
return dc.a().d("Debug User Geography").c(consentFlowUserGeography == AppLovinSdkConfiguration.ConsentFlowUserGeography.GDPR ? "GDPR" : consentFlowUserGeography == AppLovinSdkConfiguration.ConsentFlowUserGeography.OTHER ? "Other" : "None").b(z).a();
}
/* JADX INFO: Access modifiers changed from: private */
public List a() {
ArrayList arrayList = new ArrayList(c.values().length);
AppLovinSdkConfiguration.ConsentFlowUserGeography consentFlowUserGeography = this.a.r().getConsentFlowUserGeography();
AppLovinSdkConfiguration.ConsentFlowUserGeography f = this.a.u().f();
boolean z = yp.c(this.a) && f != AppLovinSdkConfiguration.ConsentFlowUserGeography.UNKNOWN;
arrayList.add(dc.a().d("AppLovin determines whether the user is located in a GDPR region. If the user is in a GDPR region, the MAX SDK presents Google UMP.\n\nYou can test the flow on debug mode by overriding the region check by setting the debug user geography.").a());
arrayList.add(a(consentFlowUserGeography, !z));
arrayList.add(b(f, z));
return arrayList;
}
private dc b() {
boolean z = this.a.u().h() != null;
return dc.a().d("Privacy Policy URL").a(z ? R.drawable.applovin_ic_check_mark_bordered : R.drawable.applovin_ic_x_mark).b(t3.a(z ? R.color.applovin_sdk_checkmarkColor : R.color.applovin_sdk_xmarkColor, this)).a(true).a();
}
}