Warkop v5.73.0版本的 MD5 值为:a4330ec2d6f5e146f59fc7622f3cdb45
以下内容为反编译后的 o9.java 源代码,内容仅作参考
package com.json;
import com.json.android.core.api.enumeration.Region;
import java.util.Arrays;
import java.util.NoSuchElementException;
import kotlin.Metadata;
import kotlin.jvm.internal.u0;
import org.jetbrains.annotations.NotNull;
@Metadata(bv = {}, d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\b\u0005\bÀ\u0002\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u000e\u0010\u000fJ\u0018\u0010\u0007\u001a\u00020\u00062\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u000e\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\bJ\u000e\u0010\n\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\bJ\u0016\u0010\n\u001a\u00020\b2\u0006\u0010\u0003\u001a\u00020\u00022\u0006\u0010\u0005\u001a\u00020\u0004R\u001a\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u00060\u000b8\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\n\u0010\f¨\u0006\u0010"}, d2 = {"Lcom/smartlook/o9;", "", "Lcom/smartlook/d3;", "environment", "Lcom/smartlook/android/core/api/enumeration/Region;", "region", "Lcom/smartlook/n9;", "a", "", "relayProxy", "b", "", "[Lcom/smartlook/n9;", "availableConfigurations", "<init>", "()V", "smartlooksdk_release"}, k = 1, mv = {1, 7, 1})
public final class o9 {
@NotNull
public static final o9 f34390a = new o9();
@NotNull
private static final Server[] availableConfigurations;
static {
d3 d3Var = d3.Alfa;
Region region = Region.EU;
Server server = new Server(d3Var, region, "manager.alfa.smartlook.cloud");
Region region2 = Region.US;
Server server2 = new Server(d3Var, region2, "manager.alfa-us.smartlook.cloud");
d3 d3Var2 = d3.Beta;
Server server3 = new Server(d3Var2, region, "manager.beta.smartlook.cloud");
Server server4 = new Server(d3Var2, region2, "manager.beta.smartlook.cloud");
d3 d3Var3 = d3.Production;
availableConfigurations = new Server[]{server, server2, server3, server4, new Server(d3Var3, region, "manager.eu.smartlook.cloud"), new Server(d3Var3, region2, "manager.us.smartlook.cloud")};
}
private o9() {
}
@NotNull
public final String a(@NotNull String relayProxy) {
u0 u0Var = u0.f85785a;
return String.format("https://%s/manager/", Arrays.copyOf(new Object[]{relayProxy}, 1));
}
@NotNull
public final String b(@NotNull String relayProxy) {
u0 u0Var = u0.f85785a;
return String.format("https://%s/sdk-writer/", Arrays.copyOf(new Object[]{relayProxy}, 1));
}
private final Server a(d3 environment, Region region) {
for (Server server : availableConfigurations) {
if (server.getEnvironment() == environment && server.getRegion() == region) {
return server;
}
}
throw new NoSuchElementException("Array contains no element matching the predicate.");
}
@NotNull
public final String b(@NotNull d3 environment, @NotNull Region region) {
Server a15 = a(environment, region);
u0 u0Var = u0.f85785a;
return String.format("https://%s/", Arrays.copyOf(new Object[]{a15.getHost()}, 1));
}
}