Primer paso de la investigacion. Se aportan el .apk, las carpetas con el apk extraido y el apk descompilado. El archivo API_DOCUMENTATION.md es un archivo donde se anotaran los descubrimientos del funcionamiento de la API, y los .py son scripts para probar la funcionalidad de la API con los métodos que vayamos encontrando. Finalmente, los archivos .js son scripts de Frida para extraer informacion de la APP durante la ejecucion.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/full/IllegalCallableAccessException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "Ljava/lang/IllegalAccessException;", "(Ljava/lang/IllegalAccessException;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class IllegalCallableAccessException extends Exception {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public IllegalCallableAccessException(IllegalAccessException cause) {
|
||||
super(cause);
|
||||
Intrinsics.checkNotNullParameter(cause, "cause");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/full/IllegalPropertyDelegateAccessException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "Ljava/lang/IllegalAccessException;", "(Ljava/lang/IllegalAccessException;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class IllegalPropertyDelegateAccessException extends Exception {
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public IllegalPropertyDelegateAccessException(IllegalAccessException cause) {
|
||||
super("Cannot obtain the delegate of a non-accessible property. Use \"isAccessible = true\" to make the property accessible", cause);
|
||||
Intrinsics.checkNotNullParameter(cause, "cause");
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.annotation.Repeatable;
|
||||
import java.lang.reflect.Method;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0002\b\u0003\bÂ\u0002\u0018\u00002\u00020\u0001:\u0001\u000eB\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\b\u0010\t\u001a\u00020\u0004H\u0002J \u0010\n\u001a\f\u0012\u0006\b\u0001\u0012\u00020\f\u0018\u00010\u000b2\u000e\u0010\r\u001a\n\u0012\u0006\b\u0001\u0012\u00020\f0\u000bR\u001c\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\b¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/full/Java8RepeatableContainerLoader;", "", "()V", "cache", "Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "getCache", "()Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "setCache", "(Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;)V", "buildCache", "loadRepeatableContainer", "Ljava/lang/Class;", "", "klass", "Cache", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nKAnnotatedElements.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/Java8RepeatableContainerLoader\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,102:1\n1#2:103\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
final class Java8RepeatableContainerLoader {
|
||||
public static final Java8RepeatableContainerLoader INSTANCE = new Java8RepeatableContainerLoader();
|
||||
private static Cache cache;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B!\u0012\u0010\u0010\u0002\u001a\f\u0012\u0006\b\u0001\u0012\u00020\u0004\u0018\u00010\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007R\u001b\u0010\u0002\u001a\f\u0012\u0006\b\u0001\u0012\u00020\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b¨\u0006\f"}, d2 = {"Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "", "repeatableClass", "Ljava/lang/Class;", "", "valueMethod", "Ljava/lang/reflect/Method;", "(Ljava/lang/Class;Ljava/lang/reflect/Method;)V", "getRepeatableClass", "()Ljava/lang/Class;", "getValueMethod", "()Ljava/lang/reflect/Method;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Cache {
|
||||
private final Class<? extends Annotation> repeatableClass;
|
||||
private final Method valueMethod;
|
||||
|
||||
public Cache(Class<? extends Annotation> cls, Method method) {
|
||||
this.repeatableClass = cls;
|
||||
this.valueMethod = method;
|
||||
}
|
||||
|
||||
public final Class<? extends Annotation> getRepeatableClass() {
|
||||
return this.repeatableClass;
|
||||
}
|
||||
|
||||
public final Method getValueMethod() {
|
||||
return this.valueMethod;
|
||||
}
|
||||
}
|
||||
|
||||
private Java8RepeatableContainerLoader() {
|
||||
}
|
||||
|
||||
private final Cache buildCache() {
|
||||
try {
|
||||
Intrinsics.checkNotNull(Repeatable.class, "null cannot be cast to non-null type java.lang.Class<out kotlin.Annotation>");
|
||||
return new Cache(Repeatable.class, Repeatable.class.getMethod("value", new Class[0]));
|
||||
} catch (ClassNotFoundException unused) {
|
||||
return new Cache(null, null);
|
||||
}
|
||||
}
|
||||
|
||||
public final Class<? extends Annotation> loadRepeatableContainer(Class<? extends Annotation> klass) {
|
||||
Annotation annotation;
|
||||
Method valueMethod;
|
||||
Intrinsics.checkNotNullParameter(klass, "klass");
|
||||
Cache cache2 = cache;
|
||||
if (cache2 == null) {
|
||||
synchronized (this) {
|
||||
cache2 = cache;
|
||||
if (cache2 == null) {
|
||||
cache2 = INSTANCE.buildCache();
|
||||
cache = cache2;
|
||||
}
|
||||
}
|
||||
}
|
||||
Class repeatableClass = cache2.getRepeatableClass();
|
||||
if (repeatableClass == null || (annotation = klass.getAnnotation(repeatableClass)) == null || (valueMethod = cache2.getValueMethod()) == null) {
|
||||
return null;
|
||||
}
|
||||
Object invoke = valueMethod.invoke(annotation, new Object[0]);
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type java.lang.Class<out kotlin.Annotation>");
|
||||
return (Class) invoke;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,108 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.WasExperimental;
|
||||
import kotlin.collections.ArraysKt;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.JvmClassMappingKt;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.Reflection;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KAnnotatedElement;
|
||||
import kotlin.reflect.KClass;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\b\u0002\n\u0002\u0010\u001b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\u001a \u0010\u0000\u001a\u0004\u0018\u0001H\u0001\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b¢\u0006\u0002\u0010\u0004\u001a\u001f\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0006\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b\u001a*\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0006\"\b\b\u0000\u0010\u0001*\u00020\u0002*\u00020\u00032\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\u00010\bH\u0007\u001a\u0019\u0010\t\u001a\u00020\n\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b¨\u0006\u000b"}, d2 = {"findAnnotation", "T", "", "Lkotlin/reflect/KAnnotatedElement;", "(Lkotlin/reflect/KAnnotatedElement;)Ljava/lang/annotation/Annotation;", "findAnnotations", "", "klass", "Lkotlin/reflect/KClass;", "hasAnnotation", "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "KAnnotatedElements")
|
||||
@SourceDebugExtension({"SMAP\nKAnnotatedElements.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/KAnnotatedElements\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,102:1\n20#1:105\n288#2,2:103\n288#2,2:106\n288#2,2:108\n*S KotlinDebug\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/KAnnotatedElements\n*L\n29#1:105\n20#1:103,2\n29#1:106,2\n62#1:108,2\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KAnnotatedElements {
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final /* synthetic */ <T extends Annotation> T findAnnotation(KAnnotatedElement kAnnotatedElement) {
|
||||
Object obj;
|
||||
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
|
||||
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
Annotation annotation = (Annotation) obj;
|
||||
Intrinsics.reifiedOperationMarker(3, "T");
|
||||
if (annotation != null) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Intrinsics.reifiedOperationMarker(1, "T?");
|
||||
return (T) obj;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.7")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final /* synthetic */ <T extends Annotation> List<T> findAnnotations(KAnnotatedElement kAnnotatedElement) {
|
||||
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
|
||||
Intrinsics.reifiedOperationMarker(4, "T");
|
||||
return findAnnotations(kAnnotatedElement, Reflection.getOrCreateKotlinClass(Annotation.class));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final /* synthetic */ <T extends Annotation> boolean hasAnnotation(KAnnotatedElement kAnnotatedElement) {
|
||||
Object obj;
|
||||
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
|
||||
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
Annotation annotation = (Annotation) obj;
|
||||
Intrinsics.reifiedOperationMarker(3, "T");
|
||||
if (annotation != null) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Intrinsics.reifiedOperationMarker(1, "T?");
|
||||
return ((Annotation) obj) != null;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.7")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final <T extends Annotation> List<T> findAnnotations(KAnnotatedElement kAnnotatedElement, KClass<T> klass) {
|
||||
Object obj;
|
||||
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
|
||||
Intrinsics.checkNotNullParameter(klass, "klass");
|
||||
List<T> filterIsInstance = CollectionsKt.filterIsInstance(kAnnotatedElement.getAnnotations(), JvmClassMappingKt.getJavaClass((KClass) klass));
|
||||
if (!filterIsInstance.isEmpty()) {
|
||||
return filterIsInstance;
|
||||
}
|
||||
Class<? extends Annotation> loadRepeatableContainer = Java8RepeatableContainerLoader.INSTANCE.loadRepeatableContainer(JvmClassMappingKt.getJavaClass((KClass) klass));
|
||||
if (loadRepeatableContainer != null) {
|
||||
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
|
||||
while (true) {
|
||||
if (!it.hasNext()) {
|
||||
obj = null;
|
||||
break;
|
||||
}
|
||||
obj = it.next();
|
||||
if (Intrinsics.areEqual(JvmClassMappingKt.getJavaClass(JvmClassMappingKt.getAnnotationClass((Annotation) obj)), loadRepeatableContainer)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
Annotation annotation = (Annotation) obj;
|
||||
if (annotation != null) {
|
||||
Object invoke = annotation.getClass().getMethod("value", new Class[0]).invoke(annotation, new Object[0]);
|
||||
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.Array<T of kotlin.reflect.full.KAnnotatedElements.findAnnotations>");
|
||||
return ArraysKt.asList((Annotation[]) invoke);
|
||||
}
|
||||
}
|
||||
return CollectionsKt.emptyList();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlin.reflect.full.KCallables", f = "KCallables.kt", i = {0, 0}, l = {56}, m = "callSuspend", n = {"$this$callSuspend", "args"}, s = {"L$0", "L$1"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KCallables$callSuspend$1<R> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public KCallables$callSuspend$1(Continuation<? super KCallables$callSuspend$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return KCallables.callSuspend(null, null, this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.ContinuationImpl;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlin.reflect.full.KCallables", f = "KCallables.kt", i = {0, 0, 0}, l = {74}, m = "callSuspendBy", n = {"$this$callSuspendBy", "args", "kCallable"}, s = {"L$0", "L$1", "L$2"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KCallables$callSuspendBy$1<R> extends ContinuationImpl {
|
||||
Object L$0;
|
||||
Object L$1;
|
||||
Object L$2;
|
||||
int label;
|
||||
/* synthetic */ Object result;
|
||||
|
||||
public KCallables$callSuspendBy$1(Continuation<? super KCallables$callSuspendBy$1> continuation) {
|
||||
super(continuation);
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Object invokeSuspend(Object obj) {
|
||||
this.result = obj;
|
||||
this.label |= IntCompanionObject.MIN_VALUE;
|
||||
return KCallables.callSuspendBy(null, null, this);
|
||||
}
|
||||
}
|
||||
316
apk_decompiled/sources/kotlin/reflect/full/KCallables.java
Normal file
316
apk_decompiled/sources/kotlin/reflect/full/KCallables.java
Normal file
@@ -0,0 +1,316 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KCallable;
|
||||
import kotlin.reflect.KParameter;
|
||||
|
||||
@Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010 \n\u0002\b\u0006\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\u001a6\u0010\u000f\u001a\u0002H\u0010\"\u0004\b\u0000\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u00100\u00022\u0016\u0010\u0011\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u00130\u0012\"\u0004\u0018\u00010\u0013H\u0087@¢\u0006\u0002\u0010\u0014\u001a4\u0010\u0015\u001a\u0002H\u0010\"\u0004\b\u0000\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u00100\u00022\u0014\u0010\u0011\u001a\u0010\u0012\u0004\u0012\u00020\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00130\u0016H\u0087@¢\u0006\u0002\u0010\u0017\u001a\u001a\u0010\u0018\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\u0019\u001a\u00020\u001aH\u0007\"$\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"$\u0010\u0007\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\b\u0010\u0004\u001a\u0004\b\t\u0010\u0006\"(\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00010\u000b*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\f\u0010\u0004\u001a\u0004\b\r\u0010\u000e¨\u0006\u001b"}, d2 = {"extensionReceiverParameter", "Lkotlin/reflect/KParameter;", "Lkotlin/reflect/KCallable;", "getExtensionReceiverParameter$annotations", "(Lkotlin/reflect/KCallable;)V", "getExtensionReceiverParameter", "(Lkotlin/reflect/KCallable;)Lkotlin/reflect/KParameter;", "instanceParameter", "getInstanceParameter$annotations", "getInstanceParameter", "valueParameters", "", "getValueParameters$annotations", "getValueParameters", "(Lkotlin/reflect/KCallable;)Ljava/util/List;", "callSuspend", "R", "args", "", "", "(Lkotlin/reflect/KCallable;[Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "callSuspendBy", "", "(Lkotlin/reflect/KCallable;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "findParameterByName", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "KCallables")
|
||||
@SourceDebugExtension({"SMAP\nKCallables.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KCallables.kt\nkotlin/reflect/full/KCallables\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,82:1\n661#2,11:83\n661#2,11:94\n766#2:105\n857#2,2:106\n661#2,11:108\n1#3:119\n*S KotlinDebug\n*F\n+ 1 KCallables.kt\nkotlin/reflect/full/KCallables\n*L\n23#1:83,11\n31#1:94,11\n38#1:105\n38#1:106,2\n45#1:108,11\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KCallables {
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x0039 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <R> java.lang.Object callSuspend(kotlin.reflect.KCallable<? extends R> r4, java.lang.Object[] r5, kotlin.coroutines.Continuation<? super R> r6) {
|
||||
/*
|
||||
boolean r0 = r6 instanceof kotlin.reflect.full.KCallables$callSuspend$1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
kotlin.reflect.full.KCallables$callSuspend$1 r0 = (kotlin.reflect.full.KCallables$callSuspend$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
kotlin.reflect.full.KCallables$callSuspend$1 r0 = new kotlin.reflect.full.KCallables$callSuspend$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L39
|
||||
if (r2 != r3) goto L31
|
||||
java.lang.Object r4 = r0.L$1
|
||||
java.lang.Object[] r4 = (java.lang.Object[]) r4
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlin.reflect.KCallable r4 = (kotlin.reflect.KCallable) r4
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L7c
|
||||
L31:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L39:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
boolean r6 = r4.isSuspend()
|
||||
if (r6 != 0) goto L4c
|
||||
int r6 = r5.length
|
||||
java.lang.Object[] r5 = java.util.Arrays.copyOf(r5, r6)
|
||||
java.lang.Object r4 = r4.call(r5)
|
||||
return r4
|
||||
L4c:
|
||||
boolean r6 = r4 instanceof kotlin.reflect.KFunction
|
||||
if (r6 == 0) goto L9e
|
||||
r0.L$0 = r4
|
||||
r0.L$1 = r5
|
||||
r0.label = r3
|
||||
kotlin.jvm.internal.SpreadBuilder r6 = new kotlin.jvm.internal.SpreadBuilder
|
||||
r2 = 2
|
||||
r6.<init>(r2)
|
||||
r6.addSpread(r5)
|
||||
r6.add(r0)
|
||||
int r5 = r6.size()
|
||||
java.lang.Object[] r5 = new java.lang.Object[r5]
|
||||
java.lang.Object[] r5 = r6.toArray(r5)
|
||||
java.lang.Object r6 = r4.call(r5)
|
||||
java.lang.Object r5 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
if (r6 != r5) goto L79
|
||||
kotlin.coroutines.jvm.internal.DebugProbesKt.probeCoroutineSuspended(r0)
|
||||
L79:
|
||||
if (r6 != r1) goto L7c
|
||||
return r1
|
||||
L7c:
|
||||
kotlin.reflect.KType r5 = r4.getReturnType()
|
||||
kotlin.reflect.KClassifier r5 = r5.getClassifier()
|
||||
java.lang.Class<kotlin.Unit> r0 = kotlin.Unit.class
|
||||
kotlin.reflect.KClass r0 = kotlin.jvm.internal.Reflection.getOrCreateKotlinClass(r0)
|
||||
boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual(r5, r0)
|
||||
if (r5 == 0) goto L9d
|
||||
kotlin.reflect.KType r4 = r4.getReturnType()
|
||||
boolean r4 = r4.isMarkedNullable()
|
||||
if (r4 != 0) goto L9d
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
L9d:
|
||||
return r6
|
||||
L9e:
|
||||
java.lang.IllegalArgumentException r5 = new java.lang.IllegalArgumentException
|
||||
java.lang.StringBuilder r6 = new java.lang.StringBuilder
|
||||
java.lang.String r0 = "Cannot callSuspend on a property "
|
||||
r6.<init>(r0)
|
||||
r6.append(r4)
|
||||
java.lang.String r4 = ": suspend properties are not supported yet"
|
||||
r6.append(r4)
|
||||
java.lang.String r4 = r6.toString()
|
||||
r5.<init>(r4)
|
||||
throw r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.full.KCallables.callSuspend(kotlin.reflect.KCallable, java.lang.Object[], kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:20:0x003d */
|
||||
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
|
||||
@kotlin.SinceKotlin(version = "1.3")
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final <R> java.lang.Object callSuspendBy(kotlin.reflect.KCallable<? extends R> r4, java.util.Map<kotlin.reflect.KParameter, ? extends java.lang.Object> r5, kotlin.coroutines.Continuation<? super R> r6) {
|
||||
/*
|
||||
boolean r0 = r6 instanceof kotlin.reflect.full.KCallables$callSuspendBy$1
|
||||
if (r0 == 0) goto L13
|
||||
r0 = r6
|
||||
kotlin.reflect.full.KCallables$callSuspendBy$1 r0 = (kotlin.reflect.full.KCallables$callSuspendBy$1) r0
|
||||
int r1 = r0.label
|
||||
r2 = -2147483648(0xffffffff80000000, float:-0.0)
|
||||
r3 = r1 & r2
|
||||
if (r3 == 0) goto L13
|
||||
int r1 = r1 - r2
|
||||
r0.label = r1
|
||||
goto L18
|
||||
L13:
|
||||
kotlin.reflect.full.KCallables$callSuspendBy$1 r0 = new kotlin.reflect.full.KCallables$callSuspendBy$1
|
||||
r0.<init>(r6)
|
||||
L18:
|
||||
java.lang.Object r6 = r0.result
|
||||
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r2 = r0.label
|
||||
r3 = 1
|
||||
if (r2 == 0) goto L3d
|
||||
if (r2 != r3) goto L35
|
||||
java.lang.Object r4 = r0.L$2
|
||||
kotlin.reflect.jvm.internal.KCallableImpl r4 = (kotlin.reflect.jvm.internal.KCallableImpl) r4
|
||||
java.lang.Object r4 = r0.L$1
|
||||
java.util.Map r4 = (java.util.Map) r4
|
||||
java.lang.Object r4 = r0.L$0
|
||||
kotlin.reflect.KCallable r4 = (kotlin.reflect.KCallable) r4
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
goto L6d
|
||||
L35:
|
||||
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
|
||||
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r4.<init>(r5)
|
||||
throw r4
|
||||
L3d:
|
||||
kotlin.ResultKt.throwOnFailure(r6)
|
||||
boolean r6 = r4.isSuspend()
|
||||
if (r6 != 0) goto L4b
|
||||
java.lang.Object r4 = r4.callBy(r5)
|
||||
return r4
|
||||
L4b:
|
||||
boolean r6 = r4 instanceof kotlin.reflect.KFunction
|
||||
if (r6 == 0) goto La3
|
||||
kotlin.reflect.jvm.internal.KCallableImpl r6 = kotlin.reflect.jvm.internal.UtilKt.asKCallableImpl(r4)
|
||||
if (r6 == 0) goto L8f
|
||||
r0.L$0 = r4
|
||||
r0.L$1 = r5
|
||||
r0.L$2 = r6
|
||||
r0.label = r3
|
||||
java.lang.Object r6 = r6.callDefaultMethod$kotlin_reflection(r5, r0)
|
||||
java.lang.Object r5 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
if (r6 != r5) goto L6a
|
||||
kotlin.coroutines.jvm.internal.DebugProbesKt.probeCoroutineSuspended(r0)
|
||||
L6a:
|
||||
if (r6 != r1) goto L6d
|
||||
return r1
|
||||
L6d:
|
||||
kotlin.reflect.KType r5 = r4.getReturnType()
|
||||
kotlin.reflect.KClassifier r5 = r5.getClassifier()
|
||||
java.lang.Class<kotlin.Unit> r0 = kotlin.Unit.class
|
||||
kotlin.reflect.KClass r0 = kotlin.jvm.internal.Reflection.getOrCreateKotlinClass(r0)
|
||||
boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual(r5, r0)
|
||||
if (r5 == 0) goto L8e
|
||||
kotlin.reflect.KType r4 = r4.getReturnType()
|
||||
boolean r4 = r4.isMarkedNullable()
|
||||
if (r4 != 0) goto L8e
|
||||
kotlin.Unit r4 = kotlin.Unit.INSTANCE
|
||||
return r4
|
||||
L8e:
|
||||
return r6
|
||||
L8f:
|
||||
kotlin.reflect.jvm.internal.KotlinReflectionInternalError r5 = new kotlin.reflect.jvm.internal.KotlinReflectionInternalError
|
||||
java.lang.StringBuilder r6 = new java.lang.StringBuilder
|
||||
java.lang.String r0 = "This callable does not support a default call: "
|
||||
r6.<init>(r0)
|
||||
r6.append(r4)
|
||||
java.lang.String r4 = r6.toString()
|
||||
r5.<init>(r4)
|
||||
throw r5
|
||||
La3:
|
||||
java.lang.IllegalArgumentException r5 = new java.lang.IllegalArgumentException
|
||||
java.lang.StringBuilder r6 = new java.lang.StringBuilder
|
||||
java.lang.String r0 = "Cannot callSuspendBy on a property "
|
||||
r6.<init>(r0)
|
||||
r6.append(r4)
|
||||
java.lang.String r4 = ": suspend properties are not supported yet"
|
||||
r6.append(r4)
|
||||
java.lang.String r4 = r6.toString()
|
||||
r5.<init>(r4)
|
||||
throw r5
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.full.KCallables.callSuspendBy(kotlin.reflect.KCallable, java.util.Map, kotlin.coroutines.Continuation):java.lang.Object");
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final KParameter findParameterByName(KCallable<?> kCallable, String name) {
|
||||
Intrinsics.checkNotNullParameter(kCallable, "<this>");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
Iterator<T> it = kCallable.getParameters().iterator();
|
||||
Object obj = null;
|
||||
boolean z3 = false;
|
||||
Object obj2 = null;
|
||||
while (true) {
|
||||
if (it.hasNext()) {
|
||||
Object next = it.next();
|
||||
if (Intrinsics.areEqual(((KParameter) next).getName(), name)) {
|
||||
if (z3) {
|
||||
break;
|
||||
}
|
||||
z3 = true;
|
||||
obj2 = next;
|
||||
}
|
||||
} else if (z3) {
|
||||
obj = obj2;
|
||||
}
|
||||
}
|
||||
return (KParameter) obj;
|
||||
}
|
||||
|
||||
public static final KParameter getExtensionReceiverParameter(KCallable<?> kCallable) {
|
||||
Intrinsics.checkNotNullParameter(kCallable, "<this>");
|
||||
Iterator<T> it = kCallable.getParameters().iterator();
|
||||
Object obj = null;
|
||||
boolean z3 = false;
|
||||
Object obj2 = null;
|
||||
while (true) {
|
||||
if (it.hasNext()) {
|
||||
Object next = it.next();
|
||||
if (((KParameter) next).getKind() == KParameter.Kind.EXTENSION_RECEIVER) {
|
||||
if (z3) {
|
||||
break;
|
||||
}
|
||||
z3 = true;
|
||||
obj2 = next;
|
||||
}
|
||||
} else if (z3) {
|
||||
obj = obj2;
|
||||
}
|
||||
}
|
||||
return (KParameter) obj;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static /* synthetic */ void getExtensionReceiverParameter$annotations(KCallable kCallable) {
|
||||
}
|
||||
|
||||
public static final KParameter getInstanceParameter(KCallable<?> kCallable) {
|
||||
Intrinsics.checkNotNullParameter(kCallable, "<this>");
|
||||
Iterator<T> it = kCallable.getParameters().iterator();
|
||||
Object obj = null;
|
||||
boolean z3 = false;
|
||||
Object obj2 = null;
|
||||
while (true) {
|
||||
if (it.hasNext()) {
|
||||
Object next = it.next();
|
||||
if (((KParameter) next).getKind() == KParameter.Kind.INSTANCE) {
|
||||
if (z3) {
|
||||
break;
|
||||
}
|
||||
z3 = true;
|
||||
obj2 = next;
|
||||
}
|
||||
} else if (z3) {
|
||||
obj = obj2;
|
||||
}
|
||||
}
|
||||
return (KParameter) obj;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static /* synthetic */ void getInstanceParameter$annotations(KCallable kCallable) {
|
||||
}
|
||||
|
||||
public static final List<KParameter> getValueParameters(KCallable<?> kCallable) {
|
||||
Intrinsics.checkNotNullParameter(kCallable, "<this>");
|
||||
List<KParameter> parameters = kCallable.getParameters();
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : parameters) {
|
||||
if (((KParameter) obj).getKind() == KParameter.Kind.VALUE) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static /* synthetic */ void getValueParameters$annotations(KCallable kCallable) {
|
||||
}
|
||||
}
|
||||
575
apk_decompiled/sources/kotlin/reflect/full/KClasses.java
Normal file
575
apk_decompiled/sources/kotlin/reflect/full/KClasses.java
Normal file
File diff suppressed because one or more lines are too long
166
apk_decompiled/sources/kotlin/reflect/full/KClassifiers.java
Normal file
166
apk_decompiled/sources/kotlin/reflect/full/KClassifiers.java
Normal file
@@ -0,0 +1,166 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NoWhenBranchMatchedException;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.reflect.KClassifier;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.KTypeProjection;
|
||||
import kotlin.reflect.KVariance;
|
||||
import kotlin.reflect.jvm.internal.KClassifierImpl;
|
||||
import kotlin.reflect.jvm.internal.KTypeImpl;
|
||||
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
|
||||
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
|
||||
import kotlin.reflect.jvm.internal.impl.types.StarProjectionImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjectionBase;
|
||||
import kotlin.reflect.jvm.internal.impl.types.TypeProjectionImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.types.Variance;
|
||||
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypeRefiner;
|
||||
|
||||
@Metadata(d1 = {"\u00008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u001b\n\u0000\u001a.\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\u0006\u0010\u0010\u001a\u00020\u0011H\u0002\u001a6\u0010\u0012\u001a\u00020\u0001*\u00020\u00022\u000e\b\u0002\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\b\b\u0002\u0010\u0010\u001a\u00020\u00112\u000e\b\u0002\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00140\u000eH\u0007\"\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0015"}, d2 = {"starProjectedType", "Lkotlin/reflect/KType;", "Lkotlin/reflect/KClassifier;", "getStarProjectedType$annotations", "(Lkotlin/reflect/KClassifier;)V", "getStarProjectedType", "(Lkotlin/reflect/KClassifier;)Lkotlin/reflect/KType;", "createKotlinType", "Lkotlin/reflect/jvm/internal/impl/types/SimpleType;", "attributes", "Lkotlin/reflect/jvm/internal/impl/types/TypeAttributes;", "typeConstructor", "Lkotlin/reflect/jvm/internal/impl/types/TypeConstructor;", "arguments", "", "Lkotlin/reflect/KTypeProjection;", "nullable", "", "createType", "annotations", "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "KClassifiers")
|
||||
@SourceDebugExtension({"SMAP\nKClassifiers.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KClassifiers.kt\nkotlin/reflect/full/KClassifiers\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,97:1\n1559#2:98\n1590#2,4:99\n1549#2:103\n1620#2,3:104\n*S KotlinDebug\n*F\n+ 1 KClassifiers.kt\nkotlin/reflect/full/KClassifiers\n*L\n69#1:98\n69#1:99,4\n95#1:103\n95#1:104,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KClassifiers {
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class WhenMappings {
|
||||
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
|
||||
|
||||
static {
|
||||
int[] iArr = new int[KVariance.values().length];
|
||||
try {
|
||||
iArr[KVariance.INVARIANT.ordinal()] = 1;
|
||||
} catch (NoSuchFieldError unused) {
|
||||
}
|
||||
try {
|
||||
iArr[KVariance.IN.ordinal()] = 2;
|
||||
} catch (NoSuchFieldError unused2) {
|
||||
}
|
||||
try {
|
||||
iArr[KVariance.OUT.ordinal()] = 3;
|
||||
} catch (NoSuchFieldError unused3) {
|
||||
}
|
||||
$EnumSwitchMapping$0 = iArr;
|
||||
}
|
||||
}
|
||||
|
||||
private static final SimpleType createKotlinType(TypeAttributes typeAttributes, TypeConstructor typeConstructor, List<KTypeProjection> list, boolean z3) {
|
||||
int collectionSizeOrDefault;
|
||||
TypeProjectionBase starProjectionImpl;
|
||||
List<TypeParameterDescriptor> parameters = typeConstructor.getParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
|
||||
List<KTypeProjection> list2 = list;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
int i = 0;
|
||||
for (Object obj : list2) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
KTypeProjection kTypeProjection = (KTypeProjection) obj;
|
||||
KTypeImpl kTypeImpl = (KTypeImpl) kTypeProjection.getType();
|
||||
KotlinType type = kTypeImpl != null ? kTypeImpl.getType() : null;
|
||||
KVariance variance = kTypeProjection.getVariance();
|
||||
int i5 = variance == null ? -1 : WhenMappings.$EnumSwitchMapping$0[variance.ordinal()];
|
||||
if (i5 == -1) {
|
||||
TypeParameterDescriptor typeParameterDescriptor = parameters.get(i);
|
||||
Intrinsics.checkNotNullExpressionValue(typeParameterDescriptor, "get(...)");
|
||||
starProjectionImpl = new StarProjectionImpl(typeParameterDescriptor);
|
||||
} else if (i5 == 1) {
|
||||
Variance variance2 = Variance.INVARIANT;
|
||||
Intrinsics.checkNotNull(type);
|
||||
starProjectionImpl = new TypeProjectionImpl(variance2, type);
|
||||
} else if (i5 == 2) {
|
||||
Variance variance3 = Variance.IN_VARIANCE;
|
||||
Intrinsics.checkNotNull(type);
|
||||
starProjectionImpl = new TypeProjectionImpl(variance3, type);
|
||||
} else {
|
||||
if (i5 != 3) {
|
||||
throw new NoWhenBranchMatchedException();
|
||||
}
|
||||
Variance variance4 = Variance.OUT_VARIANCE;
|
||||
Intrinsics.checkNotNull(type);
|
||||
starProjectionImpl = new TypeProjectionImpl(variance4, type);
|
||||
}
|
||||
arrayList.add(starProjectionImpl);
|
||||
i = i4;
|
||||
}
|
||||
return KotlinTypeFactory.simpleType$default(typeAttributes, typeConstructor, arrayList, z3, (KotlinTypeRefiner) null, 16, (Object) null);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final KType createType(KClassifier kClassifier, List<KTypeProjection> arguments, boolean z3, List<? extends Annotation> annotations) {
|
||||
ClassifierDescriptor descriptor;
|
||||
Intrinsics.checkNotNullParameter(kClassifier, "<this>");
|
||||
Intrinsics.checkNotNullParameter(arguments, "arguments");
|
||||
Intrinsics.checkNotNullParameter(annotations, "annotations");
|
||||
KClassifierImpl kClassifierImpl = kClassifier instanceof KClassifierImpl ? (KClassifierImpl) kClassifier : null;
|
||||
if (kClassifierImpl == null || (descriptor = kClassifierImpl.getDescriptor()) == null) {
|
||||
throw new KotlinReflectionInternalError("Cannot create type for an unsupported classifier: " + kClassifier + " (" + kClassifier.getClass() + ')');
|
||||
}
|
||||
TypeConstructor typeConstructor = descriptor.getTypeConstructor();
|
||||
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
|
||||
List<TypeParameterDescriptor> parameters = typeConstructor.getParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
|
||||
if (parameters.size() == arguments.size()) {
|
||||
return new KTypeImpl(createKotlinType(annotations.isEmpty() ? TypeAttributes.Companion.getEmpty() : TypeAttributes.Companion.getEmpty(), typeConstructor, arguments, z3), null, 2, null);
|
||||
}
|
||||
throw new IllegalArgumentException("Class declares " + parameters.size() + " type parameters, but " + arguments.size() + " were provided.");
|
||||
}
|
||||
|
||||
public static /* synthetic */ KType createType$default(KClassifier kClassifier, List list, boolean z3, List list2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
list = CollectionsKt.emptyList();
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
z3 = false;
|
||||
}
|
||||
if ((i & 4) != 0) {
|
||||
list2 = CollectionsKt.emptyList();
|
||||
}
|
||||
return createType(kClassifier, list, z3, list2);
|
||||
}
|
||||
|
||||
public static final KType getStarProjectedType(KClassifier kClassifier) {
|
||||
ClassifierDescriptor descriptor;
|
||||
int collectionSizeOrDefault;
|
||||
Intrinsics.checkNotNullParameter(kClassifier, "<this>");
|
||||
KClassifierImpl kClassifierImpl = kClassifier instanceof KClassifierImpl ? (KClassifierImpl) kClassifier : null;
|
||||
if (kClassifierImpl == null || (descriptor = kClassifierImpl.getDescriptor()) == null) {
|
||||
return createType$default(kClassifier, null, false, null, 7, null);
|
||||
}
|
||||
List<TypeParameterDescriptor> parameters = descriptor.getTypeConstructor().getParameters();
|
||||
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
|
||||
if (parameters.isEmpty()) {
|
||||
return createType$default(kClassifier, null, false, null, 7, null);
|
||||
}
|
||||
List<TypeParameterDescriptor> list = parameters;
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
|
||||
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
|
||||
for (TypeParameterDescriptor typeParameterDescriptor : list) {
|
||||
arrayList.add(KTypeProjection.INSTANCE.getSTAR());
|
||||
}
|
||||
return createType$default(kClassifier, arrayList, false, null, 6, null);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static /* synthetic */ void getStarProjectedType$annotations(KClassifier kClassifier) {
|
||||
}
|
||||
}
|
||||
26
apk_decompiled/sources/kotlin/reflect/full/KProperties.java
Normal file
26
apk_decompiled/sources/kotlin/reflect/full/KProperties.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KProperty1;
|
||||
import kotlin.reflect.KProperty2;
|
||||
import kotlin.reflect.jvm.internal.KPropertyImpl;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a\u0016\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u0002H\u0007\u001a/\u0010\u0000\u001a\u0004\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0003*\u0010\u0012\u0004\u0012\u0002H\u0003\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00042\u0006\u0010\u0005\u001a\u0002H\u0003H\u0007¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"getExtensionDelegate", "", "Lkotlin/reflect/KProperty1;", "D", "Lkotlin/reflect/KProperty2;", "receiver", "(Lkotlin/reflect/KProperty2;Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "KProperties")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KProperties {
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Object getExtensionDelegate(KProperty1<?, ?> kProperty1) {
|
||||
Intrinsics.checkNotNullParameter(kProperty1, "<this>");
|
||||
return kProperty1.getDelegate(KPropertyImpl.INSTANCE.getEXTENSION_PROPERTY_DELEGATE());
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final <D> Object getExtensionDelegate(KProperty2<D, ?, ?> kProperty2, D d4) {
|
||||
Intrinsics.checkNotNullParameter(kProperty2, "<this>");
|
||||
return kProperty2.getDelegate(d4, KPropertyImpl.INSTANCE.getEXTENSION_PROPERTY_DELEGATE());
|
||||
}
|
||||
}
|
||||
34
apk_decompiled/sources/kotlin/reflect/full/KTypes.java
Normal file
34
apk_decompiled/sources/kotlin/reflect/full/KTypes.java
Normal file
@@ -0,0 +1,34 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.reflect.KType;
|
||||
import kotlin.reflect.jvm.internal.KTypeImpl;
|
||||
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0005\u001a\u0014\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0014\u0010\u0004\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0014\u0010\u0005\u001a\u00020\u0002*\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0001H\u0007¨\u0006\u0007"}, d2 = {"isSubtypeOf", "", "Lkotlin/reflect/KType;", "other", "isSupertypeOf", "withNullability", "nullable", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "KTypes")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class KTypes {
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final boolean isSubtypeOf(KType kType, KType other) {
|
||||
Intrinsics.checkNotNullParameter(kType, "<this>");
|
||||
Intrinsics.checkNotNullParameter(other, "other");
|
||||
return TypeUtilsKt.isSubtypeOf(((KTypeImpl) kType).getType(), ((KTypeImpl) other).getType());
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final boolean isSupertypeOf(KType kType, KType other) {
|
||||
Intrinsics.checkNotNullParameter(kType, "<this>");
|
||||
Intrinsics.checkNotNullParameter(other, "other");
|
||||
return isSubtypeOf(other, kType);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final KType withNullability(KType kType, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(kType, "<this>");
|
||||
return ((KTypeImpl) kType).makeNullableAsSpecified$kotlin_reflection(z3);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package kotlin.reflect.full;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\u0017\u0012\u0010\b\u0002\u0010\u0003\u001a\n\u0018\u00010\u0001j\u0004\u0018\u0001`\u0002¢\u0006\u0002\u0010\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/full/NoSuchPropertyException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "(Ljava/lang/Exception;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class NoSuchPropertyException extends Exception {
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public NoSuchPropertyException() {
|
||||
this(null, 1, 0 == true ? 1 : 0);
|
||||
}
|
||||
|
||||
public NoSuchPropertyException(Exception exc) {
|
||||
super(exc);
|
||||
}
|
||||
|
||||
public /* synthetic */ NoSuchPropertyException(Exception exc, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this((i & 1) != 0 ? null : exc);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user