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,10 @@
package com.mbridge.msdk.dycreator.wrapper;
/* loaded from: classes4.dex */
public enum DyAdType {
SPLASH,
BANNER,
INTERSTITIAL,
REWARD,
NATIVE
}

View File

@@ -0,0 +1,283 @@
package com.mbridge.msdk.dycreator.wrapper;
import com.mbridge.msdk.dycreator.listener.DyCountDownListenerWrapper;
import com.mbridge.msdk.foundation.entity.CampaignEx;
import java.io.File;
import java.util.List;
/* loaded from: classes4.dex */
public class DyOption {
private List<String> a;
private File b;
private CampaignEx c;
private DyAdType d;
private String e;
private boolean f;
private boolean g;
private boolean h;
private boolean i;
private boolean j;
private boolean k;
private int l;
private int m;
private int n;
private int o;
private int p;
private int q;
private DyCountDownListenerWrapper r;
public interface IViewOptionBuilder {
IViewOptionBuilder adChoiceLink(String str);
DyOption build();
IViewOptionBuilder campaignEx(CampaignEx campaignEx);
IViewOptionBuilder canSkip(boolean z);
IViewOptionBuilder countDownTime(int i);
IViewOptionBuilder dyAdType(DyAdType dyAdType);
IViewOptionBuilder file(File file);
IViewOptionBuilder fileDirs(List<String> list);
IViewOptionBuilder isApkInfoVisible(boolean z);
IViewOptionBuilder isClickButtonVisible(boolean z);
IViewOptionBuilder isLogoVisible(boolean z);
IViewOptionBuilder isScreenClick(boolean z);
IViewOptionBuilder isShakeVisible(boolean z);
IViewOptionBuilder orientation(int i);
IViewOptionBuilder shakeStrenght(int i);
IViewOptionBuilder shakeTime(int i);
IViewOptionBuilder templateType(int i);
}
public String getAdChoiceLink() {
return this.e;
}
public CampaignEx getCampaignEx() {
return this.c;
}
public int getCountDownTime() {
return this.o;
}
public int getCurrentCountDown() {
return this.p;
}
public DyAdType getDyAdType() {
return this.d;
}
public File getFile() {
return this.b;
}
public List<String> getFileDirs() {
return this.a;
}
public int getOrientation() {
return this.n;
}
public int getShakeStrenght() {
return this.l;
}
public int getShakeTime() {
return this.m;
}
public int getTemplateType() {
return this.q;
}
public boolean isApkInfoVisible() {
return this.j;
}
public boolean isCanSkip() {
return this.g;
}
public boolean isClickButtonVisible() {
return this.h;
}
public boolean isClickScreen() {
return this.f;
}
public boolean isLogoVisible() {
return this.k;
}
public boolean isShakeVisible() {
return this.i;
}
public void setDyCountDownListenerWrapper(DyCountDownListenerWrapper dyCountDownListenerWrapper) {
this.r = dyCountDownListenerWrapper;
}
public void setDyCountDownListener(int i) {
DyCountDownListenerWrapper dyCountDownListenerWrapper = this.r;
if (dyCountDownListenerWrapper != null) {
dyCountDownListenerWrapper.getCountDownValue(i);
}
this.p = i;
}
public DyOption(Builder builder) {
this.a = builder.a;
this.b = builder.b;
this.c = builder.c;
this.d = builder.d;
this.g = builder.e;
this.e = builder.f;
this.f = builder.g;
this.h = builder.h;
this.j = builder.j;
this.i = builder.i;
this.k = builder.k;
this.l = builder.l;
this.m = builder.m;
this.n = builder.n;
this.o = builder.o;
this.q = builder.p;
}
public static class Builder implements IViewOptionBuilder {
private List<String> a;
private File b;
private CampaignEx c;
private DyAdType d;
private boolean e;
private String f;
private boolean g;
private boolean h;
private boolean i;
private boolean j;
private boolean k;
private int l;
private int m;
private int n;
private int o;
private int p;
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder adChoiceLink(String str) {
this.f = str;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder campaignEx(CampaignEx campaignEx) {
this.c = campaignEx;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder canSkip(boolean z) {
this.e = z;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder countDownTime(int i) {
this.o = i;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder dyAdType(DyAdType dyAdType) {
this.d = dyAdType;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder file(File file) {
this.b = file;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder fileDirs(List<String> list) {
this.a = list;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder isApkInfoVisible(boolean z) {
this.j = z;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder isClickButtonVisible(boolean z) {
this.h = z;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder isLogoVisible(boolean z) {
this.k = z;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder isScreenClick(boolean z) {
this.g = z;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder isShakeVisible(boolean z) {
this.i = z;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder orientation(int i) {
this.n = i;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder shakeStrenght(int i) {
this.l = i;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder shakeTime(int i) {
this.m = i;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public IViewOptionBuilder templateType(int i) {
this.p = i;
return this;
}
@Override // com.mbridge.msdk.dycreator.wrapper.DyOption.IViewOptionBuilder
public DyOption build() {
return new DyOption(this);
}
}
}

View File

@@ -0,0 +1,14 @@
package com.mbridge.msdk.dycreator.wrapper;
import android.view.View;
import com.mbridge.msdk.dycreator.b.a;
import com.mbridge.msdk.dycreator.binding.response.base.BaseRespData;
/* loaded from: classes4.dex */
public interface DynamicViewBackListener {
void viewClicked(BaseRespData baseRespData);
void viewCreateFail(a aVar);
void viewCreatedSuccess(View view);
}

View File

@@ -0,0 +1,215 @@
package com.mbridge.msdk.dycreator.wrapper;
import android.content.Context;
import android.text.TextUtils;
import android.view.View;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import com.facebook.appevents.internal.ViewHierarchyConstants;
import com.mbridge.msdk.dycreator.a.b;
import com.mbridge.msdk.dycreator.b.a;
import com.mbridge.msdk.dycreator.e.f;
import com.mbridge.msdk.dycreator.viewmodel.BaseViewModel;
import com.mbridge.msdk.dycreator.viewmodel.MBCommonViewVModel;
import com.mbridge.msdk.dycreator.viewmodel.MBRewardViewVModel;
import com.mbridge.msdk.dycreator.viewmodel.MBSplashViewVModel;
import com.mbridge.msdk.foundation.controller.c;
import com.mbridge.msdk.foundation.tools.af;
import com.mbridge.msdk.playercommon.exoplayer2.text.ttml.TtmlNode;
import java.io.File;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes4.dex */
public class DynamicViewCreator {
private static volatile DynamicViewCreator a = null;
private static int b = -201;
private DynamicViewCreator() {
b.a().a(c.m().c());
}
public static DynamicViewCreator getInstance() {
if (a == null) {
synchronized (DynamicViewCreator.class) {
try {
if (a == null) {
a = new DynamicViewCreator();
}
} finally {
}
}
}
return a;
}
public void createDynamicView(DyOption dyOption, DynamicViewBackListener dynamicViewBackListener) {
boolean z;
BaseViewModel mBSplashViewVModel;
BaseViewModel baseViewModel;
if (dyOption == null) {
dynamicViewBackListener.viewCreateFail(new a(com.mbridge.msdk.dycreator.b.b.NOT_FOUND_DYNAMIC_OPTION));
return;
}
if (dynamicViewBackListener == null) {
return;
}
Context c = c.m().c();
if (c == null) {
dynamicViewBackListener.viewCreateFail(new a(com.mbridge.msdk.dycreator.b.b.NOT_FOUND_CONTEXT));
return;
}
if (dyOption.getCampaignEx() == null) {
dynamicViewBackListener.viewCreateFail(new a(com.mbridge.msdk.dycreator.b.b.NOT_FOUND_CAMPAIGN));
z = false;
} else {
z = true;
}
if (dyOption.getFile() == null && dyOption.getFileDirs() != null) {
dynamicViewBackListener.viewCreateFail(new a(com.mbridge.msdk.dycreator.b.b.BIND_DATA_FILE_OR_DIR));
return;
}
if (z) {
try {
View a2 = a(c, dyOption);
if (a2 == null) {
dynamicViewBackListener.viewCreateFail(new a(com.mbridge.msdk.dycreator.b.b.FILE_CREATE_VIEW_FILE));
return;
}
int i = AnonymousClass1.a[dyOption.getDyAdType().ordinal()];
if (i == 1) {
mBSplashViewVModel = new MBSplashViewVModel(dyOption);
} else if (i == 2) {
mBSplashViewVModel = new MBRewardViewVModel(dyOption);
} else {
baseViewModel = new MBCommonViewVModel();
baseViewModel.setDynamicViewBackListener(dynamicViewBackListener);
com.mbridge.msdk.dycreator.binding.b.a().a(baseViewModel);
baseViewModel.setModelDataAndBind();
dynamicViewBackListener.viewCreatedSuccess(a2);
}
baseViewModel = mBSplashViewVModel;
baseViewModel.setDynamicViewBackListener(dynamicViewBackListener);
com.mbridge.msdk.dycreator.binding.b.a().a(baseViewModel);
baseViewModel.setModelDataAndBind();
dynamicViewBackListener.viewCreatedSuccess(a2);
} catch (Exception e) {
af.b("DynamicViewCreator", e.getMessage());
dynamicViewBackListener.viewCreateFail(new a(b, e.getMessage()));
}
}
}
/* renamed from: com.mbridge.msdk.dycreator.wrapper.DynamicViewCreator$1, reason: invalid class name */
public static /* synthetic */ class AnonymousClass1 {
static final /* synthetic */ int[] a;
static {
int[] iArr = new int[DyAdType.values().length];
a = iArr;
try {
iArr[DyAdType.SPLASH.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
a[DyAdType.REWARD.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
}
}
public View createDynamicView(DyOption dyOption) {
Context c;
if (dyOption == null || (c = c.m().c()) == null) {
return null;
}
return a(c, dyOption);
}
private View a(Context context, DyOption dyOption) {
List<String> fileDirs;
if (dyOption == null || (fileDirs = dyOption.getFileDirs()) == null) {
return null;
}
int i = 0;
ViewGroup viewGroup = null;
int i2 = 0;
while (i2 < fileDirs.size()) {
try {
if (!TextUtils.isEmpty(fileDirs.get(i2))) {
if (i2 == 0) {
viewGroup = (ViewGroup) f.a(context).a(fileDirs.get(i2));
} else {
String str = fileDirs.get(i2);
if (context != null && viewGroup != null && !TextUtils.isEmpty(str)) {
try {
JSONObject jSONObject = new JSONObject(str);
String string = jSONObject.getString("folder_dir");
if (!TextUtils.isEmpty(string)) {
JSONArray jSONArray = new JSONArray(jSONObject.optString("ext_template"));
if (jSONArray.length() != 0) {
int i3 = i;
while (i3 < jSONArray.length()) {
JSONObject jSONObject2 = jSONArray.getJSONObject(i3);
if (jSONObject2 != null) {
View a2 = f.a(context).a(string + File.separator + jSONObject2.optString("name"));
if (a2 != null) {
JSONObject jSONObject3 = jSONObject2.getJSONObject(TtmlNode.TAG_LAYOUT);
if (jSONObject3 == null) {
viewGroup.addView(a2, 3);
} else {
try {
String optString = jSONObject3.optString("parent_id");
ViewGroup viewGroup2 = !TextUtils.isEmpty(optString) ? (ViewGroup) f.a(context).a(viewGroup, optString) : viewGroup;
RelativeLayout.LayoutParams layoutParams = (RelativeLayout.LayoutParams) viewGroup2.getLayoutParams();
if (layoutParams != null) {
String optString2 = jSONObject3.optString("below", "");
if (!TextUtils.isEmpty(optString2)) {
layoutParams.addRule(3, optString2.hashCode());
}
String optString3 = jSONObject3.optString("left_of", "");
if (!TextUtils.isEmpty(optString3)) {
layoutParams.addRule(i, optString3.hashCode());
}
String optString4 = jSONObject3.optString("right_of", "");
if (!TextUtils.isEmpty(optString4)) {
layoutParams.addRule(1, optString4.hashCode());
}
int optInt = jSONObject3.optInt("index", -2);
int optInt2 = jSONObject3.optInt(ViewHierarchyConstants.DIMENSION_VISIBILITY_KEY, -1);
if (optInt2 != -1) {
a2.setVisibility(optInt2);
}
if (optInt != -2) {
viewGroup2.addView(a2, optInt, layoutParams);
} else {
viewGroup2.addView(a2, layoutParams);
}
}
} catch (Exception e) {
af.b("DynamicViewCreator", e.getMessage());
}
}
}
}
i3++;
i = 0;
}
}
}
} catch (Exception e2) {
af.b("DynamicViewCreator", e2.getMessage());
}
}
}
}
i2++;
i = 0;
} catch (Exception e3) {
af.b("DynamicViewCreator", e3.getMessage());
}
}
return viewGroup;
}
}