Perfume Of Love v2.14.9版本的 MD5 值为:16011aefc5a55805771706ce3b259b4e
以下内容为反编译后的 k.java 源代码,内容仅作参考
package com.adcolony.sdk;
import android.app.Activity;
import android.app.Application;
import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.util.Log;
import com.adcolony.adcolonysdk.BuildConfig;
import com.adcolony.sdk.AdColonyAdView;
import com.adcolony.sdk.AdColonyInterstitial;
import com.adcolony.sdk.e0;
import com.adcolony.sdk.o;
import com.adcolony.sdk.s;
import com.adcolony.sdk.v;
import com.facebook.gamingservices.cloudgaming.internal.SDKConstants;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.iab.omid.library.adcolony.Omid;
import com.iab.omid.library.adcolony.adsession.Partner;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.smaato.sdk.core.SmaatoSdk;
import com.tapjoy.TapjoyConstants;
import java.io.File;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.concurrent.ScheduledExecutorService;
public class k {
static String Z = "https://adc3-launch.adcolony.com/v4/launch";
private static volatile String a0 = "";
private boolean A;
private boolean B;
private boolean C;
private boolean E;
private boolean F;
private boolean G;
private boolean H;
private boolean I;
private boolean J;
private boolean K;
private boolean L;
private int M;
private Application.ActivityLifecycleCallbacks O;
private boolean T;
private int X;
private i0 a;
private com.adcolony.sdk.t b;
private t0 c;
private com.adcolony.sdk.d d;
private com.adcolony.sdk.r e;
private com.adcolony.sdk.w f;
private x0 g;
private v0 h;
private g0 i;
private com.adcolony.sdk.q j;
private m0 k;
private com.adcolony.sdk.c l;
private com.adcolony.sdk.z m;
private AdColonyAdView n;
private AdColonyInterstitial o;
private AdColonyRewardListener p;
private AdColonyAppOptions r;
private h0 s;
private f1 t;
private String w;
private String x;
private String y;
private HashMap<String, AdColonyCustomMessageListener> q = new HashMap<>();
private HashMap<String, AdColonyZone> u = new HashMap<>();
private HashMap<Integer, c1> v = new HashMap<>();
private String z = "";
private com.adcolony.sdk.f D = new com.adcolony.sdk.f();
private int N = 1;
private Partner P = null;
private f1 Q = new f1();
private long R = 500;
private long S = 500;
private long U = 20000;
private long V = 300000;
private long W = 15000;
private boolean Y = false;
public class a implements j0 {
a(k kVar) {
}
@Override
public void a(h0 h0Var) {
f1 b = c0.b();
c0.b(b, "crc32", z0.a(c0.h(h0Var.a(), "data")));
h0Var.a(b).c();
}
}
public class a0 implements j0 {
a0() {
}
@Override
public void a(h0 h0Var) {
k.this.a(true, true);
}
}
public class b implements j0 {
b(k kVar) {
}
@Override
public void a(h0 h0Var) {
int d = c0.d(h0Var.a(), "number");
f1 b = c0.b();
c0.a(b, "uuids", z0.a(d));
h0Var.a(b).c();
}
}
public class b0 implements j0 {
b0(k kVar) {
}
@Override
public void a(h0 h0Var) {
f1 b = c0.b();
c0.a(b, "sha1", z0.b(c0.h(h0Var.a(), "data")));
h0Var.a(b).c();
}
}
public class c implements j0 {
class a implements com.adcolony.sdk.y<String> {
final h0 a;
a(h0 h0Var) {
this.a = h0Var;
}
@Override
public void a(String str) {
f1 b = c0.b();
c0.a(b, "advertiser_id", k.this.n().f());
c0.b(b, "limit_ad_tracking", k.this.n().A());
this.a.a(b).c();
}
@Override
public void a(Throwable th) {
new e0.a().a("Device.query_advertiser_info").a(" failed with error: ").a(Log.getStackTraceString(th)).a(e0.g);
}
}
c() {
}
@Override
public void a(h0 h0Var) {
k.this.n().a(com.adcolony.sdk.a.a(), new a(h0Var));
}
}
public class d implements j0 {
d() {
}
@Override
public void a(h0 h0Var) {
s0 a = k.this.q().a();
k.this.n().c(c0.h(h0Var.a(), "version"));
if (a != null) {
a.e(k.this.n().o());
}
}
}
public class e implements j0 {
e() {
}
@Override
public void a(h0 h0Var) {
k.this.Q = c0.f(h0Var.a(), "signals");
}
}
public class f implements j0 {
class a implements com.adcolony.sdk.x<o.b> {
final h0 a;
a(f fVar, h0 h0Var) {
this.a = h0Var;
}
@Override
public void a(o.b bVar) {
f1 b = c0.b();
if (bVar != null) {
c0.a(b, "odt", bVar.b());
}
this.a.a(b).c();
}
}
f() {
}
@Override
public void a(h0 h0Var) {
if (k.this.G()) {
o0.c().a(new a(this, h0Var), k.this.g());
return;
}
o.b b = o0.c().b();
f1 b2 = c0.b();
if (b != null) {
c0.a(b2, "odt", b.b());
}
h0Var.a(b2).c();
}
}
public class g implements j0 {
g(k kVar) {
}
@Override
public void a(h0 h0Var) {
o0.c().a();
}
}
public class h implements j0 {
h() {
}
@Override
public void a(h0 h0Var) {
k.this.m.a(h0Var);
}
}
public class i implements Runnable {
i() {
}
@Override
public void run() {
Context a = com.adcolony.sdk.a.a();
if (!k.this.L && a != null) {
try {
Omid.activate(a.getApplicationContext());
k.this.L = true;
} catch (IllegalArgumentException unused) {
new e0.a().a("IllegalArgumentException when activating Omid").a(e0.i);
k.this.L = false;
}
}
if (k.this.L && k.this.P == null) {
try {
k.this.P = Partner.createPartner("AdColony", "4.8.0");
} catch (IllegalArgumentException unused2) {
new e0.a().a("IllegalArgumentException when creating Omid Partner").a(e0.i);
k.this.L = false;
}
}
}
}
public class j implements Runnable {
class a implements s.a {
a() {
}
@Override
public void a(com.adcolony.sdk.s sVar, h0 h0Var, Map<String, List<String>> map) {
k.this.a(sVar);
}
}
j() {
}
@Override
public void run() {
f1 b = c0.b();
c0.a(b, "url", k.Z);
c0.a(b, FirebaseAnalytics.Param.CONTENT_TYPE, "application/json");
c0.a(b, "content", k.this.n().t().toString());
c0.a(b, "url", k.Z);
if (k.this.Y) {
f1 b2 = c0.b();
c0.a(b2, "request", BuildConfig.LAUNCH_REQ_DICT_ID);
c0.a(b2, "response", BuildConfig.LAUNCH_RESP_DICT_ID);
c0.a(b, "dictionaries_mapping", b2);
}
k.this.b.a(new com.adcolony.sdk.s(new h0("WebServices.post", 0, b), new a()));
}
}
public class C0016k implements v.c {
C0016k(k kVar) {
}
@Override
public void a() {
o0.c().d();
}
}
public class l implements Runnable {
final Context a;
final h0 b;
l(Context context, h0 h0Var) {
this.a = context;
this.b = h0Var;
}
@Override
public void run() {
com.adcolony.sdk.j a = com.adcolony.sdk.j.a(this.a.getApplicationContext(), this.b);
k.this.v.put(Integer.valueOf(a.getAdc3ModuleId()), a);
}
}
public class m implements Runnable {
m() {
}
@Override
public void run() {
if (com.adcolony.sdk.a.b().x().f()) {
k.this.K();
}
}
}
public class n implements s.a {
n() {
}
@Override
public void a(com.adcolony.sdk.s sVar, h0 h0Var, Map<String, List<String>> map) {
k.this.N();
}
}
public class o implements Runnable {
o() {
}
@Override
public void run() {
k.this.L();
}
}
public class p implements AdColonyInterstitial.f {
p() {
}
@Override
public void a() {
k.this.b();
}
}
public class q implements AdColonyAdView.c {
q() {
}
@Override
public void a() {
k.this.b();
}
}
public class r implements com.adcolony.sdk.x<n0> {
r(k kVar) {
}
@Override
public void a(n0 n0Var) {
o0.c().a(n0Var);
}
}
public class s implements Runnable {
final h0 a;
s(h0 h0Var) {
this.a = h0Var;
}
@Override
public void run() {
k.this.p.onReward(new AdColonyReward(this.a));
}
}
public class t implements Application.ActivityLifecycleCallbacks {
private final Set<Integer> a = new HashSet();
t() {
}
@Override
public void onActivityCreated(Activity activity, Bundle bundle) {
if (!k.this.c.f()) {
k.this.c.c(true);
}
com.adcolony.sdk.a.a(activity);
}
@Override
public void onActivityDestroyed(Activity activity) {
}
@Override
public void onActivityPaused(Activity activity) {
com.adcolony.sdk.a.d = false;
k.this.c.d(false);
}
@Override
public void onActivityResumed(Activity activity) {
ScheduledExecutorService scheduledExecutorService;
this.a.add(Integer.valueOf(activity.hashCode()));
com.adcolony.sdk.a.d = true;
com.adcolony.sdk.a.a(activity);
s0 a = k.this.q().a();
Context a2 = com.adcolony.sdk.a.a();
if (a2 == null || !k.this.c.e() || !(a2 instanceof com.adcolony.sdk.b) || ((com.adcolony.sdk.b) a2).d) {
com.adcolony.sdk.a.a(activity);
if (k.this.s != null) {
if (!Objects.equals(c0.h(k.this.s.a(), "m_origin"), "")) {
k.this.s.a(k.this.s.a()).c();
}
k.this.s = null;
}
k.this.B = false;
k.this.c.g(false);
if (k.this.E && !k.this.c.f()) {
k.this.c.c(true);
}
k.this.c.d(true);
k.this.e.c();
if (a == null || (scheduledExecutorService = a.b) == null || scheduledExecutorService.isShutdown() || a.b.isTerminated()) {
AdColony.a(activity, com.adcolony.sdk.a.b().r);
}
}
}
@Override
public void onActivitySaveInstanceState(Activity activity, Bundle bundle) {
}
@Override
public void onActivityStarted(Activity activity) {
k.this.c.e(true);
}
@Override
public void onActivityStopped(Activity activity) {
this.a.remove(Integer.valueOf(activity.hashCode()));
if (this.a.isEmpty()) {
k.this.c.e(false);
}
}
}
public class u implements j0 {
u() {
}
@Override
public void a(h0 h0Var) {
k.this.c(h0Var);
}
}
public class v implements j0 {
v() {
}
@Override
public void a(h0 h0Var) {
k.this.a(h0Var);
}
}
public class w implements j0 {
w() {
}
@Override
public void a(h0 h0Var) {
s0 a = k.this.q().a();
k.this.D.a(true);
if (k.this.J) {
f1 b = c0.b();
f1 b2 = c0.b();
c0.a(b2, TapjoyConstants.TJC_APP_VERSION_NAME, z0.c());
c0.a(b, "app_bundle_info", b2);
new h0("AdColony.on_update", 1, b).c();
k.this.J = false;
}
if (k.this.K) {
new h0("AdColony.on_install", 1).c();
}
f1 a2 = h0Var.a();
if (a != null) {
a.f(c0.h(a2, "app_session_id"));
}
if (AdColonyEventTracker.a()) {
AdColonyEventTracker.b();
}
Integer i = a2.i("base_download_threads");
if (i != null) {
k.this.b.a(i.intValue());
}
Integer i2 = a2.i("concurrent_requests");
if (i2 != null) {
k.this.b.b(i2.intValue());
}
Integer i3 = a2.i("threads_keep_alive_time");
if (i3 != null) {
k.this.b.c(i3.intValue());
}
double h = a2.h("thread_pool_scaling_factor");
if (!Double.isNaN(h)) {
k.this.b.a(h);
}
k.this.m.b();
k.this.M();
}
}
public class x implements j0 {
x() {
}
@Override
public void a(h0 h0Var) {
k.this.b(h0Var);
}
}
public class y implements j0 {
y() {
}
@Override
public void a(h0 h0Var) {
k.this.e(h0Var);
}
}
public class z implements j0 {
z() {
}
@Override
public void a(h0 h0Var) {
k.this.f(h0Var);
}
}
public void K() {
new Thread(new j()).start();
}
public boolean L() {
this.a.a();
return true;
}
public void M() {
f1 b2 = c0.b();
c0.a(b2, "type", "AdColony.on_configuration_completed");
e1 e1Var = new e1();
for (String str : C().keySet()) {
e1Var.b(str);
}
f1 b3 = c0.b();
c0.a(b3, "zone_ids", e1Var);
c0.a(b2, "message", b3);
new h0("CustomMessage.controller_send", 0, b2).c();
}
public void N() {
if (!a(this.x) && !com.adcolony.sdk.l.H) {
new e0.a().a("Downloaded controller sha1 does not match, retrying.").a(e0.f);
S();
return;
}
if (!this.F && !this.I) {
z0.b(new o());
}
if (this.F && this.I) {
Q();
}
}
private void O() {
Application application;
Context a2 = com.adcolony.sdk.a.a();
if (a2 == null || this.O != null || Build.VERSION.SDK_INT <= 14) {
return;
}
this.O = new t();
if (a2 instanceof Application) {
application = (Application) a2;
} else {
application = ((Activity) a2).getApplication();
}
application.registerActivityLifecycleCallbacks(this.O);
}
private void S() {
if (com.adcolony.sdk.a.b().x().f()) {
int i2 = this.M + 1;
this.M = i2;
this.N = Math.min(this.N * i2, 120);
z0.a(new m(), this.N * 1000);
return;
}
new e0.a().a("Max launch server download attempts hit, or AdColony is no longer").a(" active.").a(e0.g);
}
public x0 A() {
if (this.g == null) {
x0 x0Var = new x0();
this.g = x0Var;
x0Var.a();
}
return this.g;
}
public HashMap<Integer, c1> B() {
return this.v;
}
public HashMap<String, AdColonyZone> C() {
return this.u;
}
public boolean D() {
return this.r != null;
}
public boolean E() {
return this.B;
}
public boolean F() {
return this.C;
}
public boolean G() {
return this.T;
}
public boolean H() {
return this.Y;
}
public boolean I() {
return this.D.a();
}
public boolean J() {
return this.A;
}
void P() {
this.D.a(false);
this.d.b();
Object option = this.r.getOption("force_ad_id");
if ((option instanceof String) && !((String) option).isEmpty()) {
R();
}
AdColony.a(com.adcolony.sdk.a.a(), this.r);
T();
this.u.clear();
this.a.a();
}
void Q() {
this.X = 0;
for (AdColonyInterstitial adColonyInterstitial : this.d.f().values()) {
if (adColonyInterstitial.m()) {
this.X++;
adColonyInterstitial.a(new p());
}
}
for (AdColonyAdView adColonyAdView : this.d.d().values()) {
this.X++;
adColonyAdView.setOnDestroyListenerOrCall(new q());
}
if (this.X == 0) {
P();
}
}
public void R() {
synchronized (this.d.f()) {
for (AdColonyInterstitial adColonyInterstitial : this.d.f().values()) {
adColonyInterstitial.p();
}
this.d.f().clear();
}
}
public void T() {
a(1);
for (c1 c1Var : this.v.values()) {
this.a.b(c1Var);
}
this.v.clear();
}
public AdColonyAppOptions u() {
if (this.r == null) {
this.r = new AdColonyAppOptions();
}
return this.r;
}
public String v() {
return a0;
}
public AdColonyRewardListener w() {
return this.p;
}
public t0 x() {
if (this.c == null) {
t0 t0Var = new t0();
this.c = t0Var;
t0Var.d();
}
return this.c;
}
public long y() {
return this.R;
}
public v0 z() {
if (this.h == null) {
v0 v0Var = new v0();
this.h = v0Var;
v0Var.e();
}
return this.h;
}
public String f() {
return this.z;
}
long g() {
return this.S;
}
public long h() {
return this.V;
}
public long i() {
return this.W;
}
public AdColonyInterstitial j() {
return this.o;
}
public AdColonyAdView k() {
return this.n;
}
public com.adcolony.sdk.c l() {
return this.l;
}
public HashMap<String, AdColonyCustomMessageListener> m() {
return this.q;
}
public com.adcolony.sdk.q n() {
if (this.j == null) {
com.adcolony.sdk.q qVar = new com.adcolony.sdk.q();
this.j = qVar;
qVar.M();
}
return this.j;
}
public com.adcolony.sdk.r o() {
if (this.e == null) {
this.e = new com.adcolony.sdk.r();
}
return this.e;
}
public com.adcolony.sdk.w p() {
if (this.f == null) {
com.adcolony.sdk.w wVar = new com.adcolony.sdk.w();
this.f = wVar;
wVar.b();
}
return this.f;
}
public g0 q() {
if (this.i == null) {
g0 g0Var = new g0();
this.i = g0Var;
g0Var.c();
}
return this.i;
}
public i0 r() {
if (this.a == null) {
i0 i0Var = new i0();
this.a = i0Var;
i0Var.a();
}
return this.a;
}
public m0 s() {
if (this.k == null) {
this.k = new m0();
}
return this.k;
}
public Partner t() {
return this.P;
}
public void f(h0 h0Var) {
AdColonyZone adColonyZone;
if (this.C) {
return;
}
String h2 = c0.h(h0Var.a(), "zone_id");
if (this.u.containsKey(h2)) {
adColonyZone = this.u.get(h2);
} else {
AdColonyZone adColonyZone2 = new AdColonyZone(h2);
this.u.put(h2, adColonyZone2);
adColonyZone = adColonyZone2;
}
adColonyZone.a(h0Var);
}
public void d(h0 h0Var) {
this.s = h0Var;
}
public boolean e(h0 h0Var) {
if (this.p != null) {
z0.b(new s(h0Var));
return true;
}
return false;
}
public boolean c(h0 h0Var) {
Context a2 = com.adcolony.sdk.a.a();
if (a2 == null) {
return false;
}
try {
int j2 = h0Var.a().j("id");
if (j2 > 0) {
a(j2);
}
z0.b(new l(a2, h0Var));
return true;
} catch (RuntimeException e2) {
e0.a aVar = new e0.a();
aVar.a(e2.toString() + ": during WebView initialization.").a(" Disabling AdColony.").a(e0.h);
AdColony.disable();
return false;
}
}
public void b(boolean z2) {
this.D.a(false);
this.C = z2;
}
public void d(boolean z2) {
this.E = z2;
}
public long d() {
return this.U;
}
public void e(boolean z2) {
this.A = z2;
}
public f1 e() {
return this.Q;
}
public void b(h0 h0Var) {
f1 b2 = this.r.b();
c0.a(b2, "app_id", this.r.a());
f1 b3 = c0.b();
c0.a(b3, SDKConstants.PARAM_GAME_REQUESTS_OPTIONS, b2);
h0Var.a(b3).c();
}
public void a(AdColonyAppOptions adColonyAppOptions, boolean z2) {
boolean z3;
this.C = z2;
this.r = adColonyAppOptions;
this.a = new i0();
new com.adcolony.sdk.m();
com.adcolony.sdk.q qVar = new com.adcolony.sdk.q();
this.j = qVar;
qVar.M();
com.adcolony.sdk.t tVar = new com.adcolony.sdk.t();
this.b = tVar;
tVar.a();
t0 t0Var = new t0();
this.c = t0Var;
t0Var.d();
com.adcolony.sdk.d dVar = new com.adcolony.sdk.d();
this.d = dVar;
dVar.h();
this.e = new com.adcolony.sdk.r();
com.adcolony.sdk.w wVar = new com.adcolony.sdk.w();
this.f = wVar;
wVar.b();
g0 g0Var = new g0();
this.i = g0Var;
g0Var.c();
v0 v0Var = new v0();
this.h = v0Var;
v0Var.e();
x0 x0Var = new x0();
this.g = x0Var;
x0Var.a();
this.k = new m0();
this.m = new com.adcolony.sdk.z();
this.k.b();
AdColony.a(com.adcolony.sdk.a.a(), adColonyAppOptions);
if (!z2) {
this.G = new File(this.h.a() + "026ae9c9824b3e483fa6c71fa88f57ae27816141").exists();
boolean exists = new File(this.h.a() + "7bf3a1e7bbd31e612eda3310c2cdb8075c43c6b5").exists();
this.H = exists;
if (this.G && exists) {
if (c0.h(c0.c(this.h.a() + "026ae9c9824b3e483fa6c71fa88f57ae27816141"), SmaatoSdk.KEY_SDK_VERSION).equals(this.j.I())) {
z3 = true;
this.F = z3;
com.adcolony.sdk.v.a().a(new C0016k(this));
if (this.G) {
f1 c2 = c0.c(this.h.a() + "026ae9c9824b3e483fa6c71fa88f57ae27816141");
this.t = c2;
b(c2);
}
a(this.F);
O();
}
}
z3 = false;
this.F = z3;
com.adcolony.sdk.v.a().a(new C0016k(this));
if (this.G) {
}
a(this.F);
O();
}
com.adcolony.sdk.a.a("Module.load", new u());
com.adcolony.sdk.a.a("Module.unload", new v());
com.adcolony.sdk.a.a("AdColony.on_configured", new w());
com.adcolony.sdk.a.a("AdColony.get_app_info", new x());
com.adcolony.sdk.a.a("AdColony.v4vc_reward", new y());
com.adcolony.sdk.a.a("AdColony.zone_info", new z());
com.adcolony.sdk.a.a("AdColony.probe_launch_server", new a0());
com.adcolony.sdk.a.a("Crypto.sha1", new b0(this));
com.adcolony.sdk.a.a("Crypto.crc32", new a(this));
com.adcolony.sdk.a.a("Crypto.uuid", new b(this));
com.adcolony.sdk.a.a("Device.query_advertiser_info", new c());
com.adcolony.sdk.a.a("AdColony.controller_version", new d());
com.adcolony.sdk.a.a("AdColony.provide_signals", new e());
com.adcolony.sdk.a.a("AdColony.odt_calculate", new f());
com.adcolony.sdk.a.a("AdColony.odt_cache", new g(this));
com.adcolony.sdk.a.a("AdColony.heartbeat", new h());
int b2 = z0.b(this.h);
this.J = b2 == 1;
this.K = b2 == 2;
z0.b(new i());
}
public void b() {
int i2 = this.X - 1;
this.X = i2;
if (i2 == 0) {
P();
}
}
private void b(f1 f1Var) {
if (!com.adcolony.sdk.l.H) {
f1 f2 = c0.f(f1Var, "logging");
g0.h = c0.a(f2, "send_level", 1);
g0.f = c0.b(f2, "log_private");
g0.g = c0.a(f2, "print_level", 3);
this.i.b(c0.a(f2, "modules"));
this.i.c(c0.e(f2, "included_fields"));
}
f1 f3 = c0.f(f1Var, TtmlNode.TAG_METADATA);
n().a(f3);
x().a(c0.d(f3, "session_timeout"));
a0 = c0.h(f1Var, "pie");
this.z = c0.h(c0.f(f1Var, "controller"), "version");
this.R = c0.a(f3, "signals_timeout", this.R);
this.S = c0.a(f3, "calculate_odt_timeout", this.S);
this.T = c0.a(f3, "async_odt_query", this.T);
this.U = c0.a(f3, "ad_request_timeout", this.U);
this.V = c0.a(f3, "controller_heartbeat_interval", this.V);
this.W = c0.a(f3, "controller_heartbeat_timeout", this.W);
this.Y = c0.a(f3, "enable_compression", false);
com.adcolony.sdk.v.a().a(f3.n("odt_config"), new r(this));
}
private boolean c(f1 f1Var) {
if (f1Var == null) {
return false;
}
try {
try {
f1 f2 = c0.f(f1Var, "controller");
this.w = c0.h(f2, "url");
this.x = c0.h(f2, "sha1");
this.y = c0.h(f1Var, "status");
b(f1Var);
if (AdColonyEventTracker.a()) {
AdColonyEventTracker.b();
}
} catch (Exception unused) {
}
} catch (Exception unused2) {
new File(this.h.a() + "026ae9c9824b3e483fa6c71fa88f57ae27816141").delete();
}
if (this.y.equals("disable") && !com.adcolony.sdk.l.H) {
try {
new File(this.h.a() + "7bf3a1e7bbd31e612eda3310c2cdb8075c43c6b5").delete();
} catch (Exception unused3) {
}
new e0.a().a("Launch server response with disabled status. Disabling AdColony ").a("until next launch.").a(e0.g);
AdColony.disable();
return false;
} else if ((this.w.equals("") || this.y.equals("")) && !com.adcolony.sdk.l.H) {
new e0.a().a("Missing controller status or URL. Disabling AdColony until next ").a("launch.").a(e0.i);
return false;
} else {
return true;
}
}
public void b(AdColonyAppOptions adColonyAppOptions) {
this.r = adColonyAppOptions;
}
public void c(boolean z2) {
this.B = z2;
}
public com.adcolony.sdk.d c() {
if (this.d == null) {
com.adcolony.sdk.d dVar = new com.adcolony.sdk.d();
this.d = dVar;
dVar.h();
}
return this.d;
}
private boolean a(boolean z2) {
return a(z2, false);
}
public boolean a(boolean z2, boolean z3) {
if (com.adcolony.sdk.a.c()) {
this.I = z3;
this.F = z2;
if (z2 && !z3) {
if (!L()) {
return false;
}
this.I = true;
}
K();
return true;
}
return false;
}
private boolean a(f1 f1Var) {
if (this.F) {
f1 f1Var2 = this.t;
if (f1Var2 == null || !c0.h(c0.f(f1Var2, "controller"), "sha1").equals(c0.h(c0.f(f1Var, "controller"), "sha1"))) {
new e0.a().a("Controller sha1 does not match, downloading new controller.").a(e0.g);
return true;
}
return false;
}
return true;
}
public void a(h0 h0Var) {
a(c0.d(h0Var.a(), "id"));
}
public void a(com.adcolony.sdk.s sVar) {
if (sVar.n) {
f1 a2 = c0.a(sVar.m, "Parsing launch response");
c0.a(a2, SmaatoSdk.KEY_SDK_VERSION, n().I());
c0.j(a2, this.h.a() + "026ae9c9824b3e483fa6c71fa88f57ae27816141");
if (!c(a2)) {
if (this.F) {
return;
}
new e0.a().a("Incomplete or disabled launch server response. ").a("Disabling AdColony until next launch.").a(e0.h);
b(true);
return;
}
if (a(a2)) {
f1 b2 = c0.b();
c0.a(b2, "url", this.w);
c0.a(b2, "filepath", this.h.a() + "7bf3a1e7bbd31e612eda3310c2cdb8075c43c6b5");
this.b.a(new com.adcolony.sdk.s(new h0("WebServices.download", 0, b2), new n()));
}
this.t = a2;
return;
}
S();
}
private boolean a(String str) {
Context a2 = com.adcolony.sdk.a.a();
if (a2 != null) {
File file = new File(a2.getFilesDir().getAbsolutePath() + "/adc3/7bf3a1e7bbd31e612eda3310c2cdb8075c43c6b5");
if (file.exists()) {
return z0.a(str, file);
}
return false;
}
return false;
}
public void a() {
this.d.a();
P();
}
public void a(AdColonyAppOptions adColonyAppOptions) {
this.D.a(false);
this.d.b();
R();
AdColony.a(com.adcolony.sdk.a.a(), adColonyAppOptions);
T();
this.u.clear();
this.r = adColonyAppOptions;
this.a.a();
a(true, true);
}
public boolean a(k0 k0Var) {
this.v.remove(Integer.valueOf(k0Var.getModuleId()));
return this.a.b(k0Var);
}
boolean a(int i2) {
this.v.remove(Integer.valueOf(i2));
return this.a.b(i2);
}
public void a(AdColonyRewardListener adColonyRewardListener) {
this.p = adColonyRewardListener;
}
public void a(com.adcolony.sdk.c cVar) {
this.l = cVar;
}
public void a(AdColonyAdView adColonyAdView) {
this.n = adColonyAdView;
}
public void a(AdColonyInterstitial adColonyInterstitial) {
this.o = adColonyInterstitial;
}
public void a(long j2) {
this.D.a(j2);
}
}