- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
77 lines
2.7 KiB
Java
77 lines
2.7 KiB
Java
package com.facebook.appevents.codeless.internal;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
/* loaded from: classes2.dex */
|
|
public final class ParameterComponent {
|
|
public static final Companion Companion = new Companion(null);
|
|
private static final String PARAMETER_NAME_KEY = "name";
|
|
private static final String PARAMETER_PATH_KEY = "path";
|
|
private static final String PARAMETER_VALUE_KEY = "value";
|
|
private final String name;
|
|
private final List<PathComponent> path;
|
|
private final String pathType;
|
|
private final String value;
|
|
|
|
public final String getName() {
|
|
return this.name;
|
|
}
|
|
|
|
public final List<PathComponent> getPath() {
|
|
return this.path;
|
|
}
|
|
|
|
public final String getPathType() {
|
|
return this.pathType;
|
|
}
|
|
|
|
public final String getValue() {
|
|
return this.value;
|
|
}
|
|
|
|
public ParameterComponent(JSONObject component) {
|
|
int length;
|
|
Intrinsics.checkNotNullParameter(component, "component");
|
|
String string = component.getString("name");
|
|
Intrinsics.checkNotNullExpressionValue(string, "component.getString(PARAMETER_NAME_KEY)");
|
|
this.name = string;
|
|
String optString = component.optString("value");
|
|
Intrinsics.checkNotNullExpressionValue(optString, "component.optString(PARAMETER_VALUE_KEY)");
|
|
this.value = optString;
|
|
String optString2 = component.optString(Constants.EVENT_MAPPING_PATH_TYPE_KEY, Constants.PATH_TYPE_ABSOLUTE);
|
|
Intrinsics.checkNotNullExpressionValue(optString2, "component.optString(Constants.EVENT_MAPPING_PATH_TYPE_KEY, Constants.PATH_TYPE_ABSOLUTE)");
|
|
this.pathType = optString2;
|
|
ArrayList arrayList = new ArrayList();
|
|
JSONArray optJSONArray = component.optJSONArray("path");
|
|
if (optJSONArray != null && (length = optJSONArray.length()) > 0) {
|
|
int i = 0;
|
|
while (true) {
|
|
int i2 = i + 1;
|
|
JSONObject jSONObject = optJSONArray.getJSONObject(i);
|
|
Intrinsics.checkNotNullExpressionValue(jSONObject, "jsonPathArray.getJSONObject(i)");
|
|
arrayList.add(new PathComponent(jSONObject));
|
|
if (i2 >= length) {
|
|
break;
|
|
} else {
|
|
i = i2;
|
|
}
|
|
}
|
|
}
|
|
this.path = arrayList;
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
}
|