- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
198 lines
10 KiB
Java
198 lines
10 KiB
Java
package com.mbridge.msdk.splash.c;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import com.mbridge.msdk.c.h;
|
|
import com.mbridge.msdk.dycreator.binding.response.SplashResData;
|
|
import com.mbridge.msdk.dycreator.binding.response.base.BaseRespData;
|
|
import com.mbridge.msdk.dycreator.bridge.MBSplashData;
|
|
import com.mbridge.msdk.dycreator.listener.DyCountDownListener;
|
|
import com.mbridge.msdk.dycreator.listener.action.EAction;
|
|
import com.mbridge.msdk.dycreator.wrapper.DyAdType;
|
|
import com.mbridge.msdk.dycreator.wrapper.DyOption;
|
|
import com.mbridge.msdk.dycreator.wrapper.DynamicViewBackListener;
|
|
import com.mbridge.msdk.dycreator.wrapper.DynamicViewCreator;
|
|
import com.mbridge.msdk.foundation.entity.CampaignEx;
|
|
import com.mbridge.msdk.foundation.tools.ak;
|
|
import com.mbridge.msdk.splash.view.MBSplashView;
|
|
import java.util.List;
|
|
|
|
/* loaded from: classes4.dex */
|
|
final class c extends com.mbridge.msdk.splash.c.a {
|
|
|
|
public static class a {
|
|
private static final c a = new c();
|
|
}
|
|
|
|
private c() {
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.splash.c.a
|
|
public final void a(List<String> list, final MBSplashView mBSplashView, final com.mbridge.msdk.splash.a.c cVar, final com.mbridge.msdk.splash.b.a aVar) {
|
|
h.a().b(com.mbridge.msdk.foundation.controller.c.m().k());
|
|
final DyOption build = new DyOption.Builder().campaignEx(cVar.c()).fileDirs(list).dyAdType(DyAdType.SPLASH).canSkip(cVar.d()).isScreenClick(cVar.g() == 1).isClickButtonVisible(cVar.f() == 0).isShakeVisible(cVar.i() == 1).isApkInfoVisible(cVar.h() == 0).isLogoVisible(cVar.m() == 1).shakeStrenght(cVar.j()).shakeTime(cVar.k()).orientation(cVar.l()).countDownTime(cVar.e()).adChoiceLink(ak.a(cVar.c())).build();
|
|
mBSplashView.setDyCountDownListener(new DyCountDownListener() { // from class: com.mbridge.msdk.splash.c.c.1
|
|
@Override // com.mbridge.msdk.dycreator.listener.DyCountDownListener
|
|
public final void getCountDownValue(int i) {
|
|
build.setDyCountDownListener(i);
|
|
}
|
|
});
|
|
DynamicViewCreator.getInstance().createDynamicView(build, new DynamicViewBackListener() { // from class: com.mbridge.msdk.splash.c.c.2
|
|
@Override // com.mbridge.msdk.dycreator.wrapper.DynamicViewBackListener
|
|
public final void viewCreatedSuccess(View view) {
|
|
com.mbridge.msdk.splash.b.a aVar2 = aVar;
|
|
if (aVar2 != null) {
|
|
if (view != null) {
|
|
aVar2.a(view);
|
|
} else {
|
|
aVar2.a("View render error.");
|
|
}
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.dycreator.wrapper.DynamicViewBackListener
|
|
public final void viewCreateFail(com.mbridge.msdk.dycreator.b.a aVar2) {
|
|
MBSplashView mBSplashView2 = mBSplashView;
|
|
if (mBSplashView2 != null) {
|
|
Context context = mBSplashView2.getContext();
|
|
if (context == null) {
|
|
context = com.mbridge.msdk.foundation.controller.c.m().c();
|
|
}
|
|
c.this.a(context, mBSplashView, cVar, aVar);
|
|
}
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.dycreator.wrapper.DynamicViewBackListener
|
|
public final void viewClicked(BaseRespData baseRespData) {
|
|
float f;
|
|
float f2;
|
|
com.mbridge.msdk.splash.signal.c splashSignalCommunicationImpl;
|
|
MBSplashView mBSplashView2 = mBSplashView;
|
|
final com.mbridge.msdk.splash.d.a a2 = (mBSplashView2 == null || (splashSignalCommunicationImpl = mBSplashView2.getSplashSignalCommunicationImpl()) == null) ? null : splashSignalCommunicationImpl.a();
|
|
DyOption dyOption = build;
|
|
CampaignEx campaignEx = dyOption != null ? dyOption.getCampaignEx() : null;
|
|
EAction eAction = baseRespData instanceof SplashResData ? ((SplashResData) baseRespData).geteAction() : null;
|
|
if (eAction != null) {
|
|
int i = AnonymousClass3.a[eAction.ordinal()];
|
|
if (i == 1) {
|
|
if (a2 != null) {
|
|
if (baseRespData != null) {
|
|
if (baseRespData instanceof SplashResData) {
|
|
SplashResData splashResData = (SplashResData) baseRespData;
|
|
if (splashResData.getBaseViewData() != null) {
|
|
com.mbridge.msdk.dycreator.f.a.a baseViewData = splashResData.getBaseViewData();
|
|
if (baseViewData == null || !(baseViewData instanceof MBSplashData)) {
|
|
f = 0.0f;
|
|
f2 = 0.0f;
|
|
} else {
|
|
MBSplashData mBSplashData = (MBSplashData) baseViewData;
|
|
f = mBSplashData.getxInScreen();
|
|
float f3 = mBSplashData.getyInScreen();
|
|
r3 = mBSplashData.getClickType();
|
|
f2 = f3;
|
|
}
|
|
try {
|
|
a2.a(com.mbridge.msdk.splash.a.a.a.a(com.mbridge.msdk.splash.a.a.a.a(r3, f, f2), campaignEx));
|
|
return;
|
|
} catch (Throwable th) {
|
|
th.printStackTrace();
|
|
a2.a(campaignEx);
|
|
return;
|
|
}
|
|
}
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
a2.a(campaignEx);
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 2) {
|
|
if (a2 != null) {
|
|
a2.a();
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 3) {
|
|
if (build != null) {
|
|
com.mbridge.msdk.click.c.f(com.mbridge.msdk.foundation.controller.c.m().c(), build.getAdChoiceLink());
|
|
return;
|
|
}
|
|
return;
|
|
}
|
|
if (i == 4 && baseRespData != null && (baseRespData instanceof SplashResData)) {
|
|
SplashResData splashResData2 = (SplashResData) baseRespData;
|
|
if (splashResData2.getBaseViewData() != null) {
|
|
com.mbridge.msdk.dycreator.f.a.a baseViewData2 = splashResData2.getBaseViewData();
|
|
final c cVar2 = c.this;
|
|
if (campaignEx != null) {
|
|
String campaignUnitId = campaignEx.getCampaignUnitId();
|
|
String requestId = campaignEx.getRequestId();
|
|
r3 = baseViewData2 != null ? baseViewData2.getEffectData().getCurrentCountDown() : 0;
|
|
a2.a(1, r3);
|
|
com.mbridge.msdk.foundation.d.a.a a3 = com.mbridge.msdk.foundation.d.b.a().a(campaignUnitId + "_" + requestId);
|
|
if (a3 != null) {
|
|
a3.a(campaignEx);
|
|
com.mbridge.msdk.foundation.d.b.a().a(campaignUnitId + "_" + requestId, new com.mbridge.msdk.foundation.d.a() { // from class: com.mbridge.msdk.splash.c.a.1
|
|
final /* synthetic */ com.mbridge.msdk.splash.d.a a;
|
|
final /* synthetic */ int b;
|
|
|
|
@Override // com.mbridge.msdk.foundation.d.a
|
|
public final void showed() {
|
|
}
|
|
|
|
public AnonymousClass1(final com.mbridge.msdk.splash.d.a a22, final int i2) {
|
|
r2 = a22;
|
|
r3 = i2;
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.foundation.d.a
|
|
public final void close() {
|
|
r2.a(2, r3);
|
|
}
|
|
|
|
@Override // com.mbridge.msdk.foundation.d.a
|
|
public final void summit(String str) {
|
|
r2.a(2, r3);
|
|
}
|
|
});
|
|
a3.e();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
|
|
/* renamed from: com.mbridge.msdk.splash.c.c$3, reason: invalid class name */
|
|
public static /* synthetic */ class AnonymousClass3 {
|
|
static final /* synthetic */ int[] a;
|
|
|
|
static {
|
|
int[] iArr = new int[EAction.values().length];
|
|
a = iArr;
|
|
try {
|
|
iArr[EAction.DOWNLOAD.ordinal()] = 1;
|
|
} catch (NoSuchFieldError unused) {
|
|
}
|
|
try {
|
|
a[EAction.CLOSE.ordinal()] = 2;
|
|
} catch (NoSuchFieldError unused2) {
|
|
}
|
|
try {
|
|
a[EAction.NOTICE.ordinal()] = 3;
|
|
} catch (NoSuchFieldError unused3) {
|
|
}
|
|
try {
|
|
a[EAction.FEEDBACK.ordinal()] = 4;
|
|
} catch (NoSuchFieldError unused4) {
|
|
}
|
|
}
|
|
}
|
|
}
|