91暗网 v2.032版本的 MD5 值为:84da7129e49fe272376e741e6f3c5975
以下内容为反编译后的 l.java 源代码,内容仅作参考
package g.m.a.a.i;
import android.content.SharedPreferences;
import android.text.TextUtils;
import com.jbzd.media.darkwebjy.MyApp;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.StringsKt__StringsKt;
import net.sourceforge.pinyin4j.ChineseToPinyinResource;
import org.jetbrains.annotations.NotNull;
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\t\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0002\b\u0002\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0006\u0010\u0013\u001a\u00020\u0004J\u0006\u0010\u0014\u001a\u00020\u0004J\u000e\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0004R\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0006X\u0086T¢\u0006\u0002\n\u0000R\u001a\u0010\b\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\t\u0010\n\"\u0004\b\u000b\u0010\fR!\u0010\r\u001a\u0012\u0012\u0004\u0012\u00020\u00040\u000ej\b\u0012\u0004\u0012\u00020\u0004`\u000f¢\u0006\b\n\u0000\u001a\u0004\b\u0010\u0010\u0011R\u000e\u0010\u0012\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000¨\u0006\u0018"}, d2 = {"Lcom/jbzd/media/darkwebjy/net/NetConfig;", "", "()V", "AES_KEY", "", "CACHE_SIZE", "", "TIME_OUT", "VAlID_BASE_URL", "getVAlID_BASE_URL", "()Ljava/lang/String;", "setVAlID_BASE_URL", "(Ljava/lang/String;)V", "baseUrls", "Ljava/util/ArrayList;", "Lkotlin/collections/ArrayList;", "getBaseUrls", "()Ljava/util/ArrayList;", "default_url", "getFirstLine", "getValidBaseUrl", "saveValidBaseUrl", "", "validUrl", "app_wuqudaoRelease"}, k = 1, mv = {1, 5, 1}, xi = 48)
public final class l {
@NotNull
public static final l a = new l();
@NotNull
public static String b = "";
@NotNull
public static final ArrayList<String> c;
static {
String str;
boolean z;
String lineStr;
MyApp context = MyApp.b();
String str2 = "";
Intrinsics.checkNotNullParameter(context, "context");
ArrayList<String> arrayList = new ArrayList<>();
try {
try {
str = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData.getString("LINK");
} catch (Exception e2) {
e2.printStackTrace();
str = "http://api.buzhidaoxiesha.com/cxapi/";
}
boolean z2 = false;
} catch (Exception e3) {
e3.printStackTrace();
}
if (str != null && str.length() != 0) {
z = false;
if (!z) {
arrayList.add(str);
}
lineStr = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData.getString("SPECIFIED_LINKS");
if (lineStr != null || lineStr.length() == 0) {
Intrinsics.checkNotNullExpressionValue(lineStr, "lineStr");
List<String> split$default = StringsKt__StringsKt.split$default((CharSequence) lineStr, new String[]{ChineseToPinyinResource.Field.COMMA}, false, 0, 6, (Object) null);
if (!split$default.isEmpty()) {
for (String str3 : split$default) {
if (str3 == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.CharSequence");
}
arrayList.add(StringsKt__StringsKt.trim((CharSequence) str3).toString());
}
}
} else {
try {
str2 = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData.getString("DEFAULT_LINKS");
} catch (Exception e4) {
e4.printStackTrace();
}
String defaultLineStr = str2;
if (!((defaultLineStr == null || defaultLineStr.length() == 0) ? true : true)) {
Intrinsics.checkNotNullExpressionValue(defaultLineStr, "defaultLineStr");
List<String> split$default2 = StringsKt__StringsKt.split$default((CharSequence) defaultLineStr, new String[]{ChineseToPinyinResource.Field.COMMA}, false, 0, 6, (Object) null);
if (!split$default2.isEmpty()) {
for (String str4 : split$default2) {
if (str4 == null) {
throw new NullPointerException("null cannot be cast to non-null type kotlin.CharSequence");
}
arrayList.add(StringsKt__StringsKt.trim((CharSequence) str4).toString());
}
}
}
}
c = arrayList;
}
z = true;
if (!z) {
}
lineStr = context.getPackageManager().getApplicationInfo(context.getPackageName(), 128).metaData.getString("SPECIFIED_LINKS");
if (lineStr != null || lineStr.length() == 0) {
}
c = arrayList;
}
@NotNull
public final String a() {
ArrayList<String> arrayList = c;
return g.h.a.a.p1.e.t0(arrayList) ? (String) CollectionsKt___CollectionsKt.first((List<? extends Object>) arrayList) : "";
}
@NotNull
public final String b() {
if (TextUtils.isEmpty(b)) {
String a2 = a();
Intrinsics.checkNotNullParameter("SP_BASE_URL", "key");
Intrinsics.checkNotNullParameter(a2, "default");
g.r.b.b.a aVar = g.r.b.a.a;
if (aVar != null) {
SharedPreferences sharedPreferences = aVar.getSharedPreferences("default_storage", 0);
Intrinsics.checkNotNullExpressionValue(sharedPreferences, "SupportLibraryInstance.context.getSharedPreferences(DEFAULT_STORAGE_NAME,Context.MODE_PRIVATE)");
String string = sharedPreferences.getString("SP_BASE_URL", a2);
Intrinsics.checkNotNull(string);
if (TextUtils.isEmpty(string)) {
string = "http://tmapi.tmsangewg.com/cxapi/";
}
b = string;
} else {
Intrinsics.throwUninitializedPropertyAccessException("context");
throw null;
}
}
return b;
}
}