正在查看: Mitra Bukalapak v2.55.0 应用的 BrazeConfigurationProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Mitra Bukalapak v2.55.0 应用的 BrazeConfigurationProvider.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.braze.configuration;
import android.content.Context;
import android.content.pm.ApplicationInfo;
import android.os.Build;
import bo.app.a8;
import bo.app.au;
import bo.app.b8;
import bo.app.bk;
import bo.app.c8;
import bo.app.d8;
import bo.app.e8;
import bo.app.f8;
import bo.app.g8;
import bo.app.h8;
import bo.app.i8;
import bo.app.j8;
import bo.app.k8;
import bo.app.l8;
import bo.app.m8;
import bo.app.n8;
import bo.app.o8;
import bo.app.t7;
import bo.app.y7;
import bo.app.z7;
import bo.app.zt;
import com.braze.enums.BrazeSdkMetadata;
import com.braze.enums.DeviceKey;
import com.braze.enums.LocationProviderName;
import com.braze.enums.SdkFlavor;
import com.braze.support.BrazeLogger;
import com.braze.support.PackageUtils;
import com.braze.support.e;
import com.bukalapak.android.lib.api4.tungku.data.SingleKycIdentity;
import defpackage.C0187su0;
import defpackage.C0236zd8;
import defpackage.ex2;
import defpackage.ku8;
import defpackage.p64;
import defpackage.qi9;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.Locale;
import java.util.NoSuchElementException;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000z\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\"\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\t\n\u0002\b\u0016\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0011\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u000e\b\u0017\u0018\u0000 u2\u00020\u0001:\u0002v\u0006B\u000f\u0012\u0006\u0010\f\u001a\u00020\u000b¢\u0006\u0004\bs\u0010tJ;\u0010\t\u001a\b\u0012\u0004\u0012\u00028\u00000\b\"\u000e\b\u0000\u0010\u0003*\b\u0012\u0004\u0012\u00028\u00000\u00022\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00000\u00042\u0006\u0010\u0007\u001a\u00020\u0006H\u0002¢\u0006\u0004\b\t\u0010\nR \u0010\f\u001a\u00020\u000b8\u0000X\u0081\u0004¢\u0006\u0012\n\u0004\b\f\u0010\r\u0012\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u000e\u0010\u000fR\u001a\u0010\u0016\u001a\u00020\u00128BX\u0082\u0004¢\u0006\f\u0012\u0004\b\u0015\u0010\u0011\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\u0018\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0019R\u0017\u0010\u001d\u001a\b\u0012\u0004\u0012\u00020\u00120\u001a8F¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001cR\u0011\u0010\u001f\u001a\u00020\u00128F¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u0014R\u0011\u0010#\u001a\u00020 8F¢\u0006\u0006\u001a\u0004\b!\u0010\"R\u0011\u0010$\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\b$\u0010\u0019R\u0011\u0010%\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\b%\u0010\u0019R\u0011\u0010&\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\b&\u0010\u0019R\u0011\u0010*\u001a\u00020'8F¢\u0006\u0006\u001a\u0004\b(\u0010)R\u0011\u0010,\u001a\u00020'8F¢\u0006\u0006\u001a\u0004\b+\u0010)R\u0011\u00100\u001a\u00020-8F¢\u0006\u0006\u001a\u0004\b.\u0010/R\u0011\u00102\u001a\u00020'8F¢\u0006\u0006\u001a\u0004\b1\u0010)R\u0017\u00105\u001a\u00020'8F¢\u0006\f\u0012\u0004\b4\u0010\u0011\u001a\u0004\b3\u0010)R\u0013\u00107\u001a\u0004\u0018\u00010\u00128F¢\u0006\u0006\u001a\u0004\b6\u0010\u0014R\u0011\u00109\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\b8\u0010\u0019R\u0011\u0010:\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\b:\u0010\u0019R\u0011\u0010<\u001a\u00020\u00128F¢\u0006\u0006\u001a\u0004\b;\u0010\u0014R\u0011\u0010>\u001a\u00020\u00128F¢\u0006\u0006\u001a\u0004\b=\u0010\u0014R\u0011\u0010@\u001a\u00020'8F¢\u0006\u0006\u001a\u0004\b?\u0010)R\u0017\u0010C\u001a\u00020'8G¢\u0006\f\u0012\u0004\bB\u0010\u0011\u001a\u0004\bA\u0010)R\u0013\u0010G\u001a\u0004\u0018\u00010D8F¢\u0006\u0006\u001a\u0004\bE\u0010FR\u0011\u0010H\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bH\u0010\u0019R\u0013\u0010J\u001a\u0004\u0018\u00010\u00128F¢\u0006\u0006\u001a\u0004\bI\u0010\u0014R\u0011\u0010K\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bK\u0010\u0019R\u0011\u0010L\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bL\u0010\u0019R\u0011\u0010M\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bM\u0010\u0019R\u0013\u0010O\u001a\u0004\u0018\u00010\u00128F¢\u0006\u0006\u001a\u0004\bN\u0010\u0014R\u0017\u0010S\u001a\b\u0012\u0004\u0012\u00020P0\b8F¢\u0006\u0006\u001a\u0004\bQ\u0010RR\u0011\u0010T\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bT\u0010\u0019R\u0011\u0010U\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bU\u0010\u0019R\u0011\u0010V\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bV\u0010\u0019R\u0011\u0010W\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bW\u0010\u0019R\u0011\u0010Y\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bX\u0010\u0019R\u0011\u0010Z\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bZ\u0010\u0019R\u0011\u0010[\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\b[\u0010\u0019R\u0011\u0010]\u001a\u00020'8F¢\u0006\u0006\u001a\u0004\b\\\u0010)R\u0013\u0010_\u001a\u0004\u0018\u00010\u00128F¢\u0006\u0006\u001a\u0004\b^\u0010\u0014R\u0011\u0010a\u001a\u00020'8F¢\u0006\u0006\u001a\u0004\b`\u0010)R\u0017\u0010d\u001a\b\u0012\u0004\u0012\u00020b0\b8F¢\u0006\u0006\u001a\u0004\bc\u0010RR\u0011\u0010e\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\be\u0010\u0019R\u0011\u0010f\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bf\u0010\u0019R\u0011\u0010g\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bg\u0010\u0019R\u0011\u0010h\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bh\u0010\u0019R\u0017\u0010k\u001a\b\u0012\u0004\u0012\u00020i0\b8F¢\u0006\u0006\u001a\u0004\bj\u0010RR\u0011\u0010l\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bl\u0010\u0019R\u0013\u0010n\u001a\u0004\u0018\u00010\u00128F¢\u0006\u0006\u001a\u0004\bm\u0010\u0014R\u0011\u0010p\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bo\u0010\u0019R\u0011\u0010r\u001a\u00020\u00178F¢\u0006\u0006\u001a\u0004\bq\u0010\u0019¨\u0006w"}, d2 = {"Lcom/braze/configuration/BrazeConfigurationProvider;", "Lcom/braze/configuration/CachedConfigurationProvider;", SingleKycIdentity.EMPTY, "E", "Ljava/lang/Class;", "targetEnumClass", "Lbo/app/z7;", "configField", "Ljava/util/EnumSet;", "getGenericEnumSetFromStringSet", "(Ljava/lang/Class;Lbo/app/z7;)Ljava/util/EnumSet;", "Landroid/content/Context;", "context", "Landroid/content/Context;", "getContext$android_sdk_base_release", "()Landroid/content/Context;", "getContext$android_sdk_base_release$annotations", "()V", SingleKycIdentity.EMPTY, "getServerTarget", "()Ljava/lang/String;", "getServerTarget$annotations", "serverTarget", SingleKycIdentity.EMPTY, "isEphemeralEventsEnabled", "()Z", SingleKycIdentity.EMPTY, "getEphemeralEventKeys", "()Ljava/util/Set;", "ephemeralEventKeys", "getBaseUrlForRequests", "baseUrlForRequests", "Lbo/app/t7;", "getBrazeApiKey", "()Lbo/app/t7;", "brazeApiKey", "isAdmMessagingRegistrationEnabled", "isLocationCollectionEnabled", "isGeofencesEnabled", SingleKycIdentity.EMPTY, "getSmallNotificationIconResourceId", "()I", "smallNotificationIconResourceId", "getLargeNotificationIconResourceId", "largeNotificationIconResourceId", SingleKycIdentity.EMPTY, "getTriggerActionMinimumTimeIntervalInSeconds", "()J", "triggerActionMinimumTimeIntervalInSeconds", "getSessionTimeoutSeconds", "sessionTimeoutSeconds", "getVersionCode", "getVersionCode$annotations", "versionCode", "getCustomEndpoint", "customEndpoint", "getDoesHandlePushDeepLinksAutomatically", "doesHandlePushDeepLinksAutomatically", "isNewsfeedVisualIndicatorOn", "getDefaultNotificationChannelName", "defaultNotificationChannelName", "getDefaultNotificationChannelDescription", "defaultNotificationChannelDescription", "getApplicationIconResourceId", "applicationIconResourceId", "getDefaultNotificationAccentColor", "getDefaultNotificationAccentColor$annotations", "defaultNotificationAccentColor", "Lcom/braze/enums/SdkFlavor;", "getSdkFlavor", "()Lcom/braze/enums/SdkFlavor;", "sdkFlavor", "isPushDeepLinkBackStackActivityEnabled", "getPushDeepLinkBackStackActivityClassName", "pushDeepLinkBackStackActivityClassName", "isSessionStartBasedTimeoutEnabled", "isFirebaseCloudMessagingRegistrationEnabled", "isContentCardsUnreadVisualIndicatorEnabled", "getFirebaseCloudMessagingSenderIdKey", "firebaseCloudMessagingSenderIdKey", "Lcom/braze/enums/DeviceKey;", "getDeviceObjectAllowlist", "()Ljava/util/EnumSet;", "deviceObjectAllowlist", "isDeviceObjectAllowlistEnabled", "isInAppMessageAccessibilityExclusiveModeEnabled", "isPushWakeScreenForNotificationEnabled", "isPushNotificationHtmlRenderingEnabled", "getDoesPushStoryDismissOnClick", "doesPushStoryDismissOnClick", "isInAppMessageTestPushEagerDisplayEnabled", "isAutomaticGeofenceRequestsEnabled", "getLoggerInitialLogLevel", "loggerInitialLogLevel", "getCustomHtmlWebViewActivityClassName", "customHtmlWebViewActivityClassName", "getInAppMessageWebViewClientOnPageFinishedMaxWaitMs", "inAppMessageWebViewClientOnPageFinishedMaxWaitMs", "Lcom/braze/enums/LocationProviderName;", "getCustomLocationProviderNames", "customLocationProviderNames", "isSdkAuthenticationEnabled", "isTouchModeRequiredForHtmlInAppMessages", "isHtmlInAppMessageApplyWindowInsetsEnabled", "isHtmlInAppMessageHtmlLinkTargetEnabled", "Lcom/braze/enums/BrazeSdkMetadata;", "getSdkMetadata", "sdkMetadata", "isFallbackFirebaseMessagingServiceEnabled", "getFallbackFirebaseMessagingServiceClasspath", "fallbackFirebaseMessagingServiceClasspath", "getShouldOptInWhenPushAuthorized", "shouldOptInWhenPushAuthorized", "getShouldUseWindowFlagSecureInActivities", "shouldUseWindowFlagSecureInActivities", "<init>", "(Landroid/content/Context;)V", "Companion", "bo/app/y7", "android-sdk-base_release"}, k = 1, mv = {1, 8, 0})
public class BrazeConfigurationProvider extends CachedConfigurationProvider {
public static final y7 Companion = new y7();
public static final int DEFAULT_IN_APP_MESSAGE_WEBVIEW_ONPAGEFINISHED_WAIT_MS = (int) TimeUnit.SECONDS.toMillis(15);
private final Context context;
public BrazeConfigurationProvider(Context context) {
super(context, false, null, 6, null);
p64.h(context, "context");
Context applicationContext = context.getApplicationContext();
p64.g(applicationContext, "context.applicationContext");
this.context = applicationContext;
}
private final <E extends Enum<E>> EnumSet<E> getGenericEnumSetFromStringSet(Class<E> targetEnumClass, z7 configField) {
String str = configField.a;
if (getConfigurationCache().containsKey(str)) {
Object obj = getConfigurationCache().get(str);
p64.f(obj, "null cannot be cast to non-null type java.util.EnumSet<E of com.braze.configuration.BrazeConfigurationProvider.getGenericEnumSetFromStringSet>");
return (EnumSet) obj;
}
Set<String> stringSetValue = getStringSetValue(configField.a, new HashSet());
if (stringSetValue == null) {
stringSetValue = new HashSet<>();
}
p64.h(targetEnumClass, "targetEnumClass");
p64.h(stringSetValue, "sourceStringSet");
EnumSet<E> noneOf = EnumSet.noneOf(targetEnumClass);
for (String str2 : stringSetValue) {
try {
Locale locale = Locale.US;
p64.g(locale, "US");
String upperCase = str2.toUpperCase(locale);
p64.g(upperCase, "this as java.lang.String).toUpperCase(locale)");
p64.h(upperCase, "enumValue");
p64.h(targetEnumClass, "targetEnumClass");
noneOf.add(Enum.valueOf(targetEnumClass, upperCase));
} catch (Exception e) {
BrazeLogger.INSTANCE.brazelog(e.a, BrazeLogger.Priority.E, e, (ex2<String>) new zt(str2));
}
}
p64.g(noneOf, "result");
getConfigurationCache().put(str, noneOf);
return noneOf;
}
private final String getServerTarget() {
String stringValue = getStringValue("com_braze_server_target", "PROD");
return stringValue == null ? "PROD" : stringValue;
}
public final int getApplicationIconResourceId() {
int i;
if (getConfigurationCache().containsKey("application_icon")) {
Object obj = getConfigurationCache().get("application_icon");
p64.f(obj, "null cannot be cast to non-null type kotlin.Int");
return ((Integer) obj).intValue();
}
String packageName = this.context.getPackageName();
try {
ApplicationInfo a = Build.VERSION.SDK_INT >= 33 ? q60.a(this.context.getPackageManager(), packageName, p60.a(0L)) : this.context.getPackageManager().getApplicationInfo(packageName, 0);
p64.g(a, "if (Build.VERSION.SDK_IN… 0)\n }");
i = a.icon;
} catch (Exception e) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.E, e, (ex2<String>) new a8(packageName));
i = 0;
}
getConfigurationCache().put("application_icon", Integer.valueOf(i));
return i;
}
public final String getBaseUrlForRequests() {
String serverTarget = getServerTarget();
Locale locale = Locale.US;
p64.g(locale, "US");
String upperCase = serverTarget.toUpperCase(locale);
p64.g(upperCase, "this as java.lang.String).toUpperCase(locale)");
return p64.c("STAGING", upperCase) ? "https://sondheim.braze.com/api/v3/" : "https://sdk.iad-01.braze.com/api/v3/";
}
public final t7 getBrazeApiKey() {
String str = (String) getConfigurationCache().get("com_braze_api_key");
if (str == null) {
str = getRuntimeAppConfigurationProvider().getStringValue("com_braze_api_key", null);
if (str != null) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, this, BrazeLogger.Priority.I, (Throwable) null, c8.a, 2, (Object) null);
} else {
str = getStringValue("com_braze_api_key", null);
}
if (str != null) {
getConfigurationCache().put("com_braze_api_key", str);
}
}
if (str != null) {
return new t7(str);
}
BrazeLogger brazeLogger = BrazeLogger.INSTANCE;
BrazeLogger.Priority priority = BrazeLogger.Priority.W;
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) d8.a, 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) e8.a, 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) f8.a, 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) g8.a, 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) h8.a, 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) i8.a, 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) j8.a, 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) k8.a, 2, (Object) null);
BrazeLogger.brazelog$default(brazeLogger, (Object) this, priority, (Throwable) null, (ex2) b8.a, 2, (Object) null);
throw new RuntimeException("Unable to read the Braze API key from the res/values/braze.xml file or from runtime configuration via BrazeConfig. See log for more details.");
}
public final String getCustomEndpoint() {
return getStringValue("com_braze_custom_endpoint", null);
}
public final String getCustomHtmlWebViewActivityClassName() {
return getStringValue("com_braze_custom_html_webview_activity_class_name", SingleKycIdentity.EMPTY);
}
public final EnumSet<LocationProviderName> getCustomLocationProviderNames() {
return getGenericEnumSetFromStringSet(LocationProviderName.class, z7.CUSTOM_LOCATION_PROVIDERS_LIST_KEY);
}
public final int getDefaultNotificationAccentColor() {
Integer colorValue = getColorValue("com_braze_default_notification_accent_color");
if (colorValue == null) {
return 0;
}
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, (Object) this, (BrazeLogger.Priority) null, (Throwable) null, (ex2) l8.a, 3, (Object) null);
return colorValue.intValue();
}
public final String getDefaultNotificationChannelDescription() {
String stringValue = getStringValue("com_braze_default_notification_channel_description", SingleKycIdentity.EMPTY);
return stringValue == null ? SingleKycIdentity.EMPTY : stringValue;
}
public final String getDefaultNotificationChannelName() {
String stringValue = getStringValue("com_braze_default_notification_channel_name", "General");
return stringValue == null ? "General" : stringValue;
}
public final EnumSet<DeviceKey> getDeviceObjectAllowlist() {
return getGenericEnumSetFromStringSet(DeviceKey.class, z7.DEVICE_OBJECT_ALLOWLIST_VALUE);
}
public final boolean getDoesHandlePushDeepLinksAutomatically() {
return getBooleanValue("com_braze_handle_push_deep_links_automatically", false);
}
public final boolean getDoesPushStoryDismissOnClick() {
return getBooleanValue("com_braze_does_push_story_dismiss_on_click", true);
}
public final Set<String> getEphemeralEventKeys() {
Set<String> e;
Set<String> U0;
e = C0236zd8.e();
Set<String> stringSetValue = getStringSetValue("com_braze_ephemeral_events_keys", e);
if (stringSetValue == null) {
stringSetValue = C0236zd8.e();
}
if (stringSetValue.size() > 12) {
BrazeLogger.brazelog$default(BrazeLogger.INSTANCE, (Object) this, BrazeLogger.Priority.W, (Throwable) null, (ex2) m8.a, 2, (Object) null);
}
U0 = C0187su0.U0(C0187su0.M0(stringSetValue, 12));
return U0;
}
public final String getFallbackFirebaseMessagingServiceClasspath() {
return getStringValue("com_braze_fallback_firebase_cloud_messaging_service_classpath", null);
}
public final String getFirebaseCloudMessagingSenderIdKey() {
return getStringValue("com_braze_firebase_cloud_messaging_sender_id", null);
}
public final int getInAppMessageWebViewClientOnPageFinishedMaxWaitMs() {
return getIntValue("com_braze_in_app_message_webview_client_max_onpagefinished_wait_ms", DEFAULT_IN_APP_MESSAGE_WEBVIEW_ONPAGEFINISHED_WAIT_MS);
}
public final int getLargeNotificationIconResourceId() {
return getDrawableValue("com_braze_push_large_notification_icon", 0);
}
public final int getLoggerInitialLogLevel() {
return getIntValue("com_braze_logger_initial_log_level", 4);
}
public final String getPushDeepLinkBackStackActivityClassName() {
return getStringValue("com_braze_push_deep_link_back_stack_activity_class_name", SingleKycIdentity.EMPTY);
}
public final SdkFlavor getSdkFlavor() {
boolean y;
String stringValue = getStringValue("com_braze_sdk_flavor", null);
if (stringValue == null) {
return null;
}
y = ku8.y(stringValue);
if (y) {
return null;
}
try {
Locale locale = Locale.US;
p64.g(locale, "US");
String upperCase = stringValue.toUpperCase(locale);
p64.g(upperCase, "this as java.lang.String).toUpperCase(locale)");
return SdkFlavor.valueOf(upperCase);
} catch (Exception e) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.E, e, (ex2<String>) n8.a);
return null;
}
}
public final EnumSet<BrazeSdkMetadata> getSdkMetadata() {
String upperCase;
int i;
bk bkVar = bk.STRING_ARRAY;
Object resourceConfigurationValue = getResourceConfigurationValue(bkVar, "com_braze_internal_sdk_metadata", new HashSet());
p64.f(resourceConfigurationValue, "null cannot be cast to non-null type kotlin.collections.MutableSet<kotlin.String>");
Set<String> c = qi9.c(resourceConfigurationValue);
Object resourceConfigurationValue2 = getResourceConfigurationValue(bkVar, "com_braze_sdk_metadata", new HashSet());
p64.f(resourceConfigurationValue2, "null cannot be cast to non-null type kotlin.collections.Set<kotlin.String>");
Object runtimeConfigurationValue = getRuntimeConfigurationValue(bkVar, "com_braze_sdk_metadata", new HashSet());
p64.f(runtimeConfigurationValue, "null cannot be cast to non-null type kotlin.collections.Set<kotlin.String>");
c.addAll((Set) resourceConfigurationValue2);
c.addAll((Set) runtimeConfigurationValue);
EnumSet<BrazeSdkMetadata> noneOf = EnumSet.noneOf(BrazeSdkMetadata.class);
for (String str : c) {
try {
Locale locale = Locale.US;
p64.g(locale, "US");
upperCase = str.toUpperCase(locale);
p64.g(upperCase, "this as java.lang.String).toUpperCase(locale)");
} catch (Exception e) {
BrazeLogger.INSTANCE.brazelog(e.a, BrazeLogger.Priority.E, e, (ex2<String>) new au(str));
}
for (BrazeSdkMetadata brazeSdkMetadata : BrazeSdkMetadata.values()) {
if (p64.c(brazeSdkMetadata.name(), upperCase)) {
noneOf.add(brazeSdkMetadata);
}
}
throw new NoSuchElementException("Array contains no element matching the predicate.");
}
p64.g(noneOf, "result");
return noneOf;
}
public final int getSessionTimeoutSeconds() {
return getIntValue("com_braze_session_timeout", 10);
}
public final boolean getShouldOptInWhenPushAuthorized() {
return getBooleanValue("com_braze_optin_when_push_authorized", true);
}
public final boolean getShouldUseWindowFlagSecureInActivities() {
return getBooleanValue("com_braze_use_activity_window_flag_secure", false);
}
public final int getSmallNotificationIconResourceId() {
return getDrawableValue("com_braze_push_small_notification_icon", 0);
}
public final long getTriggerActionMinimumTimeIntervalInSeconds() {
return getIntValue("com_braze_trigger_action_minimum_time_interval_seconds", 30);
}
public final int getVersionCode() {
int i;
if (getConfigurationCache().containsKey("version_code")) {
Object obj = getConfigurationCache().get("version_code");
p64.f(obj, "null cannot be cast to non-null type kotlin.Int");
return ((Integer) obj).intValue();
}
try {
i = this.context.getPackageManager().getPackageInfo(PackageUtils.getResourcePackageName(this.context), 0).versionCode;
} catch (Exception e) {
BrazeLogger.INSTANCE.brazelog(this, BrazeLogger.Priority.E, e, (ex2<String>) o8.a);
i = -1;
}
getConfigurationCache().put("version_code", Integer.valueOf(i));
return i;
}
public final boolean isAdmMessagingRegistrationEnabled() {
return getBooleanValue("com_braze_push_adm_messaging_registration_enabled", false);
}
public final boolean isAutomaticGeofenceRequestsEnabled() {
return getBooleanValue("com_braze_automatic_geofence_requests_enabled", true);
}
public final boolean isContentCardsUnreadVisualIndicatorEnabled() {
return getBooleanValue("com_braze_content_cards_unread_visual_indicator_enabled", true);
}
public final boolean isDeviceObjectAllowlistEnabled() {
return getBooleanValue("com_braze_device_object_whitelisting_enabled", false);
}
public final boolean isEphemeralEventsEnabled() {
return getBooleanValue("com_braze_ephemeral_events_enabled", false);
}
public final boolean isFallbackFirebaseMessagingServiceEnabled() {
return getBooleanValue("com_braze_fallback_firebase_cloud_messaging_service_enabled", false);
}
public final boolean isFirebaseCloudMessagingRegistrationEnabled() {
return getBooleanValue("com_braze_firebase_cloud_messaging_registration_enabled", false);
}
public final boolean isGeofencesEnabled() {
return getBooleanValue("com_braze_geofences_enabled", isLocationCollectionEnabled());
}
public final boolean isHtmlInAppMessageApplyWindowInsetsEnabled() {
return getBooleanValue("com_braze_html_in_app_message_apply_insets", false);
}
public final boolean isHtmlInAppMessageHtmlLinkTargetEnabled() {
return getBooleanValue("com_braze_html_in_app_message_enable_html_link_target", true);
}
public final boolean isInAppMessageAccessibilityExclusiveModeEnabled() {
return getBooleanValue("com_braze_device_in_app_message_accessibility_exclusive_mode_enabled", false);
}
public final boolean isInAppMessageTestPushEagerDisplayEnabled() {
return getBooleanValue("com_braze_in_app_message_push_test_eager_display_enabled", true);
}
public final boolean isLocationCollectionEnabled() {
return getBooleanValue("com_braze_enable_location_collection", false);
}
public final boolean isNewsfeedVisualIndicatorOn() {
return getBooleanValue("com_braze_newsfeed_unread_visual_indicator_on", true);
}
public final boolean isPushDeepLinkBackStackActivityEnabled() {
return getBooleanValue("com_braze_push_deep_link_back_stack_activity_enabled", true);
}
public final boolean isPushNotificationHtmlRenderingEnabled() {
return getBooleanValue("com_braze_push_notification_html_rendering_enabled", false);
}
public final boolean isPushWakeScreenForNotificationEnabled() {
return getBooleanValue("com_braze_push_wake_screen_for_notification_enabled", true);
}
public final boolean isSdkAuthenticationEnabled() {
return getBooleanValue("com_braze_sdk_authentication_enabled", false);
}
public final boolean isSessionStartBasedTimeoutEnabled() {
return getBooleanValue("com_braze_session_start_based_timeout_enabled", false);
}
public final boolean isTouchModeRequiredForHtmlInAppMessages() {
return getBooleanValue("com_braze_require_touch_mode_for_html_in_app_messages", true);
}
}