Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 c.java 源代码,内容仅作参考
package cc;
import android.app.Activity;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.Network;
import android.net.NetworkRequest;
import android.os.Handler;
import androidx.lifecycle.y;
import androidx.lifecycle.z;
import com.google.android.ump.ConsentDebugSettings;
import com.google.android.ump.ConsentForm;
import com.google.android.ump.ConsentInformation;
import com.google.android.ump.ConsentRequestParameters;
import com.google.android.ump.FormError;
import com.google.android.ump.UserMessagingPlatform;
import fi.a0;
import gi.u;
import java.util.Collection;
import java.util.List;
import ll.t;
import ml.b;
import nl.k0;
import r7.k;
import si.l;
import ti.n;
import v.b0;
import xa.j;
import z1.m;
public final class c {
public static final List<String> f6382l;
public final Activity f6383a;
public final ConsentInformation f6384b;
public final Handler f6385c;
public boolean f6386d;
public ml.g f6387e;
public boolean f6388f;
public ConsentForm f6389g;
public int f6390h;
public final long f6391i;
public final int f6392j;
public final d f6393k;
public static final class a extends n implements l<y, a0> {
public a() {
super(1);
}
@Override
public final a0 invoke(y yVar) {
ti.l.f(yVar, "it");
c cVar = c.this;
ConsentForm consentForm = cVar.f6389g;
if (consentForm != null) {
c.b(cVar, consentForm, "after", null);
}
cVar.f6389g = null;
return a0.f17744a;
}
}
public static final class b implements za.g {
@Override
public final boolean shouldAllow(Intent intent) {
ti.l.f(intent, "intent");
if (!ti.l.a(intent.getAction(), "android.intent.action.VIEW") || intent.getData() == null) {
return false;
}
String valueOf = String.valueOf(intent.getData());
List<String> list = c.f6382l;
if ((list instanceof Collection) && list.isEmpty()) {
return false;
}
for (String str : list) {
if (t.p(valueOf, str, false)) {
return true;
}
}
return false;
}
}
public static final class C0116c {
public C0116c(ti.g gVar) {
}
}
public static final class d extends ConnectivityManager.NetworkCallback {
public static final int f6395b = 0;
public d() {
}
@Override
public final void onAvailable(Network network) {
ti.l.f(network, "network");
c cVar = c.this;
cVar.f6385c.post(new k(cVar, 27));
}
}
static {
new C0116c(null);
f6382l = u.g("https://policies.google.com", "https://www.facebook.com", "https://advertising.amazon.com", "https://amazon.co.uk", "https://www.amazon.co.uk", "https://www.applovin.com", "https://developers.is.com/ironsource-mobile", "https://unity.com", "https://www.inmobi.com", "https://www.digitalturbine.com", "https://www.smaato.com", "https://vungle.com", "https://www.pangleglobal.com", "https://www.magnite.com", "https://www.mobfox.com", "https://www.mintegral.com", "https://triplelift.com", "https://pubnative.net", "https://pubmatic.com", "https://www.openx.com", "https://www.criteo.com", "https://business.safety.google", "https://www.verizon.com", "https://www.mopub.com", "https://gdpr.eu", "https://unity3d.com", "https://liftoff.io", "https://partner.oceanengine.com", "https://developers.ironsrc.com", "https://www.digitalchemy.us", "http://privacy.calcuapp.com", "http://privacy.scientificcalc.com", "https://simpleinnovation.us", "https://app.box.com", "https://www.simpleinnovation.us");
za.i.b().a(new Object());
}
public c(Activity activity, androidx.lifecycle.n nVar) {
ti.l.f(activity, "activity");
ti.l.f(nVar, "lifecycle");
this.f6383a = activity;
this.f6384b = UserMessagingPlatform.getConsentInformation(za.b.g());
this.f6385c = new Handler(u9.a.f31307a);
b.a aVar = ml.b.f24154b;
this.f6391i = k0.m1(3, ml.d.f24161d);
this.f6392j = 3;
this.f6393k = new d();
ia.i.a(nVar, null, new a(), null, null, 55);
}
public c(c.h hVar) {
this(hVar, r1);
ti.l.f(hVar, "activity");
z zVar = hVar.f5540d;
ti.l.e(zVar, "<get-lifecycle>(...)");
}
public static final void a(c cVar) {
Object systemService = e4.a.getSystemService(cVar.f6383a, ConnectivityManager.class);
if (systemService == null) {
throw new IllegalStateException(ag.g.j("The service ", ConnectivityManager.class.getSimpleName(), " could not be retrieved.").toString());
}
try {
((ConnectivityManager) systemService).registerNetworkCallback(new NetworkRequest.Builder().build(), cVar.f6393k);
} catch (Exception unused) {
}
}
public static final void b(final c cVar, ConsentForm consentForm, String str, final i iVar) {
cVar.getClass();
mb.d.d(new j("GoogleConsentFormShow", new xa.i(xa.c.PLACEMENT, str)));
consentForm.show(cVar.f6383a, new ConsentForm.OnConsentFormDismissedListener(cVar) {
public final c f6381b;
{
this.f6381b = cVar;
}
@Override
public final void onConsentFormDismissed(FormError formError) {
c cVar2 = this.f6381b;
ti.l.f(cVar2, "this$0");
i iVar2 = iVar;
if (iVar2 != null) {
((b0) iVar2).g();
}
if (formError != null) {
mb.d.d(new j("GoogleConsentFormErrorShow", new xa.i[0]));
return;
}
StringBuilder sb2 = new StringBuilder();
Activity activity = cVar2.f6383a;
sb2.append(activity.getPackageName());
sb2.append("_preferences");
mb.d.d(new j(ti.l.a(activity.getSharedPreferences(sb2.toString(), 0).getString("IABTCF_PurposeConsents", "0"), "0") ^ true ? "GoogleConsentFormAgreed" : "GoogleConsentFormDisagreed", new xa.i[0]));
}
});
}
public final void c(b0 b0Var, boolean z10) {
this.f6387e = new ml.g(ml.f.a());
if (z10) {
this.f6385c.postDelayed(new cc.d(this, b0Var), ml.b.e(this.f6391i));
} else {
this.f6388f = true;
}
mb.d.d(new j("GoogleConsentRequest", new xa.i[0]));
long a10 = ml.f.a();
ConsentInformation consentInformation = this.f6384b;
ti.l.e(consentInformation, "consentInformation");
boolean z11 = com.digitalchemy.foundation.android.debug.a.f8178n && new vb.a().g("DEBUG_CONSENT_FOR_EEA", false);
ConsentRequestParameters.Builder tagForUnderAgeOfConsent = new ConsentRequestParameters.Builder().setTagForUnderAgeOfConsent(false);
Activity activity = this.f6383a;
if (z11) {
ConsentDebugSettings.Builder builder = new ConsentDebugSettings.Builder(activity);
com.digitalchemy.foundation.android.debug.a.f8165a.getClass();
tagForUnderAgeOfConsent.setConsentDebugSettings(builder.addTestDeviceHashedId(com.digitalchemy.foundation.android.debug.a.d()).setDebugGeography(1).build());
}
ConsentRequestParameters build = tagForUnderAgeOfConsent.build();
ti.l.e(build, "build(...)");
consentInformation.requestConsentInfoUpdate(activity, build, new com.digitalchemy.foundation.advertising.admob.nativead.a(new e(a10, this, b0Var), 3), new m(4, new f(this, b0Var)));
}
}