- 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
76 lines
3.2 KiB
Java
76 lines
3.2 KiB
Java
package com.ironsource;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Iterator;
|
|
import kotlin.collections.IntIterator;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
import kotlin.jvm.internal.SourceDebugExtension;
|
|
import kotlin.ranges.RangesKt___RangesKt;
|
|
import kotlin.sequences.Sequence;
|
|
import kotlin.sequences.SequencesKt__SequencesKt;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONObject;
|
|
|
|
@SourceDebugExtension({"SMAP\nJsonExtension.kt\nKotlin\n*S Kotlin\n*F\n+ 1 JsonExtension.kt\ncom/ironsource/mediationsdk/utilities/JsonExtensionKt\n+ 2 _Sequences.kt\nkotlin/sequences/SequencesKt___SequencesKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,39:1\n1206#2,2:40\n1726#3,3:42\n*S KotlinDebug\n*F\n+ 1 JsonExtension.kt\ncom/ironsource/mediationsdk/utilities/JsonExtensionKt\n*L\n19#1:40,2\n28#1:42,3\n*E\n"})
|
|
/* loaded from: classes2.dex */
|
|
public final class sj {
|
|
private static final int a = 100;
|
|
|
|
private static final boolean a(Object obj, Object obj2, int i) {
|
|
return ((obj instanceof JSONObject) && (obj2 instanceof JSONObject)) ? a((JSONObject) obj, (JSONObject) obj2, i + 1) : ((obj instanceof JSONArray) && (obj2 instanceof JSONArray)) ? a((JSONArray) obj, (JSONArray) obj2, i + 1) : ((obj instanceof Number) && (obj2 instanceof Number)) ? ((Number) obj).doubleValue() == ((Number) obj2).doubleValue() : Intrinsics.areEqual(obj, obj2);
|
|
}
|
|
|
|
public static final boolean a(JSONArray lhs, JSONArray rhs) {
|
|
Intrinsics.checkNotNullParameter(lhs, "lhs");
|
|
Intrinsics.checkNotNullParameter(rhs, "rhs");
|
|
return a(lhs, rhs, 0);
|
|
}
|
|
|
|
private static final boolean a(JSONArray jSONArray, JSONArray jSONArray2, int i) {
|
|
Iterable until;
|
|
if (jSONArray == jSONArray2) {
|
|
return true;
|
|
}
|
|
if (jSONArray.length() != jSONArray2.length() || i > 100) {
|
|
return false;
|
|
}
|
|
until = RangesKt___RangesKt.until(0, jSONArray.length());
|
|
if ((until instanceof Collection) && ((Collection) until).isEmpty()) {
|
|
return true;
|
|
}
|
|
Iterator it = until.iterator();
|
|
while (it.hasNext()) {
|
|
int nextInt = ((IntIterator) it).nextInt();
|
|
if (!a(jSONArray.get(nextInt), jSONArray2.get(nextInt), i)) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public static final boolean a(JSONObject lhs, JSONObject rhs) {
|
|
Intrinsics.checkNotNullParameter(lhs, "lhs");
|
|
Intrinsics.checkNotNullParameter(rhs, "rhs");
|
|
return a(lhs, rhs, 0);
|
|
}
|
|
|
|
private static final boolean a(JSONObject jSONObject, JSONObject jSONObject2, int i) {
|
|
Sequence<String> asSequence;
|
|
if (jSONObject == jSONObject2) {
|
|
return true;
|
|
}
|
|
if (jSONObject.length() != jSONObject2.length() || i > 100) {
|
|
return false;
|
|
}
|
|
Iterator<String> keys = jSONObject.keys();
|
|
Intrinsics.checkNotNullExpressionValue(keys, "lhs.keys()");
|
|
asSequence = SequencesKt__SequencesKt.asSequence(keys);
|
|
for (String str : asSequence) {
|
|
if (!jSONObject2.has(str) || !a(jSONObject.get(str), jSONObject2.get(str), i)) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
}
|