Currency Plus v2.10.8版本的 MD5 值为:8586f74edd9ace5aa261a19c9da51484
以下内容为反编译后的 f.java 源代码,内容仅作参考
package lo;
import fn.q;
import fn.u;
import fn.y;
import fn.z;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Proxy;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Executor;
import java.util.concurrent.TimeUnit;
import km.b0;
import km.x;
import ti.l;
public final class f {
public final b f23478a;
public final c f23479b;
public final gp.a f23480c;
public f() {
this(null, null, null, 7, null);
}
public f(b bVar, c cVar, gp.a aVar) {
l.f(bVar, "openExchangeApiService");
l.f(cVar, "rcbApiService");
l.f(aVar, "dateFormatter");
this.f23478a = bVar;
this.f23479b = cVar;
this.f23480c = aVar;
}
public f(b bVar, c cVar, gp.a aVar, int i10, ti.g gVar) {
this(bVar, (i10 & 2) != 0 ? new c() : cVar, (i10 & 4) != 0 ? new gp.b() : aVar);
boolean isDefault;
if ((i10 & 1) != 0) {
b0.a aVar2 = new b0.a();
TimeUnit timeUnit = TimeUnit.SECONDS;
l.f(timeUnit, "unit");
aVar2.f22425z = lm.b.b(20L, timeUnit);
aVar2.f22424y = lm.b.b(20L, timeUnit);
g gVar2 = g.f23481a;
l.f(gVar2, "interceptor");
aVar2.f22403d.add(gVar2);
b0 b0Var = new b0(aVar2);
z.a aVar3 = new z.a();
x.f22632k.getClass();
x c10 = x.b.c("https://openexchangerates.org/api/");
List<String> list = c10.f22639f;
if (!"".equals(list.get(list.size() - 1))) {
throw new IllegalArgumentException("baseUrl must end in /: " + c10);
}
aVar3.f18046c = c10;
no.b bVar2 = new no.b(new no.d());
ArrayList arrayList = aVar3.f18047d;
arrayList.add(bVar2);
mo.c cVar2 = new mo.c();
ArrayList arrayList2 = aVar3.f18048e;
arrayList2.add(cVar2);
if (aVar3.f18046c == null) {
throw new IllegalStateException("Base URL required.");
}
u uVar = aVar3.f18044a;
Executor a10 = uVar.a();
ArrayList arrayList3 = new ArrayList(arrayList2);
fn.g gVar3 = new fn.g(a10);
boolean z10 = uVar.f17977a;
arrayList3.addAll(z10 ? Arrays.asList(fn.e.f17886a, gVar3) : Collections.singletonList(gVar3));
ArrayList arrayList4 = new ArrayList(arrayList.size() + 1 + (z10 ? 1 : 0));
arrayList4.add(new fn.a());
arrayList4.addAll(arrayList);
arrayList4.addAll(z10 ? Collections.singletonList(q.f17933a) : Collections.emptyList());
z zVar = new z(b0Var, aVar3.f18046c, Collections.unmodifiableList(arrayList4), Collections.unmodifiableList(arrayList3));
if (!b.class.isInterface()) {
throw new IllegalArgumentException("API declarations must be interfaces.");
}
ArrayDeque arrayDeque = new ArrayDeque(1);
arrayDeque.add(b.class);
while (!arrayDeque.isEmpty()) {
Class cls = (Class) arrayDeque.removeFirst();
if (cls.getTypeParameters().length != 0) {
StringBuilder sb2 = new StringBuilder("Type parameters are unsupported on ");
sb2.append(cls.getName());
if (cls != b.class) {
sb2.append(" which is an interface of ");
sb2.append(b.class.getName());
}
throw new IllegalArgumentException(sb2.toString());
}
Collections.addAll(arrayDeque, cls.getInterfaces());
}
if (zVar.f18043f) {
u uVar2 = u.f17976c;
Method[] declaredMethods = b.class.getDeclaredMethods();
int length = declaredMethods.length;
int i11 = 0;
while (i11 < length) {
Method method = declaredMethods[i11];
if (uVar2.f17977a) {
isDefault = method.isDefault();
i11 = isDefault ? i11 + 1 : i11;
}
if (!Modifier.isStatic(method.getModifiers())) {
zVar.b(method);
}
}
}
Object newProxyInstance = Proxy.newProxyInstance(b.class.getClassLoader(), new Class[]{b.class}, new y(zVar));
l.e(newProxyInstance, "create(...)");
bVar = (b) newProxyInstance;
}
}
}