APK反编译源代码展示 - 南明离火平台提供

应用版本信息
应用名称:Cuto
版本号:2.6.10
包名称:com.sspai.cuto.android

MD5 校验值:9a3607a8b6a643c932183399cb0ea25c

反编译源代码说明

D.java 文件包含反编译后的源代码,请注意,该内容仅供学习和参考使用,不得用于非法用途。


package g7;

import F6.InterfaceC0513e;
import F6.t;
import com.davemorrissey.labs.subscaleview.BuildConfig;
import g7.InterfaceC1215e;
import g7.InterfaceC1218h;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Proxy;
import java.lang.reflect.Type;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Objects;
import java.util.concurrent.ConcurrentHashMap;

public final class D {

    public final InterfaceC0513e.a f15362b;

    public final F6.t f15363c;

    public final List<InterfaceC1218h.a> f15364d;

    public final List<InterfaceC1215e.a> f15365e;

    public final ConcurrentHashMap<Method, Object> f15361a = new ConcurrentHashMap<>();

    public final boolean f15366f = false;

    public class a implements InvocationHandler {

        public final Object[] f15367a = new Object[0];

        public final Class f15368b;

        public a(Class cls) {
            this.f15368b = cls;
        }

        @Override
        public final Object invoke(Object obj, Method method, Object[] objArr) {
            if (method.getDeclaringClass() == Object.class) {
                return method.invoke(this, objArr);
            }
            if (objArr == null) {
                objArr = this.f15367a;
            }
            z zVar = y.f15487b;
            boolean c8 = zVar.c(method);
            Class<?> cls = this.f15368b;
            return c8 ? zVar.b(method, cls, obj, objArr) : D.this.c(cls, method).a(obj, objArr);
        }
    }

    public static final class b {

        public InterfaceC0513e.a f15370a;

        public F6.t f15371b;

        public final ArrayList f15372c = new ArrayList();

        public final ArrayList f15373d = new ArrayList();

        public final void a() {
            t.a aVar = new t.a();
            aVar.d(null, "https://api.cutowallpaper.com/api/v2/");
            F6.t b8 = aVar.b();
            if (BuildConfig.FLAVOR.equals(b8.f2890f.get(r1.size() - 1))) {
                this.f15371b = b8;
            } else {
                throw new IllegalArgumentException("baseUrl must end in /: " + b8);
            }
        }

        public final D b() {
            if (this.f15371b == null) {
                throw new IllegalStateException("Base URL required.");
            }
            InterfaceC0513e.a aVar = this.f15370a;
            if (aVar == null) {
                aVar = new F6.x();
            }
            InterfaceC0513e.a aVar2 = aVar;
            ExecutorC1211a executorC1211a = y.f15486a;
            C1213c c1213c = y.f15488c;
            ArrayList arrayList = new ArrayList(this.f15373d);
            List a8 = c1213c.a(executorC1211a);
            arrayList.addAll(a8);
            List<? extends InterfaceC1218h.a> b8 = c1213c.b();
            int size = b8.size();
            ArrayList arrayList2 = this.f15372c;
            ArrayList arrayList3 = new ArrayList(arrayList2.size() + 1 + size);
            arrayList3.add(new InterfaceC1218h.a());
            arrayList3.addAll(arrayList2);
            arrayList3.addAll(b8);
            F6.t tVar = this.f15371b;
            List unmodifiableList = Collections.unmodifiableList(arrayList3);
            List unmodifiableList2 = Collections.unmodifiableList(arrayList);
            a8.size();
            return new D(aVar2, tVar, unmodifiableList, unmodifiableList2, executorC1211a);
        }
    }

    public D(InterfaceC0513e.a aVar, F6.t tVar, List list, List list2, ExecutorC1211a executorC1211a) {
        this.f15362b = aVar;
        this.f15363c = tVar;
        this.f15364d = list;
        this.f15365e = list2;
    }

    public final InterfaceC1215e<?, ?> a(Type type, Annotation[] annotationArr) {
        Objects.requireNonNull(type, "returnType == null");
        Objects.requireNonNull(annotationArr, "annotations == null");
        List<InterfaceC1215e.a> list = this.f15365e;
        int indexOf = list.indexOf(null) + 1;
        int size = list.size();
        for (int i8 = indexOf; i8 < size; i8++) {
            InterfaceC1215e<?, ?> a8 = list.get(i8).a(type, annotationArr);
            if (a8 != null) {
                return a8;
            }
        }
        StringBuilder sb = new StringBuilder("Could not locate call adapter for ");
        sb.append(type);
        sb.append(".\n  Tried:");
        int size2 = list.size();
        while (indexOf < size2) {
            sb.append("\n   * ");
            sb.append(list.get(indexOf).getClass().getName());
            indexOf++;
        }
        throw new IllegalArgumentException(sb.toString());
    }

