- 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
69 lines
2.4 KiB
Java
69 lines
2.4 KiB
Java
package com.facebook.ads;
|
|
|
|
import android.content.Context;
|
|
import android.view.View;
|
|
import androidx.annotation.Keep;
|
|
import androidx.annotation.Nullable;
|
|
import com.facebook.ads.internal.api.NativeAdViewTypeApi;
|
|
import com.facebook.ads.internal.dynamicloading.DynamicLoaderFactory;
|
|
import com.facebook.ads.internal.util.common.Preconditions;
|
|
import com.facebook.infer.annotation.Nullsafe;
|
|
|
|
@Keep
|
|
@Nullsafe(Nullsafe.Mode.LOCAL)
|
|
/* loaded from: classes2.dex */
|
|
public class NativeBannerAdView {
|
|
public static View render(Context context, NativeBannerAd nativeBannerAd, Type type) {
|
|
Preconditions.checkNotNull(context, "context must be not null");
|
|
Preconditions.checkNotNull(nativeBannerAd, "nativeBannerAd must be not null");
|
|
Preconditions.checkNotNull(type, "type must be not null");
|
|
return DynamicLoaderFactory.makeLoader(context).createNativeBannerAdViewApi().render(context, nativeBannerAd, type, null);
|
|
}
|
|
|
|
public static View render(Context context, NativeBannerAd nativeBannerAd, Type type, NativeAdViewAttributes nativeAdViewAttributes) {
|
|
Preconditions.checkNotNull(context, "context must be not null");
|
|
Preconditions.checkNotNull(nativeBannerAd, "nativeBannerAd must be not null");
|
|
Preconditions.checkNotNull(type, "type must be not null");
|
|
return DynamicLoaderFactory.makeLoader(context).createNativeBannerAdViewApi().render(context, nativeBannerAd, type, nativeAdViewAttributes);
|
|
}
|
|
|
|
@Keep
|
|
public enum Type {
|
|
HEIGHT_50(4),
|
|
HEIGHT_100(0),
|
|
HEIGHT_120(1);
|
|
|
|
private final int mEnumCode;
|
|
|
|
@Nullable
|
|
private NativeAdViewTypeApi mNativeAdViewTypeApi;
|
|
|
|
public int getEnumCode() {
|
|
return this.mEnumCode;
|
|
}
|
|
|
|
Type(int i) {
|
|
this.mEnumCode = i;
|
|
}
|
|
|
|
public int getWidth() {
|
|
return getNativeAdViewTypeApi().getWidth();
|
|
}
|
|
|
|
public int getHeight() {
|
|
return getNativeAdViewTypeApi().getHeight();
|
|
}
|
|
|
|
public int getValue() {
|
|
return getNativeAdViewTypeApi().getValue();
|
|
}
|
|
|
|
private NativeAdViewTypeApi getNativeAdViewTypeApi() {
|
|
if (this.mNativeAdViewTypeApi == null) {
|
|
this.mNativeAdViewTypeApi = DynamicLoaderFactory.makeLoaderUnsafe().createNativeAdViewTypeApi(this.mEnumCode);
|
|
}
|
|
return this.mNativeAdViewTypeApi;
|
|
}
|
|
}
|
|
}
|