Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
package com.mbridge.msdk.video.dynview.ordercamp;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.GridView;
/* loaded from: classes4.dex */
public class AblGridView extends GridView {
public AblGridView(Context context, AttributeSet attributeSet) {
super(context, attributeSet);
}
public AblGridView(Context context) {
super(context);
}
public AblGridView(Context context, AttributeSet attributeSet, int i) {
super(context, attributeSet, i);
}
@Override // android.widget.GridView, android.widget.AbsListView, android.view.View
public void onMeasure(int i, int i2) {
super.onMeasure(i, View.MeasureSpec.makeMeasureSpec(536870911, Integer.MIN_VALUE));
}
}

View File

@@ -0,0 +1,346 @@
package com.mbridge.msdk.video.dynview.ordercamp.a;
import android.content.Context;
import android.graphics.Bitmap;
import android.text.TextUtils;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.mbridge.msdk.c.h;
import com.mbridge.msdk.dycreator.baseview.MBFrameLayout;
import com.mbridge.msdk.dycreator.baseview.MBHeatLevelLayoutView;
import com.mbridge.msdk.dycreator.baseview.MBStarLevelLayoutView;
import com.mbridge.msdk.dycreator.baseview.cusview.MBCusRoundImageView;
import com.mbridge.msdk.dycreator.baseview.cusview.MBRotationView;
import com.mbridge.msdk.dycreator.baseview.cusview.MBridgeImageView;
import com.mbridge.msdk.dycreator.baseview.cusview.MBridgeTextView;
import com.mbridge.msdk.dycreator.wrapper.DyAdType;
import com.mbridge.msdk.dycreator.wrapper.DyOption;
import com.mbridge.msdk.dycreator.wrapper.DynamicViewCreator;
import com.mbridge.msdk.foundation.controller.c;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import com.mbridge.msdk.foundation.tools.ab;
import com.mbridge.msdk.foundation.tools.ad;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.foundation.tools.ak;
import com.mbridge.msdk.foundation.tools.o;
import com.mbridge.msdk.foundation.tools.x;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import com.mbridge.msdk.video.dynview.h.b;
import com.mbridge.msdk.video.dynview.widget.MBridgeLevelLayoutView;
import com.mbridge.msdk.videocommon.view.RoundImageView;
import java.io.File;
import java.util.List;
import java.util.Locale;
/* loaded from: classes4.dex */
public final class a extends BaseAdapter {
private boolean a = false;
private C0241a b;
private List<CampaignEx> c;
/* renamed from: com.mbridge.msdk.video.dynview.ordercamp.a.a$a, reason: collision with other inner class name */
public static class C0241a {
RelativeLayout a;
MBRotationView b;
MBridgeImageView c;
RoundImageView d;
TextView e;
TextView f;
TextView g;
TextView h;
MBridgeLevelLayoutView i;
ImageView j;
ImageView k;
MBCusRoundImageView l;
MBCusRoundImageView m;
MBStarLevelLayoutView n;
MBHeatLevelLayoutView o;
MBFrameLayout p;
}
@Override // android.widget.Adapter
public final long getItemId(int i) {
return i;
}
public a(List<CampaignEx> list) {
this.c = list;
}
@Override // android.widget.Adapter
public final int getCount() {
List<CampaignEx> list = this.c;
if (list == null || list.size() <= 0) {
return 0;
}
return this.c.size();
}
@Override // android.widget.Adapter
public final Object getItem(int i) {
List<CampaignEx> list = this.c;
if (list != null) {
return list.get(i);
}
return null;
}
@Override // android.widget.Adapter
public final View getView(int i, View view, ViewGroup viewGroup) {
View view2;
try {
if (view == null) {
view2 = a(i);
} else {
this.b = (C0241a) view.getTag();
view2 = view;
}
} catch (Exception e) {
e = e;
view2 = view;
}
try {
this.b.a = (RelativeLayout) view2.findViewById(d("mbridge_lv_item_rl"));
this.b.e = (TextView) view2.findViewById(d("mbridge_lv_title_tv"));
this.b.g = (TextView) view2.findViewById(d("mbridge_lv_tv_install"));
this.b.o = (MBHeatLevelLayoutView) view2.findViewById(d("mbridge_lv_sv_heat_level"));
this.b.f = (TextView) view2.findViewById(d("mbridge_lv_desc_tv"));
this.b.j = (ImageView) view2.findViewById(d("mbridge_iv_flag"));
this.b.h = (TextView) view2.findViewById(d("mbridge_order_viewed_tv"));
double d = 5.0d;
if (this.a) {
List<CampaignEx> list = this.c;
if (list != null && this.b != null && list.size() != 0) {
MBCusRoundImageView mBCusRoundImageView = this.b.l;
if (mBCusRoundImageView != null && (mBCusRoundImageView instanceof MBCusRoundImageView)) {
mBCusRoundImageView.setCustomBorder(30, 30, 30, 30, 10, -1728053248);
a(this.b.l, this.c.get(i).getImageUrl(), false);
}
ImageView imageView = this.b.k;
if (imageView != null) {
a(imageView, this.c.get(i).getImageUrl(), false);
}
MBCusRoundImageView mBCusRoundImageView2 = this.b.m;
if (mBCusRoundImageView2 != null && (mBCusRoundImageView2 instanceof MBCusRoundImageView)) {
mBCusRoundImageView2.setBorder(50, 20, -1);
a(this.b.m, this.c.get(i).getIconUrl(), true);
}
double rating = this.c.get(i).getRating();
if (rating > 0.0d) {
d = rating;
}
MBStarLevelLayoutView mBStarLevelLayoutView = this.b.n;
if (mBStarLevelLayoutView != null) {
mBStarLevelLayoutView.setRating((int) d);
this.b.n.setOrientation(0);
}
MBHeatLevelLayoutView mBHeatLevelLayoutView = this.b.o;
if (mBHeatLevelLayoutView != null) {
mBHeatLevelLayoutView.setHeatCount(this.c.get(i).getNumberRating());
}
}
} else {
List<CampaignEx> list2 = this.c;
if (list2 != null && this.b != null && list2.size() != 0) {
MBridgeImageView mBridgeImageView = this.b.c;
if (mBridgeImageView != null) {
a(mBridgeImageView, this.c.get(i).getImageUrl(), false);
}
ImageView imageView2 = this.b.k;
if (imageView2 != null) {
a(imageView2, this.c.get(i).getImageUrl(), false);
}
RoundImageView roundImageView = this.b.d;
if (roundImageView != null) {
roundImageView.setBorderRadius(25);
a(this.b.d, this.c.get(i).getIconUrl(), true);
}
double rating2 = this.c.get(i).getRating();
if (rating2 > 0.0d) {
d = rating2;
}
MBridgeLevelLayoutView mBridgeLevelLayoutView = this.b.i;
if (mBridgeLevelLayoutView != null) {
mBridgeLevelLayoutView.setRatingAndUser(d, this.c.get(i).getNumberRating());
this.b.i.setOrientation(0);
}
MBRotationView mBRotationView = this.b.b;
if (mBRotationView != null) {
mBRotationView.setWidthRatio(1.0f);
this.b.b.setHeightRatio(1.0f);
this.b.b.setAutoscroll(false);
}
MBridgeImageView mBridgeImageView2 = this.b.c;
if (mBridgeImageView2 != null) {
mBridgeImageView2.setCustomBorder(30, 30, 30, 30, 10, -1728053248);
}
}
}
C0241a c0241a = this.b;
if (c0241a != null) {
if (c0241a.e != null) {
this.b.e.setText(this.c.get(i).getAppName());
}
if (this.b.f != null) {
this.b.f.setText(this.c.get(i).getAppDesc());
}
if (this.b.g != null) {
String adCall = this.c.get(i).getAdCall();
if (this.b.g instanceof MBridgeTextView) {
((MBridgeTextView) this.b.g).setObjectAnimator(new b().c(this.b.g));
}
this.b.g.setText(adCall);
}
if (this.b.j != null) {
try {
String language = Locale.getDefault().getLanguage();
Context c = c.m().c();
if (c != null) {
if (!TextUtils.isEmpty(language) && language.equals("zh")) {
this.b.j.setImageDrawable(c.getResources().getDrawable(c.getResources().getIdentifier("mbridge_reward_flag_cn", "drawable", c.m().g())));
} else {
this.b.j.setImageDrawable(c.getResources().getDrawable(c.getResources().getIdentifier("mbridge_reward_flag_en", "drawable", c.m().g())));
}
}
} catch (Exception e2) {
af.b("OrderCampAdapter", e2.getMessage());
}
ak.a(2, this.b.j, this.c.get(i), c.m().c(), false, null);
}
if (this.b.h != null) {
try {
this.b.h.setText(c.m().c().getResources().getString(c.m().c().getResources().getIdentifier("mbridge_reward_viewed_text_str", "string", c.m().g())));
this.b.h.setVisibility(0);
} catch (Exception e3) {
af.b("OrderCampAdapter", e3.getMessage());
}
}
}
} catch (Exception e4) {
e = e4;
af.b("OrderCampAdapter", e.getMessage());
return view2;
}
return view2;
}
private View a(int i) {
View view;
String str;
String str2;
try {
List<CampaignEx> list = this.c;
str = "";
if (list == null || list.get(i) == null) {
str2 = "501";
} else {
str2 = this.c.get(i).getMof_tplid() + "";
str = this.c.get(i).getCMPTEntryUrl();
}
} catch (Exception e) {
af.b("OrderCampAdapter", e.getMessage());
view = null;
}
if (TextUtils.isEmpty(str)) {
return a();
}
int s = ab.s(c.m().c());
String a = o.a(0, str2, str);
if (TextUtils.isEmpty(a)) {
return a();
}
File file = new File(a + File.separator + "template_config.json");
if (file.isFile() && file.exists()) {
List<String> a2 = ad.a(a, "template_" + str2 + "_" + s + "_item");
if (a2 == null) {
return a();
}
int s2 = ab.s(c.m().c());
h.a().b(c.m().k());
view = DynamicViewCreator.getInstance().createDynamicView(new DyOption.Builder().campaignEx(this.c.get(i)).fileDirs(a2).dyAdType(DyAdType.REWARD).orientation(s2).adChoiceLink(ak.a(this.c.get(i))).build());
if (view != null) {
this.a = true;
C0241a c0241a = new C0241a();
this.b = c0241a;
c0241a.l = (MBCusRoundImageView) view.findViewById(c("mbridge_lv_iv"));
this.b.k = (ImageView) view.findViewById(c("mbridge_lv_iv_burl"));
this.b.m = (MBCusRoundImageView) view.findViewById(c("mbridge_lv_icon_iv"));
this.b.n = (MBStarLevelLayoutView) view.findViewById(c("mbridge_lv_sv_starlevel"));
this.b.p = (MBFrameLayout) view.findViewById(c("mbridge_lv_ration"));
view.setTag(this.b);
}
return this.a ? view : a();
}
return a();
}
private View a() {
View inflate = LayoutInflater.from(c.m().c()).inflate(a("mbridge_order_layout_item"), (ViewGroup) null);
C0241a c0241a = new C0241a();
this.b = c0241a;
c0241a.c = (MBridgeImageView) inflate.findViewById(b("mbridge_lv_iv"));
this.b.k = (ImageView) inflate.findViewById(b("mbridge_lv_iv_burl"));
this.b.d = (RoundImageView) inflate.findViewById(b("mbridge_lv_icon_iv"));
this.b.i = (MBridgeLevelLayoutView) inflate.findViewById(b("mbridge_lv_sv_starlevel"));
this.b.b = (MBRotationView) inflate.findViewById(b("mbridge_lv_ration"));
inflate.setTag(this.b);
return inflate;
}
private void a(final ImageView imageView, String str, final boolean z) {
if (imageView == null) {
return;
}
if (!TextUtils.isEmpty(str)) {
com.mbridge.msdk.foundation.same.c.b.a(imageView.getContext()).a(str, new com.mbridge.msdk.foundation.same.c.c() { // from class: com.mbridge.msdk.video.dynview.ordercamp.a.a.1
@Override // com.mbridge.msdk.foundation.same.c.c
public final void onSuccessLoad(Bitmap bitmap, String str2) {
try {
if (bitmap.isRecycled()) {
return;
}
imageView.setImageBitmap(bitmap);
} catch (Throwable th) {
af.b("OrderCampAdapter", th.getMessage());
}
}
@Override // com.mbridge.msdk.foundation.same.c.c
public final void onFailedLoad(String str2, String str3) {
if (z) {
imageView.setVisibility(8);
}
}
});
} else if (z) {
imageView.setVisibility(8);
}
}
private int a(String str) {
return x.a(c.m().c().getApplicationContext(), str, TtmlNode.TAG_LAYOUT);
}
private int b(String str) {
return x.a(c.m().c().getApplicationContext(), str, "id");
}
private int c(String str) {
if (TextUtils.isEmpty(str)) {
return -1;
}
return str.hashCode();
}
private int d(String str) {
if (this.a) {
return c(str);
}
return b(str);
}
}