Play House Simulation v3.0版本的 MD5 值为:4dbd745af43e6bcde3a0dca90b9e5934
以下内容为反编译后的 o000oOoO.java 源代码,内容仅作参考
package OooO0OO.OooO00o.OooO00o.o000O0Oo;
import OooO0OO.OooO00o.OooO00o.o000000;
import OooO0OO.OooO00o.OooO00o.o00000O0.OooOO0O;
import OooO0OO.OooO00o.OooO00o.o00000O0.o00O0O;
import OooO0OO.OooO00o.OooO00o.o00000O0.o0OO00O;
import OooO0OO.OooO00o.OooO00o.o00000O0.o0Oo0oo;
import OooO0OO.OooO00o.OooO00o.o0000O0O;
import OooO0OO.OooO00o.OooO00o.o0000OO0;
import OooO0OO.OooO00o.OooO00o.o000OO00;
import OooO0OO.OooO00o.OooO00o.o000OO0O;
import OooO0OO.OooO00o.OooO00o.o000Oo0;
import OooO0OO.OooO00o.OooO00o.o00OOOOo;
import OooO0OO.OooO00o.OooO00o.o0O0ooO;
import OooO0OO.OooO00o.OooO00o.o0OOO0o;
import OooO0OO.OooO00o.OooO00o.o0oOOo;
import android.app.Application;
import android.content.Context;
import android.graphics.drawable.Drawable;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Build;
import android.os.Handler;
import android.os.Looper;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import com.adfly.sdk.interactive.InteractiveAdView;
import com.adfly.sdk.interactive.bean.RandomInteractiveAdBean;
import com.google.gson.JsonElement;
import com.huawei.agconnect.apms.collect.model.EventType;
import com.huawei.hms.support.feature.result.CommonConstant;
import java.util.HashMap;
import java.util.Map;
public class o000oOoO implements OooOo {
public RandomInteractiveAdBean f383OooO00o;
public boolean f384OooO0O0;
public o000Oo0 f385OooO0OO;
public o0O0ooO f386OooO0Oo;
public OooOOO0 f387OooO0o;
public final InteractiveAdView f388OooO0o0;
public int f389OooO0oO = -1;
public int f390OooO0oo = -1;
public final Handler f382OooO = new Handler(Looper.getMainLooper());
public final Runnable f391OooOO0 = new OooO00o();
public final o0000O0O<Drawable> OooOO0O = new OooO0O0();
public class OooO implements o0000OO0<RandomInteractiveAdBean> {
public final boolean f392OooO00o;
public OooO(boolean z) {
this.f392OooO00o = z;
}
@Override
public void OooO00o(RandomInteractiveAdBean randomInteractiveAdBean) {
RandomInteractiveAdBean randomInteractiveAdBean2;
RandomInteractiveAdBean randomInteractiveAdBean3 = randomInteractiveAdBean;
o000oOoO o000oooo = o000oOoO.this;
o000oooo.f385OooO0OO = null;
if (o000oooo.f388OooO0o0.f2373OooO0OO) {
return;
}
OooOOO0 oooOOO0 = o000oooo.f387OooO0o;
if (oooOOO0 != null) {
oooOOO0.OooO0Oo(null);
}
if (randomInteractiveAdBean3.OooO0O0() != null && randomInteractiveAdBean3.OooO0O0().length > 0) {
o000oOoO o000oooo2 = o000oOoO.this;
boolean z = this.f392OooO00o;
o000oooo2.f383OooO00o = randomInteractiveAdBean3;
o000oooo2.f384OooO0O0 = z;
int i = OooO0OO.OooO00o.OooO00o.o00000O0.OooOO0O.OooOO0O;
Context OooO0OO2 = OooOO0O.OooO0OO.f143OooO00o.OooO0OO();
if (OooO0OO2 != null && (randomInteractiveAdBean2 = o000oooo2.f383OooO00o) != null && !TextUtils.isEmpty(randomInteractiveAdBean2.OooO0Oo())) {
if (o000oooo2.f383OooO00o.OooO0OO() == 1 || o000oooo2.f383OooO00o.OooO0OO() == 2) {
o0oOOo.OooO00o(OooO0OO2).OooO0OO(o000oooo2.f383OooO00o.OooO0Oo(), null);
} else {
o0oOOo.OooO00o(OooO0OO2).f766OooO0OO.OooOO0(o000oooo2.f383OooO00o.OooO0Oo());
}
}
o000oooo2.OooO0Oo(0);
return;
}
Log.e("AdFly-Interactive", "Data format error");
}
@Override
public void OooO0O0(int i, String str, String str2) {
OooOO0O oooOO0O;
Log.e("AdFly-Interactive", "fetch data failed, please check the network");
o000oOoO o000oooo = o000oOoO.this;
o000oooo.f385OooO0OO = null;
if (o000oooo.f387OooO0o != null) {
if (i == -1000) {
oooOO0O = new OooOO0O(5003, OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooO0O0("Request Error: ", i));
} else {
oooOO0O = i > 0 ? new OooOO0O(i, str) : new OooOO0O(5005, OooO0OO.OooO0O0.OooO00o.OooO00o.OooO00o.OooO0O0("Request Error: ", i));
}
o000oOoO.this.f387OooO0o.OooO0o0(null, oooOO0O);
}
}
}
public class OooO00o implements Runnable {
public OooO00o() {
}
@Override
public void run() {
o000oOoO o000oooo = o000oOoO.this;
o000oooo.OooO0Oo(o000oooo.f389OooO0oO + 1);
}
}
public class OooO0O0 implements o0000O0O<Drawable> {
public OooO0O0() {
}
@Override
public void OooO00o(Drawable drawable) {
int i;
RandomInteractiveAdBean.OooO00o tracker;
o000oOoO o000oooo = o000oOoO.this;
o000oooo.f386OooO0Oo = null;
View closeView = o000oooo.f388OooO0o0.getCloseView();
o000oOoO o000oooo2 = o000oOoO.this;
if (o000oooo2.f383OooO00o == null || closeView == null) {
return;
}
if (o000oooo2.f384OooO0O0) {
closeView.setVisibility(0);
} else {
closeView.setVisibility(8);
}
o000oOoO o000oooo3 = o000oOoO.this;
o000oooo3.f390OooO0oo = o000oooo3.f389OooO0oO;
RandomInteractiveAdBean.OooO00o OooO0o02 = o000oooo3.f383OooO00o.OooO0o0();
if (OooO0o02 != null && !OooO0o02.f2397OooO0Oo) {
OooO0o02.f2397OooO0Oo = true;
o00O0O.OooO0o().OooO0Oo(new String[]{OooO0o02.OooO0OO()});
OooOOO0 oooOOO0 = o000oOoO.this.f387OooO0o;
if (oooOOO0 != null) {
oooOOO0.OooO0o(null);
}
}
RandomInteractiveAdBean.FloatIconAsset[] OooO0O02 = o000oOoO.this.f383OooO00o.OooO0O0();
if (OooO0O02 == null || (i = o000oOoO.this.f389OooO0oO) < 0 || i >= OooO0O02.length || (tracker = OooO0O02[i].getTracker()) == null || tracker.f2397OooO0Oo) {
return;
}
tracker.f2397OooO0Oo = true;
o00O0O.OooO0o().OooO0Oo(new String[]{tracker.OooO0OO()});
}
@Override
public void a() {
o000oOoO o000oooo = o000oOoO.this;
o000oooo.f386OooO0Oo = null;
OooOOO0 oooOOO0 = o000oooo.f387OooO0o;
if (oooOOO0 != null) {
oooOOO0.OooO00o(null, new OooOO0O(5000, "Load image."));
}
}
}
public class OooO0OO implements View.OnClickListener {
public OooO0OO() {
}
@Override
public void onClick(View view) {
int i;
RandomInteractiveAdBean.OooO00o tracker;
o000oOoO o000oooo = o000oOoO.this;
if (o000oooo.f383OooO00o != null && o000oooo.f388OooO0o0.getVisibility() == 0) {
o000oOoO o000oooo2 = o000oOoO.this;
if (o000oooo2.f390OooO0oo < 0) {
return;
}
RandomInteractiveAdBean.OooO00o OooO0o02 = o000oooo2.f383OooO00o.OooO0o0();
if (OooO0o02 != null) {
o00O0O.OooO0o().OooO0Oo(new String[]{OooO0o02.OooO00o()});
}
RandomInteractiveAdBean.FloatIconAsset[] OooO0O02 = o000oOoO.this.f383OooO00o.OooO0O0();
if (OooO0O02 != null && (i = o000oOoO.this.f390OooO0oo) >= 0 && i < OooO0O02.length && (tracker = OooO0O02[i].getTracker()) != null) {
o00O0O.OooO0o().OooO0Oo(new String[]{tracker.OooO00o()});
}
if (TextUtils.isEmpty(o000oOoO.this.f383OooO00o.OooO0Oo())) {
Log.e("AdFly-Interactive", "load page url is empty");
} else {
o0OOO0o.OooOOOo(o000oOoO.this.f388OooO0o0.getContext(), o000oOoO.this.f383OooO00o.OooO0Oo(), true, o000oOoO.this.f383OooO00o.OooO0OO() == 1);
}
OooOOO0 oooOOO0 = o000oOoO.this.f387OooO0o;
if (oooOOO0 != null) {
oooOOO0.OooO0O0(null);
}
}
}
}
public class OooO0o implements View.OnClickListener {
public OooO0o() {
}
@Override
public void onClick(View view) {
int i;
RandomInteractiveAdBean.OooO00o tracker;
o000oOoO o000oooo = o000oOoO.this;
if (o000oooo.f383OooO00o != null && o000oooo.f388OooO0o0.getVisibility() == 0) {
o000oOoO.this.f388OooO0o0.setVisibility(8);
RandomInteractiveAdBean.OooO00o OooO0o02 = o000oOoO.this.f383OooO00o.OooO0o0();
if (OooO0o02 != null) {
o00O0O.OooO0o().OooO0Oo(new String[]{OooO0o02.OooO0O0()});
}
RandomInteractiveAdBean.FloatIconAsset[] OooO0O02 = o000oOoO.this.f383OooO00o.OooO0O0();
if (OooO0O02 != null && (i = o000oOoO.this.f389OooO0oO) >= 0 && i < OooO0O02.length && (tracker = OooO0O02[i].getTracker()) != null) {
o00O0O.OooO0o().OooO0Oo(new String[]{tracker.OooO0O0()});
}
o000oOoO.this.destroy();
o000oOoO.this.f388OooO0o0.getIconView().setImageDrawable(null);
OooOOO0 oooOOO0 = o000oOoO.this.f387OooO0o;
if (oooOOO0 != null) {
oooOOO0.OooO0OO(null);
}
}
}
}
public o000oOoO(InteractiveAdView interactiveAdView) {
this.f388OooO0o0 = interactiveAdView;
interactiveAdView.getIconView().setOnClickListener(new OooO0OO());
interactiveAdView.getCloseView().setOnClickListener(new OooO0o());
}
@Override
public void OooO00o(int i) {
if (i != 0) {
this.f382OooO.removeCallbacks(this.f391OooOO0);
} else if (this.f383OooO00o != null) {
OooO0Oo(this.f389OooO0oO);
}
}
@Override
public void OooO0O0(Context context, boolean z, String str) {
ConnectivityManager connectivityManager;
NetworkInfo activeNetworkInfo;
if (this.f385OooO0OO != null) {
Log.e("AdFly-Interactive", "is fetching. please try again later.");
return;
}
OooO oooO = new OooO(z);
int i = OooO0OO.OooO00o.OooO00o.o00000O0.OooOO0O.OooOO0O;
OooO0OO.OooO00o.OooO00o.o00000O0.OooOO0O oooOO0O = OooOO0O.OooO0OO.f143OooO00o;
OooO0OO.OooO00o.OooO00o.o00000O0.OooOOOO oooOOOO = oooOO0O.f133OooO0O0;
String str2 = oooOOOO.f144OooO00o;
String str3 = oooOOOO.f145OooO0O0;
if (TextUtils.isEmpty(str2) || TextUtils.isEmpty(str3)) {
Log.e("AdFly", "error: appKey or appSecret is empty");
}
HashMap hashMap = new HashMap();
String str4 = null;
Application application = oooOO0O.f132OooO00o;
int i2 = -1;
if (application != null && (connectivityManager = (ConnectivityManager) application.getSystemService("connectivity")) != null && (activeNetworkInfo = connectivityManager.getActiveNetworkInfo()) != null) {
i2 = activeNetworkInfo.getType();
}
hashMap.put("network", Integer.valueOf(i2));
hashMap.put("manufacturer", Build.MANUFACTURER);
hashMap.put("device_model", Build.MODEL);
hashMap.put("utc", Long.valueOf(System.currentTimeMillis()));
o0Oo0oo o0oo0oo = o0Oo0oo.OooO00o.f263OooO00o;
hashMap.put("version", o0oo0oo.f257OooO0OO);
hashMap.put("app_ver", o0oo0oo.f257OooO0OO);
hashMap.put("client", o0oo0oo.f255OooO00o);
hashMap.put("os_ver", o0oo0oo.f255OooO00o);
hashMap.put("flavor", "adflysdk");
hashMap.put("product", "adflysdk");
hashMap.put("advertiser_id", o0oo0oo.f256OooO0O0);
hashMap.put(EventType.PLATFORM, "android");
Application application2 = oooOO0O.f132OooO00o;
if (application2 != null) {
hashMap.put(CommonConstant.KEY_UID, o0OO00O.OooO00o(application2));
try {
str4 = application2.getPackageManager().getPackageInfo(application2.getPackageName(), 0).versionName;
} catch (Exception unused) {
}
if (str4 != null) {
hashMap.put("appversion", str4);
}
}
o0Oo0oo o0oo0oo2 = o0Oo0oo.OooO00o.f263OooO00o;
JsonElement jsonElement = o0oo0oo2.f258OooO0Oo;
if (jsonElement != null) {
hashMap.put("publisher_flag", jsonElement);
}
hashMap.put("appKey", str2);
hashMap.put("nonce", o00OOOOo.OooO00o(6));
hashMap.put("timestamp", Long.valueOf(System.currentTimeMillis()));
hashMap.put("deviceId", o0oo0oo2.f256OooO0O0);
hashMap.put("network", o00OOOOo.OooO0O0(context));
hashMap.put("sdkVersion", "2.1");
hashMap.put("advertiserId", o0oo0oo2.f256OooO0O0);
if (!TextUtils.isEmpty(str)) {
try {
hashMap.put("widgetId", Integer.valueOf(Integer.parseInt(str)));
} catch (Exception unused2) {
}
}
HashMap hashMap2 = new HashMap();
for (Map.Entry entry : hashMap.entrySet()) {
if (entry.getValue() != null) {
hashMap2.put(entry.getKey(), entry.getValue().toString());
}
}
this.f385OooO0OO = o0OOO0o.OooO0oO("https://api.adfly.global/api/ig/sdk/query/v2", hashMap2, str3, new o000000(RandomInteractiveAdBean.class), oooO);
}
@Override
public void OooO0OO(OooOOO0 oooOOO0) {
this.f387OooO0o = oooOOO0;
}
public final void OooO0Oo(int i) {
RandomInteractiveAdBean randomInteractiveAdBean;
if (this.f388OooO0o0.f2373OooO0OO || (randomInteractiveAdBean = this.f383OooO00o) == null) {
return;
}
if (i < 0 || i >= randomInteractiveAdBean.OooO0O0().length) {
this.f389OooO0oO = 0;
} else {
this.f389OooO0oO = i;
}
String img = this.f383OooO00o.OooO0O0()[this.f389OooO0oO].getImg();
if (TextUtils.isEmpty(img)) {
Log.e("AdFly-Interactive", "Data problem");
OooO0Oo(this.f389OooO0oO + 1);
return;
}
o0O0ooO o0o0ooo = this.f386OooO0Oo;
if (o0o0ooo != null) {
o0o0ooo.f668OooO00o.OooO0Oo();
this.f386OooO0Oo = null;
}
o000OO0O o000oo0o = new o000OO0O(this.f388OooO0o0.getContext(), new o000OO00(null));
o000oo0o.f406OooO0Oo = 0;
o000oo0o.f408OooO0o0 = 0;
o000oo0o.f405OooO0OO = img;
o000oo0o.f407OooO0o = this.OooOO0O;
this.f386OooO0Oo = o000oo0o.OooO00o(this.f388OooO0o0.getIconView());
this.f382OooO.removeCallbacks(this.f391OooOO0);
this.f382OooO.postDelayed(this.f391OooOO0, this.f383OooO00o.OooO00o() > 0 ? this.f383OooO00o.OooO00o() * 1000 : 10000L);
}
@Override
public void destroy() {
o000Oo0 o000oo0 = this.f385OooO0OO;
if (o000oo0 != null) {
o000oo0.f415OooO00o.OooO0Oo();
this.f385OooO0OO = null;
}
o0O0ooO o0o0ooo = this.f386OooO0Oo;
if (o0o0ooo != null) {
o0o0ooo.f668OooO00o.OooO0Oo();
this.f386OooO0Oo = null;
}
this.f382OooO.removeCallbacks(this.f391OooOO0);
this.f388OooO0o0.getIconView().setImageDrawable(null);
this.f383OooO00o = null;
this.f389OooO0oO = 0;
}
}