Files
rr3-apk/decompiled-community/sources/com/ironsource/dk.java
Daniel Elliott c080f0d97f Add Discord community version (64-bit only)
- 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
2026-02-18 15:48:36 -08:00

157 lines
7.3 KiB
Java

package com.ironsource;
import java.util.Arrays;
import java.util.List;
import java.util.ListIterator;
import kotlin.collections.CollectionsKt__CollectionsKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.jvm.internal.StringCompanionObject;
import kotlin.text.Regex;
import kotlin.text.StringsKt__StringsKt;
@SourceDebugExtension({"SMAP\nLevelPlayLogMessage.kt\nKotlin\n*S Kotlin\n*F\n+ 1 LevelPlayLogMessage.kt\ncom/ironsource/mediationsdk/logger/LevelPlayLogMessage\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,107:1\n731#2,9:108\n731#2,9:119\n731#2,9:130\n731#2,9:141\n731#2,9:152\n37#3,2:117\n37#3,2:128\n37#3,2:139\n37#3,2:150\n37#3,2:161\n*S KotlinDebug\n*F\n+ 1 LevelPlayLogMessage.kt\ncom/ironsource/mediationsdk/logger/LevelPlayLogMessage\n*L\n51#1:108,9\n57#1:119,9\n74#1:130,9\n80#1:141,9\n90#1:152,9\n52#1:117,2\n57#1:128,2\n75#1:139,2\n80#1:150,2\n91#1:161,2\n*E\n"})
/* loaded from: classes2.dex */
public final class dk {
private final String a;
private final int b;
public dk(String str, int i) {
this.a = str;
this.b = i;
}
private final String a(StackTraceElement[] stackTraceElementArr, int i) {
List emptyList;
boolean contains$default;
List emptyList2;
if (stackTraceElementArr.length <= i) {
return "";
}
String className = stackTraceElementArr[i].getClassName();
Intrinsics.checkNotNullExpressionValue(className, "stackTrace[depth]\n .className");
List split = new Regex("\\.").split(className, 0);
if (!split.isEmpty()) {
ListIterator listIterator = split.listIterator(split.size());
while (listIterator.hasPrevious()) {
if (((String) listIterator.previous()).length() != 0) {
emptyList = CollectionsKt___CollectionsKt.take(split, listIterator.nextIndex() + 1);
break;
}
}
}
emptyList = CollectionsKt__CollectionsKt.emptyList();
String str = ((String[]) emptyList.toArray(new String[0]))[r4.length - 1];
contains$default = StringsKt__StringsKt.contains$default(str, "$", false, 2, null);
if (!contains$default) {
return str;
}
List split2 = new Regex("\\$").split(str, 0);
if (!split2.isEmpty()) {
ListIterator listIterator2 = split2.listIterator(split2.size());
while (listIterator2.hasPrevious()) {
if (((String) listIterator2.previous()).length() != 0) {
emptyList2 = CollectionsKt___CollectionsKt.take(split2, listIterator2.nextIndex() + 1);
break;
}
}
}
emptyList2 = CollectionsKt__CollectionsKt.emptyList();
return ((String[]) emptyList2.toArray(new String[0]))[0];
}
private final String b() {
StackTraceElement[] stackTrace = Thread.currentThread().getStackTrace();
Intrinsics.checkNotNullExpressionValue(stackTrace, "stackTrace");
String a = a(stackTrace, 6);
String b = b(stackTrace, 6);
StringCompanionObject stringCompanionObject = StringCompanionObject.INSTANCE;
String format = String.format("%s %s", Arrays.copyOf(new Object[]{a, b}, 2));
Intrinsics.checkNotNullExpressionValue(format, "format(format, *args)");
return format;
}
private final String b(StackTraceElement[] stackTraceElementArr, int i) {
List emptyList;
boolean contains$default;
boolean contains$default2;
int i2;
List emptyList2;
List emptyList3;
if (stackTraceElementArr.length <= i) {
return "";
}
String className = stackTraceElementArr[i].getClassName();
Intrinsics.checkNotNullExpressionValue(className, "stackTrace[depth]\n .className");
List split = new Regex("\\.").split(className, 0);
if (!split.isEmpty()) {
ListIterator listIterator = split.listIterator(split.size());
while (listIterator.hasPrevious()) {
if (((String) listIterator.previous()).length() != 0) {
emptyList = CollectionsKt___CollectionsKt.take(split, listIterator.nextIndex() + 1);
break;
}
}
}
emptyList = CollectionsKt__CollectionsKt.emptyList();
String[] strArr = (String[]) emptyList.toArray(new String[0]);
String str = strArr[strArr.length - 1];
contains$default = StringsKt__StringsKt.contains$default(str, "$", false, 2, null);
if (contains$default) {
List split2 = new Regex("\\$").split(str, 0);
if (!split2.isEmpty()) {
ListIterator listIterator2 = split2.listIterator(split2.size());
while (listIterator2.hasPrevious()) {
if (((String) listIterator2.previous()).length() != 0) {
emptyList3 = CollectionsKt___CollectionsKt.take(split2, listIterator2.nextIndex() + 1);
break;
}
}
}
emptyList3 = CollectionsKt__CollectionsKt.emptyList();
return ((String[]) emptyList3.toArray(new String[0]))[1] + '.' + stackTraceElementArr[i].getMethodName();
}
String methodName = stackTraceElementArr[i].getMethodName();
Intrinsics.checkNotNullExpressionValue(methodName, "stackTrace[depth].methodName");
contains$default2 = StringsKt__StringsKt.contains$default(methodName, "$", false, 2, null);
if (!contains$default2 || stackTraceElementArr.length <= (i2 = i + 1)) {
String methodName2 = stackTraceElementArr[i].getMethodName();
Intrinsics.checkNotNullExpressionValue(methodName2, "stackTrace[depth].methodName");
return methodName2;
}
String className2 = stackTraceElementArr[i2].getClassName();
Intrinsics.checkNotNullExpressionValue(className2, "stackTrace[depth + 1]\n .className");
List split3 = new Regex("\\$").split(className2, 0);
if (!split3.isEmpty()) {
ListIterator listIterator3 = split3.listIterator(split3.size());
while (listIterator3.hasPrevious()) {
if (((String) listIterator3.previous()).length() != 0) {
emptyList2 = CollectionsKt___CollectionsKt.take(split3, listIterator3.nextIndex() + 1);
break;
}
}
}
emptyList2 = CollectionsKt__CollectionsKt.emptyList();
String[] strArr2 = (String[]) emptyList2.toArray(new String[0]);
if (strArr2.length <= 1) {
String methodName3 = stackTraceElementArr[i2].getMethodName();
Intrinsics.checkNotNullExpressionValue(methodName3, "{\n stackTra….methodName\n }");
return methodName3;
}
return strArr2[1] + '.' + stackTraceElementArr[i2].getMethodName();
}
public final int a() {
return this.b;
}
public final String c() {
String str = this.a;
if (str == null || str.length() == 0) {
return b();
}
return b() + " - " + this.a;
}
}