JieJing Cleaner v1.4.2版本的 MD5 值为:a574eea9fb07160f0bbb08ba0adf1c62
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.bytedance.sdk.openadsdk.api.plugin;
import android.app.Activity;
import android.content.Context;
import android.os.Bundle;
import com.bytedance.sdk.openadsdk.AdSlot;
import com.bytedance.sdk.openadsdk.TTAdManager;
import com.bytedance.sdk.openadsdk.TTAdNative;
import com.bytedance.sdk.openadsdk.TTAppContextHolder;
import com.bytedance.sdk.openadsdk.TTPluginListener;
import com.bytedance.sdk.openadsdk.common.CommonListener;
import com.bytedance.sdk.openadsdk.downloadnew.core.ExitInstallListener;
import java.util.concurrent.ScheduledExecutorService;
import l1L1L1L1L1l1LLL1LL1ll.lilil1liLi1lLL1l1l.Ll1lLl1l1LL1l1Ll.Ll1lLl1l1LL1l1Ll.Ll1lLl1l1LL1l1Ll;
public final class a implements TTAdManager {
public static final a a = new a();
public volatile TTAdManager b;
public class AnonymousClass1 implements b<TTAdNative> {
public TTAdNative a;
public final Context b;
public AnonymousClass1(Context context) {
this.b = context;
}
@Override
public void a(final InterfaceC0082a<TTAdNative> interfaceC0082a) {
TTAdNative tTAdNative = this.a;
if (tTAdNative != null) {
interfaceC0082a.a(tTAdNative);
} else {
a.this.call(new InterfaceC0082a<TTAdManager>() {
@Override
public void a(TTAdManager tTAdManager) {
AnonymousClass1 anonymousClass1 = AnonymousClass1.this;
anonymousClass1.a = tTAdManager.createAdNative(anonymousClass1.b);
interfaceC0082a.a(AnonymousClass1.this.a);
}
});
}
}
}
public interface InterfaceC0082a<T> {
void a(T t);
}
public interface b<T> {
void a(InterfaceC0082a<T> interfaceC0082a);
}
public static final class c implements TTAdNative {
public b<TTAdNative> a;
public c(b<TTAdNative> bVar) {
this.a = bVar;
}
private final void a(CommonListener commonListener, InterfaceC0082a<TTAdNative> interfaceC0082a) {
try {
this.a.a(interfaceC0082a);
} catch (Throwable th) {
if (commonListener != null) {
StringBuilder Ll1lLl1l1LL1l1Ll2 = Ll1lLl1l1LL1l1Ll.Ll1lLl1l1LL1l1Ll("Load ad failed: ");
Ll1lLl1l1LL1l1Ll2.append(th.getMessage());
commonListener.onError(4202, Ll1lLl1l1LL1l1Ll2.toString());
}
}
}
@Override
public void loadBannerAd(final AdSlot adSlot, final TTAdNative.BannerAdListener bannerAdListener) {
a(bannerAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadBannerAd(adSlot, bannerAdListener);
}
});
}
@Override
public void loadBannerExpressAd(final AdSlot adSlot, final TTAdNative.NativeExpressAdListener nativeExpressAdListener) {
a(nativeExpressAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadBannerExpressAd(adSlot, nativeExpressAdListener);
}
});
}
@Override
public void loadDrawFeedAd(final AdSlot adSlot, final TTAdNative.DrawFeedAdListener drawFeedAdListener) {
a(drawFeedAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadDrawFeedAd(adSlot, drawFeedAdListener);
}
});
}
@Override
public void loadExpressDrawFeedAd(final AdSlot adSlot, final TTAdNative.NativeExpressAdListener nativeExpressAdListener) {
a(nativeExpressAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadExpressDrawFeedAd(adSlot, nativeExpressAdListener);
}
});
}
@Override
public void loadFeedAd(final AdSlot adSlot, final TTAdNative.FeedAdListener feedAdListener) {
a(feedAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadFeedAd(adSlot, feedAdListener);
}
});
}
@Override
public void loadFullScreenVideoAd(final AdSlot adSlot, final TTAdNative.FullScreenVideoAdListener fullScreenVideoAdListener) {
a(fullScreenVideoAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadFullScreenVideoAd(adSlot, fullScreenVideoAdListener);
}
});
}
@Override
public void loadInteractionAd(final AdSlot adSlot, final TTAdNative.InteractionAdListener interactionAdListener) {
a(interactionAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadInteractionAd(adSlot, interactionAdListener);
}
});
}
@Override
public void loadInteractionExpressAd(final AdSlot adSlot, final TTAdNative.NativeExpressAdListener nativeExpressAdListener) {
a(nativeExpressAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadInteractionExpressAd(adSlot, nativeExpressAdListener);
}
});
}
@Override
public void loadNativeAd(final AdSlot adSlot, final TTAdNative.NativeAdListener nativeAdListener) {
a(nativeAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadNativeAd(adSlot, nativeAdListener);
}
});
}
@Override
public void loadNativeExpressAd(final AdSlot adSlot, final TTAdNative.NativeExpressAdListener nativeExpressAdListener) {
a(nativeExpressAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadNativeExpressAd(adSlot, nativeExpressAdListener);
}
});
}
@Override
public void loadRewardVideoAd(final AdSlot adSlot, final TTAdNative.RewardVideoAdListener rewardVideoAdListener) {
a(rewardVideoAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadRewardVideoAd(adSlot, rewardVideoAdListener);
}
});
}
@Override
public void loadSplashAd(final AdSlot adSlot, final TTAdNative.SplashAdListener splashAdListener, final int i2) {
a(splashAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadSplashAd(adSlot, splashAdListener, i2);
}
});
}
@Override
public void loadStream(final AdSlot adSlot, final TTAdNative.FeedAdListener feedAdListener) {
a(feedAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadStream(adSlot, feedAdListener);
}
});
}
@Override
public void loadSplashAd(final AdSlot adSlot, final TTAdNative.SplashAdListener splashAdListener) {
a(splashAdListener, new InterfaceC0082a<TTAdNative>() {
@Override
public void a(TTAdNative tTAdNative) {
tTAdNative.loadSplashAd(adSlot, splashAdListener);
}
});
}
}
public final void call(final InterfaceC0082a<TTAdManager> interfaceC0082a) {
if (this.b != null) {
try {
interfaceC0082a.a(this.b);
return;
} catch (Throwable th) {
StringBuilder Ll1lLl1l1LL1l1Ll2 = Ll1lLl1l1LL1l1Ll.Ll1lLl1l1LL1l1Ll("Unexpected manager call error: ");
Ll1lLl1l1LL1l1Ll2.append(th.getMessage());
com.bytedance.sdk.openadsdk.api.b.d.c("PluginDefaultAdManager", Ll1lLl1l1LL1l1Ll2.toString());
return;
}
}
ScheduledExecutorService scheduledExecutorService = g.a;
if (scheduledExecutorService != null) {
scheduledExecutorService.submit(new Runnable() {
@Override
public void run() {
try {
if (a.this.b != null) {
interfaceC0082a.a(a.this.b);
} else {
com.bytedance.sdk.openadsdk.api.b.d.c("PluginDefaultAdManager", "Not ready, no manager");
}
} catch (Throwable th2) {
StringBuilder Ll1lLl1l1LL1l1Ll3 = Ll1lLl1l1LL1l1Ll.Ll1lLl1l1LL1l1Ll("Unexpected manager call error: ");
Ll1lLl1l1LL1l1Ll3.append(th2.getMessage());
com.bytedance.sdk.openadsdk.api.b.d.c("PluginDefaultAdManager", Ll1lLl1l1LL1l1Ll3.toString());
}
}
});
} else {
com.bytedance.sdk.openadsdk.api.b.d.c("PluginDefaultAdManager", "Not ready, no executor");
}
}
@Override
public TTAdNative createAdNative(Context context) {
return new c(new AnonymousClass1(context));
}
@Override
public String getBiddingToken(AdSlot adSlot) {
if (this.b != null) {
return this.b.getBiddingToken(adSlot);
}
return null;
}
@Override
public <T> T getExtra(final Class<T> cls, final Bundle bundle) {
if (this.b != null) {
return (T) this.b.getExtra(cls, bundle);
}
call(new InterfaceC0082a<TTAdManager>() {
@Override
public void a(TTAdManager tTAdManager) {
tTAdManager.getExtra(cls, bundle);
}
});
return null;
}
@Override
public String getPluginVersion() {
return this.b != null ? this.b.getPluginVersion() : "";
}
@Override
public String getSDKVersion() {
return "4.0.0.3";
}
@Override
public int getThemeStatus() {
if (this.b != null) {
return this.b.getThemeStatus();
}
return 0;
}
@Override
public boolean onlyVerityPlayable(String str, int i2, String str2, String str3, String str4) {
if (this.b != null) {
return this.b.onlyVerityPlayable(str, i2, str2, str3, str4);
}
return false;
}
@Override
public void register(final Object obj) {
final Bundle bundle;
if (obj instanceof TTPluginListener) {
TTPluginListener tTPluginListener = (TTPluginListener) obj;
bundle = f.a(TTAppContextHolder.getContext()).a(tTPluginListener.packageName(), tTPluginListener.config());
} else {
bundle = obj;
}
call(new InterfaceC0082a<TTAdManager>() {
@Override
public void a(TTAdManager tTAdManager) {
if (obj instanceof TTPluginListener) {
f.a(TTAppContextHolder.getContext()).a((TTPluginListener) obj);
}
tTAdManager.register(bundle);
}
});
}
@Override
public void requestPermissionIfNecessary(final Context context) {
call(new InterfaceC0082a<TTAdManager>() {
@Override
public void a(TTAdManager tTAdManager) {
tTAdManager.requestPermissionIfNecessary(context);
}
});
}
@Override
public void setThemeStatus(final int i2) {
call(new InterfaceC0082a<TTAdManager>() {
@Override
public void a(TTAdManager tTAdManager) {
a.this.b.setThemeStatus(i2);
}
});
}
@Override
public boolean tryShowInstallDialogWhenExit(Activity activity, ExitInstallListener exitInstallListener) {
return this.b != null && this.b.tryShowInstallDialogWhenExit(activity, exitInstallListener);
}
@Override
public void unregister(final Object obj) {
call(new InterfaceC0082a<TTAdManager>() {
@Override
public void a(TTAdManager tTAdManager) {
tTAdManager.unregister(obj);
}
});
}
@Override
public String getBiddingToken(AdSlot adSlot, boolean z, int i2) {
if (this.b != null) {
return this.b.getBiddingToken(adSlot, z, i2);
}
return null;
}
public void a(TTAdManager tTAdManager) {
this.b = tTAdManager;
}
}