- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
148 lines
5.3 KiB
Java
148 lines
5.3 KiB
Java
package com.vungle.ads;
|
|
|
|
import android.app.Application;
|
|
import android.content.Context;
|
|
import androidx.annotation.Keep;
|
|
import com.vungle.ads.fpd.FirstPartyData;
|
|
import com.vungle.ads.internal.ConfigManager;
|
|
import com.vungle.ads.internal.VungleInitializer;
|
|
import com.vungle.ads.internal.VungleInternal;
|
|
import com.vungle.ads.internal.model.Placement;
|
|
import com.vungle.ads.internal.network.VungleApiClient;
|
|
import com.vungle.ads.internal.util.Logger;
|
|
import java.util.HashSet;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.text.StringsKt__StringsKt;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class VungleAds {
|
|
public static final String TAG = "VungleAds";
|
|
public static final Companion Companion = new Companion(null);
|
|
private static VungleInternal vungleInternal = new VungleInternal();
|
|
private static VungleInitializer initializer = new VungleInitializer();
|
|
public static final FirstPartyData firstPartyData = new FirstPartyData();
|
|
|
|
@Keep
|
|
public enum WrapperFramework {
|
|
admob,
|
|
air,
|
|
cocos2dx,
|
|
corona,
|
|
dfp,
|
|
heyzap,
|
|
marmalade,
|
|
mopub,
|
|
unity,
|
|
fyber,
|
|
ironsource,
|
|
upsight,
|
|
appodeal,
|
|
aerserv,
|
|
adtoapp,
|
|
tapdaq,
|
|
vunglehbs,
|
|
max,
|
|
none
|
|
}
|
|
|
|
public static final String getBiddingToken(Context context) {
|
|
return Companion.getBiddingToken(context);
|
|
}
|
|
|
|
public static final String getSdkVersion() {
|
|
return Companion.getSdkVersion();
|
|
}
|
|
|
|
public static final void init(Context context, String str, InitializationListener initializationListener) {
|
|
Companion.init(context, str, initializationListener);
|
|
}
|
|
|
|
public static final boolean isInitialized() {
|
|
return Companion.isInitialized();
|
|
}
|
|
|
|
public static final boolean isInline(String str) {
|
|
return Companion.isInline(str);
|
|
}
|
|
|
|
public static final void setIntegrationName(WrapperFramework wrapperFramework, String str) {
|
|
Companion.setIntegrationName(wrapperFramework, str);
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final void init(Context appContext, String appId, InitializationListener callback) {
|
|
Intrinsics.checkNotNullParameter(appContext, "context");
|
|
Intrinsics.checkNotNullParameter(appId, "appId");
|
|
Intrinsics.checkNotNullParameter(callback, "callback");
|
|
if (!(appContext instanceof Application)) {
|
|
appContext = appContext.getApplicationContext();
|
|
}
|
|
VungleInitializer vungleInitializer = VungleAds.initializer;
|
|
Intrinsics.checkNotNullExpressionValue(appContext, "appContext");
|
|
vungleInitializer.init(appId, appContext, callback);
|
|
}
|
|
|
|
public final boolean isInitialized() {
|
|
return VungleAds.initializer.isInitialized();
|
|
}
|
|
|
|
public final String getBiddingToken(Context context) {
|
|
Intrinsics.checkNotNullParameter(context, "context");
|
|
return VungleAds.vungleInternal.getAvailableBidTokens(context);
|
|
}
|
|
|
|
public final String getSdkVersion() {
|
|
return VungleAds.vungleInternal.getSdkVersion();
|
|
}
|
|
|
|
public final boolean isInline(String placementId) {
|
|
Intrinsics.checkNotNullParameter(placementId, "placementId");
|
|
Placement placement = ConfigManager.INSTANCE.getPlacement(placementId);
|
|
if (placement != null) {
|
|
return placement.isInline();
|
|
}
|
|
return false;
|
|
}
|
|
|
|
public final void setIntegrationName(WrapperFramework wrapperFramework, String wrapperFrameworkVersion) {
|
|
String str;
|
|
List split$default;
|
|
Intrinsics.checkNotNullParameter(wrapperFramework, "wrapperFramework");
|
|
Intrinsics.checkNotNullParameter(wrapperFrameworkVersion, "wrapperFrameworkVersion");
|
|
if (wrapperFramework != WrapperFramework.none) {
|
|
VungleApiClient.Companion companion = VungleApiClient.Companion;
|
|
companion.setWRAPPER_FRAMEWORK_SELECTED$vungle_ads_release(wrapperFramework);
|
|
String headerUa = companion.getHeaderUa();
|
|
if (wrapperFrameworkVersion.length() > 0) {
|
|
str = '/' + wrapperFrameworkVersion;
|
|
} else {
|
|
str = "";
|
|
}
|
|
String str2 = wrapperFramework + str;
|
|
split$default = StringsKt__StringsKt.split$default((CharSequence) headerUa, new String[]{";"}, false, 0, 6, (Object) null);
|
|
if (new HashSet(split$default).add(str2)) {
|
|
companion.setHeaderUa(headerUa + ';' + str2);
|
|
}
|
|
} else {
|
|
Logger.Companion.e(VungleAds.TAG, "Wrapper is null or is none");
|
|
}
|
|
if (isInitialized()) {
|
|
Logger.Companion.w(VungleAds.TAG, "VUNGLE WARNING: SDK already initialized, you should've set wrapper info before");
|
|
}
|
|
}
|
|
|
|
public final void deInit$vungle_ads_release() {
|
|
VungleAds.initializer.deInit$vungle_ads_release();
|
|
}
|
|
}
|
|
}
|