    public final <T> T b(Class<T> cls) {
        if (!cls.isInterface()) {
            throw new IllegalArgumentException("API declarations must be interfaces.");
        }
        ArrayDeque arrayDeque = new ArrayDeque(1);
        arrayDeque.add(cls);
        while (!arrayDeque.isEmpty()) {
            Class<T> cls2 = (Class) arrayDeque.removeFirst();
            if (cls2.getTypeParameters().length != 0) {
                StringBuilder sb = new StringBuilder("Type parameters are unsupported on ");
                sb.append(cls2.getName());
                if (cls2 != cls) {
                    sb.append(" which is an interface of ");
                    sb.append(cls.getName());
                }
                throw new IllegalArgumentException(sb.toString());
            }
            Collections.addAll(arrayDeque, cls2.getInterfaces());
        }
        if (this.f15366f) {
            z zVar = y.f15487b;
            for (Method method : cls.getDeclaredMethods()) {
                if (!zVar.c(method) && !Modifier.isStatic(method.getModifiers()) && !method.isSynthetic()) {
                    c(cls, method);
                }
            }
        }
        return (T) Proxy.newProxyInstance(cls.getClassLoader(), new Class[]{cls}, new a(cls));
    }

    public final E<?> c(Class<?> cls, Method method) {
        while (true) {
            Object obj = this.f15361a.get(method);
            if (obj instanceof E) {
                return (E) obj;
            }
            if (obj == null) {
                Object obj2 = new Object();
                synchronized (obj2) {
                    try {
                        obj = this.f15361a.putIfAbsent(method, obj2);
                        if (obj == null) {
                            try {
                                m b8 = E.b(this, cls, method);
                                this.f15361a.put(method, b8);
                                return b8;
                            } catch (Throwable th) {
                                this.f15361a.remove(method);
                                throw th;
                            }
                        }
                    } finally {
                    }
                }
            }
            synchronized (obj) {
                try {
                    Object obj3 = this.f15361a.get(method);
                    if (obj3 != null) {
                        return (E) obj3;
                    }
                } finally {
                }
            }
        }
    }

    public final <T> InterfaceC1218h<T, F6.C> d(Type type, Annotation[] annotationArr, Annotation[] annotationArr2) {
        Objects.requireNonNull(type, "type == null");
        Objects.requireNonNull(annotationArr2, "methodAnnotations == null");
        List<InterfaceC1218h.a> list = this.f15364d;
        int indexOf = list.indexOf(null) + 1;
        int size = list.size();
        for (int i8 = indexOf; i8 < size; i8++) {
            InterfaceC1218h<T, F6.C> a8 = list.get(i8).a(type);
            if (a8 != null) {
                return a8;
            }
        }
        StringBuilder sb = new StringBuilder("Could not locate RequestBody converter for ");
        sb.append(type);
        sb.append(".\n  Tried:");
        int size2 = list.size();
        while (indexOf < size2) {
            sb.append("\n   * ");
            sb.append(list.get(indexOf).getClass().getName());
            indexOf++;
        }
        throw new IllegalArgumentException(sb.toString());
    }

    public final <T> InterfaceC1218h<F6.E, T> e(Type type, Annotation[] annotationArr) {
        Objects.requireNonNull(type, "type == null");
        Objects.requireNonNull(annotationArr, "annotations == null");
        List<InterfaceC1218h.a> list = this.f15364d;
        int indexOf = list.indexOf(null) + 1;
        int size = list.size();
        for (int i8 = indexOf; i8 < size; i8++) {
            InterfaceC1218h<F6.E, T> interfaceC1218h = (InterfaceC1218h<F6.E, T>) list.get(i8).b(type, annotationArr, this);
            if (interfaceC1218h != null) {
                return interfaceC1218h;
            }
        }
        StringBuilder sb = new StringBuilder("Could not locate ResponseBody converter for ");
        sb.append(type);
        sb.append(".\n");
        sb.append("  Tried:");
        int size2 = list.size();
        while (indexOf < size2) {
            sb.append("\n   * ");
            sb.append(list.get(indexOf).getClass().getName());
            indexOf++;
        }
        throw new IllegalArgumentException(sb.toString());
    }

    public final void f(Type type, Annotation[] annotationArr) {
        Objects.requireNonNull(type, "type == null");
        List<InterfaceC1218h.a> list = this.f15364d;
        int size = list.size();
        for (int i8 = 0; i8 < size; i8++) {
            list.get(i8).getClass();
        }
    }
}