正在查看: Cantique de Louanges v12 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Cantique de Louanges v12 应用的 c.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.jirbo.adcolony;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Bundle;
import android.text.TextUtils;
import com.adcolony.sdk.f;
import com.google.ads.mediation.adcolony.AdColonyMediationAdapter;
import com.google.android.gms.ads.AdError;
import com.google.android.gms.ads.mediation.MediationAdConfiguration;
import com.google.android.gms.ads.mediation.MediationAdRequest;
import com.google.android.gms.ads.mediation.MediationRewardedAdConfiguration;
import com.mbridge.msdk.MBridgeConstans;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
public class c {
private static c c;
private final ArrayList a = new ArrayList();
private boolean b = false;
public interface a {
void a();
void b(AdError adError);
}
private f b(MediationAdRequest mediationAdRequest) {
i6.a.c(mediationAdRequest.taggedForChildDirectedTreatment());
f appOptions = AdColonyMediationAdapter.getAppOptions();
if (mediationAdRequest.isTesting()) {
appOptions.u(true);
}
return appOptions;
}
public static c h() {
if (c == null) {
c = new c();
}
return c;
}
public f a(MediationAdConfiguration mediationAdConfiguration) {
i6.a.c(mediationAdConfiguration.taggedForChildDirectedTreatment());
f appOptions = AdColonyMediationAdapter.getAppOptions();
if (mediationAdConfiguration.isTestRequest()) {
appOptions.u(true);
}
return appOptions;
}
void c(Context context, Bundle bundle, MediationAdRequest mediationAdRequest, a aVar) {
d(context, b(mediationAdRequest), bundle.getString(MBridgeConstans.APP_ID), j(bundle), aVar);
}
public void d(Context context, f fVar, String str, ArrayList arrayList, a aVar) {
boolean z = context instanceof Activity;
if (!z && !(context instanceof Application)) {
aVar.b(AdColonyMediationAdapter.createAdapterError(106, "AdColony SDK requires an Activity context to initialize"));
return;
}
if (TextUtils.isEmpty(str)) {
aVar.b(AdColonyMediationAdapter.createAdapterError(101, "Missing or invalid AdColony app ID."));
return;
}
if (arrayList.isEmpty()) {
aVar.b(AdColonyMediationAdapter.createAdapterError(101, "No zones provided to initialize the AdColony SDK."));
return;
}
Iterator it = arrayList.iterator();
while (it.hasNext()) {
String str2 = (String) it.next();
if (!this.a.contains(str2)) {
this.a.add(str2);
this.b = false;
}
}
if (this.b) {
com.adcolony.sdk.a.E(fVar);
} else {
String[] strArr = (String[]) this.a.toArray(new String[0]);
fVar.o("AdMob", "4.8.0.2");
this.b = z ? com.adcolony.sdk.a.q((Activity) context, fVar, str, strArr) : com.adcolony.sdk.a.r((Application) context, fVar, str, strArr);
}
if (this.b) {
aVar.a();
} else {
aVar.b(AdColonyMediationAdapter.createAdapterError(103, "AdColony SDK failed to initialize."));
}
}
public void e(MediationRewardedAdConfiguration mediationRewardedAdConfiguration, a aVar) {
Context context = mediationRewardedAdConfiguration.getContext();
Bundle serverParameters = mediationRewardedAdConfiguration.getServerParameters();
d(context, a(mediationRewardedAdConfiguration), serverParameters.getString(MBridgeConstans.APP_ID), j(serverParameters), aVar);
}
public com.adcolony.sdk.b f(MediationAdConfiguration mediationAdConfiguration) {
com.adcolony.sdk.b g = g(mediationAdConfiguration.getMediationExtras());
String bidResponse = mediationAdConfiguration.getBidResponse();
if (!bidResponse.isEmpty()) {
g.c("adm", bidResponse);
}
return g;
}
public com.adcolony.sdk.b g(Bundle bundle) {
boolean z;
boolean z2 = false;
if (bundle != null) {
boolean z3 = bundle.getBoolean("show_pre_popup", false);
z = bundle.getBoolean("show_post_popup", false);
z2 = z3;
} else {
z = false;
}
return new com.adcolony.sdk.b().a(z2).b(z);
}
public String i(ArrayList arrayList, Bundle bundle) {
String str = (arrayList == null || arrayList.isEmpty()) ? null : (String) arrayList.get(0);
return (bundle == null || bundle.getString("zone_id") == null) ? str : bundle.getString("zone_id");
}
public ArrayList j(Bundle bundle) {
if (bundle != null) {
String string = bundle.getString("zone_ids") != null ? bundle.getString("zone_ids") : bundle.getString("zone_id");
if (string != null) {
return new ArrayList(Arrays.asList(string.split(";")));
}
}
return null;
}
}