Live Football Updates v1.0版本的 MD5 值为:95609b5a5bec0a5f5a0b6e8e4d8f1cba
以下内容为反编译后的 c.java 源代码,内容仅作参考
package i7;
import android.app.Activity;
import android.content.Context;
import android.text.TextUtils;
import android.util.DisplayMetrics;
import android.util.TypedValue;
import android.view.Display;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.facebook.ads.Ad;
import com.facebook.ads.AdError;
import com.facebook.ads.AdView;
import com.facebook.ads.CacheFlag;
import com.facebook.ads.InterstitialAd;
import com.facebook.ads.InterstitialAdListener;
import com.facebook.ads.NativeAd;
import com.google.android.gms.ads.AdListener;
import com.google.android.gms.ads.AdLoader;
import com.google.android.gms.ads.AdRequest;
import com.google.android.gms.ads.AdSize;
import com.google.android.gms.ads.AdView;
import com.google.android.gms.ads.LoadAdError;
import com.google.android.gms.ads.VideoOptions;
import com.google.android.gms.ads.nativead.MediaView;
import com.google.android.gms.ads.nativead.NativeAdOptions;
import com.google.android.gms.ads.nativead.NativeAdView;
import com.google.gson.Gson;
import com.ironsource.mediationsdk.IronSource;
import com.ironsource.mediationsdk.IronSourceBannerLayout;
import com.ironsource.mediationsdk.adunit.adapter.utility.AdInfo;
import com.ironsource.mediationsdk.logger.IronSourceError;
import com.ironsource.mediationsdk.sdk.LevelPlayBannerListener;
import com.ironsource.mediationsdk.sdk.LevelPlayInterstitialListener;
import com.millingoupdate.app.R;
import h0.a;
import i1.v;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.Random;
public final class c {
public class a implements LevelPlayInterstitialListener {
public final Activity f24713a;
public a(Activity activity) {
this.f24713a = activity;
}
@Override
public final void onAdClicked(AdInfo adInfo) {
}
@Override
public final void onAdClosed(AdInfo adInfo) {
t.D(this.f24713a);
}
@Override
public final void onAdLoadFailed(IronSourceError ironSourceError) {
t.E(this.f24713a);
}
@Override
public final void onAdOpened(AdInfo adInfo) {
t.G(this.f24713a);
}
@Override
public final void onAdReady(AdInfo adInfo) {
t.F(this.f24713a);
}
@Override
public final void onAdShowFailed(IronSourceError ironSourceError, AdInfo adInfo) {
}
@Override
public final void onAdShowSucceeded(AdInfo adInfo) {
}
}
public class b implements LevelPlayBannerListener {
public final RelativeLayout f24714a;
public b(RelativeLayout relativeLayout) {
this.f24714a = relativeLayout;
}
@Override
public final void onAdClicked(AdInfo adInfo) {
}
@Override
public final void onAdLeftApplication(AdInfo adInfo) {
}
@Override
public final void onAdLoadFailed(IronSourceError ironSourceError) {
}
@Override
public final void onAdLoaded(AdInfo adInfo) {
this.f24714a.setVisibility(0);
}
@Override
public final void onAdScreenDismissed(AdInfo adInfo) {
}
@Override
public final void onAdScreenPresented(AdInfo adInfo) {
}
}
public class C0294c extends AdListener {
public final RelativeLayout f24715a;
public C0294c(RelativeLayout relativeLayout) {
this.f24715a = relativeLayout;
}
@Override
public final void onAdFailedToLoad(LoadAdError loadAdError) {
}
@Override
public final void onAdLoaded() {
this.f24715a.setVisibility(0);
}
}
public class d implements InterstitialAdListener {
public final Context f24716a;
public d(Context context) {
this.f24716a = context;
}
@Override
public final void onAdClicked(Ad ad2) {
}
@Override
public final void onAdLoaded(Ad ad2) {
t.F(this.f24716a);
}
@Override
public final void onError(Ad ad2, AdError adError) {
t.E(this.f24716a);
}
@Override
public final void onInterstitialDismissed(Ad ad2) {
t.D(this.f24716a);
}
@Override
public final void onInterstitialDisplayed(Ad ad2) {
t.G(this.f24716a);
}
@Override
public final void onLoggingImpression(Ad ad2) {
}
}
public class e implements com.facebook.ads.AdListener {
@Override
public final void onAdClicked(Ad ad2) {
}
@Override
public final void onAdLoaded(Ad ad2) {
}
@Override
public final void onError(Ad ad2, AdError adError) {
}
@Override
public final void onLoggingImpression(Ad ad2) {
}
}
public static void a(final Activity activity, final AdView adView, final String str, final boolean z10) {
int i;
if (z10) {
i = R.id.bannerLayoutBottom;
} else {
i = R.id.bannerLayoutTop;
}
final RelativeLayout relativeLayout = (RelativeLayout) activity.findViewById(i);
relativeLayout.post(new Runnable() {
@Override
public final void run() {
String str2;
boolean c10;
AdSize adSize;
g gVar = new g();
Activity activity2 = activity;
if (r.e(activity2)) {
str2 = "ca-app-pub-00xxx0x00xxx0x00/00x1x0x1x0";
} else {
str2 = str;
}
AdView adView2 = adView;
adView2.setAdUnitId(str2);
RelativeLayout relativeLayout2 = relativeLayout;
relativeLayout2.removeAllViews();
relativeLayout2.addView(adView2);
boolean z11 = z10;
if (z11) {
c10 = ae.d.d().c("show_adaptive_banner_bottom");
} else {
c10 = ae.d.d().c("show_adaptive_banner_top");
}
if ("ModuleWebViewActivity".equals(activity2.getClass().getSimpleName())) {
c10 = true;
}
if (c10) {
try {
Display defaultDisplay = activity2.getWindowManager().getDefaultDisplay();
DisplayMetrics displayMetrics = new DisplayMetrics();
defaultDisplay.getMetrics(displayMetrics);
float f10 = displayMetrics.density;
float width = relativeLayout2.getWidth();
if (width == 0.0f) {
width = displayMetrics.widthPixels;
}
adSize = AdSize.getCurrentOrientationAnchoredAdaptiveBannerAdSize(activity2, (int) (width / f10));
} catch (Exception unused) {
if (z11) {
adSize = AdSize.SMART_BANNER;
} else {
adSize = AdSize.BANNER;
}
}
} else {
adSize = AdSize.BANNER;
}
adView2.setAdSize(adSize);
AdRequest build = new AdRequest.Builder().build();
adView2.setAdListener(gVar);
adView2.loadAd(build);
}
});
}
public static void b(w6.e eVar, AdView adView, String str) {
RelativeLayout relativeLayout = (RelativeLayout) eVar.findViewById(R.id.bannerLayoutFullscreen);
relativeLayout.setVisibility(0);
h hVar = new h();
if (r.e(eVar)) {
str = "ca-app-pub-00xxx0x00xxx0x00/00x1x0x1x0";
}
adView.setAdUnitId(str);
relativeLayout.removeAllViews();
relativeLayout.addView(adView);
adView.setAdSize(AdSize.BANNER);
AdRequest build = new AdRequest.Builder().build();
adView.setAdListener(hVar);
adView.loadAd(build);
}
public static void c(v vVar, View view, AdLoader.Builder builder) {
j(vVar, view);
builder.withNativeAdOptions(new NativeAdOptions.Builder().setVideoOptions(new VideoOptions.Builder().setStartMuted(true).build()).build());
builder.withAdListener(new f(vVar)).build().loadAd(new AdRequest.Builder().build());
}
public static void d(Context context, View view, AdView adView, String str) {
int i;
RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.bannerRectPlaceholder);
RelativeLayout relativeLayout2 = (RelativeLayout) view.findViewById(R.id.bannerLayoutRectangle);
if (ae.d.d().c("show_rectangle_banner_placeholder")) {
i = 0;
} else {
i = 8;
}
relativeLayout.setVisibility(i);
C0294c c0294c = new C0294c(relativeLayout);
if (r.e(context)) {
str = "ca-app-pub-00xxx0x00xxx0x00/00x1x0x1x0";
}
adView.setAdUnitId(str);
relativeLayout2.removeAllViews();
relativeLayout2.addView(adView);
adView.setAdListener(c0294c);
adView.setAdSize(AdSize.MEDIUM_RECTANGLE);
adView.loadAd(new AdRequest.Builder().build());
}
public static void e(Activity activity, com.facebook.ads.AdView adView, boolean z10) {
int i;
if (z10) {
i = R.id.bannerLayoutBottom;
} else {
i = R.id.bannerLayoutTop;
}
RelativeLayout relativeLayout = (RelativeLayout) activity.findViewById(i);
e eVar = new e();
relativeLayout.removeAllViews();
relativeLayout.addView(adView);
AdView.AdViewLoadConfigBuilder buildLoadAdConfig = adView.buildLoadAdConfig();
buildLoadAdConfig.withAdListener(eVar);
adView.loadAd(buildLoadAdConfig.build());
}
public static void f(w6.e eVar, com.facebook.ads.AdView adView) {
RelativeLayout relativeLayout = (RelativeLayout) eVar.findViewById(R.id.bannerLayoutFullscreen);
relativeLayout.setVisibility(0);
i7.b bVar = new i7.b();
relativeLayout.removeAllViews();
relativeLayout.addView(adView);
AdView.AdViewLoadConfigBuilder buildLoadAdConfig = adView.buildLoadAdConfig();
buildLoadAdConfig.withAdListener(bVar);
adView.loadAd(buildLoadAdConfig.build());
}
public static void g(Context context, InterstitialAd interstitialAd) {
d dVar = new d(context);
if (!interstitialAd.isAdLoaded()) {
InterstitialAd.InterstitialAdLoadConfigBuilder buildLoadAdConfig = interstitialAd.buildLoadAdConfig();
buildLoadAdConfig.withAdListener(dVar);
buildLoadAdConfig.withCacheFlags(EnumSet.of(CacheFlag.VIDEO));
interstitialAd.loadAd(buildLoadAdConfig.build());
}
}
public static void h(v vVar, View view, NativeAd nativeAd) {
j(vVar, view);
nativeAd.loadAd(nativeAd.buildLoadAdConfig().withAdListener(new i(vVar, view, nativeAd)).build());
}
public static void i(View view, com.facebook.ads.AdView adView) {
int i;
RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.bannerRectPlaceholder);
RelativeLayout relativeLayout2 = (RelativeLayout) view.findViewById(R.id.bannerLayoutRectangle);
if (ae.d.d().c("show_rectangle_banner_placeholder")) {
i = 0;
} else {
i = 8;
}
relativeLayout.setVisibility(i);
j jVar = new j(relativeLayout);
relativeLayout2.removeAllViews();
relativeLayout2.addView(adView);
AdView.AdViewLoadConfigBuilder buildLoadAdConfig = adView.buildLoadAdConfig();
buildLoadAdConfig.withAdListener(jVar);
adView.loadAd(buildLoadAdConfig.build());
}
public static void j(v vVar, View view) {
h6.e eVar;
List<h6.f> list;
String str;
String str2;
String str3;
String str4;
FrameLayout frameLayout;
Button button;
FrameLayout frameLayout2;
try {
String f10 = ae.d.d().f("in_house_ads_json");
if (!TextUtils.isEmpty(f10) && (eVar = (h6.e) new Gson().b(h6.e.class, f10)) != null && (list = eVar.f23661a) != null && !list.isEmpty()) {
ArrayList arrayList = new ArrayList();
for (h6.f fVar : list) {
if (fVar.f23662a && !o.u(vVar, fVar.f23670j, fVar.f23671k)) {
arrayList.add(fVar);
}
}
if (arrayList.isEmpty()) {
return;
}
h6.f fVar2 = (h6.f) arrayList.get(new Random().nextInt(arrayList.size()));
String str5 = fVar2.f23666e;
String str6 = fVar2.f23664c;
String str7 = fVar2.f23665d;
boolean z10 = fVar2.f23663b;
h6.d dVar = fVar2.f23667f;
if (dVar != null) {
str = o.h(dVar.f23659a, dVar.f23660b);
} else {
str = null;
}
h6.c cVar = fVar2.f23668g;
if (cVar != null) {
str2 = o.h(cVar.f23657a, cVar.f23658b);
} else {
str2 = null;
}
h6.a aVar = fVar2.f23669h;
if (aVar != null) {
str3 = o.h(aVar.f23653a, aVar.f23654b);
} else {
str3 = null;
}
h6.b bVar = fVar2.i;
if (bVar != null) {
str4 = o.h(bVar.f23655a, bVar.f23656b);
} else {
str4 = null;
}
if (TextUtils.isEmpty(str) || TextUtils.isEmpty(str2) || TextUtils.isEmpty(str4) || TextUtils.isEmpty(str5) || (frameLayout = (FrameLayout) vVar.getLayoutInflater().inflate(R.layout.native_ad_in_house, (ViewGroup) null)) == null) {
return;
}
ImageView imageView = (ImageView) frameLayout.findViewById(R.id.ad_media);
ImageView imageView2 = (ImageView) frameLayout.findViewById(R.id.ad_icon);
TextView textView = (TextView) frameLayout.findViewById(R.id.ad_headline);
TextView textView2 = (TextView) frameLayout.findViewById(R.id.ad_body);
TextView textView3 = (TextView) frameLayout.findViewById(R.id.ad_social);
TextView textView4 = (TextView) frameLayout.findViewById(R.id.ad_badge);
Button button2 = (Button) frameLayout.findViewById(R.id.ad_cta);
try {
int o10 = l.o(vVar);
frameLayout2 = frameLayout;
try {
Context context = view.getContext();
button = button2;
try {
com.bumptech.glide.m b10 = com.bumptech.glide.b.b(context).b(context);
if (TextUtils.isEmpty(str)) {
str = "https://dummy.lM9OSQ9ttBQ.w3bs1t3/file-f4k3.jpg";
}
com.bumptech.glide.l e10 = b10.k(str).l(o10).e(o10);
e10.getClass();
((com.bumptech.glide.l) e10.v(u7.l.f31420c, new u7.i())).B(imageView);
} catch (Exception unused) {
}
} catch (Exception unused2) {
button = button2;
}
} catch (Exception unused3) {
button = button2;
frameLayout2 = frameLayout;
}
int i = 8;
if (!TextUtils.isEmpty(str6)) {
try {
int o11 = l.o(vVar);
Context context2 = view.getContext();
com.bumptech.glide.m b11 = com.bumptech.glide.b.b(context2).b(context2);
if (TextUtils.isEmpty(str6)) {
str6 = "https://dummy.lM9OSQ9ttBQ.w3bs1t3/file-f4k3.jpg";
}
b11.k(str6).l(o11).e(o11).B(imageView2);
} catch (Exception unused4) {
}
} else {
imageView2.setVisibility(8);
}
textView.setText(str2);
if (!TextUtils.isEmpty(str3)) {
textView2.setText(str3);
} else {
textView2.setVisibility(8);
}
if (!TextUtils.isEmpty(str7)) {
textView3.setText(str7);
} else {
textView3.setVisibility(8);
}
if (z10) {
i = 0;
}
textView4.setVisibility(i);
Button button3 = button;
button3.setText(str4);
RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.nativeAdPlaceholder);
relativeLayout.removeAllViews();
relativeLayout.addView(frameLayout2);
d7.e eVar2 = new d7.e(vVar, 1, str5);
imageView.setOnClickListener(eVar2);
imageView2.setOnClickListener(eVar2);
button3.setOnClickListener(eVar2);
}
} catch (Exception unused5) {
}
}
public static void k(Activity activity, IronSourceBannerLayout ironSourceBannerLayout, String str, boolean z10) {
int i;
boolean c10;
if (z10) {
i = R.id.bannerLayoutBottom;
} else {
i = R.id.bannerLayoutTop;
}
RelativeLayout relativeLayout = (RelativeLayout) activity.findViewById(i);
relativeLayout.setVisibility(8);
if (ironSourceBannerLayout == null) {
return;
}
ironSourceBannerLayout.setLevelPlayBannerListener(new b(relativeLayout));
TypedValue typedValue = new TypedValue();
activity.getTheme().resolveAttribute(R.attr.appBannerAdBackground, typedValue, true);
int i10 = typedValue.data;
if (!z10) {
int j4 = b0.c.j(b0.c.s(t.a(activity)));
Object obj = h0.a.f23629a;
i10 = a.c.a(activity, j4);
}
if (z10) {
c10 = ae.d.d().c("show_adaptive_banner_bottom");
} else {
c10 = ae.d.d().c("show_adaptive_banner_top");
}
if ("ModuleWebViewActivity".equals(activity.getClass().getSimpleName())) {
if (!z10) {
i10 = -16777216;
}
c10 = true;
}
ironSourceBannerLayout.getSize().setAdaptive(c10);
relativeLayout.setBackgroundColor(i10);
relativeLayout.removeAllViews();
relativeLayout.addView(ironSourceBannerLayout);
IronSource.init(activity, activity.getString(R.string.ironsource_app_key), IronSource.AD_UNIT.BANNER);
if (!TextUtils.isEmpty(str)) {
IronSource.loadBanner(ironSourceBannerLayout, str);
} else {
IronSource.loadBanner(ironSourceBannerLayout);
}
}
public static void l(w6.e eVar, IronSourceBannerLayout ironSourceBannerLayout, String str) {
RelativeLayout relativeLayout = (RelativeLayout) eVar.findViewById(R.id.bannerLayoutFullscreen);
if (ironSourceBannerLayout == null) {
return;
}
ironSourceBannerLayout.setLevelPlayBannerListener(new i7.e(relativeLayout));
relativeLayout.removeAllViews();
relativeLayout.addView(ironSourceBannerLayout);
IronSource.init(eVar, eVar.getString(R.string.ironsource_app_key), IronSource.AD_UNIT.BANNER);
if (!TextUtils.isEmpty(str)) {
IronSource.loadBanner(ironSourceBannerLayout, str);
} else {
IronSource.loadBanner(ironSourceBannerLayout);
}
}
public static void m(Activity activity) {
IronSource.setLevelPlayInterstitialListener(new a(activity));
IronSource.init(activity, activity.getString(R.string.ironsource_app_key), IronSource.AD_UNIT.INTERSTITIAL);
if (!IronSource.isInterstitialReady()) {
IronSource.loadInterstitial();
}
}
public static void n(v vVar, View view, IronSourceBannerLayout ironSourceBannerLayout, String str) {
int i;
RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.bannerRectPlaceholder);
RelativeLayout relativeLayout2 = (RelativeLayout) view.findViewById(R.id.bannerLayoutRectangle);
if (ae.d.d().c("show_rectangle_banner_placeholder")) {
i = 0;
} else {
i = 8;
}
relativeLayout.setVisibility(i);
if (ironSourceBannerLayout == null) {
return;
}
ironSourceBannerLayout.setLevelPlayBannerListener(new i7.d(relativeLayout));
relativeLayout2.removeAllViews();
relativeLayout2.addView(ironSourceBannerLayout);
IronSource.init(vVar, vVar.getString(R.string.ironsource_app_key), IronSource.AD_UNIT.BANNER);
if (!TextUtils.isEmpty(str)) {
IronSource.loadBanner(ironSourceBannerLayout, str);
} else {
IronSource.loadBanner(ironSourceBannerLayout);
}
}
public static void o(Activity activity, View view, com.google.android.gms.ads.nativead.NativeAd nativeAd) {
RelativeLayout relativeLayout = (RelativeLayout) view.findViewById(R.id.nativeAdPlaceholder);
NativeAdView nativeAdView = (NativeAdView) activity.getLayoutInflater().inflate(R.layout.native_ad_admob, (ViewGroup) null);
p(nativeAd, nativeAdView);
relativeLayout.removeAllViews();
relativeLayout.addView(nativeAdView);
}
public static void p(com.google.android.gms.ads.nativead.NativeAd nativeAd, NativeAdView nativeAdView) {
nativeAdView.setMediaView((MediaView) nativeAdView.findViewById(R.id.ad_media));
nativeAdView.setHeadlineView(nativeAdView.findViewById(R.id.ad_headline));
nativeAdView.setBodyView(nativeAdView.findViewById(R.id.ad_body));
nativeAdView.setCallToActionView(nativeAdView.findViewById(R.id.ad_call_to_action));
nativeAdView.setIconView(nativeAdView.findViewById(R.id.ad_app_icon));
nativeAdView.setPriceView(nativeAdView.findViewById(R.id.ad_price));
nativeAdView.setStarRatingView(nativeAdView.findViewById(R.id.ad_stars));
nativeAdView.setStoreView(nativeAdView.findViewById(R.id.ad_store));
nativeAdView.setAdvertiserView(nativeAdView.findViewById(R.id.ad_advertiser));
((TextView) nativeAdView.getHeadlineView()).setText(nativeAd.getHeadline());
nativeAdView.getMediaView().setMediaContent(nativeAd.getMediaContent());
if (nativeAd.getBody() == null) {
nativeAdView.getBodyView().setVisibility(4);
} else {
nativeAdView.getBodyView().setVisibility(0);
((TextView) nativeAdView.getBodyView()).setText(nativeAd.getBody());
}
if (nativeAd.getCallToAction() == null) {
nativeAdView.getCallToActionView().setVisibility(4);
} else {
nativeAdView.getCallToActionView().setVisibility(0);
((Button) nativeAdView.getCallToActionView()).setText(nativeAd.getCallToAction());
}
if (nativeAd.getIcon() == null) {
nativeAdView.getIconView().setVisibility(8);
} else {
((ImageView) nativeAdView.getIconView()).setImageDrawable(nativeAd.getIcon().getDrawable());
nativeAdView.getIconView().setVisibility(0);
}
if (nativeAd.getPrice() == null) {
nativeAdView.getPriceView().setVisibility(8);
} else {
nativeAdView.getPriceView().setVisibility(0);
((TextView) nativeAdView.getPriceView()).setText(nativeAd.getPrice());
}
if (nativeAd.getStore() == null) {
nativeAdView.getStoreView().setVisibility(8);
} else {
nativeAdView.getStoreView().setVisibility(0);
((TextView) nativeAdView.getStoreView()).setText(nativeAd.getStore());
}
if (nativeAd.getStarRating() == null) {
nativeAdView.getStarRatingView().setVisibility(8);
} else {
((RatingBar) nativeAdView.getStarRatingView()).setRating(nativeAd.getStarRating().floatValue());
nativeAdView.getStarRatingView().setVisibility(0);
}
if (nativeAd.getAdvertiser() == null) {
nativeAdView.getAdvertiserView().setVisibility(4);
} else {
((TextView) nativeAdView.getAdvertiserView()).setText(nativeAd.getAdvertiser());
nativeAdView.getAdvertiserView().setVisibility(0);
}
nativeAdView.setNativeAd(nativeAd);
}
}