- 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
33 lines
1.2 KiB
Java
33 lines
1.2 KiB
Java
package com.ironsource.mediationsdk.adunit.adapter.utility;
|
|
|
|
import com.ironsource.i9;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public final class NativeAdProperties {
|
|
private final AdOptionsPosition adOptionsPosition;
|
|
private final AdOptionsPosition defaultAdOptionPosition;
|
|
|
|
public NativeAdProperties(JSONObject config) {
|
|
Intrinsics.checkNotNullParameter(config, "config");
|
|
this.defaultAdOptionPosition = AdOptionsPosition.BOTTOM_LEFT;
|
|
this.adOptionsPosition = getAdOptionsPosition(config);
|
|
}
|
|
|
|
private final AdOptionsPosition getAdOptionsPosition(JSONObject jSONObject) {
|
|
String position = jSONObject.optString(AdOptionsPosition.AD_OPTIONS_POSITION_KEY, this.defaultAdOptionPosition.toString());
|
|
try {
|
|
Intrinsics.checkNotNullExpressionValue(position, "position");
|
|
return AdOptionsPosition.valueOf(position);
|
|
} catch (Exception e) {
|
|
i9.d().a(e);
|
|
return this.defaultAdOptionPosition;
|
|
}
|
|
}
|
|
|
|
public final AdOptionsPosition getAdOptionsPosition() {
|
|
return this.adOptionsPosition;
|
|
}
|
|
}
|