Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
package com.facebook.appevents.cloudbridge;
import java.util.Arrays;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes2.dex */
public enum AppEventType {
MOBILE_APP_INSTALL,
CUSTOM,
OTHER;
public static final Companion Companion = new Companion(null);
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final AppEventType invoke(String rawValue) {
Intrinsics.checkNotNullParameter(rawValue, "rawValue");
return Intrinsics.areEqual(rawValue, "MOBILE_APP_INSTALL") ? AppEventType.MOBILE_APP_INSTALL : Intrinsics.areEqual(rawValue, "CUSTOM_APP_EVENTS") ? AppEventType.CUSTOM : AppEventType.OTHER;
}
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static AppEventType[] valuesCustom() {
AppEventType[] valuesCustom = values();
return (AppEventType[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}

View File

@@ -0,0 +1,63 @@
package com.facebook.appevents.cloudbridge;
import com.applovin.sdk.AppLovinEventParameters;
import java.util.Arrays;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes2.dex */
public enum AppEventUserAndAppDataField {
ANON_ID("anon_id"),
APP_USER_ID("app_user_id"),
ADVERTISER_ID("advertiser_id"),
PAGE_ID("page_id"),
PAGE_SCOPED_USER_ID("page_scoped_user_id"),
USER_DATA("ud"),
ADV_TE("advertiser_tracking_enabled"),
APP_TE("application_tracking_enabled"),
CONSIDER_VIEWS("consider_views"),
DEVICE_TOKEN("device_token"),
EXT_INFO("extInfo"),
INCLUDE_DWELL_DATA("include_dwell_data"),
INCLUDE_VIDEO_DATA("include_video_data"),
INSTALL_REFERRER("install_referrer"),
INSTALLER_PACKAGE("installer_package"),
RECEIPT_DATA(AppLovinEventParameters.IN_APP_PURCHASE_DATA),
URL_SCHEMES("url_schemes");
public static final Companion Companion = new Companion(null);
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
AppEventUserAndAppDataField(String str) {
this.rawValue = str;
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final AppEventUserAndAppDataField invoke(String rawValue) {
Intrinsics.checkNotNullParameter(rawValue, "rawValue");
for (AppEventUserAndAppDataField appEventUserAndAppDataField : AppEventUserAndAppDataField.valuesCustom()) {
if (Intrinsics.areEqual(appEventUserAndAppDataField.getRawValue(), rawValue)) {
return appEventUserAndAppDataField;
}
}
return null;
}
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static AppEventUserAndAppDataField[] valuesCustom() {
AppEventUserAndAppDataField[] valuesCustom = values();
return (AppEventUserAndAppDataField[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}

View File

@@ -0,0 +1,229 @@
package com.facebook.appevents.cloudbridge;
import android.content.SharedPreferences;
import com.facebook.FacebookSdk;
import com.facebook.GraphRequest;
import com.facebook.GraphResponse;
import com.facebook.HttpMethod;
import com.facebook.LoggingBehavior;
import com.facebook.internal.Logger;
import com.facebook.internal.Utility;
import com.facebook.internal.instrument.crashshield.CrashShieldHandler;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.ExceptionsKt__ExceptionsKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsJVMKt;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class AppEventsCAPIManager {
private static final String SETTINGS_PATH = "/cloudbridge_settings";
private static boolean isEnabled;
public static final AppEventsCAPIManager INSTANCE = new AppEventsCAPIManager();
private static final String TAG = AppEventsCAPIManager.class.getCanonicalName();
public final boolean isEnabled$facebook_core_release() {
return isEnabled;
}
public final void setEnabled$facebook_core_release(boolean z) {
isEnabled = z;
}
private AppEventsCAPIManager() {
}
public static final Map<String, Object> getSavedCloudBridgeCredentials$facebook_core_release() {
if (CrashShieldHandler.isObjectCrashing(AppEventsCAPIManager.class)) {
return null;
}
try {
SharedPreferences sharedPreferences = FacebookSdk.getApplicationContext().getSharedPreferences(FacebookSdk.CLOUDBRIDGE_SAVED_CREDENTIALS, 0);
if (sharedPreferences == null) {
return null;
}
SettingsAPIFields settingsAPIFields = SettingsAPIFields.DATASETID;
String string = sharedPreferences.getString(settingsAPIFields.getRawValue(), null);
SettingsAPIFields settingsAPIFields2 = SettingsAPIFields.URL;
String string2 = sharedPreferences.getString(settingsAPIFields2.getRawValue(), null);
SettingsAPIFields settingsAPIFields3 = SettingsAPIFields.ACCESSKEY;
String string3 = sharedPreferences.getString(settingsAPIFields3.getRawValue(), null);
if (string != null && !StringsKt__StringsJVMKt.isBlank(string) && string2 != null && !StringsKt__StringsJVMKt.isBlank(string2) && string3 != null && !StringsKt__StringsJVMKt.isBlank(string3)) {
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.put(settingsAPIFields2.getRawValue(), string2);
linkedHashMap.put(settingsAPIFields.getRawValue(), string);
linkedHashMap.put(settingsAPIFields3.getRawValue(), string3);
Logger.Companion.log(LoggingBehavior.APP_EVENTS, TAG.toString(), " \n\nLoading Cloudbridge settings from saved Prefs: \n================\n DATASETID: %s\n URL: %s \n ACCESSKEY: %s \n\n ", string, string2, string3);
return linkedHashMap;
}
return null;
} catch (Throwable th) {
CrashShieldHandler.handleThrowable(th, AppEventsCAPIManager.class);
return null;
}
}
public final void setSavedCloudBridgeCredentials$facebook_core_release(Map<String, ? extends Object> map) {
SharedPreferences sharedPreferences = FacebookSdk.getApplicationContext().getSharedPreferences(FacebookSdk.CLOUDBRIDGE_SAVED_CREDENTIALS, 0);
if (sharedPreferences == null) {
return;
}
if (map == null) {
SharedPreferences.Editor edit = sharedPreferences.edit();
edit.clear();
edit.apply();
return;
}
SettingsAPIFields settingsAPIFields = SettingsAPIFields.DATASETID;
Object obj = map.get(settingsAPIFields.getRawValue());
SettingsAPIFields settingsAPIFields2 = SettingsAPIFields.URL;
Object obj2 = map.get(settingsAPIFields2.getRawValue());
SettingsAPIFields settingsAPIFields3 = SettingsAPIFields.ACCESSKEY;
Object obj3 = map.get(settingsAPIFields3.getRawValue());
if (obj == null || obj2 == null || obj3 == null) {
return;
}
SharedPreferences.Editor edit2 = sharedPreferences.edit();
edit2.putString(settingsAPIFields.getRawValue(), obj.toString());
edit2.putString(settingsAPIFields2.getRawValue(), obj2.toString());
edit2.putString(settingsAPIFields3.getRawValue(), obj3.toString());
edit2.apply();
Logger.Companion.log(LoggingBehavior.APP_EVENTS, TAG.toString(), " \n\nSaving Cloudbridge settings from saved Prefs: \n================\n DATASETID: %s\n URL: %s \n ACCESSKEY: %s \n\n ", obj, obj2, obj3);
}
public static final void enable() {
String stackTraceToString;
try {
GraphRequest graphRequest = new GraphRequest(null, Intrinsics.stringPlus(FacebookSdk.getApplicationId(), SETTINGS_PATH), null, HttpMethod.GET, new GraphRequest.Callback() { // from class: com.facebook.appevents.cloudbridge.AppEventsCAPIManager$$ExternalSyntheticLambda0
@Override // com.facebook.GraphRequest.Callback
public final void onCompleted(GraphResponse graphResponse) {
AppEventsCAPIManager.m482enable$lambda0(graphResponse);
}
}, null, 32, null);
Logger.Companion companion = Logger.Companion;
LoggingBehavior loggingBehavior = LoggingBehavior.APP_EVENTS;
String str = TAG;
if (str != null) {
companion.log(loggingBehavior, str, " \n\nCreating Graph Request: \n=============\n%s\n\n ", graphRequest);
graphRequest.executeAsync();
return;
}
throw new NullPointerException("null cannot be cast to non-null type kotlin.String");
} catch (JSONException e) {
Logger.Companion companion2 = Logger.Companion;
LoggingBehavior loggingBehavior2 = LoggingBehavior.APP_EVENTS;
String str2 = TAG;
if (str2 == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.String");
}
stackTraceToString = ExceptionsKt__ExceptionsKt.stackTraceToString(e);
companion2.log(loggingBehavior2, str2, " \n\nGraph Request Exception: \n=============\n%s\n\n ", stackTraceToString);
}
}
/* JADX INFO: Access modifiers changed from: private */
/* renamed from: enable$lambda-0, reason: not valid java name */
public static final void m482enable$lambda0(GraphResponse response) {
Intrinsics.checkNotNullParameter(response, "response");
INSTANCE.getCAPIGSettingsFromGraphResponse$facebook_core_release(response);
}
public final void getCAPIGSettingsFromGraphResponse$facebook_core_release(GraphResponse response) {
String stackTraceToString;
String stackTraceToString2;
Object firstOrNull;
String stackTraceToString3;
boolean z;
Intrinsics.checkNotNullParameter(response, "response");
if (response.getError() != null) {
Logger.Companion companion = Logger.Companion;
LoggingBehavior loggingBehavior = LoggingBehavior.APP_EVENTS;
String str = TAG;
if (str != null) {
companion.log(loggingBehavior, str, " \n\nGraph Response Error: \n================\nResponse Error: %s\nResponse Error Exception: %s\n\n ", response.getError().toString(), String.valueOf(response.getError().getException()));
Map<String, Object> savedCloudBridgeCredentials$facebook_core_release = getSavedCloudBridgeCredentials$facebook_core_release();
if (savedCloudBridgeCredentials$facebook_core_release != null) {
URL url = new URL(String.valueOf(savedCloudBridgeCredentials$facebook_core_release.get(SettingsAPIFields.URL.getRawValue())));
AppEventsConversionsAPITransformerWebRequests appEventsConversionsAPITransformerWebRequests = AppEventsConversionsAPITransformerWebRequests.INSTANCE;
AppEventsConversionsAPITransformerWebRequests.configure(String.valueOf(savedCloudBridgeCredentials$facebook_core_release.get(SettingsAPIFields.DATASETID.getRawValue())), url.getProtocol() + "://" + ((Object) url.getHost()), String.valueOf(savedCloudBridgeCredentials$facebook_core_release.get(SettingsAPIFields.ACCESSKEY.getRawValue())));
isEnabled = true;
return;
}
return;
}
throw new NullPointerException("null cannot be cast to non-null type kotlin.String");
}
Logger.Companion companion2 = Logger.Companion;
LoggingBehavior loggingBehavior2 = LoggingBehavior.APP_EVENTS;
String TAG2 = TAG;
if (TAG2 != null) {
companion2.log(loggingBehavior2, TAG2, " \n\nGraph Response Received: \n================\n%s\n\n ", response);
JSONObject jSONObject = response.getJSONObject();
try {
Utility utility = Utility.INSTANCE;
Object obj = jSONObject == null ? null : jSONObject.get("data");
if (obj == null) {
throw new NullPointerException("null cannot be cast to non-null type org.json.JSONArray");
}
firstOrNull = CollectionsKt___CollectionsKt.firstOrNull((List) Utility.convertJSONArrayToList((JSONArray) obj));
Map<String, ? extends Object> convertJSONObjectToHashMap = Utility.convertJSONObjectToHashMap(new JSONObject((String) firstOrNull));
String str2 = (String) convertJSONObjectToHashMap.get(SettingsAPIFields.URL.getRawValue());
String str3 = (String) convertJSONObjectToHashMap.get(SettingsAPIFields.DATASETID.getRawValue());
String str4 = (String) convertJSONObjectToHashMap.get(SettingsAPIFields.ACCESSKEY.getRawValue());
if (str2 == null || str3 == null || str4 == null) {
Intrinsics.checkNotNullExpressionValue(TAG2, "TAG");
companion2.log(loggingBehavior2, TAG2, "CloudBridge Settings API response doesn't have valid data");
return;
}
try {
AppEventsConversionsAPITransformerWebRequests.configure(str3, str2, str4);
setSavedCloudBridgeCredentials$facebook_core_release(convertJSONObjectToHashMap);
SettingsAPIFields settingsAPIFields = SettingsAPIFields.ENABLED;
if (convertJSONObjectToHashMap.get(settingsAPIFields.getRawValue()) != null) {
Object obj2 = convertJSONObjectToHashMap.get(settingsAPIFields.getRawValue());
if (obj2 == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Boolean");
}
z = ((Boolean) obj2).booleanValue();
} else {
z = false;
}
isEnabled = z;
return;
} catch (MalformedURLException e) {
Logger.Companion companion3 = Logger.Companion;
LoggingBehavior loggingBehavior3 = LoggingBehavior.APP_EVENTS;
String TAG3 = TAG;
Intrinsics.checkNotNullExpressionValue(TAG3, "TAG");
stackTraceToString3 = ExceptionsKt__ExceptionsKt.stackTraceToString(e);
companion3.log(loggingBehavior3, TAG3, "CloudBridge Settings API response doesn't have valid url\n %s ", stackTraceToString3);
return;
}
} catch (NullPointerException e2) {
Logger.Companion companion4 = Logger.Companion;
LoggingBehavior loggingBehavior4 = LoggingBehavior.APP_EVENTS;
String TAG4 = TAG;
Intrinsics.checkNotNullExpressionValue(TAG4, "TAG");
stackTraceToString2 = ExceptionsKt__ExceptionsKt.stackTraceToString(e2);
companion4.log(loggingBehavior4, TAG4, "CloudBridge Settings API response is not a valid json: \n%s ", stackTraceToString2);
return;
} catch (JSONException e3) {
Logger.Companion companion5 = Logger.Companion;
LoggingBehavior loggingBehavior5 = LoggingBehavior.APP_EVENTS;
String TAG5 = TAG;
Intrinsics.checkNotNullExpressionValue(TAG5, "TAG");
stackTraceToString = ExceptionsKt__ExceptionsKt.stackTraceToString(e3);
companion5.log(loggingBehavior5, TAG5, "CloudBridge Settings API response is not a valid json: \n%s ", stackTraceToString);
return;
}
}
throw new NullPointerException("null cannot be cast to non-null type kotlin.String");
}
}

View File

@@ -0,0 +1,603 @@
package com.facebook.appevents.cloudbridge;
import com.facebook.FacebookSdk;
import com.facebook.LoggingBehavior;
import com.facebook.appevents.AppEventsConstants;
import com.facebook.appevents.cloudbridge.AppEventType;
import com.facebook.internal.Logger;
import com.facebook.internal.Utility;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.ExceptionsKt__ExceptionsKt;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__CollectionsJVMKt;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringNumberConversionsKt;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class AppEventsConversionsAPITransformer {
public static final AppEventsConversionsAPITransformer INSTANCE = new AppEventsConversionsAPITransformer();
public static final String TAG = "AppEventsConversionsAPITransformer";
public static final Map<CustomEventField, SectionCustomEventFieldMapping> customEventTransformations;
public static final Map<String, ConversionsAPIEventName> standardEventTransformations;
private static final Map<AppEventUserAndAppDataField, SectionFieldMapping> topLevelTransformations;
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
public static final /* synthetic */ int[] $EnumSwitchMapping$1;
public static final /* synthetic */ int[] $EnumSwitchMapping$2;
static {
int[] iArr = new int[ValueTransformationType.valuesCustom().length];
iArr[ValueTransformationType.ARRAY.ordinal()] = 1;
iArr[ValueTransformationType.BOOL.ordinal()] = 2;
iArr[ValueTransformationType.INT.ordinal()] = 3;
$EnumSwitchMapping$0 = iArr;
int[] iArr2 = new int[ConversionsAPISection.valuesCustom().length];
iArr2[ConversionsAPISection.APP_DATA.ordinal()] = 1;
iArr2[ConversionsAPISection.USER_DATA.ordinal()] = 2;
$EnumSwitchMapping$1 = iArr2;
int[] iArr3 = new int[AppEventType.valuesCustom().length];
iArr3[AppEventType.MOBILE_APP_INSTALL.ordinal()] = 1;
iArr3[AppEventType.CUSTOM.ordinal()] = 2;
$EnumSwitchMapping$2 = iArr3;
}
}
private AppEventsConversionsAPITransformer() {
}
public static final class SectionFieldMapping {
private ConversionsAPIUserAndAppDataField field;
private ConversionsAPISection section;
public static /* synthetic */ SectionFieldMapping copy$default(SectionFieldMapping sectionFieldMapping, ConversionsAPISection conversionsAPISection, ConversionsAPIUserAndAppDataField conversionsAPIUserAndAppDataField, int i, Object obj) {
if ((i & 1) != 0) {
conversionsAPISection = sectionFieldMapping.section;
}
if ((i & 2) != 0) {
conversionsAPIUserAndAppDataField = sectionFieldMapping.field;
}
return sectionFieldMapping.copy(conversionsAPISection, conversionsAPIUserAndAppDataField);
}
public final ConversionsAPISection component1() {
return this.section;
}
public final ConversionsAPIUserAndAppDataField component2() {
return this.field;
}
public final SectionFieldMapping copy(ConversionsAPISection section, ConversionsAPIUserAndAppDataField conversionsAPIUserAndAppDataField) {
Intrinsics.checkNotNullParameter(section, "section");
return new SectionFieldMapping(section, conversionsAPIUserAndAppDataField);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SectionFieldMapping)) {
return false;
}
SectionFieldMapping sectionFieldMapping = (SectionFieldMapping) obj;
return this.section == sectionFieldMapping.section && this.field == sectionFieldMapping.field;
}
public final ConversionsAPIUserAndAppDataField getField() {
return this.field;
}
public final ConversionsAPISection getSection() {
return this.section;
}
public int hashCode() {
int hashCode = this.section.hashCode() * 31;
ConversionsAPIUserAndAppDataField conversionsAPIUserAndAppDataField = this.field;
return hashCode + (conversionsAPIUserAndAppDataField == null ? 0 : conversionsAPIUserAndAppDataField.hashCode());
}
public final void setField(ConversionsAPIUserAndAppDataField conversionsAPIUserAndAppDataField) {
this.field = conversionsAPIUserAndAppDataField;
}
public final void setSection(ConversionsAPISection conversionsAPISection) {
Intrinsics.checkNotNullParameter(conversionsAPISection, "<set-?>");
this.section = conversionsAPISection;
}
public String toString() {
return "SectionFieldMapping(section=" + this.section + ", field=" + this.field + ')';
}
public SectionFieldMapping(ConversionsAPISection section, ConversionsAPIUserAndAppDataField conversionsAPIUserAndAppDataField) {
Intrinsics.checkNotNullParameter(section, "section");
this.section = section;
this.field = conversionsAPIUserAndAppDataField;
}
}
static {
Map<AppEventUserAndAppDataField, SectionFieldMapping> mapOf;
Map<CustomEventField, SectionCustomEventFieldMapping> mapOf2;
Map<String, ConversionsAPIEventName> mapOf3;
AppEventUserAndAppDataField appEventUserAndAppDataField = AppEventUserAndAppDataField.ANON_ID;
ConversionsAPISection conversionsAPISection = ConversionsAPISection.USER_DATA;
Pair pair = TuplesKt.to(appEventUserAndAppDataField, new SectionFieldMapping(conversionsAPISection, ConversionsAPIUserAndAppDataField.ANON_ID));
Pair pair2 = TuplesKt.to(AppEventUserAndAppDataField.APP_USER_ID, new SectionFieldMapping(conversionsAPISection, ConversionsAPIUserAndAppDataField.FB_LOGIN_ID));
Pair pair3 = TuplesKt.to(AppEventUserAndAppDataField.ADVERTISER_ID, new SectionFieldMapping(conversionsAPISection, ConversionsAPIUserAndAppDataField.MAD_ID));
Pair pair4 = TuplesKt.to(AppEventUserAndAppDataField.PAGE_ID, new SectionFieldMapping(conversionsAPISection, ConversionsAPIUserAndAppDataField.PAGE_ID));
Pair pair5 = TuplesKt.to(AppEventUserAndAppDataField.PAGE_SCOPED_USER_ID, new SectionFieldMapping(conversionsAPISection, ConversionsAPIUserAndAppDataField.PAGE_SCOPED_USER_ID));
AppEventUserAndAppDataField appEventUserAndAppDataField2 = AppEventUserAndAppDataField.ADV_TE;
ConversionsAPISection conversionsAPISection2 = ConversionsAPISection.APP_DATA;
mapOf = MapsKt__MapsKt.mapOf(pair, pair2, pair3, pair4, pair5, TuplesKt.to(appEventUserAndAppDataField2, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.ADV_TE)), TuplesKt.to(AppEventUserAndAppDataField.APP_TE, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.APP_TE)), TuplesKt.to(AppEventUserAndAppDataField.CONSIDER_VIEWS, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.CONSIDER_VIEWS)), TuplesKt.to(AppEventUserAndAppDataField.DEVICE_TOKEN, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.DEVICE_TOKEN)), TuplesKt.to(AppEventUserAndAppDataField.EXT_INFO, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.EXT_INFO)), TuplesKt.to(AppEventUserAndAppDataField.INCLUDE_DWELL_DATA, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.INCLUDE_DWELL_DATA)), TuplesKt.to(AppEventUserAndAppDataField.INCLUDE_VIDEO_DATA, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.INCLUDE_VIDEO_DATA)), TuplesKt.to(AppEventUserAndAppDataField.INSTALL_REFERRER, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.INSTALL_REFERRER)), TuplesKt.to(AppEventUserAndAppDataField.INSTALLER_PACKAGE, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.INSTALLER_PACKAGE)), TuplesKt.to(AppEventUserAndAppDataField.RECEIPT_DATA, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.RECEIPT_DATA)), TuplesKt.to(AppEventUserAndAppDataField.URL_SCHEMES, new SectionFieldMapping(conversionsAPISection2, ConversionsAPIUserAndAppDataField.URL_SCHEMES)), TuplesKt.to(AppEventUserAndAppDataField.USER_DATA, new SectionFieldMapping(conversionsAPISection, null)));
topLevelTransformations = mapOf;
Pair pair6 = TuplesKt.to(CustomEventField.EVENT_TIME, new SectionCustomEventFieldMapping(null, ConversionsAPICustomEventField.EVENT_TIME));
Pair pair7 = TuplesKt.to(CustomEventField.EVENT_NAME, new SectionCustomEventFieldMapping(null, ConversionsAPICustomEventField.EVENT_NAME));
CustomEventField customEventField = CustomEventField.VALUE_TO_SUM;
ConversionsAPISection conversionsAPISection3 = ConversionsAPISection.CUSTOM_DATA;
mapOf2 = MapsKt__MapsKt.mapOf(pair6, pair7, TuplesKt.to(customEventField, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.VALUE_TO_SUM)), TuplesKt.to(CustomEventField.CONTENT_IDS, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.CONTENT_IDS)), TuplesKt.to(CustomEventField.CONTENTS, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.CONTENTS)), TuplesKt.to(CustomEventField.CONTENT_TYPE, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.CONTENT_TYPE)), TuplesKt.to(CustomEventField.CURRENCY, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.CURRENCY)), TuplesKt.to(CustomEventField.DESCRIPTION, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.DESCRIPTION)), TuplesKt.to(CustomEventField.LEVEL, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.LEVEL)), TuplesKt.to(CustomEventField.MAX_RATING_VALUE, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.MAX_RATING_VALUE)), TuplesKt.to(CustomEventField.NUM_ITEMS, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.NUM_ITEMS)), TuplesKt.to(CustomEventField.PAYMENT_INFO_AVAILABLE, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.PAYMENT_INFO_AVAILABLE)), TuplesKt.to(CustomEventField.REGISTRATION_METHOD, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.REGISTRATION_METHOD)), TuplesKt.to(CustomEventField.SEARCH_STRING, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.SEARCH_STRING)), TuplesKt.to(CustomEventField.SUCCESS, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.SUCCESS)), TuplesKt.to(CustomEventField.ORDER_ID, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.ORDER_ID)), TuplesKt.to(CustomEventField.AD_TYPE, new SectionCustomEventFieldMapping(conversionsAPISection3, ConversionsAPICustomEventField.AD_TYPE)));
customEventTransformations = mapOf2;
mapOf3 = MapsKt__MapsKt.mapOf(TuplesKt.to(AppEventsConstants.EVENT_NAME_UNLOCKED_ACHIEVEMENT, ConversionsAPIEventName.UNLOCKED_ACHIEVEMENT), TuplesKt.to(AppEventsConstants.EVENT_NAME_ACTIVATED_APP, ConversionsAPIEventName.ACTIVATED_APP), TuplesKt.to(AppEventsConstants.EVENT_NAME_ADDED_PAYMENT_INFO, ConversionsAPIEventName.ADDED_PAYMENT_INFO), TuplesKt.to(AppEventsConstants.EVENT_NAME_ADDED_TO_CART, ConversionsAPIEventName.ADDED_TO_CART), TuplesKt.to(AppEventsConstants.EVENT_NAME_ADDED_TO_WISHLIST, ConversionsAPIEventName.ADDED_TO_WISHLIST), TuplesKt.to(AppEventsConstants.EVENT_NAME_COMPLETED_REGISTRATION, ConversionsAPIEventName.COMPLETED_REGISTRATION), TuplesKt.to(AppEventsConstants.EVENT_NAME_VIEWED_CONTENT, ConversionsAPIEventName.VIEWED_CONTENT), TuplesKt.to(AppEventsConstants.EVENT_NAME_INITIATED_CHECKOUT, ConversionsAPIEventName.INITIATED_CHECKOUT), TuplesKt.to(AppEventsConstants.EVENT_NAME_ACHIEVED_LEVEL, ConversionsAPIEventName.ACHIEVED_LEVEL), TuplesKt.to(AppEventsConstants.EVENT_NAME_PURCHASED, ConversionsAPIEventName.PURCHASED), TuplesKt.to(AppEventsConstants.EVENT_NAME_RATED, ConversionsAPIEventName.RATED), TuplesKt.to(AppEventsConstants.EVENT_NAME_SEARCHED, ConversionsAPIEventName.SEARCHED), TuplesKt.to(AppEventsConstants.EVENT_NAME_SPENT_CREDITS, ConversionsAPIEventName.SPENT_CREDITS), TuplesKt.to(AppEventsConstants.EVENT_NAME_COMPLETED_TUTORIAL, ConversionsAPIEventName.COMPLETED_TUTORIAL));
standardEventTransformations = mapOf3;
}
public static final class SectionCustomEventFieldMapping {
private ConversionsAPICustomEventField field;
private ConversionsAPISection section;
public static /* synthetic */ SectionCustomEventFieldMapping copy$default(SectionCustomEventFieldMapping sectionCustomEventFieldMapping, ConversionsAPISection conversionsAPISection, ConversionsAPICustomEventField conversionsAPICustomEventField, int i, Object obj) {
if ((i & 1) != 0) {
conversionsAPISection = sectionCustomEventFieldMapping.section;
}
if ((i & 2) != 0) {
conversionsAPICustomEventField = sectionCustomEventFieldMapping.field;
}
return sectionCustomEventFieldMapping.copy(conversionsAPISection, conversionsAPICustomEventField);
}
public final ConversionsAPISection component1() {
return this.section;
}
public final ConversionsAPICustomEventField component2() {
return this.field;
}
public final SectionCustomEventFieldMapping copy(ConversionsAPISection conversionsAPISection, ConversionsAPICustomEventField field) {
Intrinsics.checkNotNullParameter(field, "field");
return new SectionCustomEventFieldMapping(conversionsAPISection, field);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof SectionCustomEventFieldMapping)) {
return false;
}
SectionCustomEventFieldMapping sectionCustomEventFieldMapping = (SectionCustomEventFieldMapping) obj;
return this.section == sectionCustomEventFieldMapping.section && this.field == sectionCustomEventFieldMapping.field;
}
public final ConversionsAPICustomEventField getField() {
return this.field;
}
public final ConversionsAPISection getSection() {
return this.section;
}
public int hashCode() {
ConversionsAPISection conversionsAPISection = this.section;
return ((conversionsAPISection == null ? 0 : conversionsAPISection.hashCode()) * 31) + this.field.hashCode();
}
public final void setField(ConversionsAPICustomEventField conversionsAPICustomEventField) {
Intrinsics.checkNotNullParameter(conversionsAPICustomEventField, "<set-?>");
this.field = conversionsAPICustomEventField;
}
public final void setSection(ConversionsAPISection conversionsAPISection) {
this.section = conversionsAPISection;
}
public String toString() {
return "SectionCustomEventFieldMapping(section=" + this.section + ", field=" + this.field + ')';
}
public SectionCustomEventFieldMapping(ConversionsAPISection conversionsAPISection, ConversionsAPICustomEventField field) {
Intrinsics.checkNotNullParameter(field, "field");
this.section = conversionsAPISection;
this.field = field;
}
}
public enum DataProcessingParameterName {
OPTIONS(FacebookSdk.DATA_PROCESSION_OPTIONS),
COUNTRY(FacebookSdk.DATA_PROCESSION_OPTIONS_COUNTRY),
STATE(FacebookSdk.DATA_PROCESSION_OPTIONS_STATE);
public static final Companion Companion = new Companion(null);
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
DataProcessingParameterName(String str) {
this.rawValue = str;
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final DataProcessingParameterName invoke(String rawValue) {
Intrinsics.checkNotNullParameter(rawValue, "rawValue");
for (DataProcessingParameterName dataProcessingParameterName : DataProcessingParameterName.valuesCustom()) {
if (Intrinsics.areEqual(dataProcessingParameterName.getRawValue(), rawValue)) {
return dataProcessingParameterName;
}
}
return null;
}
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static DataProcessingParameterName[] valuesCustom() {
DataProcessingParameterName[] valuesCustom = values();
return (DataProcessingParameterName[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}
public enum ValueTransformationType {
ARRAY,
BOOL,
INT;
public static final Companion Companion = new Companion(null);
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final ValueTransformationType invoke(String rawValue) {
Intrinsics.checkNotNullParameter(rawValue, "rawValue");
if (!Intrinsics.areEqual(rawValue, AppEventUserAndAppDataField.EXT_INFO.getRawValue()) && !Intrinsics.areEqual(rawValue, AppEventUserAndAppDataField.URL_SCHEMES.getRawValue()) && !Intrinsics.areEqual(rawValue, CustomEventField.CONTENT_IDS.getRawValue()) && !Intrinsics.areEqual(rawValue, CustomEventField.CONTENTS.getRawValue()) && !Intrinsics.areEqual(rawValue, DataProcessingParameterName.OPTIONS.getRawValue())) {
if (!Intrinsics.areEqual(rawValue, AppEventUserAndAppDataField.ADV_TE.getRawValue()) && !Intrinsics.areEqual(rawValue, AppEventUserAndAppDataField.APP_TE.getRawValue())) {
if (Intrinsics.areEqual(rawValue, CustomEventField.EVENT_TIME.getRawValue())) {
return ValueTransformationType.INT;
}
return null;
}
return ValueTransformationType.BOOL;
}
return ValueTransformationType.ARRAY;
}
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static ValueTransformationType[] valuesCustom() {
ValueTransformationType[] valuesCustom = values();
return (ValueTransformationType[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r1v4, types: [java.lang.String] */
/* JADX WARN: Type inference failed for: r1v7, types: [java.util.List] */
/* JADX WARN: Type inference failed for: r1v8, types: [java.lang.Object] */
/* JADX WARN: Type inference failed for: r1v9, types: [java.util.Map] */
public static final Object transformValue$facebook_core_release(String field, Object value) {
Integer intOrNull;
Integer intOrNull2;
Intrinsics.checkNotNullParameter(field, "field");
Intrinsics.checkNotNullParameter(value, "value");
ValueTransformationType invoke = ValueTransformationType.Companion.invoke(field);
String str = value instanceof String ? (String) value : null;
if (invoke == null || str == null) {
return value;
}
int i = WhenMappings.$EnumSwitchMapping$0[invoke.ordinal()];
if (i != 1) {
if (i != 2) {
if (i != 3) {
throw new NoWhenBranchMatchedException();
}
intOrNull2 = StringsKt__StringNumberConversionsKt.toIntOrNull(value.toString());
return intOrNull2;
}
intOrNull = StringsKt__StringNumberConversionsKt.toIntOrNull(str);
if (intOrNull != null) {
return Boolean.valueOf(intOrNull.intValue() != 0);
}
return null;
}
try {
Utility utility = Utility.INSTANCE;
List<String> convertJSONArrayToList = Utility.convertJSONArrayToList(new JSONArray(str));
ArrayList arrayList = new ArrayList();
Iterator it = convertJSONArrayToList.iterator();
while (it.hasNext()) {
?? r1 = (String) it.next();
try {
try {
Utility utility2 = Utility.INSTANCE;
r1 = Utility.convertJSONObjectToHashMap(new JSONObject((String) r1));
} catch (JSONException unused) {
Utility utility3 = Utility.INSTANCE;
r1 = Utility.convertJSONArrayToList(new JSONArray((String) r1));
}
} catch (JSONException unused2) {
}
arrayList.add(r1);
}
return arrayList;
} catch (JSONException e) {
Logger.Companion.log(LoggingBehavior.APP_EVENTS, TAG, "\n transformEvents JSONException: \n%s\n%s", value, e);
return Unit.INSTANCE;
}
}
public static final ArrayList<Map<String, Object>> transformEvents$facebook_core_release(String appEvents) {
String stackTraceToString;
Intrinsics.checkNotNullParameter(appEvents, "appEvents");
ArrayList<Map> arrayList = new ArrayList();
try {
Utility utility = Utility.INSTANCE;
for (String str : Utility.convertJSONArrayToList(new JSONArray(appEvents))) {
Utility utility2 = Utility.INSTANCE;
arrayList.add(Utility.convertJSONObjectToHashMap(new JSONObject(str)));
}
if (arrayList.isEmpty()) {
return null;
}
ArrayList<Map<String, Object>> arrayList2 = new ArrayList<>();
for (Map map : arrayList) {
LinkedHashMap linkedHashMap = new LinkedHashMap();
LinkedHashMap linkedHashMap2 = new LinkedHashMap();
for (String str2 : map.keySet()) {
CustomEventField invoke = CustomEventField.Companion.invoke(str2);
SectionCustomEventFieldMapping sectionCustomEventFieldMapping = customEventTransformations.get(invoke);
if (invoke != null && sectionCustomEventFieldMapping != null) {
ConversionsAPISection section = sectionCustomEventFieldMapping.getSection();
if (section != null) {
if (section == ConversionsAPISection.CUSTOM_DATA) {
String rawValue = sectionCustomEventFieldMapping.getField().getRawValue();
Object obj = map.get(str2);
if (obj == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Any");
}
Object transformValue$facebook_core_release = transformValue$facebook_core_release(str2, obj);
if (transformValue$facebook_core_release != null) {
linkedHashMap.put(rawValue, transformValue$facebook_core_release);
} else {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Any");
}
} else {
continue;
}
} else {
try {
String rawValue2 = sectionCustomEventFieldMapping.getField().getRawValue();
if (invoke == CustomEventField.EVENT_NAME && ((String) map.get(str2)) != null) {
AppEventsConversionsAPITransformer appEventsConversionsAPITransformer = INSTANCE;
Object obj2 = map.get(str2);
if (obj2 == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.String");
}
linkedHashMap2.put(rawValue2, appEventsConversionsAPITransformer.transformEventName((String) obj2));
} else if (invoke == CustomEventField.EVENT_TIME && ((Integer) map.get(str2)) != null) {
Object obj3 = map.get(str2);
if (obj3 == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Any");
}
Object transformValue$facebook_core_release2 = transformValue$facebook_core_release(str2, obj3);
if (transformValue$facebook_core_release2 != null) {
linkedHashMap2.put(rawValue2, transformValue$facebook_core_release2);
} else {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Any");
}
}
} catch (ClassCastException e) {
Logger.Companion companion = Logger.Companion;
LoggingBehavior loggingBehavior = LoggingBehavior.APP_EVENTS;
stackTraceToString = ExceptionsKt__ExceptionsKt.stackTraceToString(e);
companion.log(loggingBehavior, TAG, "\n transformEvents ClassCastException: \n %s ", stackTraceToString);
}
}
}
}
if (!linkedHashMap.isEmpty()) {
linkedHashMap2.put(ConversionsAPISection.CUSTOM_DATA.getRawValue(), linkedHashMap);
}
arrayList2.add(linkedHashMap2);
}
return arrayList2;
} catch (JSONException e2) {
Logger.Companion.log(LoggingBehavior.APP_EVENTS, TAG, "\n transformEvents JSONException: \n%s\n%s", appEvents, e2);
return null;
}
}
private final void transformAndUpdateAppData(Map<String, Object> map, AppEventUserAndAppDataField appEventUserAndAppDataField, Object obj) {
SectionFieldMapping sectionFieldMapping = topLevelTransformations.get(appEventUserAndAppDataField);
ConversionsAPIUserAndAppDataField field = sectionFieldMapping == null ? null : sectionFieldMapping.getField();
if (field == null) {
return;
}
map.put(field.getRawValue(), obj);
}
private final void transformAndUpdateUserData(Map<String, Object> map, AppEventUserAndAppDataField appEventUserAndAppDataField, Object obj) {
if (appEventUserAndAppDataField == AppEventUserAndAppDataField.USER_DATA) {
try {
Utility utility = Utility.INSTANCE;
map.putAll(Utility.convertJSONObjectToHashMap(new JSONObject((String) obj)));
return;
} catch (JSONException e) {
Logger.Companion.log(LoggingBehavior.APP_EVENTS, TAG, "\n transformEvents JSONException: \n%s\n%s", obj, e);
return;
}
}
SectionFieldMapping sectionFieldMapping = topLevelTransformations.get(appEventUserAndAppDataField);
ConversionsAPIUserAndAppDataField field = sectionFieldMapping == null ? null : sectionFieldMapping.getField();
if (field == null) {
return;
}
map.put(field.getRawValue(), obj);
}
public final void transformAndUpdateAppAndUserData$facebook_core_release(Map<String, Object> userData, Map<String, Object> appData, AppEventUserAndAppDataField field, Object value) {
Intrinsics.checkNotNullParameter(userData, "userData");
Intrinsics.checkNotNullParameter(appData, "appData");
Intrinsics.checkNotNullParameter(field, "field");
Intrinsics.checkNotNullParameter(value, "value");
SectionFieldMapping sectionFieldMapping = topLevelTransformations.get(field);
if (sectionFieldMapping == null) {
return;
}
int i = WhenMappings.$EnumSwitchMapping$1[sectionFieldMapping.getSection().ordinal()];
if (i == 1) {
transformAndUpdateAppData(appData, field, value);
} else {
if (i != 2) {
return;
}
transformAndUpdateUserData(userData, field, value);
}
}
private final String transformEventName(String str) {
Map<String, ConversionsAPIEventName> map = standardEventTransformations;
if (!map.containsKey(str)) {
return str;
}
ConversionsAPIEventName conversionsAPIEventName = map.get(str);
return conversionsAPIEventName == null ? "" : conversionsAPIEventName.getRawValue();
}
public final Map<String, Object> combineCommonFields$facebook_core_release(Map<String, ? extends Object> userData, Map<String, ? extends Object> appData, Map<String, ? extends Object> restOfData) {
Intrinsics.checkNotNullParameter(userData, "userData");
Intrinsics.checkNotNullParameter(appData, "appData");
Intrinsics.checkNotNullParameter(restOfData, "restOfData");
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.put(OtherEventConstants.ACTION_SOURCE.getRawValue(), OtherEventConstants.APP.getRawValue());
linkedHashMap.put(ConversionsAPISection.USER_DATA.getRawValue(), userData);
linkedHashMap.put(ConversionsAPISection.APP_DATA.getRawValue(), appData);
linkedHashMap.putAll(restOfData);
return linkedHashMap;
}
private final List<Map<String, Object>> combineAllTransformedDataForMobileAppInstall(Map<String, ? extends Object> map, Object obj) {
if (obj == null) {
return null;
}
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.putAll(map);
linkedHashMap.put(ConversionsAPICustomEventField.EVENT_NAME.getRawValue(), OtherEventConstants.MOBILE_APP_INSTALL.getRawValue());
linkedHashMap.put(ConversionsAPICustomEventField.EVENT_TIME.getRawValue(), obj);
return CollectionsKt__CollectionsJVMKt.listOf(linkedHashMap);
}
private final List<Map<String, Object>> combineAllTransformedDataForCustom(Map<String, ? extends Object> map, List<? extends Map<String, ? extends Object>> list) {
if (list.isEmpty()) {
return null;
}
ArrayList arrayList = new ArrayList();
Iterator<T> it = list.iterator();
while (it.hasNext()) {
Map map2 = (Map) it.next();
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.putAll(map);
linkedHashMap.putAll(map2);
arrayList.add(linkedHashMap);
}
return arrayList;
}
public final List<Map<String, Object>> combineAllTransformedData$facebook_core_release(AppEventType eventType, Map<String, Object> userData, Map<String, Object> appData, Map<String, Object> restOfData, List<? extends Map<String, ? extends Object>> customEvents, Object obj) {
Intrinsics.checkNotNullParameter(eventType, "eventType");
Intrinsics.checkNotNullParameter(userData, "userData");
Intrinsics.checkNotNullParameter(appData, "appData");
Intrinsics.checkNotNullParameter(restOfData, "restOfData");
Intrinsics.checkNotNullParameter(customEvents, "customEvents");
Map<String, Object> combineCommonFields$facebook_core_release = combineCommonFields$facebook_core_release(userData, appData, restOfData);
int i = WhenMappings.$EnumSwitchMapping$2[eventType.ordinal()];
if (i == 1) {
return combineAllTransformedDataForMobileAppInstall(combineCommonFields$facebook_core_release, obj);
}
if (i != 2) {
return null;
}
return combineAllTransformedDataForCustom(combineCommonFields$facebook_core_release, customEvents);
}
private final AppEventType splitAppEventParameters(Map<String, ? extends Object> map, Map<String, Object> map2, Map<String, Object> map3, ArrayList<Map<String, Object>> arrayList, Map<String, Object> map4) {
Object obj = map.get(OtherEventConstants.EVENT.getRawValue());
AppEventType.Companion companion = AppEventType.Companion;
if (obj != null) {
AppEventType invoke = companion.invoke((String) obj);
if (invoke == AppEventType.OTHER) {
return invoke;
}
for (Map.Entry<String, ? extends Object> entry : map.entrySet()) {
String key = entry.getKey();
Object value = entry.getValue();
AppEventUserAndAppDataField invoke2 = AppEventUserAndAppDataField.Companion.invoke(key);
if (invoke2 != null) {
INSTANCE.transformAndUpdateAppAndUserData$facebook_core_release(map2, map3, invoke2, value);
} else {
boolean areEqual = Intrinsics.areEqual(key, ConversionsAPISection.CUSTOM_EVENTS.getRawValue());
boolean z = value instanceof String;
if (invoke == AppEventType.CUSTOM && areEqual && z) {
ArrayList<Map<String, Object>> transformEvents$facebook_core_release = transformEvents$facebook_core_release((String) value);
if (transformEvents$facebook_core_release != null) {
arrayList.addAll(transformEvents$facebook_core_release);
}
} else if (DataProcessingParameterName.Companion.invoke(key) != null) {
map4.put(key, value);
}
}
}
return invoke;
}
throw new NullPointerException("null cannot be cast to non-null type kotlin.String");
}
public final List<Map<String, Object>> conversionsAPICompatibleEvent$facebook_core_release(Map<String, ? extends Object> parameters) {
Intrinsics.checkNotNullParameter(parameters, "parameters");
LinkedHashMap linkedHashMap = new LinkedHashMap();
LinkedHashMap linkedHashMap2 = new LinkedHashMap();
ArrayList<Map<String, Object>> arrayList = new ArrayList<>();
LinkedHashMap linkedHashMap3 = new LinkedHashMap();
AppEventType splitAppEventParameters = splitAppEventParameters(parameters, linkedHashMap, linkedHashMap2, arrayList, linkedHashMap3);
if (splitAppEventParameters == AppEventType.OTHER) {
return null;
}
return combineAllTransformedData$facebook_core_release(splitAppEventParameters, linkedHashMap, linkedHashMap2, linkedHashMap3, arrayList, parameters.get(OtherEventConstants.INSTALL_EVENT_TIME.getRawValue()));
}
}

View File

@@ -0,0 +1,54 @@
package com.facebook.appevents.cloudbridge;
import com.facebook.internal.Utility;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import kotlin.Unit;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
/* loaded from: classes2.dex */
public final class AppEventsConversionsAPITransformerWebRequests$transformGraphRequestAndSendToCAPIGEndPoint$1$1 extends Lambda implements Function2 {
final /* synthetic */ List<Map<String, Object>> $processedEvents;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
public AppEventsConversionsAPITransformerWebRequests$transformGraphRequestAndSendToCAPIGEndPoint$1$1(List<? extends Map<String, ? extends Object>> list) {
super(2);
this.$processedEvents = list;
}
@Override // kotlin.jvm.functions.Function2
public /* bridge */ /* synthetic */ Object invoke(Object obj, Object obj2) {
invoke((String) obj, (Integer) obj2);
return Unit.INSTANCE;
}
public final void invoke(String str, final Integer num) {
Utility utility = Utility.INSTANCE;
final List<Map<String, Object>> list = this.$processedEvents;
Utility.runOnNonUiThread(new Runnable() { // from class: com.facebook.appevents.cloudbridge.AppEventsConversionsAPITransformerWebRequests$transformGraphRequestAndSendToCAPIGEndPoint$1$1$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
AppEventsConversionsAPITransformerWebRequests$transformGraphRequestAndSendToCAPIGEndPoint$1$1.m484invoke$lambda0(num, list);
}
});
}
/* JADX INFO: Access modifiers changed from: private */
/* renamed from: invoke$lambda-0, reason: not valid java name */
public static final void m484invoke$lambda0(Integer num, List processedEvents) {
HashSet hashSet;
boolean contains;
Intrinsics.checkNotNullParameter(processedEvents, "$processedEvents");
hashSet = AppEventsConversionsAPITransformerWebRequests.ACCEPTABLE_HTTP_RESPONSE;
contains = CollectionsKt___CollectionsKt.contains(hashSet, num);
if (contains) {
return;
}
AppEventsConversionsAPITransformerWebRequests.INSTANCE.handleError$facebook_core_release(num, processedEvents, 5);
}
}

View File

@@ -0,0 +1,321 @@
package com.facebook.appevents.cloudbridge;
import com.facebook.GraphRequest;
import com.facebook.LoggingBehavior;
import com.facebook.internal.Logger;
import com.facebook.internal.Utility;
import com.ironsource.nb;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.TuplesKt;
import kotlin.UninitializedPropertyAccessException;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.collections.MapsKt__MapsJVMKt;
import kotlin.collections.MapsKt__MapsKt;
import kotlin.collections.SetsKt__SetsKt;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.TypeIntrinsics;
import kotlin.ranges.IntRange;
import kotlin.text.StringsKt__StringsKt;
import org.apache.http.HttpStatus;
import org.json.JSONArray;
import org.json.JSONObject;
/* loaded from: classes2.dex */
public final class AppEventsConversionsAPITransformerWebRequests {
private static final HashSet<Integer> ACCEPTABLE_HTTP_RESPONSE;
public static final AppEventsConversionsAPITransformerWebRequests INSTANCE = new AppEventsConversionsAPITransformerWebRequests();
public static final int MAX_CACHED_TRANSFORMED_EVENTS = 1000;
private static final int MAX_PROCESSED_TRANSFORMED_EVENTS = 10;
public static final int MAX_RETRY_COUNT = 5;
private static final HashSet<Integer> RETRY_EVENTS_HTTP_RESPONSE;
private static final String TAG = "CAPITransformerWebRequests";
private static final int TIMEOUT_INTERVAL = 60000;
public static CloudBridgeCredentials credentials;
private static int currentRetryCount;
public static List<Map<String, Object>> transformedEvents;
public final int getCurrentRetryCount$facebook_core_release() {
return currentRetryCount;
}
public final void setCredentials$facebook_core_release(CloudBridgeCredentials cloudBridgeCredentials) {
Intrinsics.checkNotNullParameter(cloudBridgeCredentials, "<set-?>");
credentials = cloudBridgeCredentials;
}
public final void setCurrentRetryCount$facebook_core_release(int i) {
currentRetryCount = i;
}
public final void setTransformedEvents$facebook_core_release(List<Map<String, Object>> list) {
Intrinsics.checkNotNullParameter(list, "<set-?>");
transformedEvents = list;
}
private AppEventsConversionsAPITransformerWebRequests() {
}
public static final class CloudBridgeCredentials {
private final String accessKey;
private final String cloudBridgeURL;
private final String datasetID;
public static /* synthetic */ CloudBridgeCredentials copy$default(CloudBridgeCredentials cloudBridgeCredentials, String str, String str2, String str3, int i, Object obj) {
if ((i & 1) != 0) {
str = cloudBridgeCredentials.datasetID;
}
if ((i & 2) != 0) {
str2 = cloudBridgeCredentials.cloudBridgeURL;
}
if ((i & 4) != 0) {
str3 = cloudBridgeCredentials.accessKey;
}
return cloudBridgeCredentials.copy(str, str2, str3);
}
public final String component1() {
return this.datasetID;
}
public final String component2() {
return this.cloudBridgeURL;
}
public final String component3() {
return this.accessKey;
}
public final CloudBridgeCredentials copy(String datasetID, String cloudBridgeURL, String accessKey) {
Intrinsics.checkNotNullParameter(datasetID, "datasetID");
Intrinsics.checkNotNullParameter(cloudBridgeURL, "cloudBridgeURL");
Intrinsics.checkNotNullParameter(accessKey, "accessKey");
return new CloudBridgeCredentials(datasetID, cloudBridgeURL, accessKey);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof CloudBridgeCredentials)) {
return false;
}
CloudBridgeCredentials cloudBridgeCredentials = (CloudBridgeCredentials) obj;
return Intrinsics.areEqual(this.datasetID, cloudBridgeCredentials.datasetID) && Intrinsics.areEqual(this.cloudBridgeURL, cloudBridgeCredentials.cloudBridgeURL) && Intrinsics.areEqual(this.accessKey, cloudBridgeCredentials.accessKey);
}
public final String getAccessKey() {
return this.accessKey;
}
public final String getCloudBridgeURL() {
return this.cloudBridgeURL;
}
public final String getDatasetID() {
return this.datasetID;
}
public int hashCode() {
return (((this.datasetID.hashCode() * 31) + this.cloudBridgeURL.hashCode()) * 31) + this.accessKey.hashCode();
}
public String toString() {
return "CloudBridgeCredentials(datasetID=" + this.datasetID + ", cloudBridgeURL=" + this.cloudBridgeURL + ", accessKey=" + this.accessKey + ')';
}
public CloudBridgeCredentials(String datasetID, String cloudBridgeURL, String accessKey) {
Intrinsics.checkNotNullParameter(datasetID, "datasetID");
Intrinsics.checkNotNullParameter(cloudBridgeURL, "cloudBridgeURL");
Intrinsics.checkNotNullParameter(accessKey, "accessKey");
this.datasetID = datasetID;
this.cloudBridgeURL = cloudBridgeURL;
this.accessKey = accessKey;
}
}
static {
HashSet<Integer> hashSetOf;
HashSet<Integer> hashSetOf2;
hashSetOf = SetsKt__SetsKt.hashSetOf(200, 202);
ACCEPTABLE_HTTP_RESPONSE = hashSetOf;
hashSetOf2 = SetsKt__SetsKt.hashSetOf(Integer.valueOf(HttpStatus.SC_SERVICE_UNAVAILABLE), Integer.valueOf(HttpStatus.SC_GATEWAY_TIMEOUT), 429);
RETRY_EVENTS_HTTP_RESPONSE = hashSetOf2;
}
public final CloudBridgeCredentials getCredentials$facebook_core_release() {
CloudBridgeCredentials cloudBridgeCredentials = credentials;
if (cloudBridgeCredentials != null) {
return cloudBridgeCredentials;
}
Intrinsics.throwUninitializedPropertyAccessException("credentials");
throw null;
}
public final List<Map<String, Object>> getTransformedEvents$facebook_core_release() {
List<Map<String, Object>> list = transformedEvents;
if (list != null) {
return list;
}
Intrinsics.throwUninitializedPropertyAccessException("transformedEvents");
throw null;
}
public static final void configure(String datasetID, String url, String accessKey) {
Intrinsics.checkNotNullParameter(datasetID, "datasetID");
Intrinsics.checkNotNullParameter(url, "url");
Intrinsics.checkNotNullParameter(accessKey, "accessKey");
Logger.Companion.log(LoggingBehavior.APP_EVENTS, TAG, " \n\nCloudbridge Configured: \n================\ndatasetID: %s\nurl: %s\naccessKey: %s\n\n", datasetID, url, accessKey);
AppEventsConversionsAPITransformerWebRequests appEventsConversionsAPITransformerWebRequests = INSTANCE;
appEventsConversionsAPITransformerWebRequests.setCredentials$facebook_core_release(new CloudBridgeCredentials(datasetID, url, accessKey));
appEventsConversionsAPITransformerWebRequests.setTransformedEvents$facebook_core_release(new ArrayList());
}
public static final String getCredentials() {
try {
CloudBridgeCredentials credentials$facebook_core_release = INSTANCE.getCredentials$facebook_core_release();
if (credentials$facebook_core_release == null) {
return null;
}
return credentials$facebook_core_release.toString();
} catch (UninitializedPropertyAccessException unused) {
return null;
}
}
public static final void transformGraphRequestAndSendToCAPIGEndPoint(final GraphRequest request) {
Intrinsics.checkNotNullParameter(request, "request");
Utility utility = Utility.INSTANCE;
Utility.runOnNonUiThread(new Runnable() { // from class: com.facebook.appevents.cloudbridge.AppEventsConversionsAPITransformerWebRequests$$ExternalSyntheticLambda0
@Override // java.lang.Runnable
public final void run() {
AppEventsConversionsAPITransformerWebRequests.m483transformGraphRequestAndSendToCAPIGEndPoint$lambda0(GraphRequest.this);
}
});
}
/* JADX INFO: Access modifiers changed from: private */
/* renamed from: transformGraphRequestAndSendToCAPIGEndPoint$lambda-0, reason: not valid java name */
public static final void m483transformGraphRequestAndSendToCAPIGEndPoint$lambda0(GraphRequest request) {
List slice;
Map<String, String> mapOf;
Intrinsics.checkNotNullParameter(request, "$request");
String graphPath = request.getGraphPath();
List split$default = graphPath == null ? null : StringsKt__StringsKt.split$default((CharSequence) graphPath, new String[]{"/"}, false, 0, 6, (Object) null);
if (split$default == null || split$default.size() != 2) {
Logger.Companion.log(LoggingBehavior.DEVELOPER_ERRORS, TAG, "\n GraphPathComponents Error when logging: \n%s", request);
return;
}
try {
AppEventsConversionsAPITransformerWebRequests appEventsConversionsAPITransformerWebRequests = INSTANCE;
String str = appEventsConversionsAPITransformerWebRequests.getCredentials$facebook_core_release().getCloudBridgeURL() + "/capi/" + appEventsConversionsAPITransformerWebRequests.getCredentials$facebook_core_release().getDatasetID() + "/events";
List<Map<String, Object>> transformAppEventRequestForCAPIG = appEventsConversionsAPITransformerWebRequests.transformAppEventRequestForCAPIG(request);
if (transformAppEventRequestForCAPIG == null) {
return;
}
appEventsConversionsAPITransformerWebRequests.appendEvents$facebook_core_release(transformAppEventRequestForCAPIG);
int min = Math.min(appEventsConversionsAPITransformerWebRequests.getTransformedEvents$facebook_core_release().size(), 10);
slice = CollectionsKt___CollectionsKt.slice(appEventsConversionsAPITransformerWebRequests.getTransformedEvents$facebook_core_release(), new IntRange(0, min - 1));
appEventsConversionsAPITransformerWebRequests.getTransformedEvents$facebook_core_release().subList(0, min).clear();
JSONArray jSONArray = new JSONArray((Collection) slice);
LinkedHashMap linkedHashMap = new LinkedHashMap();
linkedHashMap.put("data", jSONArray);
linkedHashMap.put("accessKey", appEventsConversionsAPITransformerWebRequests.getCredentials$facebook_core_release().getAccessKey());
JSONObject jSONObject = new JSONObject(linkedHashMap);
Logger.Companion companion = Logger.Companion;
LoggingBehavior loggingBehavior = LoggingBehavior.APP_EVENTS;
String jSONObject2 = jSONObject.toString(2);
Intrinsics.checkNotNullExpressionValue(jSONObject2, "jsonBodyStr.toString(2)");
companion.log(loggingBehavior, TAG, "\nTransformed_CAPI_JSON:\nURL: %s\nFROM=========\n%s\n>>>>>>TO>>>>>>\n%s\n=============\n", str, request, jSONObject2);
String jSONObject3 = jSONObject.toString();
mapOf = MapsKt__MapsJVMKt.mapOf(TuplesKt.to("Content-Type", nb.L));
appEventsConversionsAPITransformerWebRequests.makeHttpRequest$facebook_core_release(str, "POST", jSONObject3, mapOf, 60000, new AppEventsConversionsAPITransformerWebRequests$transformGraphRequestAndSendToCAPIGEndPoint$1$1(slice));
} catch (UninitializedPropertyAccessException e) {
Logger.Companion.log(LoggingBehavior.DEVELOPER_ERRORS, TAG, "\n Credentials not initialized Error when logging: \n%s", e);
}
}
private final List<Map<String, Object>> transformAppEventRequestForCAPIG(GraphRequest graphRequest) {
Map<String, ? extends Object> mutableMap;
JSONObject graphObject = graphRequest.getGraphObject();
if (graphObject == null) {
return null;
}
mutableMap = MapsKt__MapsKt.toMutableMap(Utility.convertJSONObjectToHashMap(graphObject));
Object tag = graphRequest.getTag();
if (tag == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.Any");
}
mutableMap.put("custom_events", tag);
StringBuilder sb = new StringBuilder();
for (String str : mutableMap.keySet()) {
sb.append(str);
sb.append(" : ");
sb.append(mutableMap.get(str));
sb.append(System.getProperty("line.separator"));
}
Logger.Companion.log(LoggingBehavior.APP_EVENTS, TAG, "\nGraph Request data: \n\n%s \n\n", sb);
return AppEventsConversionsAPITransformer.INSTANCE.conversionsAPICompatibleEvent$facebook_core_release(mutableMap);
}
public static /* synthetic */ void handleError$facebook_core_release$default(AppEventsConversionsAPITransformerWebRequests appEventsConversionsAPITransformerWebRequests, Integer num, List list, int i, int i2, Object obj) {
if ((i2 & 4) != 0) {
i = 5;
}
appEventsConversionsAPITransformerWebRequests.handleError$facebook_core_release(num, list, i);
}
public final void handleError$facebook_core_release(Integer num, List<? extends Map<String, ? extends Object>> processedEvents, int i) {
boolean contains;
Intrinsics.checkNotNullParameter(processedEvents, "processedEvents");
contains = CollectionsKt___CollectionsKt.contains(RETRY_EVENTS_HTTP_RESPONSE, num);
if (contains) {
if (currentRetryCount >= i) {
getTransformedEvents$facebook_core_release().clear();
currentRetryCount = 0;
} else {
getTransformedEvents$facebook_core_release().addAll(0, processedEvents);
currentRetryCount++;
}
}
}
public final void appendEvents$facebook_core_release(List<? extends Map<String, ? extends Object>> list) {
List drop;
if (list != null) {
getTransformedEvents$facebook_core_release().addAll(list);
}
int max = Math.max(0, getTransformedEvents$facebook_core_release().size() - 1000);
if (max > 0) {
drop = CollectionsKt___CollectionsKt.drop(getTransformedEvents$facebook_core_release(), max);
setTransformedEvents$facebook_core_release(TypeIntrinsics.asMutableList(drop));
}
}
public static /* synthetic */ void makeHttpRequest$facebook_core_release$default(AppEventsConversionsAPITransformerWebRequests appEventsConversionsAPITransformerWebRequests, String str, String str2, String str3, Map map, int i, Function2 function2, int i2, Object obj) {
if ((i2 & 16) != 0) {
i = 60000;
}
appEventsConversionsAPITransformerWebRequests.makeHttpRequest$facebook_core_release(str, str2, str3, map, i, function2);
}
/* JADX WARN: Removed duplicated region for block: B:16:0x00a7 A[Catch: IOException -> 0x0049, UnknownHostException -> 0x004c, TRY_LEAVE, TryCatch #4 {UnknownHostException -> 0x004c, IOException -> 0x0049, blocks: (B:3:0x000f, B:5:0x0020, B:8:0x004f, B:10:0x005d, B:14:0x006d, B:16:0x00a7, B:23:0x00c3, B:31:0x00c9, B:32:0x00cc, B:34:0x00cd, B:36:0x00f0, B:40:0x0028, B:43:0x002f, B:44:0x0033, B:46:0x0039, B:48:0x00fc, B:49:0x0103, B:28:0x00c7, B:18:0x00b5, B:20:0x00bb, B:22:0x00c1), top: B:2:0x000f, inners: #2, #3 }] */
/* JADX WARN: Removed duplicated region for block: B:36:0x00f0 A[Catch: IOException -> 0x0049, UnknownHostException -> 0x004c, TryCatch #4 {UnknownHostException -> 0x004c, IOException -> 0x0049, blocks: (B:3:0x000f, B:5:0x0020, B:8:0x004f, B:10:0x005d, B:14:0x006d, B:16:0x00a7, B:23:0x00c3, B:31:0x00c9, B:32:0x00cc, B:34:0x00cd, B:36:0x00f0, B:40:0x0028, B:43:0x002f, B:44:0x0033, B:46:0x0039, B:48:0x00fc, B:49:0x0103, B:28:0x00c7, B:18:0x00b5, B:20:0x00bb, B:22:0x00c1), top: B:2:0x000f, inners: #2, #3 }] */
/* JADX WARN: Removed duplicated region for block: B:38:? A[RETURN, SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final void makeHttpRequest$facebook_core_release(java.lang.String r6, java.lang.String r7, java.lang.String r8, java.util.Map<java.lang.String, java.lang.String> r9, int r10, kotlin.jvm.functions.Function2 r11) {
/*
Method dump skipped, instructions count: 307
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: com.facebook.appevents.cloudbridge.AppEventsConversionsAPITransformerWebRequests.makeHttpRequest$facebook_core_release(java.lang.String, java.lang.String, java.lang.String, java.util.Map, int, kotlin.jvm.functions.Function2):void");
}
}

View File

@@ -0,0 +1,42 @@
package com.facebook.appevents.cloudbridge;
import com.applovin.sdk.AppLovinEventTypes;
import com.tapjoy.TJAdUnitConstants;
import java.util.Arrays;
/* loaded from: classes2.dex */
public enum ConversionsAPICustomEventField {
VALUE_TO_SUM("value"),
EVENT_TIME("event_time"),
EVENT_NAME(TJAdUnitConstants.PARAM_PLACEMENT_NAME),
CONTENT_IDS("content_ids"),
CONTENTS("contents"),
CONTENT_TYPE("content_type"),
DESCRIPTION("description"),
LEVEL(AppLovinEventTypes.USER_COMPLETED_LEVEL),
MAX_RATING_VALUE("max_rating_value"),
NUM_ITEMS("num_items"),
PAYMENT_INFO_AVAILABLE("payment_info_available"),
REGISTRATION_METHOD("registration_method"),
SEARCH_STRING("search_string"),
SUCCESS("success"),
ORDER_ID("order_id"),
AD_TYPE("ad_type"),
CURRENCY("currency");
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
ConversionsAPICustomEventField(String str) {
this.rawValue = str;
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static ConversionsAPICustomEventField[] valuesCustom() {
ConversionsAPICustomEventField[] valuesCustom = values();
return (ConversionsAPICustomEventField[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}

View File

@@ -0,0 +1,37 @@
package com.facebook.appevents.cloudbridge;
import java.util.Arrays;
/* loaded from: classes2.dex */
public enum ConversionsAPIEventName {
UNLOCKED_ACHIEVEMENT("AchievementUnlocked"),
ACTIVATED_APP("ActivateApp"),
ADDED_PAYMENT_INFO("AddPaymentInfo"),
ADDED_TO_CART("AddToCart"),
ADDED_TO_WISHLIST("AddToWishlist"),
COMPLETED_REGISTRATION("CompleteRegistration"),
VIEWED_CONTENT("ViewContent"),
INITIATED_CHECKOUT("InitiateCheckout"),
ACHIEVED_LEVEL("LevelAchieved"),
PURCHASED("Purchase"),
RATED("Rate"),
SEARCHED("Search"),
SPENT_CREDITS("SpentCredits"),
COMPLETED_TUTORIAL("TutorialCompletion");
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
ConversionsAPIEventName(String str) {
this.rawValue = str;
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static ConversionsAPIEventName[] valuesCustom() {
ConversionsAPIEventName[] valuesCustom = values();
return (ConversionsAPIEventName[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}

View File

@@ -0,0 +1,27 @@
package com.facebook.appevents.cloudbridge;
import java.util.Arrays;
/* loaded from: classes2.dex */
public enum ConversionsAPISection {
USER_DATA("user_data"),
APP_DATA("app_data"),
CUSTOM_DATA("custom_data"),
CUSTOM_EVENTS("custom_events");
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
ConversionsAPISection(String str) {
this.rawValue = str;
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static ConversionsAPISection[] valuesCustom() {
ConversionsAPISection[] valuesCustom = values();
return (ConversionsAPISection[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}

View File

@@ -0,0 +1,41 @@
package com.facebook.appevents.cloudbridge;
import com.applovin.sdk.AppLovinEventParameters;
import java.util.Arrays;
/* loaded from: classes2.dex */
public enum ConversionsAPIUserAndAppDataField {
ANON_ID("anon_id"),
FB_LOGIN_ID("fb_login_id"),
MAD_ID("madid"),
PAGE_ID("page_id"),
PAGE_SCOPED_USER_ID("page_scoped_user_id"),
USER_DATA("ud"),
ADV_TE("advertiser_tracking_enabled"),
APP_TE("application_tracking_enabled"),
CONSIDER_VIEWS("consider_views"),
DEVICE_TOKEN("device_token"),
EXT_INFO("extInfo"),
INCLUDE_DWELL_DATA("include_dwell_data"),
INCLUDE_VIDEO_DATA("include_video_data"),
INSTALL_REFERRER("install_referrer"),
INSTALLER_PACKAGE("installer_package"),
RECEIPT_DATA(AppLovinEventParameters.IN_APP_PURCHASE_DATA),
URL_SCHEMES("url_schemes");
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
ConversionsAPIUserAndAppDataField(String str) {
this.rawValue = str;
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static ConversionsAPIUserAndAppDataField[] valuesCustom() {
ConversionsAPIUserAndAppDataField[] valuesCustom = values();
return (ConversionsAPIUserAndAppDataField[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}

View File

@@ -0,0 +1,64 @@
package com.facebook.appevents.cloudbridge;
import com.facebook.appevents.AppEventsConstants;
import com.facebook.appevents.internal.Constants;
import java.util.Arrays;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
/* loaded from: classes2.dex */
public enum CustomEventField {
EVENT_TIME(Constants.LOG_TIME_APP_EVENT_KEY),
EVENT_NAME(Constants.EVENT_NAME_EVENT_KEY),
VALUE_TO_SUM(AppEventsConstants.EVENT_PARAM_VALUE_TO_SUM),
CONTENT_IDS(AppEventsConstants.EVENT_PARAM_CONTENT_ID),
CONTENTS(AppEventsConstants.EVENT_PARAM_CONTENT),
CONTENT_TYPE(AppEventsConstants.EVENT_PARAM_CONTENT_TYPE),
DESCRIPTION(AppEventsConstants.EVENT_PARAM_DESCRIPTION),
LEVEL(AppEventsConstants.EVENT_PARAM_LEVEL),
MAX_RATING_VALUE(AppEventsConstants.EVENT_PARAM_MAX_RATING_VALUE),
NUM_ITEMS(AppEventsConstants.EVENT_PARAM_NUM_ITEMS),
PAYMENT_INFO_AVAILABLE(AppEventsConstants.EVENT_PARAM_PAYMENT_INFO_AVAILABLE),
REGISTRATION_METHOD(AppEventsConstants.EVENT_PARAM_REGISTRATION_METHOD),
SEARCH_STRING(AppEventsConstants.EVENT_PARAM_SEARCH_STRING),
SUCCESS(AppEventsConstants.EVENT_PARAM_SUCCESS),
ORDER_ID(AppEventsConstants.EVENT_PARAM_ORDER_ID),
AD_TYPE("ad_type"),
CURRENCY(AppEventsConstants.EVENT_PARAM_CURRENCY);
public static final Companion Companion = new Companion(null);
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
CustomEventField(String str) {
this.rawValue = str;
}
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
public final CustomEventField invoke(String rawValue) {
Intrinsics.checkNotNullParameter(rawValue, "rawValue");
for (CustomEventField customEventField : CustomEventField.valuesCustom()) {
if (Intrinsics.areEqual(customEventField.getRawValue(), rawValue)) {
return customEventField;
}
}
return null;
}
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static CustomEventField[] valuesCustom() {
CustomEventField[] valuesCustom = values();
return (CustomEventField[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}

View File

@@ -0,0 +1,30 @@
package com.facebook.appevents.cloudbridge;
import androidx.core.app.NotificationCompat;
import com.mbridge.msdk.MBridgeConstans;
import java.util.Arrays;
/* loaded from: classes2.dex */
public enum OtherEventConstants {
EVENT(NotificationCompat.CATEGORY_EVENT),
ACTION_SOURCE("action_source"),
APP(MBridgeConstans.DYNAMIC_VIEW_WX_APP),
MOBILE_APP_INSTALL("MobileAppInstall"),
INSTALL_EVENT_TIME("install_timestamp");
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
OtherEventConstants(String str) {
this.rawValue = str;
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static OtherEventConstants[] valuesCustom() {
OtherEventConstants[] valuesCustom = values();
return (OtherEventConstants[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}

View File

@@ -0,0 +1,28 @@
package com.facebook.appevents.cloudbridge;
import com.ironsource.nb;
import java.util.Arrays;
/* loaded from: classes2.dex */
public enum SettingsAPIFields {
URL(nb.r),
ENABLED("is_enabled"),
DATASETID("dataset_id"),
ACCESSKEY("access_key");
private final String rawValue;
public final String getRawValue() {
return this.rawValue;
}
SettingsAPIFields(String str) {
this.rawValue = str;
}
/* renamed from: values, reason: to resolve conflict with enum method */
public static SettingsAPIFields[] valuesCustom() {
SettingsAPIFields[] valuesCustom = values();
return (SettingsAPIFields[]) Arrays.copyOf(valuesCustom, valuesCustom.length);
}
